20#include <config_folders.h>
22#include <officecfg/Office/Common.hxx>
29#include <rtl/bootstrap.hxx>
188 std::shared_ptr<vcl::IconThemeScanner>
190 std::shared_ptr<vcl::IconThemeSelector>
256 mxData->mnOptions = nOptions;
269 mxData->mnDoubleClkTime = nDoubleClkTime;
275 return mxData->mnDoubleClkTime;
282 mxData->mnDoubleClkWidth = nDoubleClkWidth;
288 return mxData->mnDoubleClkWidth;
295 mxData->mnDoubleClkHeight = nDoubleClkHeight;
301 return mxData->mnDoubleClkHeight;
308 mxData->mnStartDragWidth = nDragWidth;
314 return mxData->mnStartDragWidth;
321 mxData->mnStartDragHeight = nDragHeight;
327 return mxData->mnStartDragHeight;
364 mxData->mnButtonRepeat = nRepeat;
370 return mxData->mnButtonRepeat;
383 mxData->mnMenuDelay = nDelay;
389 return mxData->mnMenuDelay;
396 mxData->mnFollow = nFollow;
409 mxData->mnMiddleButtonAction = nAction;
415 return mxData->mnMiddleButtonAction;
422 mxData->mnWheelBehavior = nBehavior;
428 return mxData->mnWheelBehavior;
434 return !(*
this ==
rSet);
445 if (
mxData.use_count() > 1)
457 (
mxData->mnOptions ==
rSet.mxData->mnOptions) &&
458 (
mxData->mnDoubleClkTime ==
rSet.mxData->mnDoubleClkTime) &&
459 (
mxData->mnDoubleClkWidth ==
rSet.mxData->mnDoubleClkWidth) &&
460 (
mxData->mnDoubleClkHeight ==
rSet.mxData->mnDoubleClkHeight) &&
461 (
mxData->mnStartDragWidth ==
rSet.mxData->mnStartDragWidth) &&
462 (
mxData->mnStartDragHeight ==
rSet.mxData->mnStartDragHeight) &&
463 (
mxData->mnMiddleButtonAction ==
rSet.mxData->mnMiddleButtonAction) &&
464 (
mxData->mnButtonRepeat ==
rSet.mxData->mnButtonRepeat) &&
465 (
mxData->mnMenuDelay ==
rSet.mxData->mnMenuDelay) &&
466 (
mxData->mnFollow ==
rSet.mxData->mnFollow) &&
467 (
mxData->mnWheelBehavior ==
rSet.mxData->mnWheelBehavior );
481 mbAutoMnemonic(true),
487 maEdgeBlendingTopLeftColor(
Color(0xC0, 0xC0, 0xC0)),
488 maEdgeBlendingBottomRightColor(
Color(0x40, 0x40, 0x40)),
489 mnListBoxMaximumLineCount(25),
493 mnColorValueSetColumnCount(12),
495 maListBoxPreviewDefaultLogicSize(
Size(30, 30)),
497 maListBoxPreviewDefaultLogicSize(
Size(15, 7)),
499 maListBoxPreviewDefaultPixelSize(
Size(0, 0)),
500 mbPreviewUsesCheckeredBackground(true)
506 maActiveBorderColor( rData.maActiveBorderColor ),
507 maActiveColor( rData.maActiveColor ),
508 maActiveTextColor( rData.maActiveTextColor ),
509 maAlternatingRowColor( rData.maAlternatingRowColor ),
510 maDefaultButtonTextColor( rData.maDefaultButtonTextColor ),
511 maButtonTextColor( rData.maButtonTextColor ),
512 maDefaultActionButtonTextColor( rData.maDefaultActionButtonTextColor ),
513 maActionButtonTextColor( rData.maActionButtonTextColor ),
514 maFlatButtonTextColor( rData.maFlatButtonTextColor ),
515 maDefaultButtonRolloverTextColor( rData.maDefaultButtonRolloverTextColor ),
516 maButtonRolloverTextColor( rData.maButtonRolloverTextColor ),
517 maDefaultActionButtonRolloverTextColor( rData.maDefaultActionButtonRolloverTextColor ),
518 maActionButtonRolloverTextColor( rData.maActionButtonRolloverTextColor ),
519 maFlatButtonRolloverTextColor( rData.maFlatButtonRolloverTextColor ),
520 maDefaultButtonPressedRolloverTextColor( rData.maDefaultButtonPressedRolloverTextColor ),
521 maButtonPressedRolloverTextColor( rData.maButtonPressedRolloverTextColor ),
522 maDefaultActionButtonPressedRolloverTextColor( rData.maDefaultActionButtonPressedRolloverTextColor ),
523 maActionButtonPressedRolloverTextColor( rData.maActionButtonPressedRolloverTextColor ),
524 maFlatButtonPressedRolloverTextColor( rData.maFlatButtonPressedRolloverTextColor ),
525 maCheckedColor( rData.maCheckedColor ),
526 maDarkShadowColor( rData.maDarkShadowColor ),
527 maDeactiveBorderColor( rData.maDeactiveBorderColor ),
528 maDeactiveColor( rData.maDeactiveColor ),
529 maDeactiveTextColor( rData.maDeactiveTextColor ),
530 maDialogColor( rData.maDialogColor ),
531 maDialogTextColor( rData.maDialogTextColor ),
532 maDisableColor( rData.maDisableColor ),
533 maFaceColor( rData.maFaceColor ),
534 maFieldColor( rData.maFieldColor ),
535 maFieldTextColor( rData.maFieldTextColor ),
536 maFieldRolloverTextColor( rData.maFieldRolloverTextColor ),
537 maGroupTextColor( rData.maGroupTextColor ),
538 maHelpColor( rData.maHelpColor ),
539 maHelpTextColor( rData.maHelpTextColor ),
540 maAccentColor( rData.maAccentColor ),
541 maHighlightColor( rData.maHighlightColor ),
542 maHighlightTextColor( rData.maHighlightTextColor ),
543 maLabelTextColor( rData.maLabelTextColor ),
544 maLightBorderColor( rData.maLightBorderColor ),
545 maLightColor( rData.maLightColor ),
546 maLinkColor( rData.maLinkColor ),
547 maMenuBarColor( rData.maMenuBarColor ),
548 maMenuBarRolloverColor( rData.maMenuBarRolloverColor ),
549 maMenuBorderColor( rData.maMenuBorderColor ),
550 maMenuColor( rData.maMenuColor ),
551 maMenuHighlightColor( rData.maMenuHighlightColor ),
552 maMenuHighlightTextColor( rData.maMenuHighlightTextColor ),
553 maMenuTextColor( rData.maMenuTextColor ),
554 maListBoxWindowBackgroundColor( rData.maListBoxWindowBackgroundColor ),
555 maListBoxWindowTextColor( rData.maListBoxWindowTextColor ),
556 maListBoxWindowHighlightColor( rData.maListBoxWindowHighlightColor ),
557 maListBoxWindowHighlightTextColor( rData.maListBoxWindowHighlightTextColor ),
558 maMenuBarTextColor( rData.maMenuBarTextColor ),
559 maMenuBarRolloverTextColor( rData.maMenuBarRolloverTextColor ),
560 maMenuBarHighlightTextColor( rData.maMenuBarHighlightTextColor ),
561 maMonoColor( rData.maMonoColor ),
562 maRadioCheckTextColor( rData.maRadioCheckTextColor ),
564 maWarningColor( rData.maWarningColor ),
565 maVisitedLinkColor( rData.maVisitedLinkColor ),
566 maToolTextColor( rData.maToolTextColor ),
567 maWindowColor( rData.maWindowColor ),
568 maWindowTextColor( rData.maWindowTextColor ),
569 maWorkspaceColor( rData.maWorkspaceColor ),
570 maActiveTabColor( rData.maActiveTabColor ),
571 maInactiveTabColor( rData.maInactiveTabColor ),
572 maTabTextColor( rData.maTabTextColor ),
573 maTabRolloverTextColor( rData.maTabRolloverTextColor ),
574 maTabHighlightTextColor( rData.maTabHighlightTextColor ),
575 maAppFont( rData.maAppFont ),
576 maHelpFont( rData.maAppFont ),
577 maTitleFont( rData.maTitleFont ),
578 maFloatTitleFont( rData.maFloatTitleFont ),
579 maMenuFont( rData.maMenuFont ),
580 maToolFont( rData.maToolFont ),
581 maLabelFont( rData.maLabelFont ),
582 maRadioCheckFont( rData.maRadioCheckFont ),
583 maPushButtonFont( rData.maPushButtonFont ),
584 maFieldFont( rData.maFieldFont ),
585 maIconFont( rData.maIconFont ),
586 maTabFont( rData.maTabFont ),
587 maGroupFont( rData.maGroupFont ),
588 mnTitleHeight(rData.mnTitleHeight),
589 mnFloatTitleHeight(rData.mnFloatTitleHeight),
590 mnScrollBarSize(rData.mnScrollBarSize),
591 mnSpinSize(rData.mnSpinSize),
592 mnCursorSize(rData.mnCursorSize),
593 mnAntialiasedMin(rData.mnAntialiasedMin),
594 mnCursorBlinkTime(rData.mnCursorBlinkTime),
595 mnDragFullOptions(rData.mnDragFullOptions),
596 mnSelectionOptions(rData.mnSelectionOptions),
597 mnDisplayOptions(rData.mnDisplayOptions),
598 mnToolbarIconSize(rData.mnToolbarIconSize),
599 mnUseFlatMenus(rData.mnUseFlatMenus),
600 mnOptions(rData.mnOptions),
601 mbHighContrast(rData.mbHighContrast),
602 mbUseSystemUIFonts(rData.mbUseSystemUIFonts),
603 mbUseFontAAFromSystem(rData.mbUseFontAAFromSystem),
604 mbAutoMnemonic(rData.mbAutoMnemonic),
605 meUseImagesInMenus(rData.meUseImagesInMenus),
606 mnUseFlatBorders(rData.mnUseFlatBorders),
607 mbPreferredUseImagesInMenus(rData.mbPreferredUseImagesInMenus),
608 mnMinThumbSize(rData.mnMinThumbSize),
609 mIconThemeSelector(
std::
make_shared<
vcl::IconThemeSelector>(*rData.mIconThemeSelector)),
610 mIconTheme(rData.mIconTheme),
611 mbSkipDisabledInMenus(rData.mbSkipDisabledInMenus),
612 mbHideDisabledMenuItems(rData.mbHideDisabledMenuItems),
613 mbPreferredContextMenuShortcuts(rData.mbPreferredContextMenuShortcuts),
614 meContextMenuShortcuts(rData.meContextMenuShortcuts),
615 mbPrimaryButtonWarpsSlider(rData.mbPrimaryButtonWarpsSlider),
616 maDialogStyle( rData.maDialogStyle ),
617 mnEdgeBlending(rData.mnEdgeBlending),
618 maEdgeBlendingTopLeftColor(rData.maEdgeBlendingTopLeftColor),
619 maEdgeBlendingBottomRightColor(rData.maEdgeBlendingBottomRightColor),
620 mnListBoxMaximumLineCount(rData.mnListBoxMaximumLineCount),
621 mnColorValueSetColumnCount(rData.mnColorValueSetColumnCount),
622 maListBoxPreviewDefaultLogicSize(rData.maListBoxPreviewDefaultLogicSize),
623 maListBoxPreviewDefaultPixelSize(rData.maListBoxPreviewDefaultPixelSize),
624 mbPreviewUsesCheckeredBackground(rData.mbPreviewUsesCheckeredBackground),
625 maPersonaHeaderFooter( rData.maPersonaHeaderFooter ),
626 maPersonaHeaderBitmap( rData.maPersonaHeaderBitmap ),
627 maPersonaFooterBitmap( rData.maPersonaFooterBitmap ),
628 maPersonaMenuBarTextColor( rData.maPersonaMenuBarTextColor )
637 aStdFont.
SetCharSet( osl_getThreadTextEncoding() );
756 mxData->maFaceColor = rColor;
762 return mxData->maFaceColor;
769 mxData->maCheckedColor = rColor;
775 return mxData->maCheckedColor;
782 mxData->maLightColor = rColor;
788 return mxData->maLightColor;
795 mxData->maLightBorderColor = rColor;
801 return mxData->maLightBorderColor;
808 mxData->maWarningColor = rColor;
814 return mxData->maWarningColor;
821 mxData->maShadowColor = rColor;
827 return mxData->maShadowColor;
834 mxData->maDarkShadowColor = rColor;
840 return mxData->maDarkShadowColor;
847 mxData->maDefaultButtonTextColor = rColor;
853 return mxData->maDefaultButtonTextColor;
860 mxData->maButtonTextColor = rColor;
866 return mxData->maButtonTextColor;
873 mxData->maDefaultActionButtonTextColor = rColor;
879 return mxData->maDefaultActionButtonTextColor;
886 mxData->maActionButtonTextColor = rColor;
892 return mxData->maActionButtonTextColor;
899 mxData->maFlatButtonTextColor = rColor;
905 return mxData->maFlatButtonTextColor;
912 mxData->maDefaultButtonRolloverTextColor = rColor;
918 return mxData->maDefaultButtonRolloverTextColor;
925 mxData->maButtonRolloverTextColor = rColor;
931 return mxData->maButtonRolloverTextColor;
938 mxData->maDefaultActionButtonRolloverTextColor = rColor;
944 return mxData->maDefaultActionButtonRolloverTextColor;
951 mxData->maActionButtonRolloverTextColor = rColor;
957 return mxData->maActionButtonRolloverTextColor;
964 mxData->maFlatButtonRolloverTextColor = rColor;
970 return mxData->maFlatButtonRolloverTextColor;
977 mxData->maDefaultButtonPressedRolloverTextColor = rColor;
983 return mxData->maDefaultButtonPressedRolloverTextColor;
990 mxData->maButtonPressedRolloverTextColor = rColor;
996 return mxData->maButtonPressedRolloverTextColor;
1003 mxData->maDefaultActionButtonPressedRolloverTextColor = rColor;
1009 return mxData->maDefaultActionButtonPressedRolloverTextColor;
1016 mxData->maActionButtonPressedRolloverTextColor = rColor;
1022 return mxData->maActionButtonPressedRolloverTextColor;
1029 mxData->maFlatButtonPressedRolloverTextColor = rColor;
1035 return mxData->maFlatButtonPressedRolloverTextColor;
1042 mxData->maRadioCheckTextColor = rColor;
1048 return mxData->maRadioCheckTextColor;
1055 mxData->maGroupTextColor = rColor;
1061 return mxData->maGroupTextColor;
1068 mxData->maLabelTextColor = rColor;
1074 return mxData->maLabelTextColor;
1081 mxData->maWindowColor = rColor;
1087 return mxData->maWindowColor;
1094 mxData->maWindowTextColor = rColor;
1100 return mxData->maWindowTextColor;
1107 mxData->maDialogColor = rColor;
1113 return mxData->maDialogColor;
1120 mxData->maDialogTextColor = rColor;
1126 return mxData->maDialogTextColor;
1133 mxData->maWorkspaceColor = rColor;
1139 return mxData->maWorkspaceColor;
1146 mxData->maFieldColor = rColor;
1152 return mxData->maFieldColor;
1159 mxData->maFieldTextColor = rColor;
1165 return mxData->maFieldTextColor;
1172 mxData->maFieldRolloverTextColor = rColor;
1178 return mxData->maFieldRolloverTextColor;
1185 mxData->maActiveColor = rColor;
1191 return mxData->maActiveColor;
1198 mxData->maActiveTextColor = rColor;
1204 return mxData->maActiveTextColor;
1211 mxData->maActiveBorderColor = rColor;
1217 return mxData->maActiveBorderColor;
1224 mxData->maDeactiveColor = rColor;
1230 return mxData->maDeactiveColor;
1237 mxData->maDeactiveTextColor = rColor;
1243 return mxData->maDeactiveTextColor;
1250 mxData->maDeactiveBorderColor = rColor;
1256 return mxData->maDeactiveBorderColor;
1263 mxData->maAccentColor = rColor;
1269 return mxData->maAccentColor;
1276 mxData->maHighlightColor = rColor;
1282 return mxData->maHighlightColor;
1289 mxData->maHighlightTextColor = rColor;
1295 return mxData->maHighlightTextColor;
1302 mxData->maDisableColor = rColor;
1308 return mxData->maDisableColor;
1315 mxData->maHelpColor = rColor;
1321 return mxData->maHelpColor;
1328 mxData->maHelpTextColor = rColor;
1334 return mxData->maHelpTextColor;
1341 mxData->maMenuColor = rColor;
1347 return mxData->maMenuColor;
1354 mxData->maMenuBarColor = rColor;
1360 return mxData->maMenuBarColor;
1367 mxData->maMenuBarRolloverColor = rColor;
1373 return mxData->maMenuBarRolloverColor;
1380 mxData->maMenuBorderColor = rColor;
1386 return mxData->maMenuBorderColor;
1393 mxData->maMenuTextColor = rColor;
1399 return mxData->maMenuTextColor;
1406 mxData->maMenuBarTextColor = rColor;
1412 return mxData->maMenuBarTextColor;
1419 mxData->maMenuBarRolloverTextColor = rColor;
1425 return mxData->maMenuBarRolloverTextColor;
1432 mxData->maMenuBarHighlightTextColor = rColor;
1438 return mxData->maMenuBarHighlightTextColor;
1445 mxData->maMenuHighlightColor = rColor;
1451 return mxData->maMenuHighlightColor;
1458 mxData->maMenuHighlightTextColor = rColor;
1464 return mxData->maMenuHighlightTextColor;
1471 mxData->maListBoxWindowBackgroundColor = rColor;
1477 return mxData->maListBoxWindowBackgroundColor;
1484 mxData->maListBoxWindowTextColor = rColor;
1490 return mxData->maListBoxWindowTextColor;
1497 mxData->maListBoxWindowHighlightColor = rColor;
1503 return mxData->maListBoxWindowHighlightColor;
1510 mxData->maListBoxWindowHighlightTextColor = rColor;
1516 return mxData->maListBoxWindowHighlightTextColor;
1523 mxData->maTabTextColor = rColor;
1529 return mxData->maTabTextColor;
1536 mxData->maTabRolloverTextColor = rColor;
1542 return mxData->maTabRolloverTextColor;
1549 mxData->maTabHighlightTextColor = rColor;
1555 return mxData->maTabHighlightTextColor;
1562 mxData->maLinkColor = rColor;
1568 return mxData->maLinkColor;
1575 mxData->maVisitedLinkColor = rColor;
1581 return mxData->maVisitedLinkColor;
1588 mxData->maToolTextColor = rColor;
1594 return mxData->maToolTextColor;
1601 mxData->maMonoColor = rColor;
1607 return mxData->maMonoColor;
1614 mxData->maActiveTabColor = rColor;
1620 return mxData->maActiveTabColor;
1627 mxData->maInactiveTabColor = rColor;
1633 return mxData->maInactiveTabColor;
1639 mxData->maAlternatingRowColor = rColor;
1645 return mxData->maAlternatingRowColor;
1652 mxData->mbUseSystemUIFonts = bUseSystemUIFonts;
1658 return mxData->mbUseSystemUIFonts;
1664 mxData->mbUseFontAAFromSystem = bUseFontAAFromSystem;
1669 return mxData->mbUseFontAAFromSystem;
1676 mxData->mnUseFlatBorders = bUseFlatBorders;
1682 return mxData->mnUseFlatBorders;
1689 mxData->mnUseFlatMenus = bUseFlatMenus;
1695 return mxData->mnUseFlatMenus;
1702 mxData->meUseImagesInMenus = eUseImagesInMenus;
1709 mxData->mbPreferredUseImagesInMenus = bPreferredUseImagesInMenus;
1715 return mxData->mbPreferredUseImagesInMenus;
1722 mxData->mbSkipDisabledInMenus = bSkipDisabledInMenus;
1728 return mxData->mbSkipDisabledInMenus;
1735 mxData->mbHideDisabledMenuItems = bHideDisabledMenuItems;
1741 return mxData->mbHideDisabledMenuItems;
1748 mxData->meContextMenuShortcuts = eContextMenuShortcuts;
1754 switch (
mxData->meContextMenuShortcuts)
1769 mxData->mbPreferredContextMenuShortcuts = bContextMenuShortcuts;
1775 return mxData->mbPreferredContextMenuShortcuts;
1782 mxData->mbPrimaryButtonWarpsSlider = bPrimaryButtonWarpsSlider;
1788 return mxData->mbPrimaryButtonWarpsSlider;
1795 mxData->maAppFont = rFont;
1801 return mxData->maAppFont;
1808 mxData->maHelpFont = rFont;
1814 return mxData->maHelpFont;
1821 mxData->maTitleFont = rFont;
1827 return mxData->maTitleFont;
1834 mxData->maFloatTitleFont = rFont;
1840 return mxData->maFloatTitleFont;
1847 mxData->maMenuFont = rFont;
1853 return mxData->maMenuFont;
1860 mxData->maToolFont = rFont;
1866 return mxData->maToolFont;
1873 mxData->maGroupFont = rFont;
1879 return mxData->maGroupFont;
1886 mxData->maLabelFont = rFont;
1892 return mxData->maLabelFont;
1899 mxData->maRadioCheckFont = rFont;
1905 return mxData->maRadioCheckFont;
1912 mxData->maPushButtonFont = rFont;
1918 return mxData->maPushButtonFont;
1925 mxData->maFieldFont = rFont;
1931 return mxData->maFieldFont;
1938 mxData->maIconFont = rFont;
1944 return mxData->maIconFont;
1951 mxData->maTabFont = rFont;
1957 return mxData->maTabFont;
1970 mxData->mnTitleHeight = nSize;
1976 return mxData->mnTitleHeight;
1983 mxData->mnFloatTitleHeight = nSize;
1989 return mxData->mnFloatTitleHeight;
1996 mxData->mnScrollBarSize = nSize;
2002 return mxData->mnScrollBarSize;
2009 mxData->mnMinThumbSize = nSize;
2015 return mxData->mnMinThumbSize;
2022 mxData->mnSpinSize = nSize;
2028 return mxData->mnSpinSize;
2041 mxData->mnCursorSize = nSize;
2047 return mxData->mnCursorSize;
2054 mxData->mnCursorBlinkTime = nBlinkTime;
2060 return mxData->mnCursorBlinkTime;
2067 mxData->mnDragFullOptions = nOptions;
2073 return mxData->mnDragFullOptions;
2080 mxData->mnSelectionOptions = nOptions;
2086 return mxData->mnSelectionOptions;
2093 mxData->mnDisplayOptions = nOptions;
2099 return mxData->mnDisplayOptions;
2106 mxData->mnAntialiasedMin = nMinPixel;
2112 return mxData->mnAntialiasedMin;
2119 mxData->mnOptions = nOptions;
2126 mxData->mbAutoMnemonic = bAutoMnemonic;
2132 return mxData->mbAutoMnemonic;
2146 mxData->mnToolbarIconSize = nSize;
2152 return mxData->mnToolbarIconSize;
2160 return Size(24, 24);
2162 return Size(32, 32);
2165 return Size(16, 16);
2172 return mxData->maDialogStyle;
2185 return mxData->mnEdgeBlending;
2191 return mxData->maEdgeBlendingTopLeftColor;
2197 return mxData->maEdgeBlendingBottomRightColor;
2210 return mxData->mnListBoxMaximumLineCount;
2223 return mxData->mnColorValueSetColumnCount;
2236 mxData->mbPreviewUsesCheckeredBackground = bNew;
2242 return mxData->mbPreviewUsesCheckeredBackground;
2248 return !(*
this ==
rSet);
2253 mxData->maListBoxPreviewDefaultLogicSize = rSize;
2258 if(0 ==
mxData->maListBoxPreviewDefaultPixelSize.Width() || 0 ==
mxData->maListBoxPreviewDefaultPixelSize.Height())
2264 return mxData->maListBoxPreviewDefaultPixelSize;
2270 mxData->maFaceColor = rColor;
2271 mxData->maLightBorderColor = rColor;
2272 mxData->maMenuBorderColor = rColor;
2276 mxData->maLightColor = rColor;
2277 mxData->maShadowColor = rColor;
2278 mxData->maDarkShadowColor = rColor;
2282 mxData->maLightColor.IncreaseLuminance(64);
2283 mxData->maShadowColor.DecreaseLuminance(64);
2284 mxData->maDarkShadowColor.DecreaseLuminance(100);
2288 mxData->maLightColor.DecreaseLuminance(64);
2289 mxData->maShadowColor.IncreaseLuminance(64);
2290 mxData->maDarkShadowColor.IncreaseLuminance(100);
2296 mxData->maCheckedColor =
Color(nRed, nGreen, nBlue);
2300 mxData->maCheckedColor =
Color( 0x99, 0x99, 0x99 );
2311 mxData->maCheckedColor =
Color( 0xCC, 0xCC, 0xCC );
2314 sal_uInt8 nRed =
static_cast<sal_uInt8>((
static_cast<sal_uInt16
>(
mxData->maFaceColor.GetRed()) +
static_cast<sal_uInt16
>(
mxData->maLightColor.GetRed()))/2);
2315 sal_uInt8 nGreen =
static_cast<sal_uInt8>((
static_cast<sal_uInt16
>(
mxData->maFaceColor.GetGreen()) +
static_cast<sal_uInt16
>(
mxData->maLightColor.GetGreen()))/2);
2316 sal_uInt8 nBlue =
static_cast<sal_uInt8>((
static_cast<sal_uInt16
>(
mxData->maFaceColor.GetBlue()) +
static_cast<sal_uInt16
>(
mxData->maLightColor.GetBlue()))/2);
2317 mxData->maCheckedColor =
Color( nRed, nGreen, nBlue );
2324 switch (
mxData->meUseImagesInMenus) {
2336 OUString aPath( rPath );
2337 rtl::Bootstrap::expandMacros( aPath );
2348enum WhichPersona { PERSONA_HEADER, PERSONA_FOOTER };
2360 OUString aPersona( officecfg::Office::Common::Misc::Persona::get() );
2361 OUString aPersonaSettings( officecfg::Office::Common::Misc::PersonaSettings::get() );
2365 OUString aOldValue= eWhich==PERSONA_HEADER?OUString(aPersona +
";" + aPersonaSettings+
";h" ):OUString(aPersona +
";" + aPersonaSettings+
";f" );
2366 if ( rHeaderFooter == aOldValue )
2369 rHeaderFooter = aOldValue;
2371 rMenuBarTextColor.reset();
2374 OUString aHeader, aFooter;
2375 if ( aPersona ==
"own" || aPersona ==
"default" )
2380 aHeader = aPersonaSettings.getToken( 3,
';',
nIndex );
2383 aFooter = aPersonaSettings.getToken( 0,
';',
nIndex );
2388 OUString aColor = aPersonaSettings.getToken( 0,
';', ++
nIndex );
2395 case PERSONA_HEADER:
aName = aHeader;
break;
2396 case PERSONA_FOOTER:
aName = aFooter;
break;
2399 if ( !
aName.isEmpty() )
2401 OUString gallery(
"");
2403 if ( aPersona ==
"own" && !aPersonaSettings.startsWith(
"vnd.sun.star.expand" ) )
2405 gallery =
"${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER
"/" SAL_CONFIGFILE(
"bootstrap")
"::UserInstallation}";
2406 rtl::Bootstrap::expandMacros( gallery );
2407 gallery +=
"/user/gallery/personas/";
2409 else if ( aPersona ==
"default" )
2411 gallery =
"$BRAND_BASE_DIR/" LIBO_SHARE_FOLDER
"/gallery/personas/";
2415 if ( rHeaderFooterBitmap.
IsEmpty() )
2416 rHeaderFooterBitmap =
readBitmapEx(
"$BRAND_BASE_DIR/" LIBO_ETC_FOLDER
"/" +
aName );
2421 if( rHeaderFooterBitmap.
IsEmpty() )
2424 officecfg::Office::Common::Misc::Persona::set(
"no", batch );
2425 officecfg::Office::Common::Misc::PersonaSettings::set(
"", batch );
2433 return mxData->maPersonaHeaderBitmap;
2439 return mxData->maPersonaFooterBitmap;
2445 return mxData->maPersonaMenuBarTextColor;
2451 mxData->SetStandardStyles();
2479 if (
mxData.use_count() > 1)
2490 if (
mxData->mIconTheme !=
rSet.mxData->mIconTheme) {
2494 if (*
mxData->mIconThemeSelector != *
rSet.mxData->mIconThemeSelector) {
2498 return (
mxData->mnOptions ==
rSet.mxData->mnOptions) &&
2499 (
mxData->mbAutoMnemonic ==
rSet.mxData->mbAutoMnemonic) &&
2500 (
mxData->mnDragFullOptions ==
rSet.mxData->mnDragFullOptions) &&
2501 (
mxData->mnSelectionOptions ==
rSet.mxData->mnSelectionOptions) &&
2502 (
mxData->mnDisplayOptions ==
rSet.mxData->mnDisplayOptions) &&
2503 (
mxData->mnCursorSize ==
rSet.mxData->mnCursorSize) &&
2504 (
mxData->mnCursorBlinkTime ==
rSet.mxData->mnCursorBlinkTime) &&
2505 (
mxData->mnTitleHeight ==
rSet.mxData->mnTitleHeight) &&
2506 (
mxData->mnFloatTitleHeight ==
rSet.mxData->mnFloatTitleHeight) &&
2507 (
mxData->mnScrollBarSize ==
rSet.mxData->mnScrollBarSize) &&
2508 (
mxData->mnMinThumbSize ==
rSet.mxData->mnMinThumbSize) &&
2509 (
mxData->mnSpinSize ==
rSet.mxData->mnSpinSize) &&
2510 (
mxData->mnAntialiasedMin ==
rSet.mxData->mnAntialiasedMin) &&
2511 (
mxData->mbHighContrast ==
rSet.mxData->mbHighContrast) &&
2512 (
mxData->mbUseSystemUIFonts ==
rSet.mxData->mbUseSystemUIFonts) &&
2513 (
mxData->mbUseFontAAFromSystem ==
rSet.mxData->mbUseFontAAFromSystem) &&
2514 (
mxData->mnUseFlatBorders ==
rSet.mxData->mnUseFlatBorders) &&
2515 (
mxData->mnUseFlatMenus ==
rSet.mxData->mnUseFlatMenus) &&
2516 (
mxData->maFaceColor ==
rSet.mxData->maFaceColor) &&
2517 (
mxData->maCheckedColor ==
rSet.mxData->maCheckedColor) &&
2518 (
mxData->maLightColor ==
rSet.mxData->maLightColor) &&
2519 (
mxData->maLightBorderColor ==
rSet.mxData->maLightBorderColor) &&
2520 (
mxData->maShadowColor ==
rSet.mxData->maShadowColor) &&
2521 (
mxData->maDarkShadowColor ==
rSet.mxData->maDarkShadowColor) &&
2522 (
mxData->maWarningColor ==
rSet.mxData->maWarningColor) &&
2523 (
mxData->maButtonTextColor ==
rSet.mxData->maButtonTextColor) &&
2524 (
mxData->maDefaultActionButtonTextColor ==
rSet.mxData->maDefaultActionButtonTextColor) &&
2525 (
mxData->maActionButtonTextColor ==
rSet.mxData->maActionButtonTextColor) &&
2526 (
mxData->maButtonRolloverTextColor ==
rSet.mxData->maButtonRolloverTextColor) &&
2527 (
mxData->maActionButtonRolloverTextColor ==
rSet.mxData->maActionButtonRolloverTextColor) &&
2528 (
mxData->maRadioCheckTextColor ==
rSet.mxData->maRadioCheckTextColor) &&
2529 (
mxData->maGroupTextColor ==
rSet.mxData->maGroupTextColor) &&
2530 (
mxData->maLabelTextColor ==
rSet.mxData->maLabelTextColor) &&
2531 (
mxData->maWindowColor ==
rSet.mxData->maWindowColor) &&
2532 (
mxData->maWindowTextColor ==
rSet.mxData->maWindowTextColor) &&
2533 (
mxData->maDialogColor ==
rSet.mxData->maDialogColor) &&
2534 (
mxData->maDialogTextColor ==
rSet.mxData->maDialogTextColor) &&
2535 (
mxData->maWorkspaceColor ==
rSet.mxData->maWorkspaceColor) &&
2536 (
mxData->maMonoColor ==
rSet.mxData->maMonoColor) &&
2537 (
mxData->maFieldColor ==
rSet.mxData->maFieldColor) &&
2538 (
mxData->maFieldTextColor ==
rSet.mxData->maFieldTextColor) &&
2539 (
mxData->maActiveColor ==
rSet.mxData->maActiveColor) &&
2540 (
mxData->maActiveTextColor ==
rSet.mxData->maActiveTextColor) &&
2541 (
mxData->maActiveBorderColor ==
rSet.mxData->maActiveBorderColor) &&
2542 (
mxData->maDeactiveColor ==
rSet.mxData->maDeactiveColor) &&
2543 (
mxData->maDeactiveTextColor ==
rSet.mxData->maDeactiveTextColor) &&
2544 (
mxData->maDeactiveBorderColor ==
rSet.mxData->maDeactiveBorderColor) &&
2545 (
mxData->maMenuColor ==
rSet.mxData->maMenuColor) &&
2546 (
mxData->maMenuBarColor ==
rSet.mxData->maMenuBarColor) &&
2547 (
mxData->maMenuBarRolloverColor ==
rSet.mxData->maMenuBarRolloverColor) &&
2548 (
mxData->maMenuBorderColor ==
rSet.mxData->maMenuBorderColor) &&
2549 (
mxData->maMenuTextColor ==
rSet.mxData->maMenuTextColor) &&
2550 (
mxData->maListBoxWindowBackgroundColor ==
rSet.mxData->maListBoxWindowBackgroundColor) &&
2551 (
mxData->maListBoxWindowTextColor ==
rSet.mxData->maListBoxWindowTextColor) &&
2552 (
mxData->maListBoxWindowHighlightColor ==
rSet.mxData->maListBoxWindowHighlightColor) &&
2553 (
mxData->maListBoxWindowHighlightTextColor ==
rSet.mxData->maListBoxWindowHighlightTextColor) &&
2554 (
mxData->maMenuBarTextColor ==
rSet.mxData->maMenuBarTextColor) &&
2555 (
mxData->maMenuBarRolloverTextColor ==
rSet.mxData->maMenuBarRolloverTextColor) &&
2556 (
mxData->maMenuHighlightColor ==
rSet.mxData->maMenuHighlightColor) &&
2557 (
mxData->maMenuHighlightTextColor ==
rSet.mxData->maMenuHighlightTextColor) &&
2558 (
mxData->maAccentColor ==
rSet.mxData->maAccentColor) &&
2559 (
mxData->maHighlightColor ==
rSet.mxData->maHighlightColor) &&
2560 (
mxData->maHighlightTextColor ==
rSet.mxData->maHighlightTextColor) &&
2561 (
mxData->maTabTextColor ==
rSet.mxData->maTabTextColor) &&
2562 (
mxData->maTabRolloverTextColor ==
rSet.mxData->maTabRolloverTextColor) &&
2563 (
mxData->maTabHighlightTextColor ==
rSet.mxData->maTabHighlightTextColor) &&
2564 (
mxData->maActiveTabColor ==
rSet.mxData->maActiveTabColor) &&
2565 (
mxData->maInactiveTabColor ==
rSet.mxData->maInactiveTabColor) &&
2566 (
mxData->maDisableColor ==
rSet.mxData->maDisableColor) &&
2567 (
mxData->maHelpColor ==
rSet.mxData->maHelpColor) &&
2568 (
mxData->maHelpTextColor ==
rSet.mxData->maHelpTextColor) &&
2569 (
mxData->maLinkColor ==
rSet.mxData->maLinkColor) &&
2570 (
mxData->maVisitedLinkColor ==
rSet.mxData->maVisitedLinkColor) &&
2571 (
mxData->maToolTextColor ==
rSet.mxData->maToolTextColor) &&
2572 (
mxData->maAppFont ==
rSet.mxData->maAppFont) &&
2573 (
mxData->maHelpFont ==
rSet.mxData->maHelpFont) &&
2574 (
mxData->maTitleFont ==
rSet.mxData->maTitleFont) &&
2575 (
mxData->maFloatTitleFont ==
rSet.mxData->maFloatTitleFont) &&
2576 (
mxData->maMenuFont ==
rSet.mxData->maMenuFont) &&
2577 (
mxData->maToolFont ==
rSet.mxData->maToolFont) &&
2578 (
mxData->maGroupFont ==
rSet.mxData->maGroupFont) &&
2579 (
mxData->maLabelFont ==
rSet.mxData->maLabelFont) &&
2580 (
mxData->maRadioCheckFont ==
rSet.mxData->maRadioCheckFont) &&
2581 (
mxData->maPushButtonFont ==
rSet.mxData->maPushButtonFont) &&
2582 (
mxData->maFieldFont ==
rSet.mxData->maFieldFont) &&
2583 (
mxData->maIconFont ==
rSet.mxData->maIconFont) &&
2584 (
mxData->maTabFont ==
rSet.mxData->maTabFont) &&
2585 (
mxData->meUseImagesInMenus ==
rSet.mxData->meUseImagesInMenus) &&
2586 (
mxData->mbPreferredUseImagesInMenus ==
rSet.mxData->mbPreferredUseImagesInMenus) &&
2587 (
mxData->mbSkipDisabledInMenus ==
rSet.mxData->mbSkipDisabledInMenus) &&
2588 (
mxData->mbHideDisabledMenuItems ==
rSet.mxData->mbHideDisabledMenuItems) &&
2589 (
mxData->mbPreferredContextMenuShortcuts ==
rSet.mxData->mbPreferredContextMenuShortcuts)&&
2590 (
mxData->meContextMenuShortcuts ==
rSet.mxData->meContextMenuShortcuts) &&
2591 (
mxData->mbPrimaryButtonWarpsSlider ==
rSet.mxData->mbPrimaryButtonWarpsSlider) &&
2592 (
mxData->mnEdgeBlending ==
rSet.mxData->mnEdgeBlending) &&
2593 (
mxData->maEdgeBlendingTopLeftColor ==
rSet.mxData->maEdgeBlendingTopLeftColor) &&
2594 (
mxData->maEdgeBlendingBottomRightColor ==
rSet.mxData->maEdgeBlendingBottomRightColor) &&
2595 (
mxData->mnListBoxMaximumLineCount ==
rSet.mxData->mnListBoxMaximumLineCount) &&
2596 (
mxData->mnColorValueSetColumnCount ==
rSet.mxData->mnColorValueSetColumnCount) &&
2597 (
mxData->maListBoxPreviewDefaultLogicSize ==
rSet.mxData->maListBoxPreviewDefaultLogicSize) &&
2598 (
mxData->maListBoxPreviewDefaultPixelSize ==
rSet.mxData->maListBoxPreviewDefaultPixelSize) &&
2599 (
mxData->mbPreviewUsesCheckeredBackground ==
rSet.mxData->mbPreviewUsesCheckeredBackground);
2606 static const char* pEnv = getenv(
"SAL_DECIMALSEP_ENABLED" );
2620 return (
mxData->mnEnableATT ==
rSet.mxData->mnEnableATT ) &&
2621 (
mxData->mnDisablePrinting ==
rSet.mxData->mnDisablePrinting ) &&
2622 (
mxData->mbEnableLocalizedDecimalSep ==
rSet.mxData->mbEnableLocalizedDecimalSep );
2628 return !(*
this ==
rSet);
2638 "DisablePrinting" );
2655 if( ERROR_SUCCESS == RegOpenKeyW(HKEY_CURRENT_USER,
2656 L
"Software\\LibreOffice\\Accessibility\\AtToolSupport",
2661 DWORD cbData =
sizeof(
Data);
2663 if( ERROR_SUCCESS == RegQueryValueExW(hkey, L
"SupportAssistiveTechnology",
2664 nullptr, &dwType,
reinterpret_cast<LPBYTE
>(
Data), &cbData) )
2672 switch (
reinterpret_cast<DWORD *
>(
Data)[0]) {
2698 static const char* pEnv = getenv(
"SAL_ACCESSIBILITY_ENABLED" );
2699 if( !pEnv || !*pEnv )
2704 "EnableATToolSupport" );
2717void MiscSettings::SetEnableATToolSupport(
bool bEnable )
2719 if ( (bEnable ? TRISTATE_TRUE : TRISTATE_FALSE) !=
mxData->mnEnableATT )
2721 if( bEnable && !ImplInitAccessBridge() )
2726 if (getenv(
"LO_TESTNAME") !=
nullptr)
2732 if( ERROR_SUCCESS == RegOpenKeyW(HKEY_CURRENT_USER,
2733 L
"Software\\LibreOffice\\Accessibility\\AtToolSupport",
2738 DWORD cbData =
sizeof(
Data);
2740 if( ERROR_SUCCESS == RegQueryValueExW(hkey, L
"SupportAssistiveTechnology",
2741 nullptr, &dwType,
reinterpret_cast<LPBYTE
>(Data), &cbData) )
2746 RegSetValueExW(hkey, L
"SupportAssistiveTechnology",
2748 reinterpret_cast<const BYTE*
>(bEnable ? L
"true" : L
"false"),
2749 bEnable ?
sizeof(L
"true") :
sizeof(L
"false"));
2752 reinterpret_cast<DWORD *
>(
Data)[0] = bEnable ? 1 : 0;
2753 RegSetValueExW(hkey, L
"SupportAssistiveTechnology",
2754 0, dwType,
reinterpret_cast<const BYTE*
>(Data),
sizeof(DWORD));
2767 "EnableATToolSupport",
2768 bEnable ? OUString(
"true") : OUString(
"false" ) );
2776 if (
mxData.use_count() > 1)
2780 mxData->mbEnableLocalizedDecimalSep = bEnable;
2785 return mxData->mbEnableLocalizedDecimalSep;
2790 return officecfg::Office::Common::Misc::Appearance::get();
2796 officecfg::Office::Common::Misc::Appearance::set(nMode, batch);
2810 if (pDefWindow ==
nullptr)
2819 return officecfg::Office::Common::Misc::ApplicationAppearance::get();
2825 officecfg::Office::Common::Misc::ApplicationAppearance::set(nMode, batch);
2832 if (pDefWindow ==
nullptr)
2847 return (
mxData->mnTipTimeout ==
rSet.mxData->mnTipTimeout );
2860 if (
mxData.use_count() > 1)
2864 mxData->mnTipTimeout = nTipTimeout;
2870 return mxData->mnTipTimeout;
2882 return !(*
this ==
rSet);
2895 maMouseSettings( rData.maMouseSettings ),
2896 maStyleSettings( rData.maStyleSettings ),
2897 maMiscSettings( rData.maMiscSettings ),
2898 maHelpSettings( rData.maHelpSettings ),
2899 maLocale( rData.maLocale ),
2900 maUILocale( rData.maUILocale )
2922 if (
mxData.use_count() > 1)
2924 mxData = std::make_shared<ImplAllSettingsData>(*
mxData);
2936 if (
mxData->maMouseSettings !=
rSet.mxData->maMouseSettings )
2939 mxData->maMouseSettings =
rSet.mxData->maMouseSettings;
2946 if (
mxData->maStyleSettings !=
rSet.mxData->maStyleSettings )
2949 mxData->maStyleSettings =
rSet.mxData->maStyleSettings;
2956 if (
mxData->maMiscSettings !=
rSet.mxData->maMiscSettings )
2959 mxData->maMiscSettings =
rSet.mxData->maMiscSettings;
2966 if (
mxData->maLocale !=
rSet.mxData->maLocale )
2973 return nChangeFlags;
2981 if (
mxData->maStyleSettings !=
rSet.mxData->maStyleSettings )
2984 if (
mxData->maMiscSettings !=
rSet.mxData->maMiscSettings )
2987 if (
mxData->maLocale !=
rSet.mxData->maLocale )
2990 return nChangeFlags;
2998 if ( (
mxData->maMouseSettings ==
rSet.mxData->maMouseSettings) &&
2999 (
mxData->maStyleSettings ==
rSet.mxData->maStyleSettings) &&
3000 (
mxData->maMiscSettings ==
rSet.mxData->maMiscSettings) &&
3001 (
mxData->maHelpSettings ==
rSet.mxData->maHelpSettings) &&
3002 (
mxData->maLocale ==
rSet.mxData->maLocale) )
3017 if (
mxData->maLocale == rLanguageTag)
3022 mxData->maLocale = rLanguageTag;
3024 if (
mxData->mpLocaleDataWrapper )
3026 mxData->mpLocaleDataWrapper.reset();
3028 if (
mxData->mpI18nHelper )
3030 mxData->mpI18nHelper.reset();
3036 bool GetConfigLayoutRTL(
bool bMath)
3038 static const char* pEnv = getenv(
"SAL_RTL_ENABLED" );
3039 static int nUIMirroring = -1;
3047 if( nUIMirroring == -1 )
3052 "org.openoffice.Office.Common/I18N/CTL" );
3056 css::uno::Any aValue = aNode.
getNodeValue(
"UIMirroring" );
3057 if( aValue >>= bTmp )
3060 nUIMirroring = bTmp ? 1 : 2;
3065 if( nUIMirroring == 0 )
3074 bRTL = (nUIMirroring == 1);
3084 return GetConfigLayoutRTL(
false);
3091 return GetConfigLayoutRTL(
true);
3106 if (
mxData->maLocale.isSystemLocale() )
3107 mxData->maLocale =
mxData->maSysLocale.GetLanguageTag();
3124 if (
mxData->maUILocale.isSystemLocale() )
3125 mxData->maUILocale =
mxData->maSysLocale.GetUILanguageTag();
3127 return mxData->maUILocale;
3132 if ( !
mxData->mpLocaleDataWrapper )
3135 return *
mxData->mpLocaleDataWrapper;
3140 if ( !
mxData->mpUILocaleDataWrapper )
3143 return *
mxData->mpUILocaleDataWrapper;
3148 if ( !
mxData->mpNeutralLocaleDataWrapper )
3151 return *
mxData->mpNeutralLocaleDataWrapper;
3156 if ( !
mxData->mpI18nHelper ) {
3160 return *
mxData->mpI18nHelper;
3165 if ( !
mxData->mpUII18nHelper ) {
3169 return *
mxData->mpUII18nHelper;
3175 if ( nHint & ConfigurationHints::DecSep )
3178 bool bIsDecSepAsLocale = aAllSettings.
mxData->maSysLocale.GetOptions().IsDecimalSeparatorAsLocale();
3186 if ( nHint & ConfigurationHints::Locale )
3195 return mxData->maStyleSettings;
3201 return mxData->mnOptions;
3204std::vector<vcl::IconThemeInfo>
const &
3207 if (!
mxData->mIconThemeScanner) {
3210 return mxData->mIconThemeScanner->GetFoundIconThemes();
3217 if (!
mxData->mIconThemeScanner) {
3220 OUString themeName =
mxData->mIconThemeSelector->SelectIconThemeForDesktopEnvironment(
3221 mxData->mIconThemeScanner->GetFoundIconThemes(),
3231 mxData->mIconTheme = theme;
3237 OUString sTheme(
mxData->mIconTheme);
3238 if (sTheme.isEmpty())
3245 sTheme = officecfg::Office::Common::Misc::SymbolStyle::get();
3247 if (sTheme.isEmpty() || sTheme ==
"auto")
3252 if (!
mxData->mIconThemeScanner) {
3255 OUString r =
mxData->mIconThemeSelector->SelectIconTheme(
3256 mxData->mIconThemeScanner->GetFoundIconThemes(),
3264 if (
mxData->mbHighContrast == bHighContrast) {
3269 mxData->mbHighContrast = bHighContrast;
3270 mxData->mIconThemeSelector->SetUseHighContrastTheme(bHighContrast);
3276 return mxData->mbHighContrast;
3282 const bool bChanged =
mxData->mIconThemeSelector->SetPreferredIconTheme(theme, bDarkIconTheme);
3286 mxData->mIconTheme.clear();
3300 return mxData->maMouseSettings;
3320 return mxData->maMiscSettings;
3333 return mxData->maHelpSettings;
3339 return !(*
this ==
rSet);
3345 return mxData->maSysLocale;
3350 bool bCheckedColorSpecialCase )
3357 if (bCheckedColorSpecialCase)
static void setupPersonaHeaderFooter(WhichPersona eWhich, OUString &rHeaderFooter, BitmapEx &rHeaderFooterBitmap, std::optional< Color > &rMenuBarTextColor)
Update the setting of the Persona header / footer in ImplStyleData.
static BitmapEx readBitmapEx(const OUString &rPath)
void SetLanguageTag(const OUString &rLanguage, bool bCanonicalize)
const LanguageTag & GetLanguageTag() const
AllSettingsFlags Update(AllSettingsFlags nFlags, const AllSettings &rSettings)
SAL_DLLPRIVATE SvtSysLocale & GetSysLocale()
static SAL_DLLPRIVATE void LocaleSettingsChanged(ConfigurationHints nHint)
const MouseSettings & GetMouseSettings() const
void SetMiscSettings(const MiscSettings &rSet)
SAL_DLLPRIVATE AllSettingsFlags GetChangeFlags(const AllSettings &rSettings) const
const vcl::I18nHelper & GetUILocaleI18nHelper() const
static bool GetMathLayoutRTL()
bool operator==(const AllSettings &rSet) const
const LocaleDataWrapper & GetNeutralLocaleDataWrapper() const
bool operator!=(const AllSettings &rSet) const
const vcl::I18nHelper & GetLocaleI18nHelper() const
const MiscSettings & GetMiscSettings() const
std::shared_ptr< ImplAllSettingsData > mxData
void SetHelpSettings(const HelpSettings &rSet)
const LanguageTag & GetUILanguageTag() const
const HelpSettings & GetHelpSettings() const
void SetMouseSettings(const MouseSettings &rSet)
const StyleSettings & GetStyleSettings() const
const LocaleDataWrapper & GetUILocaleDataWrapper() const
void SetStyleSettings(const StyleSettings &rSet)
static bool GetLayoutRTL()
const LocaleDataWrapper & GetLocaleDataWrapper() const
static OutputDevice * GetDefaultDevice()
Get the default "device" (in this case the default window).
static vcl::Window * GetNextTopLevelWindow(vcl::Window const *pWindow)
Get the next top level window.
static const AllSettings & GetSettings()
Gets the application's settings.
static const OUString & GetDesktopEnvironment()
Get the desktop environment the process is currently running in.
static void SetSettings(const AllSettings &rSettings)
Sets the application's settings and notifies all windows of the change.
static bool IsHeadlessModeEnabled()
Determines if headless mode is enabled.
static vcl::Window * GetFirstTopLevelWindow()
Get the first top-level window of the application.
void RGBtoHSB(sal_uInt16 &nHue, sal_uInt16 &nSaturation, sal_uInt16 &nBrightness) const
void IncreaseLuminance(sal_uInt8 cLumInc)
static Color HSBtoRGB(sal_uInt16 nHue, sal_uInt16 nSaturation, sal_uInt16 nBrightness)
static ErrCode LoadGraphic(const OUString &rPath, const OUString &rFilter, Graphic &rGraphic, GraphicFilter *pFilter=nullptr, sal_uInt16 *pDeterminedFormat=nullptr)
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
bool operator==(const HelpSettings &rSet) const
void SetTipTimeout(sal_Int32 nTipTimeout)
bool operator!=(const HelpSettings &rSet) const
std::shared_ptr< ImplHelpData > mxData
static sal_Int32 GetBalloonDelay()
sal_Int32 GetTipTimeout() const
static sal_Int32 GetTipDelay()
LanguageType getLanguageType(bool bResolveSystem=true) const
static int GetAppColorMode()
bool GetDisablePrinting() const
static bool GetUseReducedAnimation()
bool GetEnableLocalizedDecimalSep() const
std::shared_ptr< ImplMiscData > mxData
static void SetDarkMode(int nMode)
bool operator==(const MiscSettings &rSet) const
bool operator!=(const MiscSettings &rSet) const
static void SetAppColorMode(int nMode)
static bool GetUseDarkMode()
bool GetEnableATToolSupport() const
void SetEnableLocalizedDecimalSep(bool bEnable)
sal_Int32 GetMenuDelay() const
MouseMiddleButtonAction GetMiddleButtonAction() const
void SetDoubleClickWidth(sal_Int32 nDoubleClkWidth)
sal_Int32 GetButtonRepeat() const
sal_uInt64 GetDoubleClickTime() const
static sal_Int32 GetScrollRepeat()
std::shared_ptr< ImplMouseData > mxData
void SetWheelBehavior(MouseWheelBehaviour nBehavior)
void SetFollow(MouseFollowFlags nFollow)
static sal_Int32 GetButtonStartRepeat()
MouseWheelBehaviour GetWheelBehavior() const
static sal_uInt16 GetStartDragCode()
bool operator!=(const MouseSettings &rSet) const
sal_Int32 GetDoubleClickWidth() const
sal_Int32 GetDoubleClickHeight() const
sal_Int32 GetStartDragWidth() const
void SetMiddleButtonAction(MouseMiddleButtonAction nAction)
void SetStartDragHeight(sal_Int32 nDragHeight)
static sal_Int32 GetActionDelay()
void SetButtonRepeat(sal_Int32 nRepeat)
MouseFollowFlags GetFollow() const
bool operator==(const MouseSettings &rSet) const
sal_Int32 GetStartDragHeight() const
void SetOptions(MouseSettingsOptions nOptions)
void SetDoubleClickHeight(sal_Int32 nDoubleClkHeight)
void SetStartDragWidth(sal_Int32 nDragWidth)
static sal_uInt16 GetContextMenuClicks()
static sal_uInt16 GetContextMenuCode()
void SetMenuDelay(sal_Int32 nDelay)
MouseSettingsOptions GetOptions() const
void SetDoubleClickTime(sal_uInt64 nDoubleClkTime)
static bool isRightToLeftMath(LanguageType nLang)
static bool isRightToLeft(LanguageType nLang)
SAL_WARN_UNUSED_RESULT Point LogicToPixel(const Point &rLogicPt) const
virtual bool GetUseDarkMode() const
virtual bool GetUseReducedAnimation() const
virtual void UpdateDarkMode()
const Color & GetGroupTextColor() const
void SetFieldTextColor(const Color &rColor)
void SetLabelFont(const vcl::Font &rFont)
Size GetToolbarIconSizePixel() const
bool GetUseFontAAFromSystem() const
const Color & GetListBoxWindowHighlightColor() const
SelectionOptions GetSelectionOptions() const
const std::optional< Color > & GetPersonaMenuBarTextColor() const
void SetLightBorderColor(const Color &rColor)
OUString DetermineIconTheme() const
Determine which icon theme should be used.
const Color & GetMenuBarRolloverColor() const
void SetRadioCheckFont(const vcl::Font &rFont)
void SetLinkColor(const Color &rColor)
const Color & GetMonoColor() const
void SetFieldRolloverTextColor(const Color &rColor)
void SetActionButtonTextColor(const Color &rColor)
void SetUseFontAAFromSystem(bool bUseFontAAFromSystem)
const Color & GetDeactiveTextColor() const
void SetAccentColor(const Color &rColor)
void SetPreferredIconTheme(const OUString &, bool bDarkIconTheme=false)
Set a preferred icon theme.
void SetGroupTextColor(const Color &rColor)
void SetFloatTitleFont(const vcl::Font &rFont)
void SetPreviewUsesCheckeredBackground(bool bNew)
void SetFlatButtonPressedRolloverTextColor(const Color &rColor)
BitmapEx const & GetPersonaHeader() const
void SetUseFlatBorders(bool bUseFlatBorders)
const vcl::Font & GetHelpFont() const
sal_Int32 GetScrollBarSize() const
const Color & GetListBoxWindowTextColor() const
void SetActiveTextColor(const Color &rColor)
const Color & GetDarkShadowColor() const
void SetCursorSize(sal_Int32 nSize)
sal_Int32 GetTitleHeight() const
void SetFaceColor(const Color &rColor)
const Color & GetWindowColor() const
const Color & GetDialogTextColor() const
void SetHelpFont(const vcl::Font &rFont)
void SetHelpTextColor(const Color &rColor)
const Color & GetActionButtonPressedRolloverTextColor() const
void SetToolFont(const vcl::Font &rFont)
void SetShadowColor(const Color &rColor)
std::shared_ptr< ImplStyleData > mxData
const Color & GetFlatButtonPressedRolloverTextColor() const
const Color & GetMenuHighlightTextColor() const
void SetListBoxPreviewDefaultLogicSize(Size const &rSize)
void SetActiveBorderColor(const Color &rColor)
bool GetPreviewUsesCheckeredBackground() const
void SetPushButtonFont(const vcl::Font &rFont)
const Color & GetFieldTextColor() const
DisplayOptions GetDisplayOptions() const
void Set3DColors(const Color &rColor)
void SetTabTextColor(const Color &rColor)
bool GetContextMenuShortcuts() const
bool operator==(const StyleSettings &rSet) const
bool GetHighContrastMode() const
void SetTitleHeight(sal_Int32 nSize)
const Color & GetShadowColor() const
void SetDisableColor(const Color &rColor)
void SetActiveTabColor(const Color &rColor)
void SetHighlightTextColor(const Color &rColor)
sal_Int32 GetAntialiasingMinPixelHeight() const
const Color & GetAlternatingRowColor() const
const Color & GetMenuColor() const
void SetContextMenuShortcuts(TriState eContextMenuShortcuts)
const Color & GetMenuHighlightColor() const
bool GetPrimaryButtonWarpsSlider() const
const Color & GetFieldColor() const
void SetUseImagesInMenus(TriState eUseImagesInMenus)
StyleSettingsOptions GetOptions() const
void SetFloatTitleHeight(sal_Int32 nSize)
void SetIconTheme(const OUString &)
Set the icon theme to use.
void SetAlternatingRowColor(const Color &rColor)
void SetUseSystemUIFonts(bool bUseSystemUIFonts)
const Color & GetFlatButtonTextColor() const
void SetActionButtonRolloverTextColor(const Color &rColor)
void SetTabRolloverTextColor(const Color &rColor)
void SetListBoxWindowBackgroundColor(const Color &rColor)
void SetListBoxWindowHighlightColor(const Color &rColor)
void SetCursorBlinkTime(sal_uInt64 nBlinkTime)
const Color & GetAccentColor() const
const Color & GetLabelTextColor() const
void SetEdgeBlending(sal_uInt16 nCount)
BitmapEx const & GetPersonaFooter() const
const Color & GetMenuBarTextColor() const
void SetDefaultButtonPressedRolloverTextColor(const Color &rColor)
const Color & GetDeactiveColor() const
const vcl::Font & GetMenuFont() const
void SetMenuBarHighlightTextColor(const Color &rColor)
void SetToolbarIconSize(ToolbarIconSize nSize)
void SetDefaultActionButtonTextColor(const Color &rColor)
const Color & GetRadioCheckTextColor() const
void SetActiveColor(const Color &rColor)
sal_uInt16 GetListBoxMaximumLineCount() const
void SetHelpColor(const Color &rColor)
void SetPreferredContextMenuShortcuts(bool bContextMenuShortcuts)
void SetListBoxWindowHighlightTextColor(const Color &rColor)
const Color & GetMenuBarRolloverTextColor() const
void SetInactiveTabColor(const Color &rColor)
const Color & GetTabRolloverTextColor() const
std::vector< vcl::IconThemeInfo > const & GetInstalledIconThemes() const
Obtain the list of icon themes which were found in the config folder.
void SetWarningColor(const Color &rColor)
const Color & GetTabTextColor() const
const vcl::Font & GetRadioCheckFont() const
void SetDialogColor(const Color &rColor)
void SetMenuTextColor(const Color &rColor)
void SetDefaultButtonRolloverTextColor(const Color &rColor)
sal_uInt64 GetCursorBlinkTime() const
const vcl::Font & GetTabFont() const
const vcl::Font & GetFieldFont() const
const vcl::Font & GetFloatTitleFont() const
const DialogStyle & GetDialogStyle() const
void SetTabFont(const vcl::Font &rFont)
const Color & GetWorkspaceColor() const
Color GetSeparatorColor() const
void SetFlatButtonRolloverTextColor(const Color &rColor)
const Color & GetCheckedColor() const
const vcl::Font & GetLabelFont() const
void SetDefaultActionButtonRolloverTextColor(const Color &rColor)
void SetGroupFont(const vcl::Font &rFont)
const Color & GetListBoxWindowHighlightTextColor() const
const Color & GetWindowTextColor() const
const Color & GetActionButtonRolloverTextColor() const
void SetCheckedColor(const Color &rColor)
void SetMenuColor(const Color &rColor)
const vcl::Font & GetGroupFont() const
void SetCheckedColorSpecialCase()
void SetAutoMnemonic(bool bAutoMnemonic)
void SetHighlightColor(const Color &rColor)
const Color & GetHelpTextColor() const
const vcl::Font & GetPushButtonFont() const
static sal_Int32 GetSplitSize()
void SetMonoColor(const Color &rColor)
void SetButtonPressedRolloverTextColor(const Color &rColor)
void SetHighContrastMode(bool bHighContrast)
const Color & GetLightBorderColor() const
bool GetUseFlatMenus() const
static sal_uInt16 GetListBoxPreviewDefaultLineWidth()
void SetAppFont(const vcl::Font &rFont)
void SetSkipDisabledInMenus(bool bSkipDisabledInMenus)
void SetListBoxWindowTextColor(const Color &rColor)
const Color & GetHelpColor() const
const Color & GetActiveColor() const
const Color & GetLightColor() const
static sal_Int32 GetBorderSize()
void SetMenuBarColor(const Color &rColor)
bool GetUseFlatBorders() const
const Color & GetDefaultButtonTextColor() const
const vcl::Font & GetToolFont() const
bool GetSkipDisabledInMenus() const
void SetMenuBarRolloverTextColor(const Color &rColor)
void SetMenuHighlightTextColor(const Color &rColor)
const Color & GetLinkColor() const
Color GetFaceGradientColor() const
void SetTitleFont(const vcl::Font &rFont)
void SetAntialiasingMinPixelHeight(sal_Int32 nMinPixel)
const Color & GetMenuBarColor() const
sal_Int32 GetFloatTitleHeight() const
DragFullOptions GetDragFullOptions() const
void SetRadioCheckTextColor(const Color &rColor)
const Color & GetDialogColor() const
void SetLabelTextColor(const Color &rColor)
void SetFieldFont(const vcl::Font &rFont)
const Color & GetVisitedLinkColor() const
const Color & GetDefaultActionButtonRolloverTextColor() const
const Color & GetDefaultButtonPressedRolloverTextColor() const
void SetScrollBarSize(sal_Int32 nSize)
void SetDefaultButtonTextColor(const Color &rColor)
void SetDragFullOptions(DragFullOptions nOptions)
void SetIconFont(const vcl::Font &rFont)
const vcl::Font & GetIconFont() const
void SetButtonRolloverTextColor(const Color &rColor)
const Color & GetEdgeBlendingTopLeftColor() const
void SetListBoxMaximumLineCount(sal_uInt16 nCount)
void SetButtonTextColor(const Color &rColor)
sal_Int32 GetMinThumbSize() const
void SetWindowColor(const Color &rColor)
bool GetUseImagesInMenus() const
static bool GetDockingFloatsSupported()
const Color & GetDefaultActionButtonPressedRolloverTextColor() const
OUString GetAutomaticallyChosenIconTheme() const
Obtain the name of the icon theme which will be chosen automatically for the desktop environment.
const Color & GetActiveTabColor() const
const Color & GetHighlightColor() const
void SetWindowTextColor(const Color &rColor)
void SetTabHighlightTextColor(const Color &rColor)
void BatchSetFonts(const vcl::Font &aAppFont, const vcl::Font &aLabelFont)
void SetVisitedLinkColor(const Color &rColor)
void SetSelectionOptions(SelectionOptions nOptions)
void SetPreferredUseImagesInMenus(bool bPreferredUseImagesInMenus)
const Color & GetDefaultActionButtonTextColor() const
const Color & GetInactiveTabColor() const
void SetMinThumbSize(sal_Int32 nSize)
const Color & GetActionButtonTextColor() const
const Color & GetFlatButtonRolloverTextColor() const
void SetMenuBarTextColor(const Color &rColor)
sal_Int32 GetCursorSize() const
void SetSpinSize(sal_Int32 nSize)
void SetMenuBarRolloverColor(const Color &rColor)
void SetDeactiveTextColor(const Color &rColor)
const Color & GetFaceColor() const
const vcl::Font & GetAppFont() const
const Color & GetToolTextColor() const
void SetDarkShadowColor(const Color &rColor)
bool GetAutoMnemonic() const
const vcl::Font & GetTitleFont() const
void SetFieldColor(const Color &rColor)
void SetMenuFont(const vcl::Font &rFont)
const Color & GetMenuBarHighlightTextColor() const
void SetDefaultActionButtonPressedRolloverTextColor(const Color &rColor)
const Color & GetMenuTextColor() const
void SetMenuBorderColor(const Color &rColor)
const Color & GetHighlightTextColor() const
void SetPrimaryButtonWarpsSlider(bool bPrimaryButtonWarpsSlider)
void SetToolTextColor(const Color &rColor)
void SetDisplayOptions(DisplayOptions nOptions)
sal_uInt16 GetEdgeBlending() const
void SetMenuHighlightColor(const Color &rColor)
void SetLightColor(const Color &rColor)
void SetWorkspaceColor(const Color &rColor)
bool GetPreferredContextMenuShortcuts() const
const Color & GetDisableColor() const
bool GetPreferredUseImagesInMenus() const
void SetDeactiveBorderColor(const Color &rColor)
const Color & GetWarningColor() const
bool GetUseSystemUIFonts() const
const Color & GetButtonTextColor() const
void SetUseFlatMenus(bool bUseFlatMenus)
const Color & GetDefaultButtonRolloverTextColor() const
void SetDeactiveColor(const Color &rColor)
const Color & GetActiveTextColor() const
const Color & GetListBoxWindowBackgroundColor() const
void SetActionButtonPressedRolloverTextColor(const Color &rColor)
const Size & GetListBoxPreviewDefaultPixelSize() const
void SetHideDisabledMenuItems(bool bHideDisabledMenuItems)
sal_uInt16 GetColorValueSetColumnCount() const
void SetOptions(StyleSettingsOptions nOptions)
void SetColorValueSetColumnCount(sal_uInt16 nCount)
sal_Int32 GetSpinSize() const
const Color & GetButtonRolloverTextColor() const
const Color & GetButtonPressedRolloverTextColor() const
const Color & GetDeactiveBorderColor() const
ToolbarIconSize GetToolbarIconSize() const
bool operator!=(const StyleSettings &rSet) const
bool GetHideDisabledMenuItems() const
const Color & GetTabHighlightTextColor() const
const Color & GetActiveBorderColor() const
void SetDialogTextColor(const Color &rColor)
void SetFlatButtonTextColor(const Color &rColor)
void BatchSetBackgrounds(const Color &aBackColor, bool bCheckedColorSpecialCase=true)
const Color & GetFieldRolloverTextColor() const
const Color & GetEdgeBlendingBottomRightColor() const
const Color & GetMenuBorderColor() const
bool IsDecimalSeparatorAsLocale() const
const LanguageTag & GetRealUILanguageTag() const
SvtSysLocaleOptions & GetOptions() const
static std::shared_ptr< ConfigurationChanges > create()
static DefaultFontConfiguration & get()
css::uno::Any getNodeValue(const OUString &_rPath) const noexcept
static OConfigurationTreeRoot tryCreateWithComponentContext(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const OUString &_rPath, sal_Int32 _nDepth=-1, CREATION_MODE _eMode=CM_UPDATABLE)
void SetWeight(FontWeight)
void SetCharSet(rtl_TextEncoding)
void SetFamilyName(const OUString &rFamilyName)
static OUString GetStandardIconThemePath()
This method will return the standard path where icon themes are located.
static std::shared_ptr< IconThemeScanner > Create(std::u16string_view path)
Factory method to create the object.
static SettingsConfigItem * get()
SalFrame * ImplGetFrame() const
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_YELLOW(0xFF, 0xFF, 0x00)
constexpr ::Color COL_RED(0x80, 0x00, 0x00)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
#define SAL_CONFIGFILE(name)
const LanguageTag & getLanguageTag()
Reference< XComponentContext > getProcessComponentContext()
css::beans::Optional< css::uno::Any > getValue(std::u16string_view id)
std::shared_ptr< T > make_shared(Args &&... args)
RegError REGISTRY_CALLTYPE setValue(RegKeyHandle hKey, rtl_uString *keyName, RegValueType valueType, RegValue pData, sal_uInt32 valueSize)
#define STYLE_CURSOR_NOBLINKTIME
HelpSettings maHelpSettings
StyleSettings maStyleSettings
std::unique_ptr< vcl::I18nHelper > mpUII18nHelper
std::unique_ptr< vcl::I18nHelper > mpI18nHelper
std::unique_ptr< LocaleDataWrapper > mpNeutralLocaleDataWrapper
std::unique_ptr< LocaleDataWrapper > mpLocaleDataWrapper
MiscSettings maMiscSettings
MouseSettings maMouseSettings
std::unique_ptr< LocaleDataWrapper > mpUILocaleDataWrapper
TriState mnDisablePrinting
bool mbEnableLocalizedDecimalSep
sal_uInt64 mnDoubleClkTime
sal_Int32 mnStartDragWidth
MouseWheelBehaviour mnWheelBehavior
sal_Int32 mnDoubleClkHeight
MouseMiddleButtonAction mnMiddleButtonAction
sal_Int32 mnStartDragHeight
MouseFollowFlags mnFollow
sal_Int32 mnDoubleClkWidth
MouseSettingsOptions mnOptions
bool mbCanDetermineWindowPosition
vcl::Font maRadioCheckFont
Color maRadioCheckTextColor
sal_uInt16 mnColorValueSetColumnCount
Color maTabHighlightTextColor
StyleSettingsOptions mnOptions
SelectionOptions mnSelectionOptions
ToolbarIconSize mnToolbarIconSize
Color maListBoxWindowHighlightTextColor
Color maActionButtonPressedRolloverTextColor
BitmapEx maPersonaFooterBitmap
Cache the footer bitmap.
TriState meContextMenuShortcuts
bool mbPreferredUseImagesInMenus
Color maDefaultButtonRolloverTextColor
Color maMenuBarHighlightTextColor
std::shared_ptr< vcl::IconThemeScanner > mIconThemeScanner
Size maListBoxPreviewDefaultLogicSize
TriState meUseImagesInMenus
Size maListBoxPreviewDefaultPixelSize
Color maTabRolloverTextColor
Color maDefaultActionButtonTextColor
Color maHighlightTextColor
Color maActiveBorderColor
Color maAlternatingRowColor
Color maDefaultActionButtonPressedRolloverTextColor
Color maEdgeBlendingBottomRightColor
Color maMenuBarRolloverTextColor
Color maButtonPressedRolloverTextColor
Color maFieldRolloverTextColor
Color maDefaultButtonPressedRolloverTextColor
Color maDefaultButtonTextColor
Color maListBoxWindowTextColor
sal_Int32 mnScrollBarSize
Color maDeactiveBorderColor
bool mbPrimaryButtonWarpsSlider
Color maFlatButtonRolloverTextColor
Color maListBoxWindowHighlightColor
Color maButtonRolloverTextColor
bool mbPreferredContextMenuShortcuts
Color maFlatButtonTextColor
DisplayOptions mnDisplayOptions
Color maActionButtonTextColor
std::shared_ptr< vcl::IconThemeSelector > mIconThemeSelector
BitmapEx maPersonaHeaderBitmap
Cache the header bitmap.
sal_uInt64 mnCursorBlinkTime
vcl::Font maFloatTitleFont
sal_uInt16 mnListBoxMaximumLineCount
vcl::Font maPushButtonFont
Color maActionButtonRolloverTextColor
Color maFlatButtonPressedRolloverTextColor
bool mbPreviewUsesCheckeredBackground
Color maMenuBarRolloverColor
Color maMenuHighlightTextColor
Color maEdgeBlendingTopLeftColor
DragFullOptions mnDragFullOptions
bool mbUseFontAAFromSystem
Disabling AA doesn't actually disable AA of fonts, instead it is taken from system settings.
Color maMenuHighlightColor
sal_Int32 mnAntialiasedMin
bool mbSkipDisabledInMenus
OUString maPersonaHeaderFooter
Cache the settings to detect changes.
DialogStyle maDialogStyle
Color maDefaultActionButtonRolloverTextColor
std::optional< Color > maPersonaMenuBarTextColor
Cache the menubar color.
sal_uInt16 mnEdgeBlending
sal_Int32 mnFloatTitleHeight
bool mbHideDisabledMenuItems
Color maListBoxWindowBackgroundColor
Color maDeactiveTextColor
ImplSVData * ImplGetSVData()
vcl::Window * ImplGetDefaultWindow()
Returns either the application window, or the default GL context window.
const ::Color maShadowColor