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