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 Reference

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

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 sDefaultFonts [DEF_FONT_COUNT]
 
sal_Int32 nDefaultFontHeight [DEF_FONT_COUNT]
 

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

Constructor & Destructor Documentation

SwStdFontConfig::SwStdFontConfig ( )
SwStdFontConfig::~SwStdFontConfig ( )
overridevirtual

Definition at line 154 of file fontcfg.cxx.

Member Function Documentation

void SwStdFontConfig::ChangeInt ( sal_uInt16  nFontType,
sal_Int32  nHeight 
)
private
void SwStdFontConfig::ChangeString ( sal_uInt16  nFontType,
const OUString &  rSet 
)
inlineprivate

Definition at line 63 of file fontcfg.hxx.

References utl::ConfigItem::SetModified().

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

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

Definition at line 88 of file fontcfg.hxx.

Referenced by SwDocShell::InitNew().

sal_Int32 SwStdFontConfig::GetFontHeight ( sal_uInt8  nFont,
sal_uInt8  nScriptType,
LanguageType  eLang 
)
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().

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

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

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

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

Definition at line 41 of file fontcfg.cxx.

Referenced by ImplCommit(), and SwStdFontConfig().

void SwStdFontConfig::ImplCommit ( )
overrideprivatevirtual
bool SwStdFontConfig::IsFontDefault ( sal_uInt16  nFontType) const
void SwStdFontConfig::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

Implements utl::ConfigItem.

Definition at line 309 of file fontcfg.cxx.

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

Definition at line 98 of file fontcfg.hxx.

References FONT_CAPTION, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::FillItemSet().

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

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

Definition at line 100 of file fontcfg.hxx.

References FONT_INDEX, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::FillItemSet().

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

Definition at line 96 of file fontcfg.hxx.

References FONT_LIST, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::FillItemSet().

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

Definition at line 94 of file fontcfg.hxx.

References FONT_OUTLINE, and FONT_PER_GROUP.

Referenced by SwStdFontTabPage::FillItemSet().

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

Definition at line 91 of file fontcfg.hxx.

References FONT_PER_GROUP, and FONT_STANDARD.

Referenced by SwStdFontTabPage::FillItemSet().

Member Data Documentation

sal_Int32 SwStdFontConfig::nDefaultFontHeight[DEF_FONT_COUNT]
private

Definition at line 59 of file fontcfg.hxx.

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

OUString SwStdFontConfig::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: