12#include <ooxml/resourceids.hxx>
25 switch (
static_cast<sal_uInt16
>(lang))
318OUString fromLocaleToScriptTag(
const OUString& sLocale)
327 case NS_ooxml::LN_Value_ST_Theme_majorEastAsia:
329 case NS_ooxml::LN_Value_ST_Theme_majorBidi:
331 case NS_ooxml::LN_Value_ST_Theme_majorAscii:
332 case NS_ooxml::LN_Value_ST_Theme_majorHAnsi:
335 case NS_ooxml::LN_Value_ST_Theme_minorEastAsia:
337 case NS_ooxml::LN_Value_ST_Theme_minorBidi:
339 case NS_ooxml::LN_Value_ST_Theme_minorAscii:
340 case NS_ooxml::LN_Value_ST_Theme_minorHAnsi:
350 std::u16string_view rLangAsia, std::u16string_view rLangBidi)
354 case NS_ooxml::LN_Value_ST_Theme_majorEastAsia:
356 case NS_ooxml::LN_Value_ST_Theme_majorBidi:
358 case NS_ooxml::LN_Value_ST_Theme_minorEastAsia:
360 case NS_ooxml::LN_Value_ST_Theme_minorBidi:
371 const css::uno::Sequence<css::beans::PropertyValue>& rLangProperties)
374 for (
const auto& rProperty : rLangProperties)
376 OUString sLocaleName;
377 rProperty.Value >>= sLocaleName;
378 if (rProperty.Name ==
"eastAsia")
380 if (rProperty.Name ==
"bidi")
389 case NS_ooxml::LN_Value_ST_Theme_majorEastAsia:
390 return "majorEastAsia";
391 case NS_ooxml::LN_Value_ST_Theme_majorBidi:
393 case NS_ooxml::LN_Value_ST_Theme_majorAscii:
395 case NS_ooxml::LN_Value_ST_Theme_majorHAnsi:
397 case NS_ooxml::LN_Value_ST_Theme_minorEastAsia:
398 return "minorEastAsia";
399 case NS_ooxml::LN_Value_ST_Theme_minorBidi:
401 case NS_ooxml::LN_Value_ST_Theme_minorAscii:
403 case NS_ooxml::LN_Value_ST_Theme_minorHAnsi:
411 auto pModelTheme =
mpTheme->getTheme();
413 OUString aSupplementalTypeFace = resolveSupplementalFontList(
415 if (!aSupplementalTypeFace.isEmpty())
416 return aSupplementalTypeFace;
417 OUString aTypeFace = resolveMajorMinorTypeFace(rFontScheme,
id);
static LanguageType convertToLanguageType(const css::lang::Locale &rLocale, bool bResolveSystem=true)
ThemeFont const & getMinorAsian() const
ThemeFont const & getMajorComplex() const
ThemeFont const & getMajorLatin() const
OUString findMajorSupplementalTypeface(std::u16string_view rScript) const
OUString findMinorSupplementalTypeface(std::u16string_view rScript) const
ThemeFont const & getMajorAsian() const
ThemeFont const & getMinorLatin() const
ThemeFont const & getMinorComplex() const
OUString maThemeFontLangEastAsia
static OUString getStringForTheme(const Id id)
ThemeHandler(oox::drawingml::ThemePtr const &pTheme, const css::uno::Sequence< css::beans::PropertyValue > &rLangProperties)
OUString getFontNameForTheme(const Id id) const
oox::drawingml::ThemePtr mpTheme
OUString maThemeFontLangBidi
std::shared_ptr< Theme > ThemePtr