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 SetStripeColorA() => Set first of two colors which overlay uses to draw stripes
37 SetStripeColorB() => Set second of two colors which overlay uses to draw stripes
39 @seealso configuration package "org.openoffice.Office.Common/Drawinglayer"
40 *//*-*****************************************************************************************************/
42 SVT_DLLPUBLIC Color
GetStripeColorA();
43 SVT_DLLPUBLIC Color
GetStripeColorB();
45 // #i95644# helper to check if AA is allowed on this system. Currently, for WIN it's disabled
46 // and OutDevSupportType::TransparentRect is checked (this hits XRenderExtension, e.g.
47 // currently for SunRay as long as not supported there)
48 SVT_DLLPUBLIC
bool IsAAPossibleOnThisSystem();
51 SVT_DLLPUBLIC
bool IsAntiAliasing();
52 SVT_DLLPUBLIC
bool IsSnapHorVerLinesToDiscrete();
54 SVT_DLLPUBLIC
void SetAntiAliasing( bool bOn
, bool bTemporary
);
56 // #i97672# selection settings
57 SVT_DLLPUBLIC sal_uInt16
GetTransparentSelectionPercent();
58 SVT_DLLPUBLIC sal_uInt16
GetSelectionMaximumLuminancePercent();
60 // get system highlight color, limited to the maximum allowed luminance
61 // (defined in GetSelectionMaximumLuminancePercent() in SvtOptionsDrawinglayer,
62 // combined with Application::GetSettings().GetStyleSettings().GetHighlightColor())
63 SVT_DLLPUBLIC Color
getHilightColor();
65 } // namespace SvtOptionsDrawinglayer
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */