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

#include <labelcfg.hxx>

Inheritance diagram for SwLabelConfig:
Collaboration diagram for SwLabelConfig:

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
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

- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (const OUString &rSubTree, 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 ( )

Definition at line 162 of file labelcfg.cxx.

Member Function Documentation

void SwLabelConfig::FillLabels ( const OUString &  rManufacturer,
SwLabRecs rLabArr 

Definition at line 248 of file labelcfg.cxx.

References lcl_CreateSwLabRec(), and m_aLabels.

Referenced by SwLabDlg::ReplaceGroup_().

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

Definition at line 50 of file labelcfg.hxx.

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

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

Definition at line 256 of file labelcfg.cxx.

References find(), and m_aLabels.

Referenced by IMPL_LINK_NOARG().

void SwLabelConfig::ImplCommit ( )

Implements utl::ConfigItem.

Definition at line 167 of file labelcfg.cxx.

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

Definition at line 53 of file labelcfg.hxx.

Referenced by IMPL_LINK_NOARG().

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

Implements utl::ConfigItem.

Definition at line 169 of file labelcfg.cxx.

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

Member Data Documentation

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

Definition at line 39 of file labelcfg.hxx.

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

std::vector<OUString> SwLabelConfig::m_aManufacturers

Definition at line 38 of file labelcfg.hxx.

Referenced by SaveLabel(), and SwLabelConfig().

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