LibreOffice Module svx (master)  1
sdrattributecreator.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #pragma once
21 
22 #include <sal/types.h>
23 #include <svx/svxdllapi.h>
24 
25 
26 // predefines
27 class SfxItemSet;
28 class SdrText;
29 
30 namespace drawinglayer { namespace attribute {
31  class SdrLineAttribute;
32  class SdrLineStartEndAttribute;
33  class SdrShadowAttribute;
34  class SdrGlowAttribute;
35  class SdrFillAttribute;
36  class SdrTextAttribute;
37  class FillGradientAttribute;
38  class SdrFillGraphicAttribute;
39  class SdrShadowTextAttribute;
40  class SdrLineShadowTextAttribute;
41  class SdrLineFillShadowTextAttribute;
42  class SdrLineFillShadowAttribute3D;
43  class SdrSceneAttribute;
44  class SdrLightingAttribute;
45  class SdrFillTextAttribute;
46 }}
47 
48 namespace basegfx {
49  class B2DRange;
50 }
51 
52 
53 namespace drawinglayer
54 {
55  namespace primitive2d
56  {
57  // SdrAttribute creators
58  attribute::SdrLineAttribute SVXCORE_DLLPUBLIC createNewSdrLineAttribute(
59  const SfxItemSet& rSet);
60 
61  attribute::SdrLineStartEndAttribute SVXCORE_DLLPUBLIC createNewSdrLineStartEndAttribute(
62  const SfxItemSet& rSet,
63  double fWidth);
64 
65  attribute::SdrShadowAttribute createNewSdrShadowAttribute(
66  const SfxItemSet& rSet);
67 
68  attribute::SdrFillAttribute SVXCORE_DLLPUBLIC createNewSdrFillAttribute(
69  const SfxItemSet& rSet);
70 
71  attribute::SdrGlowAttribute createNewSdrGlowAttribute(
72  const SfxItemSet& rSet);
73 
74  // #i101508# Support handing over given text-to-border distances
75  attribute::SdrTextAttribute createNewSdrTextAttribute(
76  const SfxItemSet& rSet,
77  const SdrText& rText,
78  const sal_Int32* pLeft = nullptr,
79  const sal_Int32* pUpper = nullptr,
80  const sal_Int32* pRight = nullptr,
81  const sal_Int32* pLower = nullptr);
82 
83  attribute::FillGradientAttribute SVXCORE_DLLPUBLIC createNewTransparenceGradientAttribute(
84  const SfxItemSet& rSet);
85 
86  attribute::SdrFillGraphicAttribute createNewSdrFillGraphicAttribute(
87  const SfxItemSet& rSet);
88 
89  attribute::SdrShadowTextAttribute createNewSdrShadowTextAttribute(
90  const SfxItemSet& rSet,
91  const SdrText* pText,
92  bool bSuppressText); // #i98072# added option to suppress text on demand
93 
94  attribute::SdrLineShadowTextAttribute createNewSdrLineShadowTextAttribute(
95  const SfxItemSet& rSet,
96  const SdrText* pText);
97 
98  attribute::SdrLineFillShadowTextAttribute createNewSdrLineFillShadowTextAttribute(
99  const SfxItemSet& rSet,
100  const SdrText* pText,
101  bool bHasContent); // used from OLE and graphic
102 
103  attribute::SdrLineFillShadowAttribute3D createNewSdrLineFillShadowAttribute(
104  const SfxItemSet& rSet,
105  bool bSuppressFill);
106 
107  attribute::SdrSceneAttribute createNewSdrSceneAttribute(
108  const SfxItemSet& rSet);
109 
110  attribute::SdrLightingAttribute createNewSdrLightingAttribute(
111  const SfxItemSet& rSet);
112 
113  // #i101508# Support handing over given text-to-border distances
114  attribute::SdrFillTextAttribute createNewSdrFillTextAttribute(
115  const SfxItemSet& rSet,
116  const SdrText* pSdrText,
117  const sal_Int32* pLeft = nullptr,
118  const sal_Int32* pUpper = nullptr,
119  const sal_Int32* pRight = nullptr,
120  const sal_Int32* pLower = nullptr);
121 
122  // helpers
124  sal_Int32 nRadius,
125  const ::basegfx::B2DRange& rObjectRange,
126  double& rfCornerRadiusX,
127  double& rfCornerRadiusY);
128 
129  } // end of namespace primitive2d
130 } // end of namespace drawinglayer
131 
132 
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
attribute::SdrFillAttribute createNewSdrFillAttribute(const SfxItemSet &rSet)
attribute::SdrFillGraphicAttribute createNewSdrFillGraphicAttribute(const SfxItemSet &rSet)
attribute::SdrLineFillShadowAttribute3D createNewSdrLineFillShadowAttribute(const SfxItemSet &rSet, bool bSuppressFill)
attribute::SdrLineAttribute createNewSdrLineAttribute(const SfxItemSet &rSet)
attribute::SdrTextAttribute createNewSdrTextAttribute(const SfxItemSet &rSet, const SdrText &rText, const sal_Int32 *pLeft, const sal_Int32 *pUpper, const sal_Int32 *pRight, const sal_Int32 *pLower)
attribute::SdrLineFillShadowTextAttribute createNewSdrLineFillShadowTextAttribute(const SfxItemSet &rSet, const SdrText *pText, bool bHasContent)
attribute::FillGradientAttribute createNewTransparenceGradientAttribute(const SfxItemSet &rSet)
attribute::SdrLineShadowTextAttribute createNewSdrLineShadowTextAttribute(const SfxItemSet &rSet, const SdrText *pText)
void calculateRelativeCornerRadius(sal_Int32 nRadius, const basegfx::B2DRange &rObjectRange, double &rfCornerRadiusX, double &rfCornerRadiusY)
attribute::SdrShadowTextAttribute createNewSdrShadowTextAttribute(const SfxItemSet &rSet, const SdrText *pText, bool bSuppressText)
attribute::SdrLineStartEndAttribute createNewSdrLineStartEndAttribute(const SfxItemSet &rSet, double fWidth)
sal_Int32 attribute
attribute::SdrSceneAttribute createNewSdrSceneAttribute(const SfxItemSet &rSet)
attribute::SdrShadowAttribute createNewSdrShadowAttribute(const SfxItemSet &rSet)
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35
attribute::SdrFillTextAttribute createNewSdrFillTextAttribute(const SfxItemSet &rSet, const SdrText *pText, const sal_Int32 *pLeft, const sal_Int32 *pUpper, const sal_Int32 *pRight, const sal_Int32 *pLower)
attribute::SdrGlowAttribute createNewSdrGlowAttribute(const SfxItemSet &rSet)
attribute::SdrLightingAttribute createNewSdrLightingAttribute(const SfxItemSet &rSet)