22#include <osl/diagnose.h>
27#include <com/sun/star/uno/Sequence.hxx>
28#include <com/sun/star/i18n/ScriptType.hpp>
43 "DefaultFont/Standard",
44 "DefaultFont/Heading",
46 "DefaultFont/Caption",
48 "DefaultFontCJK/Standard",
49 "DefaultFontCJK/Heading",
50 "DefaultFontCJK/List",
51 "DefaultFontCJK/Caption",
52 "DefaultFontCJK/Index",
53 "DefaultFontCTL/Standard",
54 "DefaultFontCTL/Heading",
55 "DefaultFontCTL/List",
56 "DefaultFontCTL/Caption",
57 "DefaultFontCTL/Index",
58 "DefaultFont/StandardHeight",
59 "DefaultFont/HeadingHeight",
60 "DefaultFont/ListHeight",
61 "DefaultFont/CaptionHeight",
62 "DefaultFont/IndexHeight",
63 "DefaultFontCJK/StandardHeight",
64 "DefaultFontCJK/HeadingHeight",
65 "DefaultFontCJK/ListHeight",
66 "DefaultFontCJK/CaptionHeight",
67 "DefaultFontCJK/IndexHeight",
68 "DefaultFontCTL/StandardHeight",
69 "DefaultFontCTL/HeadingHeight",
70 "DefaultFontCTL/ListHeight",
71 "DefaultFontCTL/CaptionHeight",
72 "DefaultFontCTL/IndexHeight"
99 OSL_ENSURE(aValues.getLength() == aNames.getLength(),
"GetProperties failed");
100 if(aValues.getLength() != aNames.getLength())
103 for(
int nProp = 0; nProp < aNames.getLength(); nProp++)
135 for(sal_uInt16 nProp = 0;
136 nProp < sal::static_int_cast< sal_uInt16, sal_Int32 >( aNames.getLength() );
222 nFontId = DefaultFontType::LATIN_HEADING;
225 nFontId = DefaultFontType::CJK_HEADING;
228 nFontId = DefaultFontType::CTL_HEADING;
234 nFontId = DefaultFontType::CJK_TEXT;
240 nFontId = DefaultFontType::CTL_TEXT;
243 nFontId = DefaultFontType::LATIN_TEXT;
276 OSL_ENSURE( nFontType <
DEF_FONT_COUNT,
"invalid index in SwStdFontConfig::ChangeInt()");
290 const bool bIsDefaultHeight = nHeight == nDefaultHeight;
const PropertyValue * pValues
constexpr auto convertTwipToMm100(N n)
static LanguageType resolveSystemLanguageByScriptType(LanguageType nLang, sal_Int16 nType)
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
void GetOptions(SvtLinguOptions &rOptions) const
OUString m_sDefaultFonts[DEF_FONT_COUNT]
sal_Int32 GetFontHeight(sal_uInt8 nFont, sal_uInt8 nScriptType, LanguageType eLang)
virtual void ImplCommit() override
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames) override
sal_Int32 m_nDefaultFontHeight[DEF_FONT_COUNT]
static OUString GetDefaultFor(sal_uInt16 nFontType, LanguageType eLang)
static sal_Int32 GetDefaultHeightFor(sal_uInt16 nFontType, LanguageType eLang)
static SAL_DLLPRIVATE css::uno::Sequence< OUString > const & GetPropertyNames()
virtual ~SwStdFontConfig() override
void ChangeInt(sal_uInt16 nFontType, sal_Int32 nHeight)
bool IsFontDefault(sal_uInt16 nFontType) const
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 css::uno::Sequence< css::uno::Any > GetProperties(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
const OUString & GetFamilyName() const
static LanguageType lcl_LanguageOfType(sal_Int16 nType, LanguageType eWestern, LanguageType eCJK, LanguageType eCTL)
#define FONT_STANDARD_CTL
#define FONT_STANDARD_CJK
#define FONTSIZE_CJK_DEFAULT
#define FONTSIZE_KOREAN_DEFAULT
constexpr auto toTwips(N number, Length from)
LanguageType nDefaultLanguage
LanguageType nDefaultLanguage_CTL
LanguageType nDefaultLanguage_CJK