LibreOffice Module xmloff (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
XMLSettingsExportHelper Class Reference

#include <SettingsExportHelper.hxx>

Collaboration diagram for XMLSettingsExportHelper:
[legend]

Public Member Functions

 XMLSettingsExportHelper (::xmloff::XMLSettingsExportContext &i_rContext)
 
 ~XMLSettingsExportHelper ()
 
void exportAllSettings (const css::uno::Sequence< css::beans::PropertyValue > &aProps, const OUString &rName) const
 

Private Member Functions

void ManipulateSetting (css::uno::Any &rAny, std::u16string_view rName) const
 For some settings we may want to change their API representation from their XML settings representation. More...
 
void CallTypeFunction (const css::uno::Any &rAny, const OUString &rName) const
 
void exportBool (const bool bValue, const OUString &rName) const
 
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
 
void exportDateTime (const css::util::DateTime &aValue, const OUString &rName) const
 
void exportSequencePropertyValue (const css::uno::Sequence< css::beans::PropertyValue > &aProps, const OUString &rName) const
 
void exportbase64Binary (const css::uno::Sequence< sal_Int8 > &aProps, const OUString &rName) const
 
void exportMapEntry (const css::uno::Any &rAny, const OUString &rName, const bool bNameAccess) const
 
void exportNameAccess (const css::uno::Reference< css::container::XNameAccess > &rNamed, const OUString &rName) const
 
void exportIndexAccess (const css::uno::Reference< css::container::XIndexAccess > &rIndexed, const OUString &rName) const
 
void exportSymbolDescriptors (const css::uno::Sequence< css::formula::SymbolDescriptor > &rProps, const OUString &rName) const
 
void exportForbiddenCharacters (const css::uno::Any &rAny, const OUString &rName) const
 

Static Private Member Functions

static void exportByte ()
 

Private Attributes

::xmloff::XMLSettingsExportContextm_rContext
 
css::uno::Reference< css::util::XStringSubstitution > mxStringSubstitution
 

Detailed Description

Definition at line 48 of file SettingsExportHelper.hxx.

Constructor & Destructor Documentation

◆ XMLSettingsExportHelper()

XMLSettingsExportHelper::XMLSettingsExportHelper ( ::xmloff::XMLSettingsExportContext i_rContext)

Definition at line 57 of file SettingsExportHelper.cxx.

References m_rContext.

◆ ~XMLSettingsExportHelper()

XMLSettingsExportHelper::~XMLSettingsExportHelper ( )

Definition at line 62 of file SettingsExportHelper.cxx.

Member Function Documentation

◆ CallTypeFunction()

void XMLSettingsExportHelper::CallTypeFunction ( const css::uno::Any &  rAny,
const OUString &  rName 
) const
private

◆ exportAllSettings()

void XMLSettingsExportHelper::exportAllSettings ( const css::uno::Sequence< css::beans::PropertyValue > &  aProps,
const OUString &  rName 
) const

Definition at line 464 of file SettingsExportHelper.cxx.

References DBG_ASSERT, and exportSequencePropertyValue().

Referenced by SvXMLExport::ImplExportSettings().

◆ exportbase64Binary()

void XMLSettingsExportHelper::exportbase64Binary ( const css::uno::Sequence< sal_Int8 > &  aProps,
const OUString &  rName 
) const
private

◆ exportBool()

void XMLSettingsExportHelper::exportBool ( const bool  bValue,
const OUString &  rName 
) const
private

◆ exportByte()

void XMLSettingsExportHelper::exportByte ( )
staticprivate

Definition at line 198 of file SettingsExportHelper.cxx.

Referenced by CallTypeFunction().

◆ exportDateTime()

void XMLSettingsExportHelper::exportDateTime ( const css::util::DateTime &  aValue,
const OUString &  rName 
) const
private

◆ exportDouble()

void XMLSettingsExportHelper::exportDouble ( const double  fValue,
const OUString &  rName 
) const
private

◆ exportForbiddenCharacters()

void XMLSettingsExportHelper::exportForbiddenCharacters ( const css::uno::Any &  rAny,
const OUString &  rName 
) const
private

◆ exportIndexAccess()

void XMLSettingsExportHelper::exportIndexAccess ( const css::uno::Reference< css::container::XIndexAccess > &  rIndexed,
const OUString &  rName 
) const
private

◆ exportInt()

void XMLSettingsExportHelper::exportInt ( const sal_Int32  nValue,
const OUString &  rName 
) const
private

◆ exportLong()

void XMLSettingsExportHelper::exportLong ( const sal_Int64  nValue,
const OUString &  rName 
) const
private

◆ exportMapEntry()

void XMLSettingsExportHelper::exportMapEntry ( const css::uno::Any &  rAny,
const OUString &  rName,
const bool  bNameAccess 
) const
private

◆ exportNameAccess()

void XMLSettingsExportHelper::exportNameAccess ( const css::uno::Reference< css::container::XNameAccess > &  rNamed,
const OUString &  rName 
) const
private

◆ exportSequencePropertyValue()

void XMLSettingsExportHelper::exportSequencePropertyValue ( const css::uno::Sequence< css::beans::PropertyValue > &  aProps,
const OUString &  rName 
) const
private

◆ exportShort()

void XMLSettingsExportHelper::exportShort ( const sal_Int16  nValue,
const OUString &  rName 
) const
private

◆ exportString()

void XMLSettingsExportHelper::exportString ( const OUString &  sValue,
const OUString &  rName 
) const
private

◆ exportSymbolDescriptors()

void XMLSettingsExportHelper::exportSymbolDescriptors ( const css::uno::Sequence< css::formula::SymbolDescriptor > &  rProps,
const OUString &  rName 
) const
private

◆ ManipulateSetting()

void XMLSettingsExportHelper::ManipulateSetting ( css::uno::Any &  rAny,
std::u16string_view  rName 
) const
private

For some settings we may want to change their API representation from their XML settings representation.

This is your chance to do so!

Definition at line 477 of file SettingsExportHelper.cxx.

References aURL, DBG_UNHANDLED_EXCEPTION, xmloff::XMLSettingsExportContext::GetComponentContext(), gsBitmapTableURL(), gsColorTableURL(), gsDashTableURL(), gsGradientTableURL(), gsHatchTableURL(), gsLineEndTableURL(), gsPrinterIndependentLayout(), m_rContext, and mxStringSubstitution.

Referenced by CallTypeFunction().

Member Data Documentation

◆ m_rContext

::xmloff::XMLSettingsExportContext& XMLSettingsExportHelper::m_rContext
private

◆ mxStringSubstitution

css::uno::Reference< css::util::XStringSubstitution > XMLSettingsExportHelper::mxStringSubstitution
private

Definition at line 52 of file SettingsExportHelper.hxx.

Referenced by ManipulateSetting().


The documentation for this class was generated from the following files: