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

#include <fontcfg.hxx>

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

Public Member Functions

 SwStdFontConfig ()
 
virtual ~SwStdFontConfig () override
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames) override
 
const OUString & GetFontStandard (sal_uInt8 nFontGroup) const
 
const OUString & GetFontOutline (sal_uInt8 nFontGroup) const
 
const OUString & GetFontList (sal_uInt8 nFontGroup) const
 
const OUString & GetFontCaption (sal_uInt8 nFontGroup) const
 
const OUString & GetFontIndex (sal_uInt8 nFontGroup) const
 
const OUString & GetFontFor (sal_uInt16 nFontType) const
 
bool IsFontDefault (sal_uInt16 nFontType) const
 
void SetFontStandard (const OUString &rSet, sal_uInt8 nFontGroup)
 
void SetFontOutline (const OUString &rSet, sal_uInt8 nFontGroup)
 
void SetFontList (const OUString &rSet, sal_uInt8 nFontGroup)
 
void SetFontCaption (const OUString &rSet, sal_uInt8 nFontGroup)
 
void SetFontIndex (const OUString &rSet, sal_uInt8 nFontGroup)
 
void SetFontHeight (sal_Int32 nHeight, sal_uInt8 nFont, sal_uInt8 nScriptType)
 
sal_Int32 GetFontHeight (sal_uInt8 nFont, sal_uInt8 nScriptType, LanguageType eLang)
 
- 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)
 

Static Public Member Functions

static OUString GetDefaultFor (sal_uInt16 nFontType, LanguageType eLang)
 
static sal_Int32 GetDefaultHeightFor (sal_uInt16 nFontType, LanguageType eLang)
 
- 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)
 

Private Member Functions

void ChangeString (sal_uInt16 nFontType, const OUString &rSet)
 
void ChangeInt (sal_uInt16 nFontType, sal_Int32 nHeight)
 
virtual void ImplCommit () override
 

Static Private Member Functions

static SAL_DLLPRIVATE css::uno::Sequence< OUString > const & GetPropertyNames ()
 

Private Attributes

OUString m_sDefaultFonts [DEF_FONT_COUNT]
 
sal_Int32 m_nDefaultFontHeight [DEF_FONT_COUNT]
 

Additional Inherited Members

- 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 56 of file fontcfg.hxx.

Constructor & Destructor Documentation

◆ SwStdFontConfig()

SwStdFontConfig::SwStdFontConfig ( )

◆ ~SwStdFontConfig()

SwStdFontConfig::~SwStdFontConfig ( )
overridevirtual

Definition at line 153 of file fontcfg.cxx.

Member Function Documentation

◆ ChangeInt()

void SwStdFontConfig::ChangeInt ( sal_uInt16  nFontType,
sal_Int32  nHeight 
)
private

◆ ChangeString()

void SwStdFontConfig::ChangeString ( sal_uInt16  nFontType,
const OUString &  rSet 
)
inlineprivate

Definition at line 63 of file fontcfg.hxx.

References rSet, and utl::ConfigItem::SetModified().

◆ GetDefaultFor()

OUString SwStdFontConfig::GetDefaultFor ( sal_uInt16  nFontType,
LanguageType  eLang 
)
static

◆ GetDefaultHeightFor()

sal_Int32 SwStdFontConfig::GetDefaultHeightFor ( sal_uInt16  nFontType,
LanguageType  eLang 
)
static

◆ GetFontCaption()

const OUString & SwStdFontConfig::GetFontCaption ( sal_uInt8  nFontGroup) const
inline

Definition at line 85 of file fontcfg.hxx.

References FONT_CAPTION, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::Reset().

◆ GetFontFor()

const OUString & SwStdFontConfig::GetFontFor ( sal_uInt16  nFontType) const
inline

Definition at line 88 of file fontcfg.hxx.

Referenced by SwDocShell::InitNew().

◆ GetFontHeight()

sal_Int32 SwStdFontConfig::GetFontHeight ( sal_uInt8  nFont,
sal_uInt8  nScriptType,
LanguageType  eLang 
)

◆ GetFontIndex()

const OUString & SwStdFontConfig::GetFontIndex ( sal_uInt8  nFontGroup) const
inline

