20#ifndef INCLUDED_VCL_SETTINGS_HXX
21#define INCLUDED_VCL_SETTINGS_HXX
86 std::shared_ptr<ImplMouseData>
mxData;
94 void SetDoubleClickTime( sal_uInt64 nDoubleClkTime );
95 sal_uInt64 GetDoubleClickTime()
const;
97 void SetDoubleClickWidth( sal_Int32 nDoubleClkWidth );
98 sal_Int32 GetDoubleClickWidth()
const;
100 void SetDoubleClickHeight( sal_Int32 nDoubleClkHeight );
101 sal_Int32 GetDoubleClickHeight()
const;
103 void SetStartDragWidth( sal_Int32 nDragWidth );
104 sal_Int32 GetStartDragWidth()
const;
106 void SetStartDragHeight( sal_Int32 nDragHeight );
107 sal_Int32 GetStartDragHeight()
const;
109 static sal_uInt16 GetStartDragCode();
111 static sal_uInt16 GetContextMenuCode();
113 static sal_uInt16 GetContextMenuClicks();
115 static sal_Int32 GetScrollRepeat();
117 static sal_Int32 GetButtonStartRepeat();
119 void SetButtonRepeat( sal_Int32 nRepeat );
120 sal_Int32 GetButtonRepeat()
const;
122 static sal_Int32 GetActionDelay();
124 void SetMenuDelay( sal_Int32 nDelay );
125 sal_Int32 GetMenuDelay()
const;
206#define STYLE_CURSOR_NOBLINKTIME SAL_MAX_UINT64
218 void Set3DColors(
const Color& rColor );
220 void SetFaceColor(
const Color& rColor );
221 const Color& GetFaceColor()
const;
223 Color GetFaceGradientColor()
const;
225 Color GetSeparatorColor()
const;
227 void SetCheckedColor(
const Color& rColor );
228 void SetCheckedColorSpecialCase( );
229 const Color& GetCheckedColor()
const;
231 void SetLightColor(
const Color& rColor );
232 const Color& GetLightColor()
const;
234 void SetLightBorderColor(
const Color& rColor );
235 const Color& GetLightBorderColor()
const;
237 void SetShadowColor(
const Color& rColor );
238 const Color& GetShadowColor()
const;
240 void SetDarkShadowColor(
const Color& rColor );
241 const Color& GetDarkShadowColor()
const;
243 void SetDefaultButtonTextColor(
const Color& rColor );
244 const Color& GetDefaultButtonTextColor()
const;
246 void SetButtonTextColor(
const Color& rColor );
247 const Color& GetButtonTextColor()
const;
249 void SetDefaultActionButtonTextColor(
const Color& rColor );
250 const Color& GetDefaultActionButtonTextColor()
const;
252 void SetActionButtonTextColor(
const Color& rColor );
253 const Color& GetActionButtonTextColor()
const;
255 void SetFlatButtonTextColor(
const Color& rColor );
256 const Color& GetFlatButtonTextColor()
const;
258 void SetDefaultButtonRolloverTextColor(
const Color& rColor );
259 const Color& GetDefaultButtonRolloverTextColor()
const;
261 void SetButtonRolloverTextColor(
const Color& rColor );
262 const Color& GetButtonRolloverTextColor()
const;
264 void SetDefaultActionButtonRolloverTextColor(
const Color& rColor );
265 const Color& GetDefaultActionButtonRolloverTextColor()
const;
267 void SetActionButtonRolloverTextColor(
const Color& rColor );
268 const Color& GetActionButtonRolloverTextColor()
const;
270 void SetFlatButtonRolloverTextColor(
const Color& rColor );
271 const Color& GetFlatButtonRolloverTextColor()
const;
273 void SetDefaultButtonPressedRolloverTextColor(
const Color& rColor );
274 const Color& GetDefaultButtonPressedRolloverTextColor()
const;
276 void SetButtonPressedRolloverTextColor(
const Color& rColor );
277 const Color& GetButtonPressedRolloverTextColor()
const;
279 void SetDefaultActionButtonPressedRolloverTextColor(
const Color& rColor );
280 const Color& GetDefaultActionButtonPressedRolloverTextColor()
const;
282 void SetActionButtonPressedRolloverTextColor(
const Color& rColor );
283 const Color& GetActionButtonPressedRolloverTextColor()
const;
285 void SetFlatButtonPressedRolloverTextColor(
const Color& rColor );
286 const Color& GetFlatButtonPressedRolloverTextColor()
const;
288 void SetRadioCheckTextColor(
const Color& rColor );
289 const Color& GetRadioCheckTextColor()
const;
291 void SetGroupTextColor(
const Color& rColor );
292 const Color& GetGroupTextColor()
const;
294 void SetLabelTextColor(
const Color& rColor );
295 const Color& GetLabelTextColor()
const;
297 void SetWindowColor(
const Color& rColor );
298 const Color& GetWindowColor()
const;
300 void SetWindowTextColor(
const Color& rColor );
301 const Color& GetWindowTextColor()
const;
303 void SetDialogColor(
const Color& rColor );
304 const Color& GetDialogColor()
const;
306 void SetDialogTextColor(
const Color& rColor );
307 const Color& GetDialogTextColor()
const;
309 void SetWorkspaceColor(
const Color& rColor );
310 const Color& GetWorkspaceColor()
const;
312 void SetFieldColor(
const Color& rColor );
313 const Color& GetFieldColor()
const;
315 void SetFieldTextColor(
const Color& rColor );
316 const Color& GetFieldTextColor()
const;
318 void SetFieldRolloverTextColor(
const Color& rColor );
319 const Color& GetFieldRolloverTextColor()
const;
321 void SetActiveColor(
const Color& rColor );
322 const Color& GetActiveColor()
const;
324 void SetActiveTextColor(
const Color& rColor );
325 const Color& GetActiveTextColor()
const;
327 void SetActiveBorderColor(
const Color& rColor );
328 const Color& GetActiveBorderColor()
const;
330 void SetDeactiveColor(
const Color& rColor );
331 const Color& GetDeactiveColor()
const;
333 void SetDeactiveTextColor(
const Color& rColor );
334 const Color& GetDeactiveTextColor()
const;
336 void SetDeactiveBorderColor(
const Color& rColor );
337 const Color& GetDeactiveBorderColor()
const;
339 void SetAccentColor(
const Color& rColor );
340 const Color& GetAccentColor()
const;
342 void SetHighlightColor(
const Color& rColor );
343 const Color& GetHighlightColor()
const;
345 void SetHighlightTextColor(
const Color& rColor );
346 const Color& GetHighlightTextColor()
const;
348 void SetDisableColor(
const Color& rColor );
349 const Color& GetDisableColor()
const;
351 void SetWarningColor(
const Color& rColor );
352 const Color& GetWarningColor()
const;
354 void SetHelpColor(
const Color& rColor );
355 const Color& GetHelpColor()
const;
357 void SetHelpTextColor(
const Color& rColor );
358 const Color& GetHelpTextColor()
const;
360 void SetMenuColor(
const Color& rColor );
361 const Color& GetMenuColor()
const;
363 void SetMenuBarColor(
const Color& rColor );
364 const Color& GetMenuBarColor()
const;
366 void SetMenuBarRolloverColor(
const Color& rColor );
367 const Color& GetMenuBarRolloverColor()
const;
369 void SetMenuBorderColor(
const Color& rColor );
370 const Color& GetMenuBorderColor()
const;
372 void SetMenuTextColor(
const Color& rColor );
373 const Color& GetMenuTextColor()
const;
375 void SetMenuBarTextColor(
const Color& rColor );
376 const Color& GetMenuBarTextColor()
const;
378 void SetMenuBarRolloverTextColor(
const Color& rColor );
379 const Color& GetMenuBarRolloverTextColor()
const;
381 void SetMenuBarHighlightTextColor(
const Color& rColor );
382 const Color& GetMenuBarHighlightTextColor()
const;
384 void SetMenuHighlightColor(
const Color& rColor );
385 const Color& GetMenuHighlightColor()
const;
387 void SetMenuHighlightTextColor(
const Color& rColor );
388 const Color& GetMenuHighlightTextColor()
const;
390 void SetListBoxWindowBackgroundColor(
const Color& rColor );
391 const Color& GetListBoxWindowBackgroundColor()
const;
393 void SetListBoxWindowTextColor(
const Color& rColor );
394 const Color& GetListBoxWindowTextColor()
const;
396 void SetListBoxWindowHighlightColor(
const Color& rColor );
397 const Color& GetListBoxWindowHighlightColor()
const;
399 void SetListBoxWindowHighlightTextColor(
const Color& rColor );
400 const Color& GetListBoxWindowHighlightTextColor()
const;
402 void SetTabTextColor(
const Color& rColor );
403 const Color& GetTabTextColor()
const;
405 void SetTabRolloverTextColor(
const Color& rColor );
406 const Color& GetTabRolloverTextColor()
const;
408 void SetTabHighlightTextColor(
const Color& rColor );
409 const Color& GetTabHighlightTextColor()
const;
411 void SetToolTextColor(
const Color& rColor );
412 const Color& GetToolTextColor()
const;
414 void SetLinkColor(
const Color& rColor );
415 const Color& GetLinkColor()
const;
417 void SetVisitedLinkColor(
const Color& rColor );
418 const Color& GetVisitedLinkColor()
const;
420 void SetMonoColor(
const Color& rColor );
421 const Color& GetMonoColor()
const;
423 void SetActiveTabColor(
const Color& rColor );
424 const Color& GetActiveTabColor()
const;
426 void SetInactiveTabColor(
const Color& rColor );
427 const Color& GetInactiveTabColor()
const;
429 void SetAlternatingRowColor(
const Color& rColor);
430 const Color& GetAlternatingRowColor()
const;
432 void SetHighContrastMode(
bool bHighContrast );
433 bool GetHighContrastMode()
const;
435 void SetUseSystemUIFonts(
bool bUseSystemUIFonts );
436 bool GetUseSystemUIFonts()
const;
438 void SetUseFontAAFromSystem(
bool bUseFontAAFromSystem);
439 bool GetUseFontAAFromSystem()
const;
441 void SetUseFlatBorders(
bool bUseFlatBorders );
442 bool GetUseFlatBorders()
const;
444 void SetUseFlatMenus(
bool bUseFlatMenus );
445 bool GetUseFlatMenus()
const;
447 void SetUseImagesInMenus(
TriState eUseImagesInMenus );
448 bool GetUseImagesInMenus()
const;
450 void SetPreferredUseImagesInMenus(
bool bPreferredUseImagesInMenus );
451 bool GetPreferredUseImagesInMenus()
const;
453 void SetSkipDisabledInMenus(
bool bSkipDisabledInMenus );
454 bool GetSkipDisabledInMenus()
const;
456 void SetHideDisabledMenuItems(
bool bHideDisabledMenuItems );
457 bool GetHideDisabledMenuItems()
const;
459 void SetContextMenuShortcuts(
TriState eContextMenuShortcuts );
460 bool GetContextMenuShortcuts()
const;
462 void SetPreferredContextMenuShortcuts(
bool bContextMenuShortcuts );
463 bool GetPreferredContextMenuShortcuts()
const;
465 void SetPrimaryButtonWarpsSlider(
bool bPrimaryButtonWarpsSlider );
466 bool GetPrimaryButtonWarpsSlider()
const;
468 void SetAppFont(
const vcl::Font& rFont );
471 void SetHelpFont(
const vcl::Font& rFont );
474 void SetTitleFont(
const vcl::Font& rFont );
477 void SetFloatTitleFont(
const vcl::Font& rFont );
478 const vcl::Font& GetFloatTitleFont()
const;
480 void SetMenuFont(
const vcl::Font& rFont );
483 void SetToolFont(
const vcl::Font& rFont );
486 void SetGroupFont(
const vcl::Font& rFont );
489 void SetLabelFont(
const vcl::Font& rFont );
492 void SetRadioCheckFont(
const vcl::Font& rFont );
493 const vcl::Font& GetRadioCheckFont()
const;
495 void SetPushButtonFont(
const vcl::Font& rFont );
496 const vcl::Font& GetPushButtonFont()
const;
498 void SetFieldFont(
const vcl::Font& rFont );
501 void SetIconFont(
const vcl::Font& rFont );
504 void SetTabFont(
const vcl::Font& rFont );
507 static sal_Int32 GetBorderSize();
509 void SetTitleHeight( sal_Int32 nSize );
510 sal_Int32 GetTitleHeight()
const;
512 void SetFloatTitleHeight( sal_Int32 nSize );
513 sal_Int32 GetFloatTitleHeight()
const;
515 void SetScrollBarSize( sal_Int32 nSize );
516 sal_Int32 GetScrollBarSize()
const;
518 void SetMinThumbSize( sal_Int32 nSize );
519 sal_Int32 GetMinThumbSize()
const;
521 void SetSpinSize( sal_Int32 nSize );
522 sal_Int32 GetSpinSize()
const;
524 static sal_Int32 GetSplitSize();
526 void SetCursorSize( sal_Int32 nSize );
527 sal_Int32 GetCursorSize()
const;
529 void SetCursorBlinkTime( sal_uInt64 nBlinkTime );
530 sal_uInt64 GetCursorBlinkTime()
const;
541 void SetAntialiasingMinPixelHeight( sal_Int32 nMinPixel );
542 sal_Int32 GetAntialiasingMinPixelHeight()
const;
547 void SetAutoMnemonic(
bool bAutoMnemonic );
548 bool GetAutoMnemonic()
const;
550 static bool GetDockingFloatsSupported();
554 Size GetToolbarIconSizePixel()
const;
557 void SetIconTheme(
const OUString&);
566 OUString DetermineIconTheme()
const;
571 std::vector<vcl::IconThemeInfo>
const & GetInstalledIconThemes()
const;
576 OUString GetAutomaticallyChosenIconTheme()
const;
581 void SetPreferredIconTheme(
const OUString&,
bool bDarkIconTheme =
false);
585 BitmapEx const & GetPersonaHeader()
const;
587 BitmapEx const & GetPersonaFooter()
const;
589 const std::optional<Color>& GetPersonaMenuBarTextColor()
const;
593 void SetEdgeBlending(sal_uInt16 nCount);
594 sal_uInt16 GetEdgeBlending()
const;
598 const Color& GetEdgeBlendingTopLeftColor()
const;
599 const Color& GetEdgeBlendingBottomRightColor()
const;
604 void SetListBoxMaximumLineCount(sal_uInt16 nCount);
605 sal_uInt16 GetListBoxMaximumLineCount()
const;
610 void SetColorValueSetColumnCount(sal_uInt16 nCount);
611 sal_uInt16 GetColorValueSetColumnCount()
const;
613 void SetListBoxPreviewDefaultLogicSize(
Size const & rSize);
614 const Size& GetListBoxPreviewDefaultPixelSize()
const;
617 static sal_uInt16 GetListBoxPreviewDefaultLineWidth();
621 void SetPreviewUsesCheckeredBackground(
bool bNew);
622 bool GetPreviewUsesCheckeredBackground()
const;
624 void SetStandardStyles();
630 void BatchSetBackgrounds(
const Color &aBackColor,
631 bool bCheckedColorSpecialCase =
true );
632 void BatchSetFonts(
const vcl::Font& aAppFont,
645 void SetEnableATToolSupport(
bool bEnable );
647 bool GetEnableATToolSupport()
const;
648 bool GetDisablePrinting()
const;
649 void SetEnableLocalizedDecimalSep(
bool bEnable );
650 bool GetEnableLocalizedDecimalSep()
const;
652 static void SetDarkMode(
int nMode);
653 static int GetDarkMode();
655 static bool GetUseDarkMode();
656 static void SetAppColorMode(
int nMode);
657 static int GetAppColorMode();
659 static bool GetUseReducedAnimation();
672 static sal_Int32 GetTipDelay();
673 void SetTipTimeout( sal_Int32 nTipTimeout );
674 sal_Int32 GetTipTimeout()
const;
675 static sal_Int32 GetBalloonDelay();
699 std::shared_ptr<ImplAllSettingsData>
mxData;
713 IF_MERGELIBS(SAL_DLLPRIVATE)
715 IF_MERGELIBS(SAL_DLLPRIVATE)
718 void SetLanguageTag(
const OUString& rLanguage,
bool bCanonicalize);
719 void SetLanguageTag(
const LanguageTag& rLanguageTag );
722 static bool GetLayoutRTL();
723 static bool GetMathLayoutRTL();
724 static OUString GetUIRootDir();
727 IF_MERGELIBS(SAL_DLLPRIVATE)
static SAL_DLLPRIVATE AllSettingsFlags GetWindowUpdate()
std::shared_ptr< ImplAllSettingsData > mxData
std::shared_ptr< ImplHelpData > mxData
std::shared_ptr< ImplMiscData > mxData
std::shared_ptr< ImplMouseData > mxData
std::shared_ptr< ImplStyleData > mxData
const LocaleDataWrapper & GetLocaleDataWrapper(LanguageType nLang)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)
bool operator!=(const ItalicMatrix &a, const ItalicMatrix &b)