LibreOffice Module xmloff (master) 1
|
#include <xmlaustp.hxx>
Public Member Functions | |
SvXMLAutoStylePoolP (SvXMLExport &rExport) | |
virtual | ~SvXMLAutoStylePoolP () override |
SvXMLExport & | GetExport () 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::AutoStyleEntry > | GetAutoStyleEntries () 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_Impl > | m_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 |
Definition at line 49 of file xmlaustp.hxx.
SvXMLAutoStylePoolP::SvXMLAutoStylePoolP | ( | SvXMLExport & | rExport | ) |
Definition at line 256 of file xmlaustp.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 261 of file xmlaustp.cxx.
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.
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().
OUString SvXMLAutoStylePoolP::Add | ( | XmlStyleFamily | nFamily, |
const OUString & | rParent, | ||
::std::vector< XMLPropertyState > && | rProperties, | ||
bool | bDontSeek = false |
||
) |
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.
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().
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.
void SvXMLAutoStylePoolP::ClearEntries | ( | ) |
Definition at line 372 of file xmlaustp.cxx.
References m_pImpl.
|
protectedvirtual |
Reimplemented in SchXMLAutoStylePoolP.
Definition at line 58 of file xmlaustp.cxx.
References Add(), SvXMLExport::AddAttribute(), CONTROL_ID, CTF_FORMS_DATA_STYLE, CTF_PM_PAGEUSAGE, CTF_SD_CONTROL_SHAPE_DATA_STYLE, CTF_SD_NUMBERINGRULES_NAME, XMLPropertyHandler::exportXML(), GetExport(), SvXMLExportPropertyMapper::getPropertySetMapper(), xmloff::token::IsXMLToken(), nIndex, PAGE_MASTER, SD_GRAPHICS_ID, SD_PRESENTATION_ID, sName, xmloff::token::XML_ALL, xmloff::token::XML_LIST_STYLE_NAME, and XML_NAMESPACE_STYLE.
Referenced by SchXMLAutoStylePoolP::exportStyleAttributes(), and SvXMLAutoStylePoolP_Impl::exportXML().
|
protectedvirtual |
Definition at line 168 of file xmlaustp.cxx.
References CTF_PM_FLAGMASK, CTF_PM_FOOTERFLAG, CTF_PM_HEADERFLAG, SvXMLExportPropertyMapper::exportXML(), GetExport(), SvXMLExportPropertyMapper::getPropertySetMapper(), IGN_WS, nIndex, PAGE_MASTER, xmloff::token::XML_FOOTER_STYLE, xmloff::token::XML_HEADER_STYLE, and XML_NAMESPACE_STYLE.
Referenced by SvXMLAutoStylePoolP_Impl::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().
OUString SvXMLAutoStylePoolP::Find | ( | XmlStyleFamily | nFamily, |
const OUString & | rParent, | ||
const ::std::vector< XMLPropertyState > & | rProperties | ||
) | const |
std::vector< xmloff::AutoStyleEntry > SvXMLAutoStylePoolP::GetAutoStyleEntries | ( | ) | const |
Definition at line 377 of file xmlaustp.cxx.
References m_pImpl.
SvXMLExport & SvXMLAutoStylePoolP::GetExport | ( | ) | const |
Definition at line 265 of file xmlaustp.cxx.
References m_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 310 of file xmlaustp.cxx.
References m_pImpl.
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.
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().
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().
void SvXMLAutoStylePoolP::SetFamilyPropSetMapper | ( | XmlStyleFamily | nFamily, |
const rtl::Reference< SvXMLExportPropertyMapper > & | rMapper | ||
) |
Definition at line 291 of file xmlaustp.cxx.
References m_pImpl.
|
friend |
Definition at line 52 of file xmlaustp.hxx.
|
friend |
Definition at line 51 of file xmlaustp.hxx.
|
private |
Definition at line 54 of file xmlaustp.hxx.
Referenced by Add(), AddFamily(), AddNamed(), ClearEntries(), exportXML(), Find(), GetAutoStyleEntries(), GetExport(), GetRegisteredNames(), RegisterDefinedName(), RegisterName(), and SetFamilyPropSetMapper().