LibreOffice Module xmloff (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
SvXMLAutoStylePoolP Class Reference

#include <xmlaustp.hxx>

Inheritance diagram for SvXMLAutoStylePoolP:
[legend]
Collaboration diagram for SvXMLAutoStylePoolP:
[legend]

Public Member Functions

 SvXMLAutoStylePoolP (SvXMLExport &rExport)
 
virtual ~SvXMLAutoStylePoolP () override
 
SvXMLExportGetExport () const
 
void AddFamily (XmlStyleFamily nFamily, const OUString &rStrName, SvXMLExportPropertyMapper *pMapper, const OUString &aStrPrefix)
 register a new family with its appropriate instance of a derivation of XMLPropertySetMapper for family numbers see families.hxx More...
 
void AddFamily (XmlStyleFamily nFamily, const OUString &rStrName, const rtl::Reference< SvXMLExportPropertyMapper > &rMapper, const OUString &rStrPrefix, bool bAsFamily=true)
 
void SetFamilyPropSetMapper (XmlStyleFamily nFamily, const rtl::Reference< SvXMLExportPropertyMapper > &rMapper)
 
void RegisterName (XmlStyleFamily nFamily, const OUString &rName)
 Register a name that must not be used as a generated name. More...
 
void RegisterDefinedName (XmlStyleFamily nFamily, const OUString &rName)
 Register a name that may only be used through AddNamed. More...
 
void GetRegisteredNames (css::uno::Sequence< sal_Int32 > &aFamilies, css::uno::Sequence< OUString > &aNames)
 retrieve the registered names (names + families) More...
 
void RegisterNames (css::uno::Sequence< sal_Int32 > const &aFamilies, css::uno::Sequence< OUString > const &aNames)
 register (families + names) More...
 
OUString Add (XmlStyleFamily nFamily, ::std::vector< XMLPropertyState > &&rProperties)
 Add an item set to the pool and return its generated name. More...
 
OUString Add (XmlStyleFamily nFamily, const OUString &rParent, ::std::vector< XMLPropertyState > &&rProperties, bool bDontSeek=false)
 
bool Add (OUString &rName, XmlStyleFamily nFamily, const OUString &rParent, ::std::vector< XMLPropertyState > &&rProperties)
 
bool AddNamed (const OUString &rName, XmlStyleFamily nFamily, const OUString &rParent, std::vector< XMLPropertyState > aProperties)
 Add an item set with a pre-defined name (needed for saving sheets separately in Calc). More...
 
OUString Find (XmlStyleFamily nFamily, const OUString &rParent, const ::std::vector< XMLPropertyState > &rProperties) const
 Find an item set's name. More...
 
void exportXML (XmlStyleFamily nFamily) const
 Export all item sets ofs a certain class in the order in that they have been added. More...
 
void ClearEntries ()
 
std::vector< xmloff::AutoStyleEntryGetAutoStyleEntries () const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Protected Member Functions

virtual void exportStyleAttributes (comphelper::AttributeList &rAttrList, XmlStyleFamily nFamily, const ::std::vector< XMLPropertyState > &rProperties, const SvXMLExportPropertyMapper &rPropExp, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap) const
 
virtual void exportStyleContent (const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler, XmlStyleFamily nFamily, const ::std::vector< XMLPropertyState > &rProperties, const SvXMLExportPropertyMapper &rPropExp, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap) const
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 

Private Attributes

std::unique_ptr< SvXMLAutoStylePoolP_Implm_pImpl
 

Friends

class Test
 
class SvXMLAutoStylePoolP_Impl
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 49 of file xmlaustp.hxx.

Constructor & Destructor Documentation

◆ SvXMLAutoStylePoolP()

SvXMLAutoStylePoolP::SvXMLAutoStylePoolP ( SvXMLExport rExport)

Definition at line 256 of file xmlaustp.cxx.

References m_pImpl.

◆ ~SvXMLAutoStylePoolP()

SvXMLAutoStylePoolP::~SvXMLAutoStylePoolP ( )
overridevirtual

Definition at line 261 of file xmlaustp.cxx.

Member Function Documentation

◆ Add() [1/3]

bool SvXMLAutoStylePoolP::Add ( OUString &  rName,
XmlStyleFamily  nFamily,
const OUString &  rParent,
::std::vector< XMLPropertyState > &&  rProperties 
)

Definition at line 348 of file xmlaustp.cxx.

References m_pImpl.

◆ Add() [2/3]

OUString SvXMLAutoStylePoolP::Add ( XmlStyleFamily  nFamily,
::std::vector< XMLPropertyState > &&  rProperties 
)

Add an item set to the pool and return its generated name.

Referenced by SchXMLExportHelper_Impl::CollectAutoStyle(), and exportStyleAttributes().

◆ Add() [3/3]

OUString SvXMLAutoStylePoolP::Add ( XmlStyleFamily  nFamily,
const OUString &  rParent,
::std::vector< XMLPropertyState > &&  rProperties,
bool  bDontSeek = false 
)

◆ AddFamily() [1/2]

void SvXMLAutoStylePoolP::AddFamily ( XmlStyleFamily  nFamily,
const OUString &  rStrName,
const rtl::Reference< SvXMLExportPropertyMapper > &  rMapper,
const OUString &  rStrPrefix,
bool  bAsFamily = true 
)

Definition at line 281 of file xmlaustp.cxx.

References m_pImpl.

◆ AddFamily() [2/2]

void SvXMLAutoStylePoolP::AddFamily ( XmlStyleFamily  nFamily,
const OUString &  rStrName,
SvXMLExportPropertyMapper pMapper,
const OUString &  aStrPrefix 
)

register a new family with its appropriate instance of a derivation of XMLPropertySetMapper for family numbers see families.hxx

Definition at line 271 of file xmlaustp.cxx.

References AddFamily().

Referenced by AddFamily(), SchXMLExportHelper_Impl::SchXMLExportHelper_Impl(), and XMLTextParagraphExport::XMLTextParagraphExport().

◆ AddNamed()

bool SvXMLAutoStylePoolP::AddNamed ( const OUString &  rName,
XmlStyleFamily  nFamily,
const OUString &  rParent,
std::vector< XMLPropertyState aProperties 
)

Add an item set with a pre-defined name (needed for saving sheets separately in Calc).

Definition at line 353 of file xmlaustp.cxx.

References m_pImpl.

◆ ClearEntries()

void SvXMLAutoStylePoolP::ClearEntries ( )

Definition at line 372 of file xmlaustp.cxx.

References m_pImpl.

◆ exportStyleAttributes()

void SvXMLAutoStylePoolP::exportStyleAttributes ( comphelper::AttributeList rAttrList,
XmlStyleFamily  nFamily,
const ::std::vector< XMLPropertyState > &  rProperties,
const SvXMLExportPropertyMapper rPropExp,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
) const
protectedvirtual

◆ exportStyleContent()

void SvXMLAutoStylePoolP::exportStyleContent ( const css::uno::Reference< css::xml::sax::XDocumentHandler > &  rHandler,
XmlStyleFamily  nFamily,
const ::std::vector< XMLPropertyState > &  rProperties,
const SvXMLExportPropertyMapper rPropExp,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
) const
protectedvirtual

◆ exportXML()

void SvXMLAutoStylePoolP::exportXML ( XmlStyleFamily  nFamily) const

Export all item sets ofs a certain class in the order in that they have been added.

Definition at line 367 of file xmlaustp.cxx.

References m_pImpl.

Referenced by SchXMLExportHelper_Impl::exportAutoStyles(), and XMLTextParagraphExport::exportTextAutoStyles().

◆ Find()

OUString SvXMLAutoStylePoolP::Find ( XmlStyleFamily  nFamily,
const OUString &  rParent,
const ::std::vector< XMLPropertyState > &  rProperties 
) const

Find an item set's name.

Definition at line 360 of file xmlaustp.cxx.

References m_pImpl.

◆ GetAutoStyleEntries()

std::vector< xmloff::AutoStyleEntry > SvXMLAutoStylePoolP::GetAutoStyleEntries ( ) const

Definition at line 377 of file xmlaustp.cxx.

References m_pImpl.

◆ GetExport()

SvXMLExport & SvXMLAutoStylePoolP::GetExport ( ) const

Definition at line 265 of file xmlaustp.cxx.

References m_pImpl.

Referenced by exportStyleAttributes(), and exportStyleContent().

◆ GetRegisteredNames()

void SvXMLAutoStylePoolP::GetRegisteredNames ( css::uno::Sequence< sal_Int32 > &  aFamilies,
css::uno::Sequence< OUString > &  aNames 
)

retrieve the registered names (names + families)

Definition at line 310 of file xmlaustp.cxx.

References m_pImpl.

◆ RegisterDefinedName()

void SvXMLAutoStylePoolP::RegisterDefinedName ( XmlStyleFamily  nFamily,
const OUString &  rName 
)

Register a name that may only be used through AddNamed.

Definition at line 304 of file xmlaustp.cxx.

References m_pImpl.

◆ RegisterName()

void SvXMLAutoStylePoolP::RegisterName ( XmlStyleFamily  nFamily,
const OUString &  rName 
)

Register a name that must not be used as a generated name.

Definition at line 298 of file xmlaustp.cxx.

References m_pImpl.

Referenced by XMLStyleExport::exportStyleFamily(), and RegisterNames().

◆ RegisterNames()

void SvXMLAutoStylePoolP::RegisterNames ( css::uno::Sequence< sal_Int32 > const &  aFamilies,
css::uno::Sequence< OUString > const &  aNames 
)

register (families + names)

Definition at line 317 of file xmlaustp.cxx.

References n, nCount, and RegisterName().

◆ SetFamilyPropSetMapper()

void SvXMLAutoStylePoolP::SetFamilyPropSetMapper ( XmlStyleFamily  nFamily,
const rtl::Reference< SvXMLExportPropertyMapper > &  rMapper 
)

Definition at line 291 of file xmlaustp.cxx.

References m_pImpl.

Friends And Related Function Documentation

◆ SvXMLAutoStylePoolP_Impl

friend class SvXMLAutoStylePoolP_Impl
friend

Definition at line 52 of file xmlaustp.hxx.

◆ Test

friend class Test
friend

Definition at line 51 of file xmlaustp.hxx.

Member Data Documentation

◆ m_pImpl

std::unique_ptr<SvXMLAutoStylePoolP_Impl> SvXMLAutoStylePoolP::m_pImpl
private

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