LibreOffice Module sw (master) 1
|
#include <fontcfg.hxx>
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 | |
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) |
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_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 56 of file fontcfg.hxx.
SwStdFontConfig::SwStdFontConfig | ( | ) |
Definition at line 77 of file fontcfg.cxx.
References Any, DEF_FONT_COUNT, GetDefaultFor(), SvtLinguConfig::GetOptions(), utl::ConfigItem::GetProperties(), GetPropertyNames(), i, utl::ConfigManager::IsFuzzing(), lcl_LanguageOfType(), m_nDefaultFontHeight, m_sDefaultFonts, o3tl::mm100, SvtLinguOptions::nDefaultLanguage, SvtLinguOptions::nDefaultLanguage_CJK, SvtLinguOptions::nDefaultLanguage_CTL, pValues, MsLangId::resolveSystemLanguageByScriptType(), and o3tl::toTwips().
|
overridevirtual |
Definition at line 153 of file fontcfg.cxx.
|
private |
Definition at line 274 of file fontcfg.cxx.
References DEF_FONT_COUNT, GetDefaultHeightFor(), SvtLinguConfig::GetOptions(), utl::ConfigManager::IsFuzzing(), lcl_LanguageOfType(), m_nDefaultFontHeight, SvtLinguOptions::nDefaultLanguage, SvtLinguOptions::nDefaultLanguage_CJK, SvtLinguOptions::nDefaultLanguage_CTL, MsLangId::resolveSystemLanguageByScriptType(), and utl::ConfigItem::SetModified().
|
inlineprivate |
Definition at line 63 of file fontcfg.hxx.
References rSet, and utl::ConfigItem::SetModified().
|
static |
Definition at line 216 of file fontcfg.cxx.
References FONT_CAPTION_CJK, FONT_CAPTION_CTL, FONT_INDEX_CJK, FONT_INDEX_CTL, FONT_LIST_CJK, FONT_LIST_CTL, FONT_OUTLINE, FONT_OUTLINE_CJK, FONT_OUTLINE_CTL, FONT_STANDARD_CJK, FONT_STANDARD_CTL, OutputDevice::GetDefaultFont(), and vcl::Font::GetFamilyName().
Referenced by IMPL_LINK_NOARG(), ImplCommit(), IsFontDefault(), and SwStdFontConfig().
|
static |
Definition at line 249 of file fontcfg.cxx.
References FONT_OUTLINE, FONT_OUTLINE_CJK, FONT_OUTLINE_CTL, FONT_STANDARD_CJK, FONT_STANDARD_CTL, FONTSIZE_CJK_DEFAULT, FONTSIZE_DEFAULT, FONTSIZE_KOREAN_DEFAULT, FONTSIZE_OUTLINE, LANGUAGE_KOREAN, and LANGUAGE_THAI.
Referenced by ChangeInt(), GetFontHeight(), IMPL_LINK_NOARG(), SwDocShell::InitNew(), and SwStdFontTabPage::Reset().
|
inline |
Definition at line 85 of file fontcfg.hxx.
References FONT_CAPTION, and FONT_PER_GROUP.
Referenced by SwStdFontTabPage::Reset().
|
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 | ||
) |
Definition at line 303 of file fontcfg.cxx.
References DEF_FONT_COUNT, FONT_PER_GROUP, GetDefaultHeightFor(), and m_nDefaultFontHeight.
Referenced by SwBaseShell::ExecTextCtrl(), SwDocShell::InitNew(), and SwStdFontTabPage::Reset().
|
inline |
Definition at line 86 of file fontcfg.hxx.
References FONT_INDEX, and FONT_PER_GROUP.
Referenced by SwStdFontTabPage::Reset().
|
inline |
Definition at line 84 of file fontcfg.hxx.
References FONT_LIST, and FONT_PER_GROUP.
Referenced by SwStdFontTabPage::Reset().
|
inline |
Definition at line 83 of file fontcfg.hxx.
References FONT_OUTLINE, and FONT_PER_GROUP.
Referenced by SwStdFontTabPage::Reset().
|
inline |
Definition at line 82 of file fontcfg.hxx.
References FONT_PER_GROUP, and FONT_STANDARD.
Referenced by SwStdFontTabPage::Reset().
|
staticprivate |
Definition at line 40 of file fontcfg.cxx.
Referenced by ImplCommit(), and SwStdFontConfig().
|
overrideprivatevirtual |
Implements utl::ConfigItem.
Definition at line 122 of file fontcfg.cxx.
References Any, convertTwipToMm100(), DEF_FONT_COUNT, GetDefaultFor(), SvtLinguConfig::GetOptions(), GetPropertyNames(), lcl_LanguageOfType(), m_nDefaultFontHeight, m_sDefaultFonts, SvtLinguOptions::nDefaultLanguage, SvtLinguOptions::nDefaultLanguage_CJK, SvtLinguOptions::nDefaultLanguage_CTL, utl::ConfigItem::PutProperties(), pValues, and MsLangId::resolveSystemLanguageByScriptType().
bool SwStdFontConfig::IsFontDefault | ( | sal_uInt16 | nFontType | ) | const |
Definition at line 157 of file fontcfg.cxx.
References FONT_CAPTION, FONT_CAPTION_CJK, FONT_CAPTION_CTL, FONT_INDEX, FONT_INDEX_CJK, FONT_INDEX_CTL, FONT_LIST, FONT_LIST_CJK, FONT_LIST_CTL, FONT_OUTLINE, FONT_OUTLINE_CJK, FONT_OUTLINE_CTL, FONT_STANDARD, FONT_STANDARD_CJK, FONT_STANDARD_CTL, GetDefaultFor(), SvtLinguConfig::GetOptions(), utl::ConfigManager::IsFuzzing(), lcl_LanguageOfType(), m_sDefaultFonts, SvtLinguOptions::nDefaultLanguage, SvtLinguOptions::nDefaultLanguage_CJK, SvtLinguOptions::nDefaultLanguage_CTL, and MsLangId::resolveSystemLanguageByScriptType().
Referenced by SwDocShell::InitNew().
|
overridevirtual |
Implements utl::ConfigItem.
Definition at line 312 of file fontcfg.cxx.
|
inline |
Definition at line 98 of file fontcfg.hxx.
References FONT_CAPTION, FONT_PER_GROUP, and rSet.
Referenced by SwStdFontTabPage::FillItemSet().
|
inline |
Definition at line 103 of file fontcfg.hxx.
References FONT_PER_GROUP.
Referenced by SwStdFontTabPage::FillItemSet().
|
inline |
Definition at line 100 of file fontcfg.hxx.
References FONT_INDEX, FONT_PER_GROUP, and rSet.
Referenced by SwStdFontTabPage::FillItemSet().
|
inline |
Definition at line 96 of file fontcfg.hxx.
References FONT_LIST, FONT_PER_GROUP, and rSet.
Referenced by SwStdFontTabPage::FillItemSet().
|
inline |
Definition at line 94 of file fontcfg.hxx.
References FONT_OUTLINE, FONT_PER_GROUP, and rSet.
Referenced by SwStdFontTabPage::FillItemSet().
|
inline |
Definition at line 91 of file fontcfg.hxx.
References FONT_PER_GROUP, FONT_STANDARD, and rSet.
Referenced by SwStdFontTabPage::FillItemSet().
|
private |
Definition at line 59 of file fontcfg.hxx.
Referenced by ChangeInt(), GetFontHeight(), ImplCommit(), and SwStdFontConfig().
|
private |
Definition at line 58 of file fontcfg.hxx.
Referenced by ImplCommit(), IsFontDefault(), and SwStdFontConfig().