1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <svtools/svtdllapi.h>
23 #include <sal/types.h>
24 #include <tools/color.hxx>
26 namespace SvtOptionsDrawinglayer
29 /*-****************************************************************************************************
30 @short interface methods to get and set value of config key "org.openoffice.Office.Common/Drawinglayer/..."
31 @descr These options describe internal states to enable/disable features of installed office.
34 SetOverlayBuffer() => Activate this field for letting Overlay use a buffer
37 SetPaintBuffer() => Activate this field for letting Paint use a prerender buffer
40 SetStripeColorA() => Set first of two colors which overlay uses to draw stripes
43 SetStripeColorB() => Set second of two colors which overlay uses to draw stripes
46 SetStripeLength() => Set length of a single stripe in pixels
48 @seealso configuration package "org.openoffice.Office.Common/Drawinglayer"
49 *//*-*****************************************************************************************************/
51 SVT_DLLPUBLIC
bool IsOverlayBuffer();
52 SVT_DLLPUBLIC
bool IsPaintBuffer();
53 SVT_DLLPUBLIC Color
GetStripeColorA();
54 SVT_DLLPUBLIC Color
GetStripeColorB();
55 SVT_DLLPUBLIC sal_uInt16
GetStripeLength();
58 SVT_DLLPUBLIC
bool IsOverlayBuffer_Calc();
59 SVT_DLLPUBLIC
bool IsOverlayBuffer_Writer();
60 SVT_DLLPUBLIC
bool IsOverlayBuffer_DrawImpress();
63 SVT_DLLPUBLIC
bool IsPaintBuffer_Calc();
64 SVT_DLLPUBLIC
bool IsPaintBuffer_Writer();
65 SVT_DLLPUBLIC
bool IsPaintBuffer_DrawImpress();
68 SVT_DLLPUBLIC sal_uInt32
GetMaximumPaperWidth();
69 SVT_DLLPUBLIC sal_uInt32
GetMaximumPaperHeight();
70 SVT_DLLPUBLIC sal_uInt32
GetMaximumPaperLeftMargin();
71 SVT_DLLPUBLIC sal_uInt32
GetMaximumPaperRightMargin();
72 SVT_DLLPUBLIC sal_uInt32
GetMaximumPaperTopMargin();
73 SVT_DLLPUBLIC sal_uInt32
GetMaximumPaperBottomMargin();
75 // #i95644# helper to check if AA is allowed on this system. Currently, for WIN it's disabled
76 // and OutDevSupportType::TransparentRect is checked (this hits XRenderExtension, e.g.
77 // currently for SunRay as long as not supported there)
78 SVT_DLLPUBLIC
bool IsAAPossibleOnThisSystem();
81 SVT_DLLPUBLIC
bool IsAntiAliasing();
82 SVT_DLLPUBLIC
bool IsSnapHorVerLinesToDiscrete();
84 SVT_DLLPUBLIC
void SetAntiAliasing( bool bOn
, bool bTemporary
);
86 // #i97672# selection settings
87 SVT_DLLPUBLIC sal_uInt16
GetTransparentSelectionPercent();
88 SVT_DLLPUBLIC sal_uInt16
GetSelectionMaximumLuminancePercent();
90 // get system highlight color, limited to the maximum allowed luminance
91 // (defined in GetSelectionMaximumLuminancePercent() in SvtOptionsDrawinglayer,
92 // combined with Application::GetSettings().GetStyleSettings().GetHighlightColor())
93 SVT_DLLPUBLIC Color
getHilightColor();
95 } // namespace SvtOptionsDrawinglayer
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */