LibreOffice Module svx (master)  1
svdattr.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/TextFitToSizeType.hpp>
21 #include <com/sun/star/drawing/TextHorizontalAdjust.hpp>
22 #include <com/sun/star/drawing/TextVerticalAdjust.hpp>
23 #include <com/sun/star/drawing/TextAnimationKind.hpp>
24 #include <com/sun/star/uno/Any.hxx>
25 #include <com/sun/star/drawing/TextAnimationDirection.hpp>
26 #include <com/sun/star/drawing/ConnectorType.hpp>
27 #include <com/sun/star/drawing/MeasureKind.hpp>
28 #include <com/sun/star/drawing/MeasureTextHorzPos.hpp>
29 #include <com/sun/star/drawing/MeasureTextVertPos.hpp>
30 #include <com/sun/star/drawing/CircleKind.hpp>
31 
32 #include <editeng/boxitem.hxx>
33 #include <editeng/eeitem.hxx>
34 #include <editeng/lineitem.hxx>
35 #include <editeng/xmlcnitm.hxx>
38 #include <osl/diagnose.h>
39 #include <i18nutil/unicode.hxx>
40 #include <tools/bigint.hxx>
41 #include <unotools/intlwrapper.hxx>
43 #include <vcl/svapp.hxx>
44 #include <vcl/settings.hxx>
45 
46 #include <svx/strings.hrc>
47 #include <svx/dialmgr.hxx>
48 #include <svx/sdgcpitm.hxx>
49 #include <svx/sdtfchim.hxx>
50 #include <svx/sdasitm.hxx>
51 #include <sdgcoitm.hxx>
52 #include <svx/sdggaitm.hxx>
53 #include <sdginitm.hxx>
54 #include <svx/sdgluitm.hxx>
55 #include <svx/sdgmoitm.hxx>
56 #include <sdgtritm.hxx>
57 #include <svx/sdprcitm.hxx>
58 #include <svx/sdtaaitm.hxx>
59 #include <svx/sdtacitm.hxx>
60 #include <svx/sdtaditm.hxx>
61 #include <svx/sdtaiitm.hxx>
62 #include <svx/sdtaitm.hxx>
63 #include <svx/sdtakitm.hxx>
64 #include <svx/sdtayitm.hxx>
65 #include <svx/sdtfsitm.hxx>
66 #include <svx/svdmodel.hxx>
67 #include <svx/svdpool.hxx>
68 #include <svx/svdtrans.hxx>
69 #include <svx/svx3ditems.hxx>
70 #include <svx/svxids.hrc>
71 #include <sxallitm.hxx>
72 #include <sxcaitm.hxx>
73 #include <svx/sxcecitm.hxx>
74 #include <svx/sxcgitm.hxx>
75 #include <sxcikitm.hxx>
76 #include <svx/sxcllitm.hxx>
77 #include <svx/sxctitm.hxx>
78 #include <svx/sxekitm.hxx>
79 #include <svx/sxelditm.hxx>
80 #include <svx/sxenditm.hxx>
81 #include <sxfiitm.hxx>
82 #include <sxlayitm.hxx>
83 #include <sxlogitm.hxx>
84 #include <svx/sxmbritm.hxx>
85 #include <sxmfsitm.hxx>
86 #include <sxmkitm.hxx>
87 #include <sxmoitm.hxx>
88 #include <sxmovitm.hxx>
89 #include <sxmsitm.hxx>
90 #include <sxmtaitm.hxx>
91 #include <svx/sxmtfitm.hxx>
92 #include <svx/sxmtpitm.hxx>
93 #include <svx/sxmtritm.hxx>
94 #include <svx/sxmuitm.hxx>
95 #include <svx/xcolit.hxx>
96 #include <sxoneitm.hxx>
97 #include <sxopitm.hxx>
98 #include <sxreaitm.hxx>
99 #include <sxreoitm.hxx>
100 #include <sxroaitm.hxx>
101 #include <sxrooitm.hxx>
102 #include <sxsaitm.hxx>
103 #include <sxsalitm.hxx>
104 #include <sxsiitm.hxx>
105 #include <sxsoitm.hxx>
106 #include <sxtraitm.hxx>
107 #include <libxml/xmlwriter.h>
108 
109 using namespace ::com::sun::star;
110 
112  SfxItemPool* _pMaster)
113 : XOutdevItemPool(_pMaster)
114 {
115  // prepare some constants
116  const Color aNullCol(COL_BLACK);
117  const sal_Int32 nDefEdgeDist(500); // Defaulting hard for Draw (100TH_MM) currently. MapMode will have to be taken into account in the future.
118 
119  // init the non-persistent items
120  for(sal_uInt16 i(SDRATTR_NOTPERSIST_FIRST); i <= SDRATTR_NOTPERSIST_LAST; i++)
121  {
122  mpLocalItemInfos[i - SDRATTR_START]._bPoolable = false;
123  }
124 
125  // init own PoolDefaults
126  std::vector<SfxPoolItem*>& rPoolDefaults = *mpLocalPoolDefaults;
127  rPoolDefaults[SDRATTR_SHADOW -SDRATTR_START]=new SdrOnOffItem(SDRATTR_SHADOW, false);
128  rPoolDefaults[SDRATTR_SHADOWCOLOR -SDRATTR_START]=new XColorItem(SDRATTR_SHADOWCOLOR, aNullCol);
171  rPoolDefaults[SDRATTR_TEXT_USEFIXEDCELLHEIGHT -SDRATTR_START]=new SdrTextFixedCellHeightItem;
173  rPoolDefaults[SDRATTR_EDGEKIND -SDRATTR_START]=new SdrEdgeKindItem;
174  rPoolDefaults[SDRATTR_EDGENODE1HORZDIST-SDRATTR_START]=new SdrEdgeNode1HorzDistItem(nDefEdgeDist);
175  rPoolDefaults[SDRATTR_EDGENODE1VERTDIST-SDRATTR_START]=new SdrEdgeNode1VertDistItem(nDefEdgeDist);
176  rPoolDefaults[SDRATTR_EDGENODE2HORZDIST-SDRATTR_START]=new SdrEdgeNode2HorzDistItem(nDefEdgeDist);
177  rPoolDefaults[SDRATTR_EDGENODE2VERTDIST-SDRATTR_START]=new SdrEdgeNode2VertDistItem(nDefEdgeDist);
205  rPoolDefaults[SDRATTR_CIRCKIND -SDRATTR_START]=new SdrCircKindItem;
207  rPoolDefaults[SDRATTR_CIRCENDANGLE -SDRATTR_START]=new SdrAngleItem(SDRATTR_CIRCENDANGLE, 36000_deg100);
212  rPoolDefaults[SDRATTR_LAYERID -SDRATTR_START]=new SdrLayerIdItem(SdrLayerID(0));
225  rPoolDefaults[SDRATTR_ROTATEANGLE -SDRATTR_START]=new SdrAngleItem(SDRATTR_ROTATEANGLE, 0_deg100);
227  rPoolDefaults[SDRATTR_MOVEX -SDRATTR_START]=new SdrMoveXItem;
228  rPoolDefaults[SDRATTR_MOVEY -SDRATTR_START]=new SdrMoveYItem;
243  rPoolDefaults[SDRATTR_TEXTDIRECTION -SDRATTR_START]=new SvxWritingModeItem(css::text::WritingMode_LR_TB, SDRATTR_TEXTDIRECTION);
244  rPoolDefaults[ SDRATTR_GRAFRED - SDRATTR_START] = new SdrGrafRedItem;
245  rPoolDefaults[ SDRATTR_GRAFGREEN - SDRATTR_START] = new SdrGrafGreenItem;
246  rPoolDefaults[ SDRATTR_GRAFBLUE - SDRATTR_START] = new SdrGrafBlueItem;
249  rPoolDefaults[ SDRATTR_GRAFGAMMA - SDRATTR_START] = new SdrGrafGamma100Item;
250  rPoolDefaults[ SDRATTR_GRAFTRANSPARENCE - SDRATTR_START] = new SdrGrafTransparenceItem;
251  rPoolDefaults[ SDRATTR_GRAFINVERT - SDRATTR_START] = new SdrGrafInvertItem;
252  rPoolDefaults[ SDRATTR_GRAFMODE - SDRATTR_START] = new SdrGrafModeItem;
253  rPoolDefaults[ SDRATTR_GRAFCROP - SDRATTR_START] = new SdrGrafCropItem;
256  rPoolDefaults[ SDRATTR_3DOBJ_DEPTH - SDRATTR_START ] = new SfxUInt32Item(SDRATTR_3DOBJ_DEPTH, 1000);
261  rPoolDefaults[ SDRATTR_3DOBJ_NORMALS_KIND - SDRATTR_START ] = new Svx3DNormalsKindItem;
263  rPoolDefaults[ SDRATTR_3DOBJ_TEXTURE_PROJ_X - SDRATTR_START ] = new Svx3DTextureProjectionXItem;
264  rPoolDefaults[ SDRATTR_3DOBJ_TEXTURE_PROJ_Y - SDRATTR_START ] = new Svx3DTextureProjectionYItem;
266  rPoolDefaults[ SDRATTR_3DOBJ_MAT_COLOR - SDRATTR_START ] = new SvxColorItem(Color(0x0000b8ff), SDRATTR_3DOBJ_MAT_COLOR);
270  rPoolDefaults[ SDRATTR_3DOBJ_TEXTURE_KIND - SDRATTR_START ] = new Svx3DTextureKindItem;
271  rPoolDefaults[ SDRATTR_3DOBJ_TEXTURE_MODE - SDRATTR_START ] = new Svx3DTextureModeItem;
276  rPoolDefaults[ SDRATTR_3DOBJ_CLOSE_FRONT - SDRATTR_START ] = new Svx3DCloseFrontItem;
277  rPoolDefaults[ SDRATTR_3DOBJ_CLOSE_BACK - SDRATTR_START ] = new Svx3DCloseBackItem;
279  rPoolDefaults[ SDRATTR_3DSCENE_PERSPECTIVE - SDRATTR_START ] = new Svx3DPerspectiveItem;
300  rPoolDefaults[ SDRATTR_3DSCENE_LIGHTDIRECTION_1 - SDRATTR_START ] = new SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_1, basegfx::B3DVector(0.57735026918963, 0.57735026918963, 0.57735026918963));
309  rPoolDefaults[ SDRATTR_3DSCENE_SHADE_MODE - SDRATTR_START ] = new Svx3DShadeModeItem;
313 
314  SvxBoxItem* pboxItem = new SvxBoxItem( SDRATTR_TABLE_BORDER );
315  pboxItem->SetAllDistances( 100 );
316  rPoolDefaults[ SDRATTR_TABLE_BORDER - SDRATTR_START ] = pboxItem;
317 
319 
320  pBoxInfoItem->SetTable( true );
321  pBoxInfoItem->SetDist( true); // always show margin field
322  pBoxInfoItem->SetValid( SvxBoxInfoItemValidFlags::DISABLE ); // some lines may have DontCare state only in tables
323 
324  rPoolDefaults[ SDRATTR_TABLE_BORDER_INNER - SDRATTR_START ] = pBoxInfoItem;
328 
330  rPoolDefaults[ SDRATTR_GLOW_COLOR - SDRATTR_START ] = new XColorItem(SDRATTR_GLOW_COLOR, aNullCol);
332 
334 
335  // set own ItemInfos
336  mpLocalItemInfos[SDRATTR_SHADOW-SDRATTR_START]._nSID=SID_ATTR_FILL_SHADOW;
337  mpLocalItemInfos[SDRATTR_SHADOWCOLOR-SDRATTR_START]._nSID=SID_ATTR_SHADOW_COLOR;
338  mpLocalItemInfos[SDRATTR_SHADOWTRANSPARENCE-SDRATTR_START]._nSID=SID_ATTR_SHADOW_TRANSPARENCE;
339  mpLocalItemInfos[SDRATTR_SHADOWBLUR-SDRATTR_START]._nSID=SID_ATTR_SHADOW_BLUR;
340  mpLocalItemInfos[SDRATTR_SHADOWXDIST-SDRATTR_START]._nSID=SID_ATTR_SHADOW_XDISTANCE;
341  mpLocalItemInfos[SDRATTR_SHADOWYDIST-SDRATTR_START]._nSID=SID_ATTR_SHADOW_YDISTANCE;
342  mpLocalItemInfos[SDRATTR_TEXT_FITTOSIZE-SDRATTR_START]._nSID=SID_ATTR_TEXT_FITTOSIZE;
343  mpLocalItemInfos[SDRATTR_GRAFCROP-SDRATTR_START]._nSID=SID_ATTR_GRAF_CROP;
344 
345  mpLocalItemInfos[SDRATTR_TABLE_BORDER - SDRATTR_START ]._nSID = SID_ATTR_BORDER_OUTER;
346  mpLocalItemInfos[SDRATTR_TABLE_BORDER_INNER - SDRATTR_START ]._nSID = SID_ATTR_BORDER_INNER;
347  mpLocalItemInfos[SDRATTR_TABLE_BORDER_TLBR - SDRATTR_START ]._nSID = SID_ATTR_BORDER_DIAG_TLBR;
348  mpLocalItemInfos[SDRATTR_TABLE_BORDER_BLTR - SDRATTR_START ]._nSID = SID_ATTR_BORDER_DIAG_BLTR;
349 
350  mpLocalItemInfos[SDRATTR_GLOW_RADIUS - SDRATTR_START]._nSID = SID_ATTR_GLOW_RADIUS;
351  mpLocalItemInfos[SDRATTR_GLOW_COLOR - SDRATTR_START]._nSID = SID_ATTR_GLOW_COLOR;
352  mpLocalItemInfos[SDRATTR_GLOW_TRANSPARENCY - SDRATTR_START]._nSID = SID_ATTR_GLOW_TRANSPARENCY;
353 
354  mpLocalItemInfos[SDRATTR_SOFTEDGE_RADIUS - SDRATTR_START]._nSID = SID_ATTR_SOFTEDGE_RADIUS;
355 
356  // it's my own creation level, set Defaults and ItemInfos
359 }
360 
361 // copy ctor, so that static defaults are cloned
362 // (Parameter 2 = sal_True)
364 : XOutdevItemPool(rPool)
365 {
366 }
367 
369 {
370  return new SdrItemPool(*this);
371 }
372 
374 {
375  // split pools before destroying
376  SetSecondaryPool(nullptr);
377 }
378 
380  const SfxPoolItem& rItem,
381  MapUnit ePresentationMetric, OUString& rText,
382  const IntlWrapper& rIntlWrapper) const
383 {
384  if (!IsInvalidItem(&rItem)) {
385  sal_uInt16 nWhich=rItem.Which();
386  if (nWhich>=SDRATTR_SHADOW_FIRST && nWhich<=SDRATTR_END) {
387  rItem.GetPresentation(SfxItemPresentation::Nameless,
388  GetMetric(nWhich),ePresentationMetric,rText,
389  rIntlWrapper);
390  rText = GetItemName(nWhich) + " " + rText;
391 
392  return true;
393  }
394  }
395  return XOutdevItemPool::GetPresentation(rItem,ePresentationMetric,rText,rIntlWrapper);
396 }
397 
398 OUString SdrItemPool::GetItemName(sal_uInt16 nWhich)
399 {
400  const char* pResId = SIP_UNKNOWN_ATTR;
401 
402  switch (nWhich)
403  {
404  case XATTR_LINESTYLE : pResId = SIP_XA_LINESTYLE;break;
405  case XATTR_LINEDASH : pResId = SIP_XA_LINEDASH;break;
406  case XATTR_LINEWIDTH : pResId = SIP_XA_LINEWIDTH;break;
407  case XATTR_LINECOLOR : pResId = SIP_XA_LINECOLOR;break;
408  case XATTR_LINESTART : pResId = SIP_XA_LINESTART;break;
409  case XATTR_LINEEND : pResId = SIP_XA_LINEEND;break;
410  case XATTR_LINESTARTWIDTH : pResId = SIP_XA_LINESTARTWIDTH;break;
411  case XATTR_LINEENDWIDTH : pResId = SIP_XA_LINEENDWIDTH;break;
412  case XATTR_LINESTARTCENTER : pResId = SIP_XA_LINESTARTCENTER;break;
413  case XATTR_LINEENDCENTER : pResId = SIP_XA_LINEENDCENTER;break;
414  case XATTR_LINETRANSPARENCE : pResId = SIP_XA_LINETRANSPARENCE;break;
415  case XATTR_LINEJOINT : pResId = SIP_XA_LINEJOINT;break;
416  case XATTRSET_LINE : pResId = SIP_XATTRSET_LINE;break;
417 
418  case XATTR_FILLSTYLE : pResId = SIP_XA_FILLSTYLE;break;
419  case XATTR_FILLCOLOR : pResId = SIP_XA_FILLCOLOR;break;
420  case XATTR_FILLGRADIENT : pResId = SIP_XA_FILLGRADIENT;break;
421  case XATTR_FILLHATCH : pResId = SIP_XA_FILLHATCH;break;
422  case XATTR_FILLBITMAP : pResId = SIP_XA_FILLBITMAP;break;
423  case XATTR_FILLTRANSPARENCE : pResId = SIP_XA_FILLTRANSPARENCE;break;
424  case XATTR_GRADIENTSTEPCOUNT : pResId = SIP_XA_GRADIENTSTEPCOUNT;break;
425  case XATTR_FILLBMP_TILE : pResId = SIP_XA_FILLBMP_TILE;break;
426  case XATTR_FILLBMP_POS : pResId = SIP_XA_FILLBMP_POS;break;
427  case XATTR_FILLBMP_SIZEX : pResId = SIP_XA_FILLBMP_SIZEX;break;
428  case XATTR_FILLBMP_SIZEY : pResId = SIP_XA_FILLBMP_SIZEY;break;
429  case XATTR_FILLFLOATTRANSPARENCE: pResId = SIP_XA_FILLFLOATTRANSPARENCE;break;
430  case XATTR_SECONDARYFILLCOLOR : pResId = SIP_XA_SECONDARYFILLCOLOR;break;
431  case XATTR_FILLBMP_SIZELOG : pResId = SIP_XA_FILLBMP_SIZELOG;break;
432  case XATTR_FILLBMP_TILEOFFSETX : pResId = SIP_XA_FILLBMP_TILEOFFSETX;break;
433  case XATTR_FILLBMP_TILEOFFSETY : pResId = SIP_XA_FILLBMP_TILEOFFSETY;break;
434  case XATTR_FILLBMP_STRETCH : pResId = SIP_XA_FILLBMP_STRETCH;break;
435  case XATTR_FILLBMP_POSOFFSETX : pResId = SIP_XA_FILLBMP_POSOFFSETX;break;
436  case XATTR_FILLBMP_POSOFFSETY : pResId = SIP_XA_FILLBMP_POSOFFSETY;break;
437  case XATTR_FILLBACKGROUND : pResId = SIP_XA_FILLBACKGROUND;break;
438 
439  case XATTRSET_FILL : pResId = SIP_XATTRSET_FILL;break;
440 
441  case XATTR_FORMTXTSTYLE : pResId = SIP_XA_FORMTXTSTYLE;break;
442  case XATTR_FORMTXTADJUST : pResId = SIP_XA_FORMTXTADJUST;break;
443  case XATTR_FORMTXTDISTANCE : pResId = SIP_XA_FORMTXTDISTANCE;break;
444  case XATTR_FORMTXTSTART : pResId = SIP_XA_FORMTXTSTART;break;
445  case XATTR_FORMTXTMIRROR : pResId = SIP_XA_FORMTXTMIRROR;break;
446  case XATTR_FORMTXTOUTLINE : pResId = SIP_XA_FORMTXTOUTLINE;break;
447  case XATTR_FORMTXTSHADOW : pResId = SIP_XA_FORMTXTSHADOW;break;
448  case XATTR_FORMTXTSHDWCOLOR : pResId = SIP_XA_FORMTXTSHDWCOLOR;break;
449  case XATTR_FORMTXTSHDWXVAL : pResId = SIP_XA_FORMTXTSHDWXVAL;break;
450  case XATTR_FORMTXTSHDWYVAL : pResId = SIP_XA_FORMTXTSHDWYVAL;break;
451  case XATTR_FORMTXTHIDEFORM : pResId = SIP_XA_FORMTXTHIDEFORM;break;
452  case XATTR_FORMTXTSHDWTRANSP: pResId = SIP_XA_FORMTXTSHDWTRANSP;break;
453 
454  case SDRATTR_SHADOW : pResId = SIP_SA_SHADOW;break;
455  case SDRATTR_SHADOWCOLOR : pResId = SIP_SA_SHADOWCOLOR;break;
456  case SDRATTR_SHADOWXDIST : pResId = SIP_SA_SHADOWXDIST;break;
457  case SDRATTR_SHADOWYDIST : pResId = SIP_SA_SHADOWYDIST;break;
458  case SDRATTR_SHADOWTRANSPARENCE: pResId = SIP_SA_SHADOWTRANSPARENCE;break;
459  case SDRATTR_SHADOWBLUR : pResId = SIP_SA_SHADOWBLUR;break;
460  case SDRATTR_SHADOW3D : pResId = SIP_SA_SHADOW3D;break;
461  case SDRATTR_SHADOWPERSP : pResId = SIP_SA_SHADOWPERSP;break;
462 
463  case SDRATTR_GLOW_RADIUS : pResId = SIP_SA_GLOW_RADIUS;break;
464  case SDRATTR_GLOW_COLOR : pResId = SIP_SA_GLOW_COLOR;break;
465  case SDRATTR_GLOW_TRANSPARENCY : pResId = SIP_SA_GLOW_TRANSPARENCY;break;
466 
467  case SDRATTR_SOFTEDGE_RADIUS : pResId = SIP_SA_SOFTEDGE_RADIUS; break;
468 
469  case SDRATTR_CAPTIONTYPE : pResId = SIP_SA_CAPTIONTYPE;break;
470  case SDRATTR_CAPTIONFIXEDANGLE: pResId = SIP_SA_CAPTIONFIXEDANGLE;break;
471  case SDRATTR_CAPTIONANGLE : pResId = SIP_SA_CAPTIONANGLE;break;
472  case SDRATTR_CAPTIONGAP : pResId = SIP_SA_CAPTIONGAP;break;
473  case SDRATTR_CAPTIONESCDIR : pResId = SIP_SA_CAPTIONESCDIR;break;
474  case SDRATTR_CAPTIONESCISREL : pResId = SIP_SA_CAPTIONESCISREL;break;
475  case SDRATTR_CAPTIONESCREL : pResId = SIP_SA_CAPTIONESCREL;break;
476  case SDRATTR_CAPTIONESCABS : pResId = SIP_SA_CAPTIONESCABS;break;
477  case SDRATTR_CAPTIONLINELEN : pResId = SIP_SA_CAPTIONLINELEN;break;
478  case SDRATTR_CAPTIONFITLINELEN: pResId = SIP_SA_CAPTIONFITLINELEN;break;
479 
480  case SDRATTR_ECKENRADIUS : pResId = SIP_SA_ECKENRADIUS;break;
481  case SDRATTR_TEXT_MINFRAMEHEIGHT : pResId = SIP_SA_TEXT_MINFRAMEHEIGHT;break;
482  case SDRATTR_TEXT_AUTOGROWHEIGHT : pResId = SIP_SA_TEXT_AUTOGROWHEIGHT;break;
483  case SDRATTR_TEXT_FITTOSIZE : pResId = SIP_SA_TEXT_FITTOSIZE;break;
484  case SDRATTR_TEXT_LEFTDIST : pResId = SIP_SA_TEXT_LEFTDIST;break;
485  case SDRATTR_TEXT_RIGHTDIST : pResId = SIP_SA_TEXT_RIGHTDIST;break;
486  case SDRATTR_TEXT_UPPERDIST : pResId = SIP_SA_TEXT_UPPERDIST;break;
487  case SDRATTR_TEXT_LOWERDIST : pResId = SIP_SA_TEXT_LOWERDIST;break;
488  case SDRATTR_TEXT_VERTADJUST : pResId = SIP_SA_TEXT_VERTADJUST;break;
489  case SDRATTR_TEXT_MAXFRAMEHEIGHT : pResId = SIP_SA_TEXT_MAXFRAMEHEIGHT;break;
490  case SDRATTR_TEXT_MINFRAMEWIDTH : pResId = SIP_SA_TEXT_MINFRAMEWIDTH;break;
491  case SDRATTR_TEXT_MAXFRAMEWIDTH : pResId = SIP_SA_TEXT_MAXFRAMEWIDTH;break;
492  case SDRATTR_TEXT_AUTOGROWWIDTH : pResId = SIP_SA_TEXT_AUTOGROWWIDTH;break;
493  case SDRATTR_TEXT_HORZADJUST : pResId = SIP_SA_TEXT_HORZADJUST;break;
494  case SDRATTR_TEXT_ANIKIND : pResId = SIP_SA_TEXT_ANIKIND;break;
495  case SDRATTR_TEXT_ANIDIRECTION : pResId = SIP_SA_TEXT_ANIDIRECTION;break;
496  case SDRATTR_TEXT_ANISTARTINSIDE : pResId = SIP_SA_TEXT_ANISTARTINSIDE;break;
497  case SDRATTR_TEXT_ANISTOPINSIDE : pResId = SIP_SA_TEXT_ANISTOPINSIDE;break;
498  case SDRATTR_TEXT_ANICOUNT : pResId = SIP_SA_TEXT_ANICOUNT;break;
499  case SDRATTR_TEXT_ANIDELAY : pResId = SIP_SA_TEXT_ANIDELAY;break;
500  case SDRATTR_TEXT_ANIAMOUNT : pResId = SIP_SA_TEXT_ANIAMOUNT;break;
501  case SDRATTR_TEXT_CONTOURFRAME : pResId = SIP_SA_TEXT_CONTOURFRAME;break;
502  case SDRATTR_XMLATTRIBUTES : pResId = SIP_SA_XMLATTRIBUTES;break;
503  case SDRATTR_TEXT_USEFIXEDCELLHEIGHT: pResId = SIP_SA_TEXT_USEFIXEDCELLHEIGHT;break;
504  case SDRATTR_TEXT_WORDWRAP : pResId = SIP_SA_WORDWRAP;break;
505  case SDRATTR_TEXT_CHAINNEXTNAME : pResId = SIP_SA_CHAINNEXTNAME;break;
506 
507  case SDRATTR_EDGEKIND : pResId = SIP_SA_EDGEKIND;break;
508  case SDRATTR_EDGENODE1HORZDIST : pResId = SIP_SA_EDGENODE1HORZDIST;break;
509  case SDRATTR_EDGENODE1VERTDIST : pResId = SIP_SA_EDGENODE1VERTDIST;break;
510  case SDRATTR_EDGENODE2HORZDIST : pResId = SIP_SA_EDGENODE2HORZDIST;break;
511  case SDRATTR_EDGENODE2VERTDIST : pResId = SIP_SA_EDGENODE2VERTDIST;break;
512  case SDRATTR_EDGENODE1GLUEDIST : pResId = SIP_SA_EDGENODE1GLUEDIST;break;
513  case SDRATTR_EDGENODE2GLUEDIST : pResId = SIP_SA_EDGENODE2GLUEDIST;break;
514  case SDRATTR_EDGELINEDELTACOUNT : pResId = SIP_SA_EDGELINEDELTACOUNT;break;
515  case SDRATTR_EDGELINE1DELTA : pResId = SIP_SA_EDGELINE1DELTA;break;
516  case SDRATTR_EDGELINE2DELTA : pResId = SIP_SA_EDGELINE2DELTA;break;
517  case SDRATTR_EDGELINE3DELTA : pResId = SIP_SA_EDGELINE3DELTA;break;
518 
519  case SDRATTR_MEASUREKIND : pResId = SIP_SA_MEASUREKIND;break;
520  case SDRATTR_MEASURETEXTHPOS : pResId = SIP_SA_MEASURETEXTHPOS;break;
521  case SDRATTR_MEASURETEXTVPOS : pResId = SIP_SA_MEASURETEXTVPOS;break;
522  case SDRATTR_MEASURELINEDIST : pResId = SIP_SA_MEASURELINEDIST;break;
523  case SDRATTR_MEASUREHELPLINEOVERHANG : pResId = SIP_SA_MEASUREHELPLINEOVERHANG;break;
524  case SDRATTR_MEASUREHELPLINEDIST : pResId = SIP_SA_MEASUREHELPLINEDIST;break;
525  case SDRATTR_MEASUREHELPLINE1LEN : pResId = SIP_SA_MEASUREHELPLINE1LEN;break;
526  case SDRATTR_MEASUREHELPLINE2LEN : pResId = SIP_SA_MEASUREHELPLINE2LEN;break;
527  case SDRATTR_MEASUREBELOWREFEDGE : pResId = SIP_SA_MEASUREBELOWREFEDGE;break;
528  case SDRATTR_MEASURETEXTROTA90 : pResId = SIP_SA_MEASURETEXTROTA90;break;
529  case SDRATTR_MEASURETEXTUPSIDEDOWN : pResId = SIP_SA_MEASURETEXTUPSIDEDOWN;break;
530  case SDRATTR_MEASUREOVERHANG : pResId = SIP_SA_MEASUREOVERHANG;break;
531  case SDRATTR_MEASUREUNIT : pResId = SIP_SA_MEASUREUNIT;break;
532  case SDRATTR_MEASURESCALE : pResId = SIP_SA_MEASURESCALE;break;
533  case SDRATTR_MEASURESHOWUNIT : pResId = SIP_SA_MEASURESHOWUNIT;break;
534  case SDRATTR_MEASUREFORMATSTRING : pResId = SIP_SA_MEASUREFORMATSTRING;break;
535  case SDRATTR_MEASURETEXTAUTOANGLE : pResId = SIP_SA_MEASURETEXTAUTOANGLE;break;
536  case SDRATTR_MEASURETEXTAUTOANGLEVIEW: pResId = SIP_SA_MEASURETEXTAUTOANGLEVIEW;break;
537  case SDRATTR_MEASURETEXTISFIXEDANGLE : pResId = SIP_SA_MEASURETEXTISFIXEDANGLE;break;
538  case SDRATTR_MEASURETEXTFIXEDANGLE : pResId = SIP_SA_MEASURETEXTFIXEDANGLE;break;
539  case SDRATTR_MEASUREDECIMALPLACES : pResId = SIP_SA_MEASUREDECIMALPLACES;break;
540 
541  case SDRATTR_CIRCKIND : pResId = SIP_SA_CIRCKIND;break;
542  case SDRATTR_CIRCSTARTANGLE: pResId = SIP_SA_CIRCSTARTANGLE;break;
543  case SDRATTR_CIRCENDANGLE : pResId = SIP_SA_CIRCENDANGLE;break;
544 
545  case SDRATTR_OBJMOVEPROTECT : pResId = SIP_SA_OBJMOVEPROTECT;break;
546  case SDRATTR_OBJSIZEPROTECT : pResId = SIP_SA_OBJSIZEPROTECT;break;
547  case SDRATTR_OBJPRINTABLE : pResId = SIP_SA_OBJPRINTABLE;break;
548  case SDRATTR_OBJVISIBLE : pResId = SIP_SA_OBJVISIBLE;break;
549  case SDRATTR_LAYERID : pResId = SIP_SA_LAYERID;break;
550  case SDRATTR_LAYERNAME : pResId = SIP_SA_LAYERNAME;break;
551  case SDRATTR_OBJECTNAME : pResId = SIP_SA_OBJECTNAME;break;
552  case SDRATTR_ALLPOSITIONX : pResId = SIP_SA_ALLPOSITIONX;break;
553  case SDRATTR_ALLPOSITIONY : pResId = SIP_SA_ALLPOSITIONY;break;
554  case SDRATTR_ALLSIZEWIDTH : pResId = SIP_SA_ALLSIZEWIDTH;break;
555  case SDRATTR_ALLSIZEHEIGHT : pResId = SIP_SA_ALLSIZEHEIGHT;break;
556  case SDRATTR_ONEPOSITIONX : pResId = SIP_SA_ONEPOSITIONX;break;
557  case SDRATTR_ONEPOSITIONY : pResId = SIP_SA_ONEPOSITIONY;break;
558  case SDRATTR_ONESIZEWIDTH : pResId = SIP_SA_ONESIZEWIDTH;break;
559  case SDRATTR_ONESIZEHEIGHT : pResId = SIP_SA_ONESIZEHEIGHT;break;
560  case SDRATTR_LOGICSIZEWIDTH : pResId = SIP_SA_LOGICSIZEWIDTH;break;
561  case SDRATTR_LOGICSIZEHEIGHT: pResId = SIP_SA_LOGICSIZEHEIGHT;break;
562  case SDRATTR_ROTATEANGLE : pResId = SIP_SA_ROTATEANGLE;break;
563  case SDRATTR_SHEARANGLE : pResId = SIP_SA_SHEARANGLE;break;
564  case SDRATTR_MOVEX : pResId = SIP_SA_MOVEX;break;
565  case SDRATTR_MOVEY : pResId = SIP_SA_MOVEY;break;
566  case SDRATTR_RESIZEXONE : pResId = SIP_SA_RESIZEXONE;break;
567  case SDRATTR_RESIZEYONE : pResId = SIP_SA_RESIZEYONE;break;
568  case SDRATTR_ROTATEONE : pResId = SIP_SA_ROTATEONE;break;
569  case SDRATTR_HORZSHEARONE : pResId = SIP_SA_HORZSHEARONE;break;
570  case SDRATTR_VERTSHEARONE : pResId = SIP_SA_VERTSHEARONE;break;
571  case SDRATTR_RESIZEXALL : pResId = SIP_SA_RESIZEXALL;break;
572  case SDRATTR_RESIZEYALL : pResId = SIP_SA_RESIZEYALL;break;
573  case SDRATTR_ROTATEALL : pResId = SIP_SA_ROTATEALL;break;
574  case SDRATTR_HORZSHEARALL : pResId = SIP_SA_HORZSHEARALL;break;
575  case SDRATTR_VERTSHEARALL : pResId = SIP_SA_VERTSHEARALL;break;
576  case SDRATTR_TRANSFORMREF1X : pResId = SIP_SA_TRANSFORMREF1X;break;
577  case SDRATTR_TRANSFORMREF1Y : pResId = SIP_SA_TRANSFORMREF1Y;break;
578  case SDRATTR_TRANSFORMREF2X : pResId = SIP_SA_TRANSFORMREF2X;break;
579  case SDRATTR_TRANSFORMREF2Y : pResId = SIP_SA_TRANSFORMREF2Y;break;
580 
581  case SDRATTR_GRAFRED : pResId = SIP_SA_GRAFRED;break;
582  case SDRATTR_GRAFGREEN : pResId = SIP_SA_GRAFGREEN;break;
583  case SDRATTR_GRAFBLUE : pResId = SIP_SA_GRAFBLUE;break;
584  case SDRATTR_GRAFLUMINANCE : pResId = SIP_SA_GRAFLUMINANCE;break;
585  case SDRATTR_GRAFCONTRAST : pResId = SIP_SA_GRAFCONTRAST;break;
586  case SDRATTR_GRAFGAMMA : pResId = SIP_SA_GRAFGAMMA;break;
587  case SDRATTR_GRAFTRANSPARENCE : pResId = SIP_SA_GRAFTRANSPARENCE;break;
588  case SDRATTR_GRAFINVERT : pResId = SIP_SA_GRAFINVERT;break;
589  case SDRATTR_GRAFMODE : pResId = SIP_SA_GRAFMODE;break;
590  case SDRATTR_GRAFCROP : pResId = SIP_SA_GRAFCROP;break;
591 
592  case EE_PARA_HYPHENATE : pResId = SIP_EE_PARA_HYPHENATE;break;
593  case EE_PARA_BULLETSTATE: pResId = SIP_EE_PARA_BULLETSTATE;break;
594  case EE_PARA_OUTLLRSPACE: pResId = SIP_EE_PARA_OUTLLRSPACE;break;
595  case EE_PARA_OUTLLEVEL : pResId = SIP_EE_PARA_OUTLLEVEL;break;
596  case EE_PARA_BULLET : pResId = SIP_EE_PARA_BULLET;break;
597  case EE_PARA_LRSPACE : pResId = SIP_EE_PARA_LRSPACE;break;
598  case EE_PARA_ULSPACE : pResId = SIP_EE_PARA_ULSPACE;break;
599  case EE_PARA_SBL : pResId = SIP_EE_PARA_SBL;break;
600  case EE_PARA_JUST : pResId = SIP_EE_PARA_JUST;break;
601  case EE_PARA_TABS : pResId = SIP_EE_PARA_TABS;break;
602 
603  case EE_CHAR_COLOR : pResId = SIP_EE_CHAR_COLOR;break;
604  case EE_CHAR_FONTINFO : pResId = SIP_EE_CHAR_FONTINFO;break;
605  case EE_CHAR_FONTHEIGHT : pResId = SIP_EE_CHAR_FONTHEIGHT;break;
606  case EE_CHAR_FONTWIDTH : pResId = SIP_EE_CHAR_FONTWIDTH;break;
607  case EE_CHAR_WEIGHT : pResId = SIP_EE_CHAR_WEIGHT;break;
608  case EE_CHAR_UNDERLINE : pResId = SIP_EE_CHAR_UNDERLINE;break;
609  case EE_CHAR_OVERLINE : pResId = SIP_EE_CHAR_OVERLINE;break;
610  case EE_CHAR_STRIKEOUT : pResId = SIP_EE_CHAR_STRIKEOUT;break;
611  case EE_CHAR_ITALIC : pResId = SIP_EE_CHAR_ITALIC;break;
612  case EE_CHAR_OUTLINE : pResId = SIP_EE_CHAR_OUTLINE;break;
613  case EE_CHAR_SHADOW : pResId = SIP_EE_CHAR_SHADOW;break;
614  case EE_CHAR_ESCAPEMENT : pResId = SIP_EE_CHAR_ESCAPEMENT;break;
615  case EE_CHAR_PAIRKERNING: pResId = SIP_EE_CHAR_PAIRKERNING;break;
616  case EE_CHAR_KERNING : pResId = SIP_EE_CHAR_KERNING;break;
617  case EE_CHAR_WLM : pResId = SIP_EE_CHAR_WLM;break;
618  case EE_FEATURE_TAB : pResId = SIP_EE_FEATURE_TAB;break;
619  case EE_FEATURE_LINEBR : pResId = SIP_EE_FEATURE_LINEBR;break;
620  case EE_FEATURE_NOTCONV : pResId = SIP_EE_FEATURE_NOTCONV;break;
621  case EE_FEATURE_FIELD : pResId = SIP_EE_FEATURE_FIELD;break;
622  } // switch
623 
624  return SvxResId(pResId);
625 }
626 
627 
628 // FractionItem
629 
630 
632 {
633  return SfxPoolItem::operator==(rCmp) &&
634  static_cast<const SdrFractionItem&>(rCmp).GetValue()==nValue;
635 }
636 
638  SfxItemPresentation ePresentation, MapUnit /*eCoreMetric*/,
639  MapUnit /*ePresentationMetric*/, OUString &rText, const IntlWrapper&) const
640 {
641  if(nValue.IsValid())
642  {
643  sal_Int32 nDiv = nValue.GetDenominator();
644  rText = OUString::number(nValue.GetNumerator());
645 
646  if(nDiv != 1)
647  {
648  rText += "/" + OUString::number(nDiv);
649  }
650  }
651  else
652  {
653  rText = "?";
654  }
655 
656  if(ePresentation == SfxItemPresentation::Complete)
657  {
658  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
659  return true;
660  }
661  else if(ePresentation == SfxItemPresentation::Nameless)
662  return true;
663 
664  return false;
665 }
666 
668 {
669  return new SdrFractionItem(Which(),GetValue());
670 }
671 
672 
673 // ScaleItem
674 
675 
677  SfxItemPresentation ePresentation, MapUnit /*eCoreMetric*/,
678  MapUnit /*ePresentationMetric*/, OUString &rText, const IntlWrapper&) const
679 {
680  if(GetValue().IsValid())
681  {
682  sal_Int32 nDiv = GetValue().GetDenominator();
683 
684  rText = OUString::number(GetValue().GetNumerator()) + ":" + OUString::number(nDiv);
685  }
686  else
687  {
688  rText = "?";
689  }
690 
691  if(ePresentation == SfxItemPresentation::Complete)
692  {
693  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
694  }
695 
696  return true;
697 }
698 
700 {
701  return new SdrScaleItem(Which(),GetValue());
702 }
703 
704 
705 // OnOffItem
706 
707 
709 {
710  return new SdrOnOffItem(Which(),GetValue());
711 }
712 
713 OUString SdrOnOffItem::GetValueTextByVal(bool bVal) const
714 {
715  if (bVal)
716  return SvxResId(STR_ItemValON);
717  return SvxResId(STR_ItemValOFF);
718 }
719 
721  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
722 {
723  rText=GetValueTextByVal(GetValue());
724  if (ePres==SfxItemPresentation::Complete) {
725  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
726  }
727  return true;
728 }
729 
731 {
732  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SdrOnOffItem"));
733  if (Which() == SDRATTR_SHADOW)
734  {
735  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST("SDRATTR_SHADOW"));
736  }
737 
738  SfxBoolItem::dumpAsXml(pWriter);
739 
740  (void)xmlTextWriterEndElement(pWriter);
741 }
742 
744 {
745  return new SdrYesNoItem(Which(),GetValue());
746 }
747 
748 OUString SdrYesNoItem::GetValueTextByVal(bool bVal) const
749 {
750  if (bVal)
751  return SvxResId(STR_ItemValYES);
752  return SvxResId(STR_ItemValNO);
753 }
754 
756  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
757 {
758  rText=GetValueTextByVal(GetValue());
759  if (ePres==SfxItemPresentation::Complete) {
760  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
761  }
762  return true;
763 }
764 
766 {
767  return new SdrPercentItem(Which(),GetValue());
768 }
769 
771  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/,
772  MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
773 {
775  Application::GetSettings().GetUILanguageTag());
776 
777  if(ePres == SfxItemPresentation::Complete)
778  {
779  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
780  }
781 
782  return true;
783 }
784 
786 {
787  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SdrPercentItem"));
789  {
790  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"),
791  BAD_CAST("SDRATTR_SHADOWTRANSPARENCE"));
792  }
793 
794  SfxUInt16Item::dumpAsXml(pWriter);
795 
796  (void)xmlTextWriterEndElement(pWriter);
797 }
798 
800 {
801  return new SdrAngleItem(Which(),GetValue());
802 }
803 
805  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
806  OUString& rText, const IntlWrapper& rIntlWrapper) const
807 {
808  sal_Int32 nValue(GetValue());
809  bool bNeg(nValue < 0);
810 
811  if(bNeg)
812  nValue = -nValue;
813 
814  OUStringBuffer aText = OUString::number(nValue);
815 
816  if(nValue)
817  {
818  sal_Unicode aUnicodeNull('0');
819  sal_Int32 nCount(2);
820 
822  nCount++;
823 
824  while(aText.getLength() < nCount)
825  aText.insert(0, aUnicodeNull);
826 
827  sal_Int32 nLen = aText.getLength();
828  bool bNull1(aText[nLen-1] == aUnicodeNull);
829  bool bNull2(bNull1 && aText[nLen-2] == aUnicodeNull);
830 
831  if(bNull2)
832  {
833  // no decimal place(s)
834  sal_Int32 idx = nLen-2;
835  aText.remove(idx, aText.getLength()-idx);
836  }
837  else
838  {
839  sal_Unicode cDec =
840  rIntlWrapper.getLocaleData()->getNumDecimalSep()[0];
841  aText.insert(nLen-2, cDec);
842 
843  if(bNull1)
844  aText.remove(nLen, aText.getLength()-nLen);
845  }
846 
847  if(bNeg)
848  aText.insert(0, '-');
849  }
850 
851  aText.append(sal_Unicode(DEGREE_CHAR));
852 
853  if(ePres == SfxItemPresentation::Complete)
854  {
855  OUString aStr = SdrItemPool::GetItemName(Which());
856  aText.insert(0, ' ');
857  aText.insert(0, aStr);
858  }
859 
860  rText = aText.makeStringAndClear();
861  return true;
862 }
863 
865 {
866  return new SdrMetricItem(Which(),GetValue());
867 }
868 
870 {
871  return true;
872 }
873 
875 {
876  if (GetValue()!=0) {
877  SetValue(BigInt::Scale(GetValue(), nMul, nDiv));
878  }
879 }
880 
882  MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const
883 {
885  SdrFormatter aFmt(eCoreMetric,ePresMetric);
886  rText = aFmt.GetStr(nValue);
887  rText += " " + SdrFormatter::GetUnitStr(ePresMetric);
888  if (ePres==SfxItemPresentation::Complete) {
889  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
890  }
891  return true;
892 }
893 
895 {
896  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SdrMetricItem"));
897  if (Which() == SDRATTR_SHADOWXDIST)
898  {
899  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST("SDRATTR_SHADOWXDIST"));
900  }
901  else if (Which() == SDRATTR_SHADOWYDIST)
902  {
903  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST("SDRATTR_SHADOWYDIST"));
904  }
905  else if (Which() == SDRATTR_SHADOWSIZEX)
906  {
907  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST("SDRATTR_SHADOWSIZEX"));
908  }
909  else if (Which() == SDRATTR_SHADOWSIZEY)
910  {
911  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST("SDRATTR_SHADOWSIZEY"));
912  }
913  else if (Which() == SDRATTR_SHADOWBLUR)
914  {
915  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST("SDRATTR_SHADOWBLUR"));
916  }
917 
918  SfxInt32Item::dumpAsXml(pWriter);
919 
920  (void)xmlTextWriterEndElement(pWriter);
921 }
922 
923 // items of the legend object
924 
925 
927 
928 sal_uInt16 SdrCaptionTypeItem::GetValueCount() const { return 4; }
929 
930 OUString SdrCaptionTypeItem::GetValueTextByPos(sal_uInt16 nPos)
931 {
932  static const char* ITEMVALCAPTIONTYPES[] =
933  {
934  STR_ItemValCAPTIONTYPE1,
935  STR_ItemValCAPTIONTYPE2,
936  STR_ItemValCAPTIONTYPE3,
937  STR_ItemValCAPTIONTYPE4
938  };
939  assert(nPos < SAL_N_ELEMENTS(ITEMVALCAPTIONTYPES) && "wrong pos!");
940  return SvxResId(ITEMVALCAPTIONTYPES[nPos]);
941 }
942 
944  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
945 {
946  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
947  if (ePres==SfxItemPresentation::Complete) {
948  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
949  }
950  return true;
951 }
952 
953 
955 
956 sal_uInt16 SdrCaptionEscDirItem::GetValueCount() const { return 3; }
957 
959 {
960  static const char* ITEMVALCAPTIONTYPES[] =
961  {
962  STR_ItemValCAPTIONESCHORI,
963  STR_ItemValCAPTIONESCVERT,
964  STR_ItemValCAPTIONESCBESTFIT
965  };
966  assert(nPos < SAL_N_ELEMENTS(ITEMVALCAPTIONTYPES) && "wrong pos!");
967  return SvxResId(ITEMVALCAPTIONTYPES[nPos]);
968 }
969 
971  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
972 {
973  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
974  if (ePres==SfxItemPresentation::Complete) {
975  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
976  }
977  return true;
978 }
979 
980 
981 // MiscItems
982 
983 
984 // FitToSize
985 
987 
989 
991 {
993  {
994  return false;
995  }
996 
997  return m_nMaxScale == static_cast<const SdrTextFitToSizeTypeItem&>(rItem).m_nMaxScale;
998 }
999 
1000 sal_uInt16 SdrTextFitToSizeTypeItem::GetValueCount() const { return 4; }
1001 
1003 {
1004  static const char* ITEMVALFITTISIZETYPES[] =
1005  {
1006  STR_ItemValFITTOSIZENONE,
1007  STR_ItemValFITTOSIZEPROP,
1008  STR_ItemValFITTOSIZEALLLINES,
1009  STR_ItemValFITTOSIZERESIZEAT
1010  };
1011  assert(nPos < SAL_N_ELEMENTS(ITEMVALFITTISIZETYPES) && "wrong pos!");
1012  return SvxResId(ITEMVALFITTISIZETYPES[nPos]);
1013 }
1014 
1016  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1017 {
1018  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1019  if (ePres==SfxItemPresentation::Complete) {
1020  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1021  }
1022  return true;
1023 }
1024 
1025 bool SdrTextFitToSizeTypeItem::HasBoolValue() const { return true; }
1026 
1027 bool SdrTextFitToSizeTypeItem::GetBoolValue() const { return GetValue() != drawing::TextFitToSizeType_NONE; }
1028 
1030 {
1031  SetValue(bVal ? drawing::TextFitToSizeType_PROPORTIONAL : drawing::TextFitToSizeType_NONE);
1032 }
1033 
1035 {
1036  drawing::TextFitToSizeType eFS = GetValue();
1037  rVal <<= eFS;
1038 
1039  return true;
1040 }
1041 
1042 bool SdrTextFitToSizeTypeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1043 {
1044  drawing::TextFitToSizeType eFS;
1045  if(!(rVal >>= eFS))
1046  {
1047  sal_Int32 nEnum = 0;
1048  if(!(rVal >>= nEnum))
1049  return false;
1050 
1051  eFS = static_cast<drawing::TextFitToSizeType>(nEnum);
1052  }
1053 
1054  SetValue(eFS);
1055 
1056  return true;
1057 }
1058 
1059 
1061 
1062 sal_uInt16 SdrTextVertAdjustItem::GetValueCount() const { return 5; }
1063 
1065 {
1066  static const char* ITEMVALTEXTVADJTYPES[] =
1067  {
1068  STR_ItemValTEXTVADJTOP,
1069  STR_ItemValTEXTVADJCENTER,
1070  STR_ItemValTEXTVADJBOTTOM,
1071  STR_ItemValTEXTVADJBLOCK,
1072  STR_ItemValTEXTVADJSTRETCH
1073  };
1074  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTVADJTYPES) && "wrong pos!");
1075  return SvxResId(ITEMVALTEXTVADJTYPES[nPos]);
1076 }
1077 
1079  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1080 {
1081  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1082  if (ePres==SfxItemPresentation::Complete) {
1083  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1084  }
1085  return true;
1086 }
1087 
1088 bool SdrTextVertAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1089 {
1090  rVal <<= static_cast<drawing::TextVerticalAdjust>(GetValue());
1091  return true;
1092 }
1093 
1094 bool SdrTextVertAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1095 {
1096  drawing::TextVerticalAdjust eAdj;
1097  if(!(rVal >>= eAdj))
1098  {
1099  sal_Int32 nEnum = 0;
1100  if(!(rVal >>= nEnum))
1101  return false;
1102 
1103  eAdj = static_cast<drawing::TextVerticalAdjust>(nEnum);
1104  }
1105 
1106  SetValue( static_cast<SdrTextVertAdjust>(eAdj) );
1107 
1108  return true;
1109 }
1110 
1112 {
1113  (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SdrTextVertAdjustItem"));
1114  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
1115  (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr()));
1116  (void)xmlTextWriterEndElement(pWriter);
1117 }
1118 
1120 
1121 sal_uInt16 SdrTextHorzAdjustItem::GetValueCount() const { return 5; }
1122 
1124 {
1125  static const char* ITEMVALTEXTHADJTYPES[] =
1126  {
1127  STR_ItemValTEXTHADJLEFT,
1128  STR_ItemValTEXTHADJCENTER,
1129  STR_ItemValTEXTHADJRIGHT,
1130  STR_ItemValTEXTHADJBLOCK,
1131  STR_ItemValTEXTHADJSTRETCH
1132  };
1133  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTHADJTYPES) && "wrong pos!");
1134  return SvxResId(ITEMVALTEXTHADJTYPES[nPos]);
1135 }
1136 
1138  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1139 {
1140  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1141  if (ePres==SfxItemPresentation::Complete) {
1142  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1143  }
1144  return true;
1145 }
1146 
1147 bool SdrTextHorzAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1148 {
1149  rVal <<= static_cast<drawing::TextHorizontalAdjust>(GetValue());
1150  return true;
1151 }
1152 
1153 bool SdrTextHorzAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1154 {
1155  drawing::TextHorizontalAdjust eAdj;
1156  if(!(rVal >>= eAdj))
1157  {
1158  sal_Int32 nEnum = 0;
1159  if(!(rVal >>= nEnum))
1160  return false;
1161 
1162  eAdj = static_cast<drawing::TextHorizontalAdjust>(nEnum);
1163  }
1164 
1165  SetValue( static_cast<SdrTextHorzAdjust>(eAdj) );
1166 
1167  return true;
1168 }
1169 
1170 
1172 
1173 sal_uInt16 SdrTextAniKindItem::GetValueCount() const { return 5; }
1174 
1175 OUString SdrTextAniKindItem::GetValueTextByPos(sal_uInt16 nPos)
1176 {
1177  static const char* ITEMVALTEXTANITYPES[] =
1178  {
1179  STR_ItemValTEXTANI_NONE,
1180  STR_ItemValTEXTANI_BLINK,
1181  STR_ItemValTEXTANI_SCROLL,
1182  STR_ItemValTEXTANI_ALTERNATE,
1183  STR_ItemValTEXTANI_SLIDE
1184  };
1185  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1186  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1187 }
1188 
1190  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1191 {
1192  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1193  if (ePres==SfxItemPresentation::Complete) {
1194  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1195  }
1196  return true;
1197 }
1198 
1199 bool SdrTextAniKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1200 {
1201  rVal <<= static_cast<drawing::TextAnimationKind>(GetValue());
1202  return true;
1203 }
1204 
1205 bool SdrTextAniKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1206 {
1207  drawing::TextAnimationKind eKind;
1208  if(!(rVal >>= eKind))
1209  {
1210  sal_Int32 nEnum = 0;
1211  if(!(rVal >>= nEnum))
1212  return false;
1213  eKind = static_cast<drawing::TextAnimationKind>(nEnum);
1214  }
1215 
1216  SetValue( static_cast<SdrTextAniKind>(eKind) );
1217 
1218  return true;
1219 }
1220 
1221 
1223 
1224 sal_uInt16 SdrTextAniDirectionItem::GetValueCount() const { return 4; }
1225 
1227 {
1228  static const char* ITEMVALTEXTANITYPES[] =
1229  {
1230  STR_ItemValTEXTANI_LEFT,
1231  STR_ItemValTEXTANI_UP,
1232  STR_ItemValTEXTANI_RIGHT,
1233  STR_ItemValTEXTANI_DOWN
1234  };
1235  assert(nPos < SAL_N_ELEMENTS(ITEMVALTEXTANITYPES) && "wrong pos!");
1236  return SvxResId(ITEMVALTEXTANITYPES[nPos]);
1237 }
1238 
1240  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1241 {
1242  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1243  if (ePres==SfxItemPresentation::Complete) {
1244  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1245  }
1246  return true;
1247 }
1248 
1249 bool SdrTextAniDirectionItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1250 {
1251  rVal <<= static_cast<drawing::TextAnimationDirection>(GetValue());
1252  return true;
1253 }
1254 
1255 bool SdrTextAniDirectionItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1256 {
1257  drawing::TextAnimationDirection eDir;
1258  if(!(rVal >>= eDir))
1259  {
1260  sal_Int32 nEnum = 0;
1261  if(!(rVal >>= nEnum))
1262  return false;
1263 
1264  eDir = static_cast<drawing::TextAnimationDirection>(nEnum);
1265  }
1266 
1267  SetValue( static_cast<SdrTextAniDirection>(eDir) );
1268 
1269  return true;
1270 }
1271 
1272 
1274 
1276  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1277  OUString& rText, const IntlWrapper&) const
1278 {
1279  rText = OUString::number(GetValue()) + "ms";
1280 
1281  if(ePres == SfxItemPresentation::Complete)
1282  {
1283  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1284  }
1285 
1286  return true;
1287 }
1288 
1289 
1291 
1293 {
1294  return GetValue()>0;
1295 }
1296 
1298 {
1299  if (GetValue()>0) {
1300  BigInt aVal(GetValue());
1301  aVal*=nMul;
1302  aVal+=nDiv/2; // to round accurately
1303  aVal/=nDiv;
1304  SetValue(short(aVal));
1305  }
1306 }
1307 
1309  SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric,
1310  OUString& rText, const IntlWrapper&) const
1311 {
1312  sal_Int32 nValue(GetValue());
1313 
1314  if(!nValue)
1315  nValue = -1;
1316 
1317  if(nValue < 0)
1318  {
1319  rText = OUString::number(-nValue) + "pixel";
1320  }
1321  else
1322  {
1323  SdrFormatter aFmt(eCoreMetric, ePresMetric);
1324  rText = aFmt.GetStr(nValue) +
1325  SdrFormatter::GetUnitStr(ePresMetric);
1326  }
1327 
1328  if(ePres == SfxItemPresentation::Complete)
1329  {
1330  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1331  }
1332 
1333  return true;
1334 }
1335 
1336 
1337 SdrTextFixedCellHeightItem::SdrTextFixedCellHeightItem( bool bUseFixedCellHeight )
1338  : SfxBoolItem( SDRATTR_TEXT_USEFIXEDCELLHEIGHT, bUseFixedCellHeight )
1339 {
1340 }
1341 bool SdrTextFixedCellHeightItem::GetPresentation( SfxItemPresentation ePres,
1342  MapUnit /*eCoreMetric*/, MapUnit /*ePresentationMetric*/,
1343  OUString &rText, const IntlWrapper& ) const
1344 {
1345  rText = GetValueTextByVal( GetValue() );
1346  if (ePres==SfxItemPresentation::Complete)
1347  {
1348  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1349  }
1350  return true;
1351 }
1352 
1353 SdrTextFixedCellHeightItem* SdrTextFixedCellHeightItem::Clone( SfxItemPool * /*pPool*/) const
1354 {
1355  return new SdrTextFixedCellHeightItem( GetValue() );
1356 }
1357 
1358 bool SdrTextFixedCellHeightItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1359 {
1360  bool bValue = GetValue();
1361  rVal <<= bValue;
1362  return true;
1363 }
1364 bool SdrTextFixedCellHeightItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1365 {
1366  bool bValue;
1367  if( !( rVal >>= bValue ) )
1368  return false;
1369  SetValue( bValue );
1370  return true;
1371 }
1372 
1373 // EdgeKind
1374 
1375 SdrEdgeKindItem* SdrEdgeKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrEdgeKindItem(*this); }
1376 
1377 sal_uInt16 SdrEdgeKindItem::GetValueCount() const { return 4; }
1378 
1379 OUString SdrEdgeKindItem::GetValueTextByPos(sal_uInt16 nPos)
1380 {
1381  static const char* ITEMVALEDGES[] =
1382  {
1383  STR_ItemValEDGE_ORTHOLINES,
1384  STR_ItemValEDGE_THREELINES,
1385  STR_ItemValEDGE_ONELINE,
1386  STR_ItemValEDGE_BEZIER
1387  };
1388  assert(nPos < SAL_N_ELEMENTS(ITEMVALEDGES) && "wrong pos!");
1389  return SvxResId(ITEMVALEDGES[nPos]);
1390 }
1391 
1393  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1394 {
1395  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1396  if (ePres==SfxItemPresentation::Complete) {
1397  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1398  }
1399  return true;
1400 }
1401 
1402 bool SdrEdgeKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1403 {
1404  drawing::ConnectorType eCT = drawing::ConnectorType_STANDARD;
1405 
1406  switch( GetValue() )
1407  {
1408  case SdrEdgeKind::OrthoLines : eCT = drawing::ConnectorType_STANDARD; break;
1409  case SdrEdgeKind::ThreeLines : eCT = drawing::ConnectorType_LINES; break;
1410  case SdrEdgeKind::OneLine : eCT = drawing::ConnectorType_LINE; break;
1411  case SdrEdgeKind::Bezier : eCT = drawing::ConnectorType_CURVE; break;
1412  case SdrEdgeKind::Arc : eCT = drawing::ConnectorType_CURVE; break;
1413  default:
1414  OSL_FAIL( "SdrEdgeKindItem::QueryValue : unknown enum" );
1415  }
1416 
1417  rVal <<= eCT;
1418 
1419  return true;
1420 }
1421 
1422 bool SdrEdgeKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1423 {
1424  drawing::ConnectorType eCT;
1425  if(!(rVal >>= eCT))
1426  {
1427  sal_Int32 nEnum = 0;
1428  if(!(rVal >>= nEnum))
1429  return false;
1430 
1431  eCT = static_cast<drawing::ConnectorType>(nEnum);
1432  }
1433 
1435  switch( eCT )
1436  {
1437  case drawing::ConnectorType_STANDARD : eEK = SdrEdgeKind::OrthoLines; break;
1438  case drawing::ConnectorType_CURVE : eEK = SdrEdgeKind::Bezier; break;
1439  case drawing::ConnectorType_LINE : eEK = SdrEdgeKind::OneLine; break;
1440  case drawing::ConnectorType_LINES : eEK = SdrEdgeKind::ThreeLines; break;
1441  default:
1442  OSL_FAIL( "SdrEdgeKindItem::PuValue : unknown enum" );
1443  }
1444  SetValue( eEK );
1445 
1446  return true;
1447 }
1448 
1450 {
1451  rVal <<= GetValue();
1452  return true;
1453 }
1454 
1455 bool SdrEdgeNode1HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1456 {
1457  sal_Int32 nValue = 0;
1458  if(!(rVal >>= nValue))
1459  return false;
1460 
1461  SetValue( nValue );
1462  return true;
1463 }
1464 
1466 {
1467  return new SdrEdgeNode1HorzDistItem(*this);
1468 }
1469 
1471 {
1472  rVal <<= GetValue();
1473  return true;
1474 }
1475 
1476 bool SdrEdgeNode1VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1477 {
1478  sal_Int32 nValue = 0;
1479  if(!(rVal >>= nValue))
1480  return false;
1481 
1482  SetValue( nValue );
1483  return true;
1484 }
1485 
1487 {
1488  return new SdrEdgeNode1VertDistItem(*this);
1489 }
1490 
1492 {
1493  rVal <<= GetValue();
1494  return true;
1495 }
1496 
1497 bool SdrEdgeNode2HorzDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1498 {
1499  sal_Int32 nValue = 0;
1500  if(!(rVal >>= nValue))
1501  return false;
1502 
1503  SetValue( nValue );
1504  return true;
1505 }
1506 
1508 {
1509  return new SdrEdgeNode2HorzDistItem(*this);
1510 }
1511 
1513 {
1514  rVal <<= GetValue();
1515  return true;
1516 }
1517 
1518 bool SdrEdgeNode2VertDistItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1519 {
1520  sal_Int32 nValue = 0;
1521  if(!(rVal >>= nValue))
1522  return false;
1523 
1524  SetValue( nValue );
1525  return true;
1526 }
1527 
1529 {
1530  return new SdrEdgeNode2VertDistItem(*this);
1531 }
1532 
1534 {
1535  return new SdrEdgeNode1GlueDistItem(*this);
1536 }
1537 
1539 {
1540  return new SdrEdgeNode2GlueDistItem(*this);
1541 }
1542 
1544 
1545 sal_uInt16 SdrMeasureKindItem::GetValueCount() const { return 2; }
1546 
1547 OUString SdrMeasureKindItem::GetValueTextByPos(sal_uInt16 nPos)
1548 {
1549  static const char* ITEMVALMEASURETYPES[] =
1550  {
1551  STR_ItemValMEASURE_STD,
1552  STR_ItemValMEASURE_RADIUS
1553  };
1554  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETYPES) && "wrong pos!");
1555  return SvxResId(ITEMVALMEASURETYPES[nPos]);
1556 }
1557 
1559  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1560 {
1561  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1562  if (ePres==SfxItemPresentation::Complete) {
1563  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1564  }
1565  return true;
1566 }
1567 
1568 bool SdrMeasureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1569 {
1570  rVal <<= static_cast<drawing::MeasureKind>(GetValue());
1571  return true;
1572 }
1573 
1574 bool SdrMeasureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1575 {
1576  drawing::MeasureKind eKind;
1577  if(!(rVal >>= eKind))
1578  {
1579  sal_Int32 nEnum = 0;
1580  if(!(rVal >>= nEnum))
1581  return false;
1582 
1583  eKind = static_cast<drawing::MeasureKind>(nEnum);
1584  }
1585 
1586  SetValue( static_cast<SdrMeasureKind>(eKind) );
1587  return true;
1588 }
1589 
1590 
1592 
1593 sal_uInt16 SdrMeasureTextHPosItem::GetValueCount() const { return 4; }
1594 
1596 {
1597  static const char* ITEMVALMEASURETEXTTYPES[] =
1598  {
1599  STR_ItemValMEASURE_TEXTHAUTO,
1600  STR_ItemValMEASURE_TEXTLEFTOUTSIDE,
1601  STR_ItemValMEASURE_TEXTINSIDE,
1602  STR_ItemValMEASURE_TEXTRIGHTOUTSID
1603  };
1604  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1605  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1606 }
1607 
1609  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1610 {
1611  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1612  if (ePres==SfxItemPresentation::Complete) {
1613  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1614  }
1615  return true;
1616 }
1617 
1618 bool SdrMeasureTextHPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1619 {
1620  rVal <<= GetValue();
1621  return true;
1622 }
1623 
1624 bool SdrMeasureTextHPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1625 {
1626  drawing::MeasureTextHorzPos ePos;
1627  if(!(rVal >>= ePos))
1628  {
1629  sal_Int32 nEnum = 0;
1630  if(!(rVal >>= nEnum))
1631  return false;
1632 
1633  ePos = static_cast<drawing::MeasureTextHorzPos>(nEnum);
1634  }
1635 
1636  SetValue(ePos);
1637  return true;
1638 }
1639 
1641 
1642 sal_uInt16 SdrMeasureTextVPosItem::GetValueCount() const { return 5; }
1643 
1645 {
1646  static const char* ITEMVALMEASURETEXTTYPES[] =
1647  {
1648  STR_ItemValMEASURE_TEXTVAUTO,
1649  STR_ItemValMEASURE_ABOVE,
1650  STR_ItemValMEASURETEXT_BREAKEDLINE,
1651  STR_ItemValMEASURE_BELOW,
1652  STR_ItemValMEASURETEXT_VERTICALCEN
1653  };
1654  assert(nPos < SAL_N_ELEMENTS(ITEMVALMEASURETEXTTYPES) && "wrong pos!");
1655  return SvxResId(ITEMVALMEASURETEXTTYPES[nPos]);
1656 }
1657 
1659  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1660 {
1661  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1662  if (ePres==SfxItemPresentation::Complete) {
1663  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1664  }
1665  return true;
1666 }
1667 
1668 bool SdrMeasureTextVPosItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1669 {
1670  rVal <<= GetValue();
1671  return true;
1672 }
1673 
1674 bool SdrMeasureTextVPosItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1675 {
1676  drawing::MeasureTextVertPos ePos;
1677  if(!(rVal >>= ePos))
1678  {
1679  sal_Int32 nEnum = 0;
1680  if(!(rVal >>= nEnum))
1681  return false;
1682 
1683  ePos = static_cast<drawing::MeasureTextVertPos>(nEnum);
1684  }
1685 
1686  SetValue(ePos);
1687  return true;
1688 }
1689 
1691 
1692 sal_uInt16 SdrMeasureUnitItem::GetValueCount() const { return 14; }
1693 
1694 OUString SdrMeasureUnitItem::GetValueTextByPos(sal_uInt16 nPos)
1695 {
1696  if(static_cast<FieldUnit>(nPos) == FieldUnit::NONE)
1697  return "default";
1698  else
1699  return SdrFormatter::GetUnitStr(static_cast<FieldUnit>(nPos));
1700 }
1701 
1703  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1704 {
1705  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1706  if (ePres==SfxItemPresentation::Complete) {
1707  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1708  }
1709  return true;
1710 }
1711 
1712 bool SdrMeasureUnitItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1713 {
1714  rVal <<= static_cast<sal_Int32>(GetValue());
1715  return true;
1716 }
1717 
1718 bool SdrMeasureUnitItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1719 {
1720  sal_Int32 nMeasure = 0;
1721  if(!(rVal >>= nMeasure))
1722  return false;
1723 
1724  SetValue( static_cast<FieldUnit>(nMeasure) );
1725  return true;
1726 }
1727 
1728 
1729 SdrCircKindItem* SdrCircKindItem::Clone(SfxItemPool* /*pPool*/) const { return new SdrCircKindItem(*this); }
1730 
1731 sal_uInt16 SdrCircKindItem::GetValueCount() const { return 4; }
1732 
1733 OUString SdrCircKindItem::GetValueTextByPos(sal_uInt16 nPos)
1734 {
1735  static const char* ITEMVALCIRCTYPES[] =
1736  {
1737  STR_ItemValCIRC_FULL,
1738  STR_ItemValCIRC_SECT,
1739  STR_ItemValCIRC_CUT,
1740  STR_ItemValCIRC_ARC
1741  };
1742  assert(nPos < SAL_N_ELEMENTS(ITEMVALCIRCTYPES) && "wrong pos!");
1743  return SvxResId(ITEMVALCIRCTYPES[nPos]);
1744 }
1745 
1747  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/, OUString& rText, const IntlWrapper&) const
1748 {
1749  rText=GetValueTextByPos(sal::static_int_cast< sal_uInt16 >(GetValue()));
1750  if (ePres==SfxItemPresentation::Complete) {
1751  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1752  }
1753  return true;
1754 }
1755 
1756 bool SdrCircKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1757 {
1758  rVal <<= static_cast<drawing::CircleKind>(GetValue());
1759  return true;
1760 }
1761 
1762 bool SdrCircKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1763 {
1764  drawing::CircleKind eKind;
1765  if(!(rVal >>= eKind))
1766  {
1767  sal_Int32 nEnum = 0;
1768  if(!(rVal >>= nEnum))
1769  return false;
1770 
1771  eKind = static_cast<drawing::CircleKind>(nEnum);
1772  }
1773 
1774  SetValue( static_cast<SdrCircKind>(eKind) );
1775  return true;
1776 }
1777 
1778 SdrSignedPercentItem* SdrSignedPercentItem::Clone(SfxItemPool* /*pPool*/) const
1779 {
1780  return new SdrSignedPercentItem( Which(), GetValue() );
1781 }
1782 
1783 bool SdrSignedPercentItem::GetPresentation(
1784  SfxItemPresentation ePres, MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1785  OUString& rText, const IntlWrapper&) const
1786 {
1787  rText = unicode::formatPercent(GetValue(),
1788  Application::GetSettings().GetUILanguageTag());
1789 
1790  if(ePres == SfxItemPresentation::Complete)
1791  {
1792  rText = SdrItemPool::GetItemName(Which()) + " " + rText;
1793  }
1794 
1795  return true;
1796 }
1797 
1798 SdrGrafRedItem* SdrGrafRedItem::Clone( SfxItemPool* /*pPool*/) const
1799 {
1800  return new SdrGrafRedItem( *this );
1801 }
1802 
1803 SdrGrafGreenItem* SdrGrafGreenItem::Clone( SfxItemPool* /*pPool*/) const
1804 {
1805  return new SdrGrafGreenItem( *this );
1806 }
1807 
1808 SdrGrafBlueItem* SdrGrafBlueItem::Clone( SfxItemPool* /*pPool*/) const
1809 {
1810  return new SdrGrafBlueItem( *this );
1811 }
1812 
1814 {
1815  return new SdrGrafLuminanceItem( *this );
1816 }
1817 
1819 {
1820  return new SdrGrafContrastItem( *this );
1821 }
1822 
1824 {
1825  return new SdrGrafGamma100Item( *this );
1826 }
1827 
1828 bool SdrGrafGamma100Item::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
1829 {
1830  rVal <<= static_cast<double>(GetValue()) / 100.0;
1831  return true;
1832 }
1833 
1834 bool SdrGrafGamma100Item::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
1835 {
1836  double nGamma = 0;
1837  if(!(rVal >>= nGamma))
1838  return false;
1839 
1840  SetValue( static_cast<sal_uInt32>(nGamma * 100.0 ) );
1841  return true;
1842 }
1843 
1845 {
1846  return new SdrGrafInvertItem( *this );
1847 }
1848 
1849 SdrGrafTransparenceItem* SdrGrafTransparenceItem::Clone( SfxItemPool* /*pPool*/) const
1850 {
1851  return new SdrGrafTransparenceItem( *this );
1852 }
1853 
1855 {
1856  return new SdrGrafModeItem( *this );
1857 }
1858 
1860 {
1861  return 4;
1862 }
1863 
1864 OUString SdrGrafModeItem::GetValueTextByPos(sal_uInt16 nPos)
1865 {
1866  OUString aStr;
1867 
1868  switch(nPos)
1869  {
1870  case 1:
1871  {
1872  aStr = "Greys";
1873  break;
1874  }
1875  case 2:
1876  {
1877  aStr = "Black/White";
1878  break;
1879  }
1880  case 3:
1881  {
1882  aStr = "Watermark";
1883  break;
1884  }
1885  default:
1886  {
1887  aStr = "Standard";
1888  break;
1889  }
1890  }
1891 
1892  return aStr;
1893 }
1894 
1896  MapUnit /*eCoreMetric*/, MapUnit /*ePresMetric*/,
1897  OUString& rText, const IntlWrapper&) const
1898 {
1899  rText = GetValueTextByPos( sal::static_int_cast< sal_uInt16 >( GetValue() ) );
1900 
1901  if( ePres == SfxItemPresentation::Complete )
1902  {
1903  rText = SdrItemPool::GetItemName( Which() ) + " " + rText;
1904  }
1905 
1906  return true;
1907 }
1908 
1909 SdrGrafCropItem* SdrGrafCropItem::Clone( SfxItemPool* /*pPool*/) const
1910 {
1911  return new SdrGrafCropItem( *this );
1912 }
1913 
1915 {
1916 }
1917 
1919 {
1920  return new SdrTextAniStartInsideItem(*this);
1921 }
1922 
1924 {
1925 }
1926 
1928 {
1929  return new SdrTextAniStopInsideItem(*this);
1930 }
1931 
1933 {
1934 }
1935 
1937 {
1938  return new SdrCaptionEscIsRelItem(*this);
1939 }
1940 
1942 {
1943 }
1944 
1946 {
1947  return new SdrCaptionEscRelItem(*this);
1948 }
1949 
1951 {
1952 }
1953 
1955 {
1956  return new SdrCaptionFitLineLenItem(*this);
1957 }
1958 
1960 {
1961 }
1962 
1964 {
1965  return new SdrCaptionLineLenItem(*this);
1966 }
1967 
1969 {
1970 }
1971 
1973 {
1974  return new SdrMeasureBelowRefEdgeItem(*this);
1975 }
1976 
1978 {
1979 }
1980 
1982 {
1983  return new SdrMeasureTextIsFixedAngleItem(*this);
1984 }
1985 
1987 {
1988 }
1989 
1991 {
1992  return new SdrMeasureTextFixedAngleItem(*this);
1993 }
1994 
1996 {
1997 }
1998 
2000 {
2001  return new SdrMeasureDecimalPlacesItem(*this);
2002 }
2003 
2005 {
2006 }
2007 
2009 {
2010  return new SdrMeasureTextRota90Item(*this);
2011 }
2012 
2014 {
2015 }
2016 
2018 {
2019  return new SdrMeasureTextUpsideDownItem(*this);
2020 }
2021 
2023 {
2024  return new SdrLayerIdItem(*this);
2025 }
2026 
2028 {
2029  return new SdrLayerNameItem(*this);
2030 }
2031 
2032 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr TypedWhichId< XColorItem > SDRATTR_GLOW_COLOR(SDRATTR_GLOW_FIRST+1)
const Fraction & GetValue() const
Definition: sxfiitm.hxx:35
SdrGrafLuminanceItem(short nLuminancePercent=0)
Definition: sdgluitm.hxx:36
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1224
bool GetValue() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1618
constexpr TypedWhichId< XFormTextHideFormItem > XATTR_FORMTXTHIDEFORM(XATTR_TEXT_FIRST+10)
constexpr TypedWhichId< SvxTextRotateItem > SDRATTR_TABLE_TEXT_ROTATION(SDRATTR_TABLE_FIRST+4)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_AUTOGROWHEIGHT(SDRATTR_MISC_FIRST+2)
static OUString GetUnitStr(MapUnit eUnit)
Definition: svdtrans.cxx:792
sal_Int32 GetValue() const
virtual ~SdrMeasureDecimalPlacesItem() override
Definition: svdattr.cxx:1995
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1694
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1034
virtual bool GetBoolValue() const override
Definition: svdattr.cxx:1027
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_4(SDRATTR_3DSCENE_FIRST+16)
constexpr TypedWhichId< SdrMeasureTextAutoAngleItem > SDRATTR_MEASURETEXTAUTOANGLE(SDRATTR_MEASURE_FIRST+16)
constexpr TypedWhichId< SdrGrafGamma100Item > SDRATTR_GRAFGAMMA(SDRATTR_GRAF_FIRST+5)
constexpr TypedWhichId< SdrHorzShearAllItem > SDRATTR_HORZSHEARALL(SDRATTR_NOTPERSIST_FIRST+28)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1255
constexpr TypedWhichId< SdrTextHorzAdjustItem > SDRATTR_TEXT_HORZADJUST(SDRATTR_MISC_FIRST+13)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1859
constexpr TypedWhichId< SdrTextAniStartInsideItem > SDRATTR_TEXT_ANISTARTINSIDE(SDRATTR_MISC_FIRST+16)
virtual SdrMeasureTextRota90Item * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:2008
constexpr TypedWhichId< SdrPercentItem > SDRATTR_SHADOWTRANSPARENCE(SDRATTR_SHADOW_FIRST+4)
SdrGrafModeItem(GraphicDrawMode eMode=GraphicDrawMode::Standard)
Definition: sdgmoitm.hxx:38
constexpr sal_uInt16 SDRATTR_SHADOW_FIRST(XATTR_END+1)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_5(SDRATTR_3DSCENE_FIRST+25)
constexpr TypedWhichId< SvxAutoKernItem > EE_CHAR_PAIRKERNING(EE_CHAR_START+11)
SdrTextAniKindItem(SdrTextAniKind eKind=SdrTextAniKind::NONE)
Definition: sdtakitm.hxx:81
constexpr TypedWhichId< Svx3DTextureKindItem > SDRATTR_3DOBJ_TEXTURE_KIND(SDRATTR_3DOBJ_FIRST+16)
constexpr TypedWhichId< XLineEndItem > XATTR_LINEEND(XATTR_LINE_FIRST+5)
virtual bool GetPresentation(const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
constexpr TypedWhichId< XLineEndCenterItem > XATTR_LINEENDCENTER(XATTR_LINE_FIRST+9)
constexpr TypedWhichId< Svx3DTextureProjectionXItem > SDRATTR_3DOBJ_TEXTURE_PROJ_X(SDRATTR_3DOBJ_FIRST+9)
virtual SdrTextFitToSizeTypeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:988
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_SPECULAR(SDRATTR_3DOBJ_FIRST+14)
SdrYesNoItem(sal_uInt16 nId, bool bOn)
Definition: sdynitm.hxx:32
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1062
constexpr TypedWhichId< SvxKerningItem > EE_CHAR_KERNING(EE_CHAR_START+12)
The length of the first caption line is either automatically calculated or the default setting is use...
Definition: sxcllitm.hxx:47
constexpr TypedWhichId< SdrResizeXAllItem > SDRATTR_RESIZEXALL(SDRATTR_NOTPERSIST_FIRST+25)
constexpr TypedWhichId< XFillBmpTileOffsetYItem > XATTR_FILLBMP_TILEOFFSETY(XATTR_FILL_FIRST+15)
constexpr TypedWhichId< XLineStartItem > XATTR_LINESTART(XATTR_LINE_FIRST+4)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_VERT_SEGS(SDRATTR_3DOBJ_FIRST+4)
constexpr sal_uInt16 EE_FEATURE_TAB(EE_FEATURE_START+0)
virtual SdrPercentItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:765
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1593
struct _xmlTextWriter * xmlTextWriterPtr
SdrCaptionTypeItem(SdrCaptionType eStyle=SdrCaptionType::Type3)
Definition: sxctitm.hxx:32
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_2(SDRATTR_3DSCENE_FIRST+22)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_NORMALS_INVERT(SDRATTR_3DOBJ_FIRST+8)
void SetValue(sal_Int32 nTheValue)
constexpr TypedWhichId< XLineJointItem > XATTR_LINEJOINT(XATTR_LINE_FIRST+11)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1545
constexpr TypedWhichId< SdrTransformRef1XItem > SDRATTR_TRANSFORMREF1X(SDRATTR_NOTPERSIST_FIRST+30)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1147
virtual bool operator==(const SfxPoolItem &) const =0
SdrCaptionEscDirItem(SdrCaptionEscDir eDir=SdrCaptionEscDir::Horizontal)
Definition: sxcecitm.hxx:35
std::string GetValue
virtual SdrMeasureKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1543
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_5(SDRATTR_3DSCENE_FIRST+8)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override
Definition: svdattr.cxx:804
constexpr TypedWhichId< SdrAllSizeWidthItem > SDRATTR_ALLSIZEWIDTH(SDRATTR_NOTPERSIST_FIRST+8)
virtual SdrEdgeNode1HorzDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1465
virtual SdrGrafInvertItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1844
virtual SdrEdgeNode1GlueDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1533
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_AUTOGROWWIDTH(SDRATTR_MISC_FIRST+12)
virtual ~SdrCaptionEscRelItem() override
Definition: svdattr.cxx:1941
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1422
virtual SdrMeasureTextFixedAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1990
virtual void SetBoolValue(bool bVal) override
Definition: svdattr.cxx:1029
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:637
constexpr TypedWhichId< SfxMetricItem > XATTR_FILLBMP_SIZEX(XATTR_FILL_FIRST+9)
virtual ~SdrMeasureTextIsFixedAngleItem() override
Definition: svdattr.cxx:1977
virtual SdrTextAniAmountItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1290
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:881
constexpr TypedWhichId< XFormTextOutlineItem > XATTR_FORMTXTOUTLINE(XATTR_TEXT_FIRST+5)
SdrTextAniStopInsideItem(bool bOn=false)
Definition: sdtaiitm.hxx:39
constexpr TypedWhichId< SdrObjPrintableItem > SDRATTR_OBJPRINTABLE(SDRATTR_NOTPERSIST_FIRST+2)
long Long
constexpr TypedWhichId< SdrMoveYItem > SDRATTR_MOVEY(SDRATTR_NOTPERSIST_FIRST+19)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_CONTOURFRAME(SDRATTR_MISC_FIRST+21)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_MEASUREHELPLINE1LEN(SDRATTR_MEASURE_FIRST+6)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_MAXFRAMEWIDTH(SDRATTR_MISC_FIRST+11)
constexpr TypedWhichId< Svx3DSmoothNormalsItem > SDRATTR_3DOBJ_SMOOTH_NORMALS(SDRATTR_3DOBJ_FIRST+19)
void SetTable(bool bNew)
static const AllSettings & GetSettings()
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
constexpr TypedWhichId< SdrCaptionLineLenItem > SDRATTR_CAPTIONLINELEN(SDRATTR_CAPTION_FIRST+8)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1308
constexpr TypedWhichId< SdrEdgeNode1HorzDistItem > SDRATTR_EDGENODE1HORZDIST(SDRATTR_EDGE_FIRST+1)
constexpr TypedWhichId< XLineWidthItem > XATTR_LINEWIDTH(XATTR_LINE_FIRST+2)
SdrTextAniStartInsideItem(bool bOn=false)
Definition: sdtaiitm.hxx:27
constexpr TypedWhichId< XFormTextShadowTranspItem > XATTR_FORMTXTSHDWTRANSP(XATTR_TEXT_FIRST+11)
sal_uInt16 GetValue() const
constexpr TypedWhichId< SvxPostureItem > EE_CHAR_ITALIC(EE_CHAR_START+7)
virtual ~SdrMeasureBelowRefEdgeItem() override
Definition: svdattr.cxx:1968
void SetDefaults(std::vector< SfxPoolItem * > *pDefaults)
virtual SdrMeasureTextVPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1640
SdrTextAniDelayItem(sal_uInt16 nVal=0)
Definition: sdtayitm.hxx:28
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY(SDRATTR_3DOBJ_FIRST+15)
virtual bool HasMetrics() const override
Definition: svdattr.cxx:869
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1547
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1674
constexpr TypedWhichId< SdrGrafRedItem > SDRATTR_GRAFRED(SDRATTR_GRAF_FIRST+0)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_DOUBLE_SIDED(SDRATTR_3DOBJ_FIRST+6)
static bool isNumLeadingZero()
constexpr TypedWhichId< SdrEdgeNode2VertDistItem > SDRATTR_EDGENODE2VERTDIST(SDRATTR_EDGE_FIRST+4)
SdrCaptionEscIsRelItem(bool bRel=true)
Definition: sxcecitm.hxx:51
SdrAngleItem(sal_uInt16 nId, Degree100 nAngle)
Definition: sdangitm.hxx:30
constexpr TypedWhichId< SdrAngleItem > SDRATTR_CAPTIONANGLE(SDRATTR_CAPTION_FIRST+2)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1568
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1002
static SfxPoolItem * CreateDefault()
Definition: svdattr.cxx:986
constexpr TypedWhichId< XLineStyleItem > XATTR_LINESTYLE(XATTR_LINE_FIRST)
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1175
constexpr TypedWhichId< SdrMeasureUnitItem > SDRATTR_MEASUREUNIT(SDRATTR_MEASURE_FIRST+12)
virtual SdrLayerIdItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:2022
constexpr TypedWhichId< SdrVertShearOneItem > SDRATTR_VERTSHEARONE(SDRATTR_NOTPERSIST_FIRST+24)
constexpr TypedWhichId< SdrYesNoItem > SDRATTR_OBJMOVEPROTECT(SDRATTR_NOTPERSIST_FIRST+0)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_DEPTH(SDRATTR_3DOBJ_FIRST+2)
constexpr TypedWhichId< SvxAdjustItem > EE_PARA_JUST(EE_PARA_START+15)
SdrEdgeNode1GlueDistItem(tools::Long nVal=0)
Definition: sxenditm.hxx:60
virtual ~SdrCaptionEscIsRelItem() override
Definition: svdattr.cxx:1932
constexpr TypedWhichId< XLineDashItem > XATTR_LINEDASH(XATTR_LINE_FIRST+1)
constexpr TypedWhichId< XFillHatchItem > XATTR_FILLHATCH(XATTR_FILL_FIRST+3)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_7(SDRATTR_3DSCENE_FIRST+19)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1558
SdrScaleItem(sal_uInt16 nId, const Fraction &rVal)
Definition: sxsiitm.hxx:25
constexpr TypedWhichId< SdrMeasureKindItem > SDRATTR_MEASUREKIND(SDRATTR_MEASURE_FIRST+0)
constexpr TypedWhichId< SdrTextAniCountItem > SDRATTR_TEXT_ANICOUNT(SDRATTR_MISC_FIRST+18)
Length of the first caption line Only for Type3 and Type4 Only relevant, if SdrCaptionFitLineLenItem ...
Definition: sxcllitm.hxx:31
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1692
css::chart::ChartAxisLabelPosition ePos
constexpr TypedWhichId< XFillBackgroundItem > XATTR_FILLBACKGROUND(XATTR_FILL_FIRST+19)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_COLOR(SDRATTR_3DOBJ_FIRST+12)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_2(SDRATTR_3DSCENE_FIRST+14)
constexpr TypedWhichId< SdrEdgeLineDeltaCountItem > SDRATTR_EDGELINEDELTACOUNT(SDRATTR_EDGE_FIRST+7)
constexpr TypedWhichId< SvxLineSpacingItem > EE_PARA_SBL(EE_PARA_START+14)
constexpr sal_uInt16 SDRATTR_START(XATTR_START)
constexpr TypedWhichId< XFormTextDistanceItem > XATTR_FORMTXTDISTANCE(XATTR_TEXT_FIRST+2)
SdrMeasureTextVPosItem(css::drawing::MeasureTextVertPos ePos=css::drawing::MeasureTextVertPos_AUTO)
Definition: sxmtpitm.hxx:46
virtual SdrTextAniKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1171
virtual SdrTextHorzAdjustItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1119
constexpr TypedWhichId< Svx3DTextureModeItem > SDRATTR_3DOBJ_TEXTURE_MODE(SDRATTR_3DOBJ_FIRST+17)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1015
constexpr TypedWhichId< SdrCircKindItem > SDRATTR_CIRCKIND(SDRATTR_CIRC_FIRST+0)
constexpr TypedWhichId< Svx3DCharacterModeItem > SDRATTR_3DOBJ_CHARACTER_MODE(SDRATTR_3DOBJ_FIRST+21)
virtual SdrTextAniStartInsideItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1918
SdrGrafContrastItem(short nContrastPercent=0)
Definition: sdgluitm.hxx:51
constexpr TypedWhichId< SdrOneSizeHeightItem > SDRATTR_ONESIZEHEIGHT(SDRATTR_NOTPERSIST_FIRST+13)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:770
constexpr TypedWhichId< XLineTransparenceItem > XATTR_LINETRANSPARENCE(XATTR_LINE_FIRST+10)
virtual MapUnit GetMetric(sal_uInt16 nWhich) const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1895
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DSCENE_DISTANCE(SDRATTR_3DSCENE_FIRST+1)
SdrMeasureTextFixedAngleItem(Degree100 nVal=0_deg100)
Definition: sxmtfitm.hxx:45
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:894
sal_uInt16 sal_Unicode
constexpr TypedWhichId< SdrEdgeKindItem > SDRATTR_EDGEKIND(SDRATTR_EDGE_FIRST+0)
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DSCENE_SHADOW_SLANT(SDRATTR_3DSCENE_FIRST+29)
constexpr TypedWhichId< SfxVoidItem > SDRATTR_SHADOWPERSP(SDRATTR_SHADOW_FIRST+6)
constexpr TypedWhichId< SdrAngleItem > SDRATTR_CIRCENDANGLE(SDRATTR_CIRC_FIRST+2)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_3(SDRATTR_3DSCENE_FIRST+6)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1137
constexpr TypedWhichId< SdrResizeYOneItem > SDRATTR_RESIZEYONE(SDRATTR_NOTPERSIST_FIRST+21)
const LocaleDataWrapper * getLocaleData() const
virtual SdrMeasureDecimalPlacesItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1999
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_CAPTIONFIXEDANGLE(SDRATTR_CAPTION_FIRST+1)
SdrEdgeKindItem(SdrEdgeKind eStyle=SdrEdgeKind::OrthoLines)
Definition: sxekitm.hxx:33
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1574
OUString SvxResId(const char *pId)
Definition: dialmgr.cxx:25
constexpr TypedWhichId< SdrMeasureOverhangItem > SDRATTR_MEASUREOVERHANG(SDRATTR_MEASURE_FIRST+11)
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_LRSPACE(EE_PARA_START+12)
constexpr sal_uInt16 SDRATTR_NOTPERSIST_LAST(SDRATTR_OBJVISIBLE)
constexpr TypedWhichId< SvxULSpaceItem > EE_PARA_ULSPACE(EE_PARA_START+13)
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1189
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1094
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1088
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1828
SdrEdgeNode2HorzDistItem(tools::Long nVal)
Definition: sxenditm.hxx:44
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:958
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_7(SDRATTR_3DSCENE_FIRST+27)
constexpr TypedWhichId< SfxStringItem > SDRATTR_CUSTOMSHAPE_DATA(SDRATTR_CUSTOMSHAPE_FIRST+1)
constexpr TypedWhichId< SdrAllPositionYItem > SDRATTR_ALLPOSITIONY(SDRATTR_NOTPERSIST_FIRST+7)
int nCount
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_6(SDRATTR_3DSCENE_FIRST+26)
SdrCircKindItem(SdrCircKind eKind=SdrCircKind::Full)
Definition: sxcikitm.hxx:28
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1173
std::vector< SfxPoolItem * > * mpLocalPoolDefaults
Definition: xpool.hxx:35
constexpr TypedWhichId< SdrAngleItem > SDRATTR_MEASURETEXTAUTOANGLEVIEW(SDRATTR_MEASURE_FIRST+17)
SdrTextAniAmountItem(sal_Int16 nVal=0)
Definition: sdtaaitm.hxx:28
constexpr TypedWhichId< SdrCaptionEscDirItem > SDRATTR_CAPTIONESCDIR(SDRATTR_CAPTION_FIRST+4)
constexpr TypedWhichId< SdrTextAniDirectionItem > SDRATTR_TEXT_ANIDIRECTION(SDRATTR_MISC_FIRST+15)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_WORDWRAP(SDRATTR_MISC_FIRST+24)
virtual SdrCaptionFitLineLenItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1954
constexpr TypedWhichId< XColorItem > SDRATTR_SHADOWCOLOR(SDRATTR_SHADOW_FIRST+1)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:755
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_6(SDRATTR_3DSCENE_FIRST+18)
SdrMeasureTextIsFixedAngleItem(bool bOn=false)
Definition: sxmtfitm.hxx:32
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1834
constexpr TypedWhichId< SdrOnePositionYItem > SDRATTR_ONEPOSITIONY(SDRATTR_NOTPERSIST_FIRST+11)
virtual ~SdrMeasureTextRota90Item() override
Definition: svdattr.cxx:2004
constexpr TypedWhichId< Svx3DReducedLineGeometryItem > SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY(SDRATTR_3DOBJ_FIRST+24)
virtual SdrMeasureTextUpsideDownItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:2017
constexpr TypedWhichId< SdrAngleItem > SDRATTR_ROTATEANGLE(SDRATTR_NOTPERSIST_FIRST+16)
void SetAllDistances(sal_uInt16 nNew)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SHADOWSIZEX(SDRATTR_SHADOW_FIRST+7)
SdrMetricItem(sal_uInt16 nId, sal_Int32 nVal)
Definition: sdmetitm.hxx:32
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_1(SDRATTR_3DSCENE_FIRST+13)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_SHADOW(SDRATTR_SHADOW_FIRST+0)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_1(SDRATTR_3DSCENE_FIRST+4)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_LOWERDIST(SDRATTR_MISC_FIRST+7)
o3tl::strong_int< sal_uInt8, struct SdrLayerIDTag > SdrLayerID
Definition: svdtypes.hxx:57
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1658
constexpr TypedWhichId< XLineAttrSetItem > XATTRSET_LINE(XATTR_LINE_LAST+1)
constexpr TypedWhichId< SvxContourItem > EE_CHAR_OUTLINE(EE_CHAR_START+8)
constexpr TypedWhichId< SdrMeasureTextHPosItem > SDRATTR_MEASURETEXTHPOS(SDRATTR_MEASURE_FIRST+1)
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1733
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1199
constexpr TypedWhichId< SvxWeightItem > EE_CHAR_WEIGHT(EE_CHAR_START+4)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SHADOWBLUR(SDRATTR_SHADOW_FIRST+9)
constexpr TypedWhichId< XFormTextStyleItem > XATTR_FORMTXTSTYLE(XATTR_TEXT_FIRST)
bool operator==(const SfxPoolItem &rItem) const override
Definition: svdattr.cxx:990
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_HORZ_SEGS(SDRATTR_3DOBJ_FIRST+3)
SdrGrafGamma100Item(sal_uInt32 nGamma100=100)
Definition: sdggaitm.hxx:36
constexpr TypedWhichId< SdrMeasureDecimalPlacesItem > SDRATTR_MEASUREDECIMALPLACES(SDRATTR_MEASURE_FIRST+20)
constexpr TypedWhichId< SdrHorzShearOneItem > SDRATTR_HORZSHEARONE(SDRATTR_NOTPERSIST_FIRST+23)
constexpr TypedWhichId< SdrPercentItem > SDRATTR_GLOW_TRANSPARENCY(SDRATTR_GLOW_FIRST+2)
#define SAL_N_ELEMENTS(arr)
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:730
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1595
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:928
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1497
constexpr TypedWhichId< SdrCaptionEscRelItem > SDRATTR_CAPTIONESCREL(SDRATTR_CAPTION_FIRST+6)
constexpr TypedWhichId< SvxBoxInfoItem > SDRATTR_TABLE_BORDER_INNER(SDRATTR_TABLE_FIRST+1)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_MEASUREHELPLINEDIST(SDRATTR_MEASURE_FIRST+5)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_EDGELINE3DELTA(SDRATTR_EDGE_FIRST+10)
virtual bool HasMetrics() const override
Definition: svdattr.cxx:1292
constexpr TypedWhichId< SdrOneSizeWidthItem > SDRATTR_ONESIZEWIDTH(SDRATTR_NOTPERSIST_FIRST+12)
virtual SdrEdgeNode2HorzDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1507
constexpr TypedWhichId< SvxShadowedItem > EE_CHAR_SHADOW(EE_CHAR_START+9)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1377
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1518
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_TEXTURE_FILTER(SDRATTR_3DOBJ_FIRST+18)
virtual SdrGrafModeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1854
constexpr TypedWhichId< SdrEdgeNode2HorzDistItem > SDRATTR_EDGENODE2HORZDIST(SDRATTR_EDGE_FIRST+3)
constexpr TypedWhichId< SdrGrafTransparenceItem > SDRATTR_GRAFTRANSPARENCE(SDRATTR_GRAF_FIRST+6)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_3(SDRATTR_3DSCENE_FIRST+15)
const OUString & getNumDecimalSep() const
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)
SdrCaptionLineLenItem(tools::Long nLineLen=0)
Definition: sxcllitm.hxx:33
constexpr TypedWhichId< SdrTextFitToSizeTypeItem > SDRATTR_TEXT_FITTOSIZE(SDRATTR_MISC_FIRST+3)
virtual SdrYesNoItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:743
virtual SdrAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:799
SfxItemPresentation
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:930
sal_Int16 GetValue() const
constexpr TypedWhichId< SdrResizeYAllItem > SDRATTR_RESIZEYALL(SDRATTR_NOTPERSIST_FIRST+26)
virtual SdrEdgeKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1375
constexpr TypedWhichId< SdrEdgeNode1GlueDistItem > SDRATTR_EDGENODE1GLUEDIST(SDRATTR_EDGE_FIRST+5)
virtual SdrCaptionLineLenItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1963
constexpr TypedWhichId< XLineStartWidthItem > XATTR_LINESTARTWIDTH(XATTR_LINE_FIRST+6)
constexpr TypedWhichId< XFillTransparenceItem > XATTR_FILLTRANSPARENCE(XATTR_FILL_FIRST+5)
constexpr TypedWhichId< XFillGradientItem > XATTR_FILLGRADIENT(XATTR_FILL_FIRST+2)
SdrMeasureDecimalPlacesItem(sal_Int16 nVal=2)
Definition: sxmtfitm.hxx:58
constexpr TypedWhichId< SdrCustomShapeGeometryItem > SDRATTR_CUSTOMSHAPE_GEOMETRY(SDRATTR_CUSTOMSHAPE_FIRST+2)
constexpr TypedWhichId< SdrGrafLuminanceItem > SDRATTR_GRAFLUMINANCE(SDRATTR_GRAF_FIRST+3)
int i
constexpr TypedWhichId< SdrCaptionEscAbsItem > SDRATTR_CAPTIONESCABS(SDRATTR_CAPTION_FIRST+7)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_7(SDRATTR_3DSCENE_FIRST+10)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_1(SDRATTR_3DSCENE_FIRST+21)
virtual SdrEdgeNode2VertDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1528
constexpr TypedWhichId< XSecondaryFillColorItem > XATTR_SECONDARYFILLCOLOR(XATTR_FILL_FIRST+12)
virtual SdrMeasureUnitItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1690
constexpr TypedWhichId< XFillBitmapItem > XATTR_FILLBITMAP(XATTR_FILL_FIRST+4)
constexpr TypedWhichId< SdrEdgeNode1VertDistItem > SDRATTR_EDGENODE1VERTDIST(SDRATTR_EDGE_FIRST+2)
constexpr TypedWhichId< SdrTransformRef2YItem > SDRATTR_TRANSFORMREF2Y(SDRATTR_NOTPERSIST_FIRST+33)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1078
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1402
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:943
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1226
constexpr TypedWhichId< SvxLineItem > SDRATTR_TABLE_BORDER_TLBR(SDRATTR_TABLE_FIRST+2)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1756
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:676
class SdrCaptionGapItem Distance of the line start from the Rect
Definition: sxcgitm.hxx:29
constexpr TypedWhichId< SvxCharScaleWidthItem > EE_CHAR_FONTWIDTH(EE_CHAR_START+3)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_5(SDRATTR_3DSCENE_FIRST+17)
constexpr TypedWhichId< SdrLayerNameItem > SDRATTR_LAYERNAME(SDRATTR_NOTPERSIST_FIRST+4)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_CAPTIONGAP(SDRATTR_CAPTION_FIRST+3)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_MEASUREHELPLINE2LEN(SDRATTR_MEASURE_FIRST+7)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_TWO_SIDED_LIGHTING(SDRATTR_3DSCENE_FIRST+3)
virtual SdrItemPool * Clone() const override
Definition: svdattr.cxx:368
constexpr TypedWhichId< XLineEndWidthItem > XATTR_LINEENDWIDTH(XATTR_LINE_FIRST+7)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1642
void SetValue(sal_Int16 nTheValue)
constexpr TypedWhichId< SdrGrafBlueItem > SDRATTR_GRAFBLUE(SDRATTR_GRAF_FIRST+2)
constexpr TypedWhichId< SdrTextVertAdjustItem > SDRATTR_TEXT_VERTADJUST(SDRATTR_MISC_FIRST+8)
std::unique_ptr< SfxItemInfo[]> mpLocalItemInfos
Definition: xpool.hxx:36
constexpr TypedWhichId< SdrMoveXItem > SDRATTR_MOVEX(SDRATTR_NOTPERSIST_FIRST+18)
constexpr sal_uInt16 SDRATTR_NOTPERSIST_FIRST(SDRATTR_CIRC_LAST+1)
virtual void ScaleMetrics(tools::Long nMul, tools::Long nDiv) override
Definition: svdattr.cxx:1297
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_LEFTDIST(SDRATTR_MISC_FIRST+4)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_AMBIENTCOLOR(SDRATTR_3DSCENE_FIRST+12)
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_MAXFRAMEHEIGHT(SDRATTR_MISC_FIRST+9)
constexpr TypedWhichId< XFillBmpPosItem > XATTR_FILLBMP_POS(XATTR_FILL_FIRST+8)
SdrMeasureBelowRefEdgeItem(bool bOn=false)
Definition: sxmbritm.hxx:34
constexpr TypedWhichId< SdrObjVisibleItem > SDRATTR_OBJVISIBLE(SDRATTR_NOTPERSIST_FIRST+35)
void SetItemInfos(const SfxItemInfo *pInfos)
SdrTextVertAdjustItem(SdrTextVertAdjust eAdj=SDRTEXTVERTADJUST_TOP)
Definition: sdtaitm.hxx:37
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1668
#define DEGREE_CHAR
Definition: svdmodel.hxx:51
constexpr TypedWhichId< SdrMeasureFormatStringItem > SDRATTR_MEASUREFORMATSTRING(SDRATTR_MEASURE_FIRST+15)
constexpr TypedWhichId< SdrGrafModeItem > SDRATTR_GRAFMODE(SDRATTR_GRAF_FIRST+8)
SdrEdgeKind
Definition: sxekitm.hxx:26
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_MINFRAMEWIDTH(SDRATTR_MISC_FIRST+10)
SdrMeasureTextHPosItem(css::drawing::MeasureTextHorzPos ePos=css::drawing::MeasureTextHorzPos::MeasureTextHorzPos_AUTO)
Definition: sxmtpitm.hxx:30
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SHADOWYDIST(SDRATTR_SHADOW_FIRST+3)
virtual ~SdrCaptionFitLineLenItem() override
Definition: svdattr.cxx:1950
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DSCENE_LIGHTON_8(SDRATTR_3DSCENE_FIRST+20)
virtual SdrTextAniStopInsideItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1927
constexpr TypedWhichId< SdrLogicSizeWidthItem > SDRATTR_LOGICSIZEWIDTH(SDRATTR_NOTPERSIST_FIRST+14)
constexpr TypedWhichId< SfxStringItem > SDRATTR_TEXT_CHAINNEXTNAME(SDRATTR_MISC_FIRST+25)
virtual OUString GetValueTextByVal(bool bVal) const override
Definition: svdattr.cxx:748
ColorTransparency
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1762
constexpr TypedWhichId< XFormTextShadowXValItem > XATTR_FORMTXTSHDWXVAL(XATTR_TEXT_FIRST+8)
constexpr TypedWhichId< XFormTextShadowItem > XATTR_FORMTXTSHADOW(XATTR_TEXT_FIRST+6)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_MINFRAMEHEIGHT(SDRATTR_MISC_FIRST+1)
constexpr TypedWhichId< XFormTextAdjustItem > XATTR_FORMTXTADJUST(XATTR_TEXT_FIRST+1)
constexpr TypedWhichId< SdrTransformRef2XItem > SDRATTR_TRANSFORMREF2X(SDRATTR_NOTPERSIST_FIRST+32)
constexpr TypedWhichId< SdrShearAngleItem > SDRATTR_SHEARANGLE(SDRATTR_NOTPERSIST_FIRST+17)
virtual SdrFractionItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:667
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1476
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_8(SDRATTR_3DSCENE_FIRST+28)
SdrMeasureTextUpsideDownItem(bool bOn=false)
Definition: sxmtritm.hxx:42
constexpr TypedWhichId< SdrLayerIdItem > SDRATTR_LAYERID(SDRATTR_NOTPERSIST_FIRST+3)
constexpr TypedWhichId< XLineStartCenterItem > XATTR_LINESTARTCENTER(XATTR_LINE_FIRST+8)
constexpr TypedWhichId< Svx3DPerspectiveItem > SDRATTR_3DSCENE_PERSPECTIVE(SDRATTR_3DSCENE_FIRST+0)
virtual SdrMeasureBelowRefEdgeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1972
SdrLayerIdItem(SdrLayerID nId)
Definition: sxlayitm.hxx:29
constexpr sal_uInt16 EE_FEATURE_LINEBR(EE_FEATURE_TAB+1)
virtual SdrCaptionTypeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:926
constexpr TypedWhichId< SdrGrafCropItem > SDRATTR_GRAFCROP(SDRATTR_GRAF_FIRST+9)
virtual SdrCircKindItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1729
constexpr TypedWhichId< SdrAllSizeHeightItem > SDRATTR_ALLSIZEHEIGHT(SDRATTR_NOTPERSIST_FIRST+9)
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:1111
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1123
SdrEdgeNode2GlueDistItem(tools::Long nVal=0)
Definition: sxenditm.hxx:66
constexpr TypedWhichId< SfxBoolItem > EE_PARA_BULLETSTATE(EE_PARA_START+8)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:720
constexpr TypedWhichId< SdrYesNoItem > SDRATTR_OBJSIZEPROTECT(SDRATTR_NOTPERSIST_FIRST+1)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1042
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1864
const sal_uInt16 idx[]
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_UPPERDIST(SDRATTR_MISC_FIRST+6)
constexpr TypedWhichId< SdrGrafGreenItem > SDRATTR_GRAFGREEN(SDRATTR_GRAF_FIRST+1)
constexpr TypedWhichId< SdrRotateOneItem > SDRATTR_ROTATEONE(SDRATTR_NOTPERSIST_FIRST+22)
SdrEdgeNode1HorzDistItem(tools::Long nVal)
Definition: sxenditm.hxx:28
virtual SdrMetricItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:864
SdrPercentItem(sal_uInt16 nId, sal_uInt16 nVal)
Definition: sdprcitm.hxx:34
constexpr TypedWhichId< SdrCaptionTypeItem > SDRATTR_CAPTIONTYPE(SDRATTR_CAPTION_FIRST+0)
SdrEdgeNode1VertDistItem(tools::Long nVal)
Definition: sxenditm.hxx:36
virtual void ScaleMetrics(tools::Long nMul, tools::Long nDiv) override
Definition: svdattr.cxx:874
constexpr TypedWhichId< SdrMeasureTextIsFixedAngleItem > SDRATTR_MEASURETEXTISFIXEDANGLE(SDRATTR_MEASURE_FIRST+18)
constexpr TypedWhichId< SdrRotateAllItem > SDRATTR_ROTATEALL(SDRATTR_NOTPERSIST_FIRST+27)
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1064
virtual bool operator==(const SfxPoolItem &) const override
Definition: svdattr.cxx:631
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1275
constexpr TypedWhichId< SfxInt16Item > EE_PARA_OUTLLEVEL(EE_PARA_START+10)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1746
virtual SdrMeasureTextHPosItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1591
virtual SdrCaptionEscRelItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1945
constexpr sal_uInt16 EE_FEATURE_NOTCONV(EE_FEATURE_LINEBR+1)
constexpr TypedWhichId< SvxBoxItem > SDRATTR_TABLE_BORDER(SDRATTR_TABLE_FIRST+0)
SdrTextAniDirectionItem(SdrTextAniDirection eDir=SdrTextAniDirection::Left)
Definition: sdtaditm.hxx:36
constexpr TypedWhichId< XFillColorItem > XATTR_FILLCOLOR(XATTR_FILL_FIRST+1)
virtual SdrGrafGamma100Item * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1823
constexpr TypedWhichId< XGradientStepCountItem > XATTR_GRADIENTSTEPCOUNT(XATTR_FILL_FIRST+6)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SHADOWXDIST(SDRATTR_SHADOW_FIRST+2)
constexpr TypedWhichId< Svx3DSmoothLidsItem > SDRATTR_3DOBJ_SMOOTH_LIDS(SDRATTR_3DOBJ_FIRST+20)
constexpr TypedWhichId< SvxCrossedOutItem > EE_CHAR_STRIKEOUT(EE_CHAR_START+6)
constexpr sal_uInt16 SDRATTR_END(SDRATTR_SOFTEDGE_LAST)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1249
constexpr TypedWhichId< XFillAttrSetItem > XATTRSET_FILL(XATTR_FILL_LAST+1)
SdrMeasureUnitItem(FieldUnit eUnit=FieldUnit::NONE)
Definition: sxmuitm.hxx:31
constexpr TypedWhichId< XFormTextStartItem > XATTR_FORMTXTSTART(XATTR_TEXT_FIRST+3)
constexpr TypedWhichId< XFillFloatTransparenceItem > XATTR_FILLFLOATTRANSPARENCE(XATTR_FILL_FIRST+11)
static OUString formatPercent(double dNumber, const LanguageTag &rLangTag)
virtual SdrLayerNameItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:2027
static OUString GetItemName(sal_uInt16 nWhich)
Definition: svdattr.cxx:398
constexpr TypedWhichId< Svx3DCloseBackItem > SDRATTR_3DOBJ_CLOSE_BACK(SDRATTR_3DOBJ_FIRST+23)
virtual bool GetPresentation(const SfxPoolItem &rItem, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override
Definition: svdattr.cxx:379
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1392
constexpr TypedWhichId< SdrYesNoItem > SDRATTR_MEASURESHOWUNIT(SDRATTR_MEASURE_FIRST+14)
virtual ~SdrTextAniStopInsideItem() override
Definition: svdattr.cxx:1923
virtual SdrGrafLuminanceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1813
constexpr TypedWhichId< SvxLRSpaceItem > EE_PARA_OUTLLRSPACE(EE_PARA_START+9)
sal_Int32 GetDenominator() const
virtual SdrCaptionEscIsRelItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1936
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
virtual SdrMeasureTextIsFixedAngleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1981
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1000
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_RIGHTDIST(SDRATTR_MISC_FIRST+5)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1718
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DSCENE_FOCAL_LENGTH(SDRATTR_3DSCENE_FIRST+2)
constexpr TypedWhichId< SfxVoidItem > SDRATTR_SHADOW3D(SDRATTR_SHADOW_FIRST+5)
constexpr TypedWhichId< XFillBmpPosOffsetYItem > XATTR_FILLBMP_POSOFFSETY(XATTR_FILL_FIRST+18)
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_BACKSCALE(SDRATTR_3DOBJ_FIRST+1)
constexpr TypedWhichId< SdrVertShearAllItem > SDRATTR_VERTSHEARALL(SDRATTR_NOTPERSIST_FIRST+29)
unsigned char sal_uInt8
SdrCaptionFitLineLenItem(bool bBestFit=true)
Definition: sxcllitm.hxx:49
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1608
constexpr TypedWhichId< SvxEscapementItem > EE_CHAR_ESCAPEMENT(EE_CHAR_START+10)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1239
constexpr TypedWhichId< XFormTextShadowYValItem > XATTR_FORMTXTSHDWYVAL(XATTR_TEXT_FIRST+9)
virtual ~SdrMeasureTextUpsideDownItem() override
Definition: svdattr.cxx:2013
constexpr TypedWhichId< XFillBmpStretchItem > XATTR_FILLBMP_STRETCH(XATTR_FILL_FIRST+16)
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1731
constexpr TypedWhichId< SdrMeasureTextVPosItem > SDRATTR_MEASURETEXTVPOS(SDRATTR_MEASURE_FIRST+2)
virtual ~SdrCaptionLineLenItem() override
Definition: svdattr.cxx:1959
constexpr TypedWhichId< SdrMetricItem > SDRATTR_GLOW_RADIUS(SDRATTR_GLOW_FIRST+0)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1470
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
constexpr TypedWhichId< SdrEdgeNode2GlueDistItem > SDRATTR_EDGENODE2GLUEDIST(SDRATTR_EDGE_FIRST+6)
constexpr TypedWhichId< SdrTextAniStopInsideItem > SDRATTR_TEXT_ANISTOPINSIDE(SDRATTR_MISC_FIRST+17)
constexpr TypedWhichId< SvxWordLineModeItem > EE_CHAR_WLM(EE_CHAR_START+13)
virtual bool HasBoolValue() const override
Definition: svdattr.cxx:1025
constexpr TypedWhichId< SdrTextAniKindItem > SDRATTR_TEXT_ANIKIND(SDRATTR_MISC_FIRST+14)
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_3(SDRATTR_3DSCENE_FIRST+23)
constexpr TypedWhichId< XFillBmpPosOffsetXItem > XATTR_FILLBMP_POSOFFSETX(XATTR_FILL_FIRST+17)
virtual ~SdrTextAniStartInsideItem() override
Definition: svdattr.cxx:1914
constexpr TypedWhichId< SdrYesNoItem > SDRATTR_MEASURETEXTUPSIDEDOWN(SDRATTR_MEASURE_FIRST+10)
constexpr TypedWhichId< SfxBoolItem > EE_PARA_HYPHENATE(EE_PARA_START+6)
constexpr TypedWhichId< SvxOverlineItem > EE_CHAR_OVERLINE(EE_CHAR_START+29)
Degree100 GetValue() const
Definition: sdangitm.hxx:39
constexpr TypedWhichId< XFillBmpTileItem > XATTR_FILLBMP_TILE(XATTR_FILL_FIRST+7)
constexpr TypedWhichId< SfxUInt16Item > SDRATTR_3DOBJ_PERCENT_DIAGONAL(SDRATTR_3DOBJ_FIRST+0)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:1702
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_8(SDRATTR_3DSCENE_FIRST+11)
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_BLACK
sal_Int32 GetNumerator() const
constexpr TypedWhichId< SdrLogicSizeHeightItem > SDRATTR_LOGICSIZEHEIGHT(SDRATTR_NOTPERSIST_FIRST+15)
constexpr TypedWhichId< XFillBmpSizeLogItem > XATTR_FILLBMP_SIZELOG(XATTR_FILL_FIRST+13)
constexpr TypedWhichId< SdrCaptionFitLineLenItem > SDRATTR_CAPTIONFITLINELEN(SDRATTR_CAPTION_FIRST+9)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_EDGELINE1DELTA(SDRATTR_EDGE_FIRST+8)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1624
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_6(SDRATTR_3DSCENE_FIRST+9)
virtual SdrEdgeNode1VertDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1486
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:1121
constexpr TypedWhichId< SdrTextFixedCellHeightItem > SDRATTR_TEXT_USEFIXEDCELLHEIGHT(SDRATTR_MISC_FIRST+23)
static tools::Long Scale(tools::Long nVal, tools::Long nMult, tools::Long nDiv)
SdrTextHorzAdjustItem(SdrTextHorzAdjust eAdj=SDRTEXTHORZADJUST_BLOCK)
Definition: sdtaitm.hxx:61
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1644
void SetValue(sal_uInt32 nTheValue)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1205
sal_uInt32 GetValue() const
void SetValid(SvxBoxInfoItemValidFlags nValid, bool bValid=true)
constexpr TypedWhichId< SvxUnderlineItem > EE_CHAR_UNDERLINE(EE_CHAR_START+5)
constexpr TypedWhichId< SvxBulletItem > EE_PARA_BULLET(EE_PARA_START+11)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_EDGELINE2DELTA(SDRATTR_EDGE_FIRST+9)
SdrEdgeNode2VertDistItem(tools::Long nVal)
Definition: sxenditm.hxx:52
SdrTextFitToSizeTypeItem(css::drawing::TextFitToSizeType const eFit=css::drawing::TextFitToSizeType_NONE)
Definition: sdtfsitm.hxx:38
virtual sal_uInt16 GetValueCount() const override
Definition: svdattr.cxx:956
virtual SdrOnOffItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:708
constexpr TypedWhichId< SdrTransformRef1YItem > SDRATTR_TRANSFORMREF1Y(SDRATTR_NOTPERSIST_FIRST+31)
virtual SdrGrafContrastItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1818
MapUnit
constexpr TypedWhichId< SdrGrafContrastItem > SDRATTR_GRAFCONTRAST(SDRATTR_GRAF_FIRST+4)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1449
constexpr TypedWhichId< SdrGrafInvertItem > SDRATTR_GRAFINVERT(SDRATTR_GRAF_FIRST+7)
constexpr TypedWhichId< SdrTextAniDelayItem > SDRATTR_TEXT_ANIDELAY(SDRATTR_MISC_FIRST+19)
constexpr TypedWhichId< SdrMeasureBelowRefEdgeItem > SDRATTR_MEASUREBELOWREFEDGE(SDRATTR_MEASURE_FIRST+8)
constexpr TypedWhichId< Svx3DShadeModeItem > SDRATTR_3DSCENE_SHADE_MODE(SDRATTR_3DSCENE_FIRST+30)
virtual OUString GetValueTextByVal(bool bVal) const override
Definition: svdattr.cxx:713
constexpr TypedWhichId< SdrCaptionEscIsRelItem > SDRATTR_CAPTIONESCISREL(SDRATTR_CAPTION_FIRST+5)
SdrItemPool(SfxItemPool *pMaster=nullptr)
Definition: svdattr.cxx:111
constexpr sal_uInt16 EE_FEATURE_FIELD(EE_FEATURE_NOTCONV+1)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SOFTEDGE_RADIUS(SDRATTR_SOFTEDGE_FIRST+0)
constexpr TypedWhichId< SfxUInt32Item > SDRATTR_3DOBJ_END_ANGLE(SDRATTR_3DOBJ_FIRST+5)
virtual ~SdrItemPool() override
Definition: svdattr.cxx:373
constexpr TypedWhichId< SvxLineItem > SDRATTR_TABLE_BORDER_BLTR(SDRATTR_TABLE_FIRST+3)
constexpr TypedWhichId< XFormTextMirrorItem > XATTR_FORMTXTMIRROR(XATTR_TEXT_FIRST+4)
virtual SdrTextAniDirectionItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1222
bool IsValid() const
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
Definition: svdattr.cxx:785
SdrFractionItem(sal_uInt16 nId, const Fraction &rVal)
Definition: sxfiitm.hxx:31
SdrOnOffItem(sal_uInt16 nId, bool bOn)
Definition: sdooitm.hxx:32
constexpr TypedWhichId< SdrMeasureTextRota90Item > SDRATTR_MEASURETEXTROTA90(SDRATTR_MEASURE_FIRST+9)
SdrGrafInvertItem(bool bInvert=false)
Definition: sdginitm.hxx:34
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_2(SDRATTR_3DSCENE_FIRST+5)
constexpr TypedWhichId< XFillBmpTileOffsetXItem > XATTR_FILLBMP_TILEOFFSETX(XATTR_FILL_FIRST+14)
SdrMeasureTextRota90Item(bool bOn=false)
Definition: sxmtritm.hxx:28
bool IsInvalidItem(const SfxPoolItem *pItem)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_ECKENRADIUS(SDRATTR_MISC_FIRST+0)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: svdattr.cxx:970
virtual ~SdrMeasureTextFixedAngleItem() override
Definition: svdattr.cxx:1986
virtual SdrScaleItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:699
constexpr TypedWhichId< SdrOnePositionXItem > SDRATTR_ONEPOSITIONX(SDRATTR_NOTPERSIST_FIRST+10)
constexpr TypedWhichId< Svx3DNormalsKindItem > SDRATTR_3DOBJ_NORMALS_KIND(SDRATTR_3DOBJ_FIRST+7)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1512
constexpr TypedWhichId< XLineColorItem > XATTR_LINECOLOR(XATTR_LINE_FIRST+3)
constexpr TypedWhichId< XFillBmpSizeYItem > XATTR_FILLBMP_SIZEY(XATTR_FILL_FIRST+10)
constexpr TypedWhichId< SvXMLAttrContainerItem > SDRATTR_XMLATTRIBUTES(SDRATTR_MISC_FIRST+22)
aStr
Fraction nValue
Definition: sxfiitm.hxx:29
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DOBJ_MAT_EMISSION(SDRATTR_3DOBJ_FIRST+13)
constexpr TypedWhichId< SvxColorItem > SDRATTR_3DSCENE_LIGHTCOLOR_4(SDRATTR_3DSCENE_FIRST+7)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_MEASUREHELPLINEOVERHANG(SDRATTR_MEASURE_FIRST+4)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1455
static OUString GetValueTextByPos(sal_uInt16 nPos)
Definition: svdattr.cxx:1379
sal_uInt16 Which() const
constexpr TypedWhichId< SdrAllPositionXItem > SDRATTR_ALLPOSITIONX(SDRATTR_NOTPERSIST_FIRST+6)
constexpr TypedWhichId< SvxTabStopItem > EE_PARA_TABS(EE_PARA_START+16)
constexpr TypedWhichId< SfxStringItem > SDRATTR_CUSTOMSHAPE_ENGINE(SDRATTR_CUSTOMSHAPE_FIRST+0)
virtual SdrCaptionEscDirItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:954
virtual SdrEdgeNode2GlueDistItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1538
virtual SdrTextAniDelayItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1273
constexpr TypedWhichId< SvxB3DVectorItem > SDRATTR_3DSCENE_LIGHTDIRECTION_4(SDRATTR_3DSCENE_FIRST+24)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_MEASURELINEDIST(SDRATTR_MEASURE_FIRST+3)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_SHADOWSIZEY(SDRATTR_SHADOW_FIRST+8)
constexpr TypedWhichId< SfxStringItem > SDRATTR_OBJECTNAME(SDRATTR_NOTPERSIST_FIRST+5)
void SetSecondaryPool(SfxItemPool *pPool)
constexpr TypedWhichId< SdrAngleItem > SDRATTR_CIRCSTARTANGLE(SDRATTR_CIRC_FIRST+1)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: svdattr.cxx:1153
SdrCaptionEscRelItem(tools::Long nEscRel=5000)
Definition: sxcecitm.hxx:70
constexpr TypedWhichId< SdrTextAniAmountItem > SDRATTR_TEXT_ANIAMOUNT(SDRATTR_MISC_FIRST+20)
constexpr TypedWhichId< Svx3DCloseFrontItem > SDRATTR_3DOBJ_CLOSE_FRONT(SDRATTR_3DOBJ_FIRST+22)
constexpr TypedWhichId< SfxBoolItem > SDRATTR_3DOBJ_SHADOW_3D(SDRATTR_3DOBJ_FIRST+11)
virtual SdrTextVertAdjustItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: svdattr.cxx:1060
constexpr TypedWhichId< XFormTextShadowColorItem > XATTR_FORMTXTSHDWCOLOR(XATTR_TEXT_FIRST+7)
sal_Int16 nValue
Definition: fmsrccfg.cxx:81
void SetDist(bool bNew)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1712
OUString GetStr(tools::Long nVal) const
Definition: svdtrans.cxx:681
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: svdattr.cxx:1491
constexpr TypedWhichId< SdrMeasureScaleItem > SDRATTR_MEASURESCALE(SDRATTR_MEASURE_FIRST+13)
constexpr TypedWhichId< SdrResizeXOneItem > SDRATTR_RESIZEXONE(SDRATTR_NOTPERSIST_FIRST+20)
void dumpAsXml(xmlTextWriterPtr pWriter) const override
constexpr TypedWhichId< SdrMeasureTextFixedAngleItem > SDRATTR_MEASURETEXTFIXEDANGLE(SDRATTR_MEASURE_FIRST+19)
constexpr TypedWhichId< Svx3DTextureProjectionYItem > SDRATTR_3DOBJ_TEXTURE_PROJ_Y(SDRATTR_3DOBJ_FIRST+10)
typedef void(CALLTYPE *GetFuncDataPtr)(sal_uInt16 &nNo