LibreOffice Module sw (master) 1
|
#include <labelcfg.hxx>
Public Member Functions | |
SwLabelConfig () | |
virtual | ~SwLabelConfig () override |
virtual void | Notify (const css::uno::Sequence< OUString > &aPropertyNames) override |
void | FillLabels (const OUString &rManufacturer, SwLabRecs &rLabArr) |
const std::vector< OUString > & | GetManufacturers () const |
bool | HasLabel (const OUString &rManufacturer, const OUString &rType) |
bool | IsPredefinedLabel (const OUString &rManufacturer, const OUString &rType) |
void | SaveLabel (const OUString &rManufacturer, const OUString &rType, const SwLabRec &rRec) |
Public Member Functions inherited from utl::ConfigItem | |
virtual | ~ConfigItem () override |
ConfigItem (ConfigItem const &)=default | |
ConfigItem (ConfigItem &&)=default | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (ConfigItem &&)=delete |
virtual void | Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0 |
const OUString & | GetSubTreeName () const |
bool | IsModified () const |
void | Commit () |
ConfigItemMode | GetMode () const |
Public Member Functions inherited from utl::ConfigurationBroadcaster | |
void | AddListener (utl::ConfigurationListener *pListener) |
void | RemoveListener (utl::ConfigurationListener const *pListener) |
void | NotifyListeners (ConfigurationHints nHint) |
ConfigurationBroadcaster () | |
ConfigurationBroadcaster (ConfigurationBroadcaster const &) | |
virtual | ~ConfigurationBroadcaster () |
ConfigurationBroadcaster & | operator= (ConfigurationBroadcaster const &other) |
virtual void | BlockBroadcasts (bool bBlock) |
Private Member Functions | |
virtual void | ImplCommit () override |
Private Attributes | |
std::vector< OUString > | m_aManufacturers |
std::map< OUString, std::map< OUString, SwLabelMeasure > > | m_aLabels |
Additional Inherited Members | |
Static Public Member Functions inherited from utl::ConfigItem | |
static css::uno::Sequence< OUString > | GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat) |
static css::uno::Sequence< css::uno::Any > | GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales) |
static bool | PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales) |
static bool | ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode) |
static bool | ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales) |
static bool | SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
Protected Member Functions inherited from utl::ConfigItem | |
ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE) | |
void | SetModified () |
void | ClearModified () |
css::uno::Sequence< css::uno::Any > | GetProperties (const css::uno::Sequence< OUString > &rNames) |
css::uno::Sequence< sal_Bool > | GetReadOnlyStates (const css::uno::Sequence< OUString > &rNames) |
bool | PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues) |
bool | EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false) |
void | DisableNotification () |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode) |
css::uno::Sequence< OUString > | GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat) |
bool | ClearNodeSet (const OUString &rNode) |
bool | ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements) |
bool | SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
bool | AddNode (const OUString &rNode, const OUString &rNewNode) |
Definition at line 35 of file labelcfg.hxx.
SwLabelConfig::SwLabelConfig | ( | ) |
Definition at line 71 of file labelcfg.cxx.
References Any, aPropNames, xmlreader::Span::convertFromUtf8(), xmlreader::XmlReader::getAttributeValue(), utl::ConfigItem::GetNodeNames(), utl::ConfigItem::GetProperties(), lcl_assertEndingItem(), lcl_CreatePropertyNames(), lcl_getValue(), m_aLabels, m_aManufacturers, name, xmlreader::XmlReader::NAMESPACE_NONE, xmlreader::XmlReader::nextAttribute(), xmlreader::XmlReader::nextItem(), SwPostItHelper::NONE, pValues, sName, and sPrefix.
|
overridevirtual |
Definition at line 158 of file labelcfg.cxx.
void SwLabelConfig::FillLabels | ( | const OUString & | rManufacturer, |
SwLabRecs & | rLabArr | ||
) |
Definition at line 244 of file labelcfg.cxx.
References lcl_CreateSwLabRec(), and m_aLabels.
Referenced by SwLabDlg::ReplaceGroup_().
|
inline |
Definition at line 50 of file labelcfg.hxx.
Referenced by SwLabDlg::SwLabDlg(), and SwSaveLabelDlg::SwSaveLabelDlg().
bool SwLabelConfig::HasLabel | ( | const OUString & | rManufacturer, |
const OUString & | rType | ||
) |
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 163 of file labelcfg.cxx.
|
inline |
Definition at line 53 of file labelcfg.hxx.
Referenced by IMPL_LINK_NOARG().
|
overridevirtual |
Implements utl::ConfigItem.
Definition at line 165 of file labelcfg.cxx.
void SwLabelConfig::SaveLabel | ( | const OUString & | rManufacturer, |
const OUString & | rType, | ||
const SwLabRec & | rRec | ||
) |
Definition at line 260 of file labelcfg.cxx.
References utl::ConfigItem::AddNode(), Any, aProperties, aPropNames, end, find(), comphelper::findValue(), utl::ConfigItem::GetNodeNames(), utl::ConfigItem::GetProperties(), lcl_CreateProperties(), lcl_CreatePropertyNames(), m_aLabels, m_aManufacturers, nIndex, pValues, utl::ConfigItem::SetSetProperties(), sPrefix, and wrapConfigurationElementName().
Referenced by IMPL_LINK_NOARG().
|
private |
Definition at line 39 of file labelcfg.hxx.
Referenced by FillLabels(), HasLabel(), SaveLabel(), and SwLabelConfig().
|
private |
Definition at line 38 of file labelcfg.hxx.
Referenced by SaveLabel(), and SwLabelConfig().