2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-04-11 12:21:44 +00:00
|
|
|
|
2013-10-23 19:09:35 +02:00
|
|
|
#ifndef INCLUDED_XMLOFF_SETTINGSEXPORTHELPER_HXX
|
|
|
|
#define INCLUDED_XMLOFF_SETTINGSEXPORTHELPER_HXX
|
2007-04-11 12:21:44 +00:00
|
|
|
|
2013-11-09 15:30:56 -06:00
|
|
|
#include <xmloff/dllapi.h>
|
2010-02-15 14:23:37 +01:00
|
|
|
|
2007-04-11 12:21:44 +00:00
|
|
|
#include <com/sun/star/awt/Rectangle.hpp>
|
|
|
|
#include <com/sun/star/formula/SymbolDescriptor.hpp>
|
|
|
|
#include <com/sun/star/util/XStringSubstitution.hpp>
|
|
|
|
#include <xmloff/xmlexp.hxx>
|
|
|
|
|
|
|
|
namespace com
|
|
|
|
{
|
|
|
|
namespace sun { namespace star {
|
|
|
|
namespace container { class XNameAccess; class XIndexAccess; }
|
|
|
|
namespace util { struct DateTime; }
|
|
|
|
} }
|
|
|
|
}
|
2010-02-12 12:08:41 +01:00
|
|
|
|
|
|
|
namespace xmloff
|
|
|
|
{
|
|
|
|
class XMLSettingsExportContext;
|
|
|
|
}
|
|
|
|
|
2010-02-15 14:23:37 +01:00
|
|
|
class XMLOFF_DLLPUBLIC XMLSettingsExportHelper
|
2007-04-11 12:21:44 +00:00
|
|
|
{
|
2010-02-12 12:08:41 +01:00
|
|
|
::xmloff::XMLSettingsExportContext& m_rContext;
|
2007-04-11 12:21:44 +00:00
|
|
|
|
2015-10-23 10:32:47 +02:00
|
|
|
css::uno::Reference< css::util::XStringSubstitution > mxStringSubsitution;
|
2007-04-11 12:21:44 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString msPrinterIndependentLayout;
|
|
|
|
const OUString msColorTableURL;
|
|
|
|
const OUString msLineEndTableURL;
|
|
|
|
const OUString msHatchTableURL;
|
|
|
|
const OUString msDashTableURL;
|
|
|
|
const OUString msGradientTableURL;
|
|
|
|
const OUString msBitmapTableURL;
|
2007-04-11 12:21:44 +00:00
|
|
|
|
2015-10-23 10:32:47 +02:00
|
|
|
void ManipulateSetting( css::uno::Any& rAny, const OUString& rName ) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
|
2015-10-23 10:32:47 +02:00
|
|
|
void CallTypeFunction(const css::uno::Any& rAny,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rName) const;
|
|
|
|
|
2014-03-27 16:42:51 +02:00
|
|
|
void exportBool(const bool bValue, const OUString& rName) const;
|
2017-07-02 22:27:05 +02:00
|
|
|
static void exportByte();
|
2013-04-07 12:06:47 +02:00
|
|
|
void exportShort(const sal_Int16 nValue, const OUString& rName) const;
|
|
|
|
void exportInt(const sal_Int32 nValue, const OUString& rName) const;
|
|
|
|
void exportLong(const sal_Int64 nValue, const OUString& rName) const;
|
|
|
|
void exportDouble(const double fValue, const OUString& rName) const;
|
|
|
|
void exportString(const OUString& sValue, const OUString& rName) const;
|
2015-10-23 10:32:47 +02:00
|
|
|
void exportDateTime(const css::util::DateTime& aValue, const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
void exportSequencePropertyValue(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Sequence<css::beans::PropertyValue>& aProps,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
void exportbase64Binary(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Sequence<sal_Int8>& aProps,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rName) const;
|
2015-10-23 10:32:47 +02:00
|
|
|
void exportMapEntry(const css::uno::Any& rAny,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rName,
|
2014-03-27 16:42:51 +02:00
|
|
|
const bool bNameAccess) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
void exportNameAccess(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Reference<css::container::XNameAccess>& rNamed,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
void exportIndexAccess(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Reference<css::container::XIndexAccess>& rIndexed,
|
2014-03-13 15:04:48 +02:00
|
|
|
const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
|
|
|
|
void exportSymbolDescriptors(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Sequence < css::formula::SymbolDescriptor > &rProps,
|
2014-03-13 15:04:48 +02:00
|
|
|
const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
void exportForbiddenCharacters(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Any &rAny,
|
2014-03-13 15:04:48 +02:00
|
|
|
const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
|
|
|
|
public:
|
2010-02-12 12:08:41 +01:00
|
|
|
XMLSettingsExportHelper( ::xmloff::XMLSettingsExportContext& i_rContext );
|
2007-04-11 12:21:44 +00:00
|
|
|
~XMLSettingsExportHelper();
|
|
|
|
|
2010-02-12 12:08:41 +01:00
|
|
|
void exportAllSettings(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Sequence<css::beans::PropertyValue>& aProps,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rName) const;
|
2007-04-11 12:21:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|