LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwLabelConfig Class Referencefinal

#include <labelcfg.hxx>

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

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
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (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 ()
 
ConfigurationBroadcasteroperator= (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_BoolGetReadOnlyStates (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)
 

Detailed Description

Definition at line 35 of file labelcfg.hxx.

Constructor & Destructor Documentation

◆ SwLabelConfig()

SwLabelConfig::SwLabelConfig ( )

◆ ~SwLabelConfig()

SwLabelConfig::~SwLabelConfig ( )
overridevirtual

Definition at line 158 of file labelcfg.cxx.

Member Function Documentation

◆ FillLabels()

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_().

◆ GetManufacturers()

const std::vector< OUString > & SwLabelConfig::GetManufacturers ( ) const
inline

Definition at line 50 of file labelcfg.hxx.

Referenced by SwLabDlg::SwLabDlg(), and SwSaveLabelDlg::SwSaveLabelDlg().

◆ HasLabel()

bool SwLabelConfig::HasLabel ( const OUString &  rManufacturer,
const OUString &  rType 
)

Definition at line 252 of file labelcfg.cxx.

References m_aLabels.

Referenced by IMPL_LINK_NOARG().

◆ ImplCommit()

void SwLabelConfig::ImplCommit ( )
overrideprivatevirtual

Implements utl::ConfigItem.

Definition at line 163 of file labelcfg.cxx.

◆ IsPredefinedLabel()

bool SwLabelConfig::IsPredefinedLabel ( const OUString &  rManufacturer,
const OUString &  rType 
)
inline

Definition at line 53 of file labelcfg.hxx.

Referenced by IMPL_LINK_NOARG().

◆ Notify()

void SwLabelConfig::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Implements utl::ConfigItem.

Definition at line 165 of file labelcfg.cxx.

◆ SaveLabel()

void SwLabelConfig::SaveLabel ( const OUString &  rManufacturer,
const OUString &  rType,
const SwLabRec rRec 
)

Member Data Documentation

◆ m_aLabels

std::map< OUString, std::map<OUString, SwLabelMeasure> > SwLabelConfig::m_aLabels
private

Definition at line 39 of file labelcfg.hxx.

Referenced by FillLabels(), HasLabel(), SaveLabel(), and SwLabelConfig().

◆ m_aManufacturers

std::vector<OUString> SwLabelConfig::m_aManufacturers
private

Definition at line 38 of file labelcfg.hxx.

Referenced by SaveLabel(), and SwLabelConfig().


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