2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-12-12 16:18:31 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 21:27:40 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
2008-04-10 21:27:40 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
2008-04-10 21:27:40 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
2008-04-10 21:27:40 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
2008-04-10 21:27:40 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
2008-04-10 21:27:40 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-12-12 16:18:31 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2007-06-27 14:34:06 +00:00
|
|
|
#include <xmloff/xmluconv.hxx>
|
2000-12-12 16:18:31 +00:00
|
|
|
#include <rtl/ustrbuf.hxx>
|
|
|
|
#include <com/sun/star/uno/Any.hxx>
|
|
|
|
#include "XMLBitmapLogicalSizePropertyHandler.hxx"
|
2001-03-16 13:37:07 +00:00
|
|
|
#include <comphelper/extract.hxx>
|
2000-12-12 16:18:31 +00:00
|
|
|
|
|
|
|
using namespace ::com::sun::star;
|
|
|
|
using namespace ::com::sun::star::uno;
|
2008-03-12 09:45:24 +00:00
|
|
|
using ::rtl::OUString;
|
|
|
|
using ::rtl::OUStringBuffer;
|
|
|
|
|
2000-12-12 16:18:31 +00:00
|
|
|
|
|
|
|
XMLBitmapLogicalSizePropertyHandler::XMLBitmapLogicalSizePropertyHandler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
XMLBitmapLogicalSizePropertyHandler::~XMLBitmapLogicalSizePropertyHandler()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
sal_Bool XMLBitmapLogicalSizePropertyHandler::importXML(
|
|
|
|
const OUString& rStrImpValue,
|
|
|
|
Any& rValue,
|
2006-06-19 17:28:36 +00:00
|
|
|
const SvXMLUnitConverter& ) const
|
2000-12-12 16:18:31 +00:00
|
|
|
{
|
|
|
|
rValue = ::cppu::bool2any( rStrImpValue.indexOf( sal_Unicode('%') ) == -1 );
|
|
|
|
return sal_True;
|
|
|
|
}
|
|
|
|
|
|
|
|
sal_Bool XMLBitmapLogicalSizePropertyHandler::exportXML(
|
2006-06-19 17:28:36 +00:00
|
|
|
OUString&,
|
|
|
|
const Any&,
|
|
|
|
const SvXMLUnitConverter& ) const
|
2000-12-12 16:18:31 +00:00
|
|
|
{
|
|
|
|
return sal_False;
|
|
|
|
}
|
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|