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, const ::std::vector< XMLPropertyState > &rProperties)
 Add an item set to the pool and return its generated name. More...
 
OUString Add (XmlStyleFamily nFamily, const OUString &rParent, const ::std::vector< XMLPropertyState > &rProperties, bool bDontSeek=false)
 
bool Add (OUString &rName, XmlStyleFamily nFamily, const OUString &rParent, const ::std::vector< XMLPropertyState > &rProperties)
 
bool AddNamed (const OUString &rName, XmlStyleFamily nFamily, const OUString &rParent, const ::std::vector< XMLPropertyState > &rProperties)
 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 (SvXMLAttributeList &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_ImplpImpl
 

Friends

class Test
 
class SvXMLAutoStylePoolP_Impl
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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 ( SvXMLExport rExport)

Definition at line 258 of file xmlaustp.cxx.

SvXMLAutoStylePoolP::~SvXMLAutoStylePoolP ( )
overridevirtual

Definition at line 263 of file xmlaustp.cxx.

Member Function Documentation

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

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

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

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

Definition at line 350 of file xmlaustp.cxx.

References pImpl.

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 273 of file xmlaustp.cxx.

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

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

Definition at line 283 of file xmlaustp.cxx.

References pImpl.

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

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

Definition at line 355 of file xmlaustp.cxx.

References pImpl.

void SvXMLAutoStylePoolP::ClearEntries ( )

Definition at line 374 of file xmlaustp.cxx.

References pImpl.

void SvXMLAutoStylePoolP::exportStyleAttributes ( SvXMLAttributeList rAttrList,
XmlStyleFamily  nFamily,
const ::std::vector< XMLPropertyState > &  rProperties,
const SvXMLExportPropertyMapper rPropExp,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
) const
protectedvirtual
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
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 369 of file xmlaustp.cxx.

References pImpl.

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

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

Find an item set's name.

Definition at line 362 of file xmlaustp.cxx.

References pImpl.

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

Definition at line 379 of file xmlaustp.cxx.

References pImpl.

SvXMLExport & SvXMLAutoStylePoolP::GetExport ( ) const

Definition at line 267 of file xmlaustp.cxx.

References pImpl.

Referenced by exportStyleAttributes(), and exportStyleContent().

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

retrieve the registered names (names + families)

Definition at line 312 of file xmlaustp.cxx.

References pImpl.

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

Register a name that may only be used through AddNamed.

Definition at line 306 of file xmlaustp.cxx.

References pImpl.

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

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

Definition at line 300 of file xmlaustp.cxx.

References pImpl.

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

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

register (families + names)

Definition at line 319 of file xmlaustp.cxx.

References min, n, nCount, and RegisterName().

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

Definition at line 293 of file xmlaustp.cxx.

References pImpl.

Friends And Related Function Documentation

friend class SvXMLAutoStylePoolP_Impl
friend

Definition at line 52 of file xmlaustp.hxx.

friend class Test
friend

Definition at line 51 of file xmlaustp.hxx.

Member Data Documentation

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

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