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