LibreOffice Module svx (master) 1
xattr2.cxx
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#include <com/sun/star/drawing/LineJoint.hpp>
21#include <com/sun/star/drawing/LineCap.hpp>
22#include <com/sun/star/uno/Any.hxx>
23
24#include <osl/diagnose.h>
25#include <i18nutil/unicode.hxx>
26#include <svx/strings.hrc>
27#include <svx/svxids.hrc>
28#include <svx/xlinjoit.hxx>
29#include <svx/xlncapit.hxx>
30#include <svx/xlntrit.hxx>
31#include <svx/xfltrit.hxx>
32#include <xftshtit.hxx>
33#include <svx/xgrscit.hxx>
34#include <svx/xflbmtit.hxx>
35#include <svx/xflbmpit.hxx>
36#include <svx/xflbmsxy.hxx>
37#include <svx/xflbmsli.hxx>
38#include <svx/xflbtoxy.hxx>
39#include <svx/xflbstit.hxx>
40#include <svx/xflboxy.hxx>
41#include <svx/xflbckit.hxx>
43#include <svx/dialmgr.hxx>
44#include <svx/xdef.hxx>
45#include <AffineMatrixItem.hxx>
46#include <vcl/svapp.hxx>
47#include <vcl/settings.hxx>
48
49#include <comphelper/lok.hxx>
50
51#include <libxml/xmlwriter.h>
52
53XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
54 SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
55{
56}
57
59{
60 return new XLineTransparenceItem(*this);
61}
62
64(
66 MapUnit /*eCoreUnit*/,
67 MapUnit /*ePresUnit*/,
68 OUString& rText, const IntlWrapper&
69) const
70{
71 rText.clear();
72
73 switch ( ePres )
74 {
75 case SfxItemPresentation::Complete:
76 rText = SvxResId(RID_SVXSTR_TRANSPARENCE) + ": ";
77 [[fallthrough]];
78 case SfxItemPresentation::Nameless:
80 Application::GetSettings().GetUILanguageTag());
81 return true;
82 default:
83 return false;
84 }
85}
86
87
89
90XLineJointItem::XLineJointItem( css::drawing::LineJoint eLineJoint ) :
91 SfxEnumItem(XATTR_LINEJOINT, eLineJoint)
92{
93}
94
96{
97 return new XLineJointItem( *this );
98}
99
101 MapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper&) const
102{
103 rText.clear();
104
105 TranslateId pId;
106
107 switch( GetValue() )
108 {
109 case css::drawing::LineJoint::LineJoint_MAKE_FIXED_SIZE:
110 case css::drawing::LineJoint_NONE:
111 pId = comphelper::LibreOfficeKit::isActive() ? RID_SVXSTR_INVISIBLE : RID_SVXSTR_NONE;
112 break;
113
114 case css::drawing::LineJoint_MIDDLE:
115 pId = RID_SVXSTR_LINEJOINT_MIDDLE;
116 break;
117
118
119 case css::drawing::LineJoint_BEVEL:
120 pId = RID_SVXSTR_LINEJOINT_BEVEL;
121 break;
122
123
124 case css::drawing::LineJoint_MITER:
125 pId = RID_SVXSTR_LINEJOINT_MITER;
126 break;
127
128
129 case css::drawing::LineJoint_ROUND:
130 pId = RID_SVXSTR_LINEJOINT_ROUND;
131 break;
132 }
133
134 if (pId)
135 rText = SvxResId(pId);
136
137 return true;
138}
139
140bool XLineJointItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
141{
142 const css::drawing::LineJoint eJoint = GetValue();
143 rVal <<= eJoint;
144 return true;
145}
146
147bool XLineJointItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
148{
149 css::drawing::LineJoint eUnoJoint;
150
151 if(!(rVal >>= eUnoJoint))
152 {
153 // also try an int (for Basic)
154 sal_Int32 nLJ = 0;
155 if(!(rVal >>= nLJ))
156 return false;
157 eUnoJoint = static_cast<css::drawing::LineJoint>(nLJ);
158 }
159
160 SetValue( eUnoJoint );
161
162 return true;
163}
164
166{
167 // don't forget to update the api interface also
168 return 5;
169}
170
171
172AffineMatrixItem::AffineMatrixItem(const css::geometry::AffineMatrix2D* pMatrix)
173: SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
174{
175 if(pMatrix)
176 {
177 maMatrix = *pMatrix;
178 }
179 else
180 {
181 maMatrix.m00 = 1.0;
182 maMatrix.m01 = 0.0;
183 maMatrix.m02 = 0.0;
184 maMatrix.m10 = 0.0;
185 maMatrix.m11 = 1.0;
186 maMatrix.m12 = 0.0;
187 }
188}
189
191: SfxPoolItem(rRef)
192{
193 maMatrix = rRef.maMatrix;
194}
195
197{
198}
199
201{
202 if(!SfxPoolItem::operator==(rRef))
203 {
204 return false;
205 }
206
207 const AffineMatrixItem* pRef = static_cast< const AffineMatrixItem* >(&rRef);
208
209 if(!pRef)
210 {
211 return false;
212 }
213
214 return (maMatrix.m00 == pRef->maMatrix.m00
215 && maMatrix.m01 == pRef->maMatrix.m01
216 && maMatrix.m02 == pRef->maMatrix.m02
217 && maMatrix.m10 == pRef->maMatrix.m10
218 && maMatrix.m11 == pRef->maMatrix.m11
219 && maMatrix.m12 == pRef->maMatrix.m12);
220}
221
223{
224 return new AffineMatrixItem(*this);
225}
226
227bool AffineMatrixItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const
228{
229 rVal <<= maMatrix;
230 return true;
231}
232
233bool AffineMatrixItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
234{
235 if (rVal >>= maMatrix)
236 {
237 return true;
238 }
239
240 OSL_ENSURE(false, "AffineMatrixItem::PutValue - Wrong type!");
241 return false;
242}
243
244
246
247XLineCapItem::XLineCapItem(css::drawing::LineCap eLineCap)
248: SfxEnumItem(XATTR_LINECAP, eLineCap)
249{
250}
251
253{
254 return new XLineCapItem( *this );
255}
256
258 MapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper&) const
259{
260 TranslateId pId;
261
262 switch( GetValue() )
263 {
264 default: /*css::drawing::LineCap_BUTT*/
265 pId = RID_SVXSTR_LINECAP_BUTT;
266 break;
267
268 case css::drawing::LineCap_ROUND:
269 pId = RID_SVXSTR_LINECAP_ROUND;
270 break;
271
272 case css::drawing::LineCap_SQUARE:
273 pId = RID_SVXSTR_LINECAP_SQUARE;
274 break;
275 }
276
277 rText = SvxResId(pId);
278
279 return true;
280}
281
282bool XLineCapItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
283{
284 const css::drawing::LineCap eCap(GetValue());
285 rVal <<= eCap;
286 return true;
287}
288
289bool XLineCapItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
290{
291 css::drawing::LineCap eUnoCap;
292
293 if(!(rVal >>= eUnoCap))
294 {
295 // also try an int (for Basic)
296 sal_Int32 nLJ(0);
297
298 if(!(rVal >>= nLJ))
299 {
300 return false;
301 }
302
303 eUnoCap = static_cast<css::drawing::LineCap>(nLJ);
304 }
305
306 OSL_ENSURE(css::drawing::LineCap_BUTT == eUnoCap
307 || css::drawing::LineCap_ROUND == eUnoCap
308 || css::drawing::LineCap_SQUARE == eUnoCap, "Unknown enum value in XATTR_LINECAP (!)");
309
310 SetValue(eUnoCap);
311
312 return true;
313}
314
316{
317 // don't forget to update the api interface also
318 return 3;
319}
320
321css::drawing::LineCap XLineCapItem::GetValue() const
322{
323 const css::drawing::LineCap eRetval(SfxEnumItem::GetValue());
324 OSL_ENSURE(css::drawing::LineCap_BUTT == eRetval
325 || css::drawing::LineCap_ROUND == eRetval
326 || css::drawing::LineCap_SQUARE == eRetval, "Unknown enum value in XATTR_LINECAP (!)");
327
328 return eRetval;
329}
330
331XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
332 SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
333{
334}
335
337{
338 return new XFillTransparenceItem(*this);
339}
340
342(
344 MapUnit /*eCoreUnit*/,
345 MapUnit /*ePresUnit*/,
346 OUString& rText, const IntlWrapper&
347) const
348{
349 rText.clear();
350
351 switch ( ePres )
352 {
353 case SfxItemPresentation::Complete:
354 rText = SvxResId(RID_SVXSTR_TRANSPARENCE) + ": ";
355 [[fallthrough]];
356 case SfxItemPresentation::Nameless:
358 Application::GetSettings().GetUILanguageTag());
359 return true;
360 default:
361 return false;
362 }
363}
364
366{
367 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillTransparenceItem"));
368 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
369 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
370 (void)xmlTextWriterEndElement(pWriter);
371}
372
373
375 SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
376{
377}
378
380{
381 return new XFormTextShadowTranspItem(*this);
382}
383
384
387{
388}
389
391{
392 return new XGradientStepCountItem( *this );
393}
394
396(
397 SfxItemPresentation /*ePres*/,
398 MapUnit /*eCoreUnit*/,
399 MapUnit /*ePresUnit*/,
400 OUString& rText, const IntlWrapper&
401) const
402{
403 rText.clear();
404
405 rText += OUString::number(GetValue());
406 return true;
407}
408
409
412{
413}
414
416{
417 return new XFillBmpTileItem( *this );
418}
419
421(
422 SfxItemPresentation /*ePres*/,
423 MapUnit /*eCoreUnit*/,
424 MapUnit /*ePresUnit*/,
425 OUString& rText, const IntlWrapper&
426) const
427{
428 rText.clear();
429 return true;
430}
431
433{
434 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBmpTileItem"));
435 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
436 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
437 (void)xmlTextWriterEndElement(pWriter);
438}
439
440
441
444{
445}
446
448{
449 return new XFillBmpPosItem( *this );
450}
451
453(
454 SfxItemPresentation /*ePres*/,
455 MapUnit /*eCoreUnit*/,
456 MapUnit /*ePresUnit*/,
457 OUString& rText, const IntlWrapper&
458) const
459{
460 rText.clear();
461 return true;
462}
463
465{
466 return 9;
467}
468
470{
471 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBmpPosItem"));
472 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
473 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(static_cast<int>(GetValue())).getStr()));
474 (void)xmlTextWriterEndElement(pWriter);
475}
476
477
480{
481}
482
484{
485 return new XFillBmpSizeXItem( *this );
486}
487
489(
490 SfxItemPresentation /*ePres*/,
491 MapUnit /*eCoreUnit*/,
492 MapUnit /*ePresUnit*/,
493 OUString& rText, const IntlWrapper&
494) const
495{
496 rText.clear();
497 return true;
498}
499
501{
502 return GetValue() > 0;
503}
504
505
506
509{
510}
511
513{
514 return new XFillBmpSizeYItem( *this );
515}
516
518(
519 SfxItemPresentation /*ePres*/,
520 MapUnit /*eCoreUnit*/,
521 MapUnit /*ePresUnit*/,
522 OUString& rText, const IntlWrapper&
523) const
524{
525 rText.clear();
526 return true;
527}
528
530{
531 return GetValue() > 0;
532}
533
534
537{
538}
539
541{
542 return new XFillBmpSizeLogItem( *this );
543}
544
546(
547 SfxItemPresentation /*ePres*/,
548 MapUnit /*eCoreUnit*/,
549 MapUnit /*ePresUnit*/,
550 OUString& rText, const IntlWrapper&
551) const
552{
553 rText.clear();
554 return true;
555}
556
557
558
561{
562}
563
565{
566 return new XFillBmpTileOffsetXItem( *this );
567}
568
570(
571 SfxItemPresentation /*ePres*/,
572 MapUnit /*eCoreUnit*/,
573 MapUnit /*ePresUnit*/,
574 OUString& rText, const IntlWrapper&
575) const
576{
577 rText.clear();
578 return true;
579}
580
581
584{
585}
586
588{
589 return new XFillBmpTileOffsetYItem( *this );
590}
591
593(
594 SfxItemPresentation /*ePres*/,
595 MapUnit /*eCoreUnit*/,
596 MapUnit /*ePresUnit*/,
597 OUString& rText, const IntlWrapper&
598) const
599{
600 rText.clear();
601 return true;
602}
603
606{
607}
608
610{
611 return new XFillBmpStretchItem( *this );
612}
613
615(
616 SfxItemPresentation /*ePres*/,
617 MapUnit /*eCoreUnit*/,
618 MapUnit /*ePresUnit*/,
619 OUString& rText, const IntlWrapper&
620) const
621{
622 rText.clear();
623 return true;
624}
625
627{
628 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBmpStretchItem"));
629 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
630 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
631 (void)xmlTextWriterEndElement(pWriter);
632}
633
634
637{
638}
639
641{
642 return new XFillBmpPosOffsetXItem( *this );
643}
644
646(
647 SfxItemPresentation /*ePres*/,
648 MapUnit /*eCoreUnit*/,
649 MapUnit /*ePresUnit*/,
650 OUString& rText, const IntlWrapper&
651) const
652{
653 rText.clear();
654 return true;
655}
656
657
660{
661}
662
664{
665 return new XFillBmpPosOffsetYItem( *this );
666}
667
669(
670 SfxItemPresentation /*ePres*/,
671 MapUnit /*eCoreUnit*/,
672 MapUnit /*ePresUnit*/,
673 OUString& rText, const IntlWrapper&
674) const
675{
676 rText.clear();
677 return true;
678}
679
682{
683}
684
686{
687 return new XFillBackgroundItem( *this );
688}
689
691 MapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper&) const
692{
693 rText.clear();
694 return true;
695}
696
698{
699 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBackgroundItem"));
700 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
701 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
702 (void)xmlTextWriterEndElement(pWriter);
703}
704
707{
708}
709
711{
712 return new XFillUseSlideBackgroundItem( *this );
713}
714
716 MapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper&) const
717{
718 rText.clear();
719 return true;
720}
721
723{
724 (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillUseSlideBackgroundItem"));
725 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
726 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::boolean(GetValue()).getStr()));
727 (void)xmlTextWriterEndElement(pWriter);
728}
729
730
731/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: xattr2.cxx:233
virtual bool operator==(const SfxPoolItem &) const override
Definition: xattr2.cxx:200
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: xattr2.cxx:227
virtual AffineMatrixItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:222
css::geometry::AffineMatrix2D maMatrix
virtual ~AffineMatrixItem() override
Definition: xattr2.cxx:196
AffineMatrixItem(const css::geometry::AffineMatrix2D *pMatrix)
Definition: xattr2.cxx:172
static const AllSettings & GetSettings()
sal_Int32 GetValue() const
sal_uInt16 GetValue() const
bool GetValue() const
sal_uInt16 Which() const
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: xattr2.cxx:697
XFillBackgroundItem(bool bFill=false)
Definition: xattr2.cxx:680
virtual SVX_DLLPRIVATE XFillBackgroundItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:685
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:690
virtual SVX_DLLPRIVATE sal_uInt16 GetValueCount() const override
Definition: xattr2.cxx:464
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:453
XFillBmpPosItem(RectPoint eRP=RectPoint::MM)
Definition: xattr2.cxx:442
virtual SVX_DLLPRIVATE XFillBmpPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:447
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: xattr2.cxx:469
XFillBmpPosOffsetXItem(sal_uInt16 nOffPosX=0)
Definition: xattr2.cxx:635
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:646
virtual SVX_DLLPRIVATE XFillBmpPosOffsetXItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:640
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:669
XFillBmpPosOffsetYItem(sal_uInt16 nOffPosY=0)
Definition: xattr2.cxx:658
virtual SVX_DLLPRIVATE XFillBmpPosOffsetYItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:663
virtual SVX_DLLPRIVATE XFillBmpSizeLogItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:540
XFillBmpSizeLogItem(bool bLog=true)
Definition: xattr2.cxx:535
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:546
virtual SVX_DLLPRIVATE XFillBmpSizeXItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:483
XFillBmpSizeXItem(tools::Long nSizeX=0)
Definition: xattr2.cxx:478
virtual SVX_DLLPRIVATE bool HasMetrics() const override
Definition: xattr2.cxx:500
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:489
virtual SVX_DLLPRIVATE bool HasMetrics() const override
Definition: xattr2.cxx:529
XFillBmpSizeYItem(tools::Long nSizeY=0)
Definition: xattr2.cxx:507
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:518
virtual SVX_DLLPRIVATE XFillBmpSizeYItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:512
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: xattr2.cxx:626
XFillBmpStretchItem(bool bStretch=true)
Definition: xattr2.cxx:604
virtual XFillBmpStretchItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:609
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:615
virtual XFillBmpTileItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:415
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: xattr2.cxx:432
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:421
XFillBmpTileItem(bool bTile=true)
Definition: xattr2.cxx:410
virtual SVX_DLLPRIVATE XFillBmpTileOffsetXItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:564
XFillBmpTileOffsetXItem(sal_uInt16 nOffX=0)
Definition: xattr2.cxx:559
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:570
virtual SVX_DLLPRIVATE XFillBmpTileOffsetYItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:587
XFillBmpTileOffsetYItem(sal_uInt16 nOffX=0)
Definition: xattr2.cxx:582
virtual SVX_DLLPRIVATE bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:593
virtual XFillTransparenceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:336
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:342
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: xattr2.cxx:365
XFillTransparenceItem(sal_uInt16 nFillTransparence=0)
Definition: xattr2.cxx:331
Item to enable slide background for filled objects.
void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: xattr2.cxx:722
XFillUseSlideBackgroundItem(bool bFill=false)
Definition: xattr2.cxx:705
virtual XFillUseSlideBackgroundItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:710
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:715
XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence=0)
Definition: xattr2.cxx:374
virtual XFormTextShadowTranspItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:379
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:396
virtual XGradientStepCountItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:390
XGradientStepCountItem(sal_uInt16 nStepCount=0)
Definition: xattr2.cxx:385
css::drawing::LineCap GetValue() const
Definition: xattr2.cxx:321
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: xattr2.cxx:289
XLineCapItem(css::drawing::LineCap eLineCap=css::drawing::LineCap_BUTT)
Definition: xattr2.cxx:247
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:257
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: xattr2.cxx:282
virtual sal_uInt16 GetValueCount() const override
Definition: xattr2.cxx:315
static SfxPoolItem * CreateDefault()
Definition: xattr2.cxx:245
virtual XLineCapItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:252
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:100
XLineJointItem(css::drawing::LineJoint eLineJoint=css::drawing::LineJoint_ROUND)
Definition: xattr2.cxx:90
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: xattr2.cxx:140
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: xattr2.cxx:147
virtual sal_uInt16 GetValueCount() const override
Definition: xattr2.cxx:165
static SfxPoolItem * CreateDefault()
Definition: xattr2.cxx:88
virtual XLineJointItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:95
XLineTransparenceItem(sal_uInt16 nLineTransparence=0)
Definition: xattr2.cxx:53
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: xattr2.cxx:64
virtual XLineTransparenceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: xattr2.cxx:58
static OUString formatPercent(double dNumber, const LanguageTag &rLangTag)
OUString SvxResId(TranslateId aId)
Definition: dialmgr.cxx:24
struct _xmlTextWriter * xmlTextWriterPtr
MapUnit
long Long
SfxItemPresentation
RectPoint
Definition: rectenum.hxx:23
unsigned char sal_uInt8
constexpr TypedWhichId< XFillBmpPosOffsetYItem > XATTR_FILLBMP_POSOFFSETY(XATTR_FILL_FIRST+18)
constexpr TypedWhichId< XGradientStepCountItem > XATTR_GRADIENTSTEPCOUNT(XATTR_FILL_FIRST+6)
constexpr TypedWhichId< XFillBmpPosItem > XATTR_FILLBMP_POS(XATTR_FILL_FIRST+8)
constexpr TypedWhichId< XFillUseSlideBackgroundItem > XATTR_FILLUSESLIDEBACKGROUND(XATTR_FILL_FIRST+20)
constexpr TypedWhichId< XLineJointItem > XATTR_LINEJOINT(XATTR_LINE_FIRST+11)
constexpr TypedWhichId< XFillBmpTileOffsetXItem > XATTR_FILLBMP_TILEOFFSETX(XATTR_FILL_FIRST+14)
constexpr TypedWhichId< XFillTransparenceItem > XATTR_FILLTRANSPARENCE(XATTR_FILL_FIRST+5)
constexpr TypedWhichId< XFormTextShadowTranspItem > XATTR_FORMTXTSHDWTRANSP(XATTR_TEXT_FIRST+11)
constexpr TypedWhichId< SfxMetricItem > XATTR_FILLBMP_SIZEX(XATTR_FILL_FIRST+9)
constexpr TypedWhichId< XLineCapItem > XATTR_LINECAP(XATTR_LINE_FIRST+12)
constexpr TypedWhichId< XFillBmpPosOffsetXItem > XATTR_FILLBMP_POSOFFSETX(XATTR_FILL_FIRST+17)
constexpr TypedWhichId< XFillBmpTileOffsetYItem > XATTR_FILLBMP_TILEOFFSETY(XATTR_FILL_FIRST+15)
constexpr TypedWhichId< XFillBmpSizeYItem > XATTR_FILLBMP_SIZEY(XATTR_FILL_FIRST+10)
constexpr TypedWhichId< XFillBmpStretchItem > XATTR_FILLBMP_STRETCH(XATTR_FILL_FIRST+16)
constexpr TypedWhichId< XFillBmpSizeLogItem > XATTR_FILLBMP_SIZELOG(XATTR_FILL_FIRST+13)
constexpr TypedWhichId< XFillBmpTileItem > XATTR_FILLBMP_TILE(XATTR_FILL_FIRST+7)
constexpr TypedWhichId< XFillBackgroundItem > XATTR_FILLBACKGROUND(XATTR_FILL_FIRST+19)
constexpr TypedWhichId< XLineTransparenceItem > XATTR_LINETRANSPARENCE(XATTR_LINE_FIRST+10)