Definition at line 86 of file fontcfg.hxx.

References FONT_INDEX, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::Reset().

◆ GetFontList()

const OUString & SwStdFontConfig::GetFontList ( sal_uInt8  nFontGroup) const
inline

Definition at line 84 of file fontcfg.hxx.

References FONT_LIST, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::Reset().

◆ GetFontOutline()

const OUString & SwStdFontConfig::GetFontOutline ( sal_uInt8  nFontGroup) const
inline

Definition at line 83 of file fontcfg.hxx.

References FONT_OUTLINE, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::Reset().

◆ GetFontStandard()

const OUString & SwStdFontConfig::GetFontStandard ( sal_uInt8  nFontGroup) const
inline

Definition at line 82 of file fontcfg.hxx.

References FONT_PER_GROUP, and FONT_STANDARD.

Referenced by SwStdFontTabPage::Reset().

◆ GetPropertyNames()

Sequence< OUString > const & SwStdFontConfig::GetPropertyNames ( )
staticprivate

Definition at line 40 of file fontcfg.cxx.

Referenced by ImplCommit(), and SwStdFontConfig().

◆ ImplCommit()

void SwStdFontConfig::ImplCommit ( )
overrideprivatevirtual

◆ IsFontDefault()

bool SwStdFontConfig::IsFontDefault ( sal_uInt16  nFontType) const

◆ Notify()

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

Implements utl::ConfigItem.

Definition at line 312 of file fontcfg.cxx.

◆ SetFontCaption()

void SwStdFontConfig::SetFontCaption ( const OUString &  rSet,
sal_uInt8  nFontGroup 
)
inline

Definition at line 98 of file fontcfg.hxx.

References FONT_CAPTION, FONT_PER_GROUP, and rSet.

Referenced by SwStdFontTabPage::FillItemSet().

◆ SetFontHeight()

void SwStdFontConfig::SetFontHeight ( sal_Int32  nHeight,
sal_uInt8  nFont,
sal_uInt8  nScriptType 
)
inline

Definition at line 103 of file fontcfg.hxx.

References FONT_PER_GROUP.

Referenced by SwStdFontTabPage::FillItemSet().

◆ SetFontIndex()

void SwStdFontConfig::SetFontIndex ( const OUString &  rSet,
sal_uInt8  nFontGroup 
)
inline

Definition at line 100 of file fontcfg.hxx.

References FONT_INDEX, FONT_PER_GROUP, and rSet.

Referenced by SwStdFontTabPage::FillItemSet().

◆ SetFontList()

void SwStdFontConfig::SetFontList ( const OUString &  rSet,
sal_uInt8  nFontGroup 
)
inline

Definition at line 96 of file fontcfg.hxx.

References FONT_LIST, FONT_PER_GROUP, and rSet.

Referenced by SwStdFontTabPage::FillItemSet().

◆ SetFontOutline()

void SwStdFontConfig::SetFontOutline ( const OUString &  rSet,
sal_uInt8  nFontGroup 
)
inline

Definition at line 94 of file fontcfg.hxx.

References FONT_OUTLINE, FONT_PER_GROUP, and rSet.

Referenced by SwStdFontTabPage::FillItemSet().

◆ SetFontStandard()

void SwStdFontConfig::SetFontStandard ( const OUString &  rSet,
sal_uInt8  nFontGroup 
)
inline

Definition at line 91 of file fontcfg.hxx.

References FONT_PER_GROUP, FONT_STANDARD, and rSet.

Referenced by SwStdFontTabPage::FillItemSet().

Member Data Documentation

◆ m_nDefaultFontHeight

sal_Int32 SwStdFontConfig::m_nDefaultFontHeight[DEF_FONT_COUNT]
private

Definition at line 59 of file fontcfg.hxx.

Referenced by ChangeInt(), GetFontHeight(), ImplCommit(), and SwStdFontConfig().

◆ m_sDefaultFonts

OUString SwStdFontConfig::m_sDefaultFonts[DEF_FONT_COUNT]
private

Definition at line 58 of file fontcfg.hxx.

Referenced by ImplCommit(), IsFontDefault(), and SwStdFontConfig().


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