From 60446a0386b6d40899f6817c9545414841ee3522 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Tue, 7 May 2013 09:37:01 +0000 Subject: Related: #i122120# corrected flag for drawing checkerboards... adapted previews, added to configuration (cherry picked from commit c17e634e125f524d153e1ad8febff6d11b810ee4) Conflicts: officecfg/registry/schema/org/openoffice/Office/Common.xcs svtools/inc/svtools/accessibilityoptions.hxx svtools/source/inc/configitems/accessibilityoptions_const.hxx vcl/inc/vcl/settings.hxx Change-Id: I3f4fd9525e31cd816599b963ecd2fa42b1f666d7 --- include/svtools/accessibilityoptions.hxx | 5 +++++ include/vcl/settings.hxx | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/svtools/accessibilityoptions.hxx b/include/svtools/accessibilityoptions.hxx index ccaff7e48c65..641d6fe9a706 100644 --- a/include/svtools/accessibilityoptions.hxx +++ b/include/svtools/accessibilityoptions.hxx @@ -62,6 +62,10 @@ public: // only be changed when the color palette is changed from the default sal_Int16 GetColorValueSetColumnCount() const; + // option to make previews show the content with a checkeded background to allow + // simple identification and better preview of transparent content + sal_Bool GetPreviewUsesCheckeredBackground() const; + void SetIsForPagePreviews(sal_Bool bSet); void SetIsHelpTipsDisappear(sal_Bool bSet); void SetIsAllowAnimatedGraphics(sal_Bool bSet); @@ -75,6 +79,7 @@ public: void SetEdgeBlending(sal_Int16 nSet); void SetListBoxMaximumLineCount(sal_Int16 nSet); void SetColorValueSetColumnCount(sal_Int16 nSet); + void SetPreviewUsesCheckeredBackground(sal_Bool bSet); sal_Bool IsModified() const; void Commit(); diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 10f23d44713c..545bc700c197 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -360,7 +360,7 @@ private: Size maListBoxPreviewDefaultLogicSize; Size maListBoxPreviewDefaultPixelSize; sal_uInt16 mnListBoxPreviewDefaultLineWidth; - sal_Bool mbUIPreviewUsesCheckeredBackground; + sal_Bool mbPreviewUsesCheckeredBackground; OUString maPersonaHeaderFooter; ///< Cache the settings to detect changes. @@ -935,8 +935,8 @@ public: // defines if previews which containn potentially transparent objects (e.g. the dash/line/LineStartEnd previews and others) // use the default transparent visualization background (checkered background) as it has got standard in graphic programs nowadays - void SetUIPreviewUsesCheckeredBackground(bool bNew) { CopyData(); mpData->mbUIPreviewUsesCheckeredBackground = bNew; } - bool GetUIPreviewUsesCheckeredBackground() const { return mpData->mbUIPreviewUsesCheckeredBackground; } + void SetPreviewUsesCheckeredBackground(bool bNew) { CopyData(); mpData->mbPreviewUsesCheckeredBackground = bNew; } + bool GetPreviewUsesCheckeredBackground() const { return mpData->mbPreviewUsesCheckeredBackground; } void SetStandardStyles(); -- cgit