LibreOffice Module svx (master)  1
rulritem.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 <svx/svxids.hrc>
21 #include <svx/rulritem.hxx>
22 #include <svx/unomid.hxx>
23 #include <tools/debug.hxx>
24 #include <tools/mapunit.hxx>
25 #include <tools/UnitConversion.hxx>
26 #include <osl/diagnose.h>
27 #include <sal/log.hxx>
28 #include <com/sun/star/awt/Rectangle.hpp>
29 #include <com/sun/star/frame/status/LeftRightMargin.hpp>
30 #include <com/sun/star/frame/status/UpperLowerMargin.hpp>
31 
36 SfxPoolItem* SvxObjectItem::CreateDefault() { SAL_WARN( "svx", "No SvxObjectItem factory available"); return nullptr; }
37 
38 /* SvxLongLRSpaceItem */
39 
41 {
42  return SfxPoolItem::operator==(rCmp) &&
43  mlLeft == static_cast<const SvxLongLRSpaceItem &>(rCmp).mlLeft &&
44  mlRight == static_cast<const SvxLongLRSpaceItem &>(rCmp).mlRight;
45 }
46 
47 bool SvxLongLRSpaceItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
48 {
49  bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
50  nMemberId &= ~CONVERT_TWIPS;
51 
52  sal_Int32 nVal;
53  switch( nMemberId )
54  {
55  case 0:
56  {
57  css::frame::status::LeftRightMargin aLeftRightMargin;
58  aLeftRightMargin.Left = bConvert ? convertTwipToMm100( mlLeft ) : mlLeft;
59  aLeftRightMargin.Right = bConvert ? convertTwipToMm100( mlRight ) : mlRight;
60  rVal <<= aLeftRightMargin;
61  return true;
62  }
63 
64  case MID_LEFT:
65  nVal = mlLeft;
66  break;
67  case MID_RIGHT:
68  nVal = mlRight;
69  break;
70  default:
71  OSL_FAIL("Wrong MemberId!");
72  return false;
73  }
74 
75  if ( bConvert )
76  nVal = convertTwipToMm100( nVal );
77 
78  rVal <<= nVal;
79  return true;
80 }
81 
82 bool SvxLongLRSpaceItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
83 {
84  bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
85  nMemberId &= ~CONVERT_TWIPS;
86 
87  sal_Int32 nVal = 0;
88  if ( nMemberId == 0 )
89  {
90  css::frame::status::LeftRightMargin aLeftRightMargin;
91  if ( rVal >>= aLeftRightMargin )
92  {
93  mlLeft = bConvert ? convertMm100ToTwip(aLeftRightMargin.Left) : aLeftRightMargin.Left;
94  mlRight = bConvert ? convertMm100ToTwip(aLeftRightMargin.Right) : aLeftRightMargin.Right;
95  return true;
96  }
97  }
98  else if ( rVal >>= nVal )
99  {
100  if ( bConvert )
101  nVal = convertMm100ToTwip( nVal );
102 
103  switch( nMemberId )
104  {
105  case MID_LEFT:
106  mlLeft = nVal;
107  break;
108  case MID_RIGHT:
109  mlRight = nVal;
110  break;
111  default:
112  OSL_FAIL("Wrong MemberId!");
113  return false;
114  }
115 
116  return true;
117  }
118 
119  return false;
120 }
121 
123  SfxItemPresentation /*ePres*/,
124  MapUnit /*eCoreUnit*/,
125  MapUnit /*ePresUnit*/,
126  OUString& /*rText*/,
127  const IntlWrapper& /*rWrapper*/) const
128 {
129  return false;
130 }
131 
133 {
134  return new SvxLongLRSpaceItem(*this);
135 }
136 
137 SvxLongLRSpaceItem::SvxLongLRSpaceItem(long lLeft, long lRight, sal_uInt16 nId) :
138  SfxPoolItem (nId),
139  mlLeft (lLeft),
140  mlRight (lRight)
141 {}
142 
144  SfxPoolItem (0),
145  mlLeft (0),
146  mlRight (0)
147 {}
148 
149 void SvxLongLRSpaceItem::SetLeft(long lArgLeft)
150 {
151  mlLeft = lArgLeft;
152 }
153 
154 void SvxLongLRSpaceItem::SetRight(long lArgRight)
155 {
156  mlRight = lArgRight;
157 }
158 
159 /* SvxLongULSpaceItem */
160 
162 {
163  return SfxPoolItem::operator==(rCmp) &&
164  mlLeft == static_cast<const SvxLongULSpaceItem&>(rCmp).mlLeft &&
165  mlRight == static_cast<const SvxLongULSpaceItem&>(rCmp).mlRight;
166 }
167 
168 bool SvxLongULSpaceItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
169 {
170  bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
171  nMemberId &= ~CONVERT_TWIPS;
172 
173  sal_Int32 nVal;
174  switch( nMemberId )
175  {
176  case 0:
177  {
178  css::frame::status::UpperLowerMargin aUpperLowerMargin;
179  aUpperLowerMargin.Upper = bConvert ? convertTwipToMm100( mlLeft ) : mlLeft;
180  aUpperLowerMargin.Lower = bConvert ? convertTwipToMm100( mlRight ) : mlRight;
181  rVal <<= aUpperLowerMargin;
182  return true;
183  }
184 
185  case MID_UPPER:
186  nVal = mlLeft;
187  break;
188  case MID_LOWER:
189  nVal = mlRight;
190  break;
191  default: OSL_FAIL("Wrong MemberId!"); return false;
192  }
193 
194  if ( bConvert )
195  nVal = convertTwipToMm100( nVal );
196 
197  rVal <<= nVal;
198  return true;
199 }
200 
201 bool SvxLongULSpaceItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
202 {
203  bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
204  nMemberId &= ~CONVERT_TWIPS;
205 
206  sal_Int32 nVal = 0;
207  if ( nMemberId == 0 )
208  {
209  css::frame::status::UpperLowerMargin aUpperLowerMargin;
210  if ( rVal >>= aUpperLowerMargin )
211  {
212  mlLeft = bConvert ? convertMm100ToTwip( aUpperLowerMargin.Upper ) : aUpperLowerMargin.Upper;
213  mlRight = bConvert ? convertMm100ToTwip( aUpperLowerMargin.Lower ) : aUpperLowerMargin.Lower;
214  return true;
215  }
216  }
217  else if ( rVal >>= nVal )
218  {
219  if ( bConvert )
220  nVal = convertMm100ToTwip( nVal );
221 
222  switch( nMemberId )
223  {
224  case MID_UPPER:
225  mlLeft = nVal;
226  break;
227  case MID_LOWER:
228  mlRight = nVal;
229  break;
230  default:
231  OSL_FAIL("Wrong MemberId!");
232  return false;
233  }
234 
235  return true;
236  }
237 
238  return false;
239 }
240 
242  SfxItemPresentation /*ePres*/,
243  MapUnit /*eCoreUnit*/,
244  MapUnit /*ePresUnit*/,
245  OUString& /*rText*/,
246  const IntlWrapper& /*rWrapper*/ ) const
247 {
248  return false;
249 }
250 
252 {
253  return new SvxLongULSpaceItem(*this);
254 }
255 
256 SvxLongULSpaceItem::SvxLongULSpaceItem(long lLeft, long lRight, sal_uInt16 nId) :
257  SfxPoolItem (nId),
258  mlLeft (lLeft),
259  mlRight (lRight)
260 {}
261 
263  SfxPoolItem (0),
264  mlLeft (0),
265  mlRight (0)
266 {}
267 
268 
269 void SvxLongULSpaceItem::SetUpper(long lArgLeft)
270 {
271  mlLeft = lArgLeft;
272 }
273 
274 void SvxLongULSpaceItem::SetLower(long lArgRight)
275 {
276  mlRight = lArgRight;
277 }
278 
279 /* SvxPagePosSizeItem */
280 
282 {
283  return SfxPoolItem::operator==(rCmp) &&
284  aPos == static_cast<const SvxPagePosSizeItem &>(rCmp).aPos &&
285  lWidth == static_cast<const SvxPagePosSizeItem &>(rCmp).lWidth &&
286  lHeight == static_cast<const SvxPagePosSizeItem &>(rCmp).lHeight;
287 }
288 
289 bool SvxPagePosSizeItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
290 {
291  nMemberId &= ~CONVERT_TWIPS;
292 
293  sal_Int32 nVal;
294  switch ( nMemberId )
295  {
296  case 0 :
297  {
298  css::awt::Rectangle aPagePosSize;
299  aPagePosSize.X = aPos.X();
300  aPagePosSize.Y = aPos.Y();
301  aPagePosSize.Width = lWidth;
302  aPagePosSize.Height = lHeight;
303  rVal <<= aPagePosSize;
304  return true;
305  }
306 
307  case MID_X: nVal = aPos.X(); break;
308  case MID_Y: nVal = aPos.Y(); break;
309  case MID_WIDTH: nVal = lWidth; break;
310  case MID_HEIGHT: nVal = lHeight; break;
311 
312  default: OSL_FAIL("Wrong MemberId!"); return false;
313  }
314 
315  rVal <<= nVal;
316  return true;
317 }
318 
319 bool SvxPagePosSizeItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
320 {
321  nMemberId &= ~CONVERT_TWIPS;
322 
323  sal_Int32 nVal = 0;
324  if ( nMemberId == 0 )
325  {
326  css::awt::Rectangle aPagePosSize;
327  if ( rVal >>= aPagePosSize )
328  {
329  aPos.setX( aPagePosSize.X );
330  aPos.setY( aPagePosSize.Y );
331  lWidth = aPagePosSize.Width;
332  lHeight = aPagePosSize.Height;
333  return true;
334  }
335  else
336  return false;
337  }
338  else if ( rVal >>= nVal )
339  {
340  switch ( nMemberId )
341  {
342  case MID_X: aPos.setX( nVal ); break;
343  case MID_Y: aPos.setY( nVal ); break;
344  case MID_WIDTH: lWidth = nVal; break;
345  case MID_HEIGHT: lHeight = nVal; break;
346 
347  default: OSL_FAIL("Wrong MemberId!"); return false;
348  }
349 
350  return true;
351  }
352 
353  return false;
354 }
355 
357  SfxItemPresentation /*ePres*/,
358  MapUnit /*eCoreUnit*/,
359  MapUnit /*ePresUnit*/,
360  OUString& /*rText*/,
361  const IntlWrapper& /*rWrapper*/ ) const
362 {
363  return false;
364 }
365 
367 {
368  return new SvxPagePosSizeItem(*this);
369 }
370 
371 SvxPagePosSizeItem::SvxPagePosSizeItem(const Point &rP, long lW, long lH) :
372  SfxPoolItem (SID_RULER_PAGE_POS),
373  aPos (rP),
374  lWidth (lW),
375  lHeight (lH)
376 {}
377 
379  SfxPoolItem (0),
380  aPos (0, 0),
381  lWidth (0),
382  lHeight (0)
383 {}
384 
385 /* SvxColumnItem */
386 
387 bool SvxColumnItem::operator==(const SfxPoolItem& rCmp) const
388 {
389  if(!SfxPoolItem::operator==(rCmp) ||
390  nActColumn != static_cast<const SvxColumnItem&>(rCmp).nActColumn ||
391  nLeft != static_cast<const SvxColumnItem&>(rCmp).nLeft ||
392  nRight != static_cast<const SvxColumnItem&>(rCmp).nRight ||
393  bTable != static_cast<const SvxColumnItem&>(rCmp).bTable ||
394  Count() != static_cast<const SvxColumnItem&>(rCmp).Count())
395  return false;
396 
397  const sal_uInt16 nCount = static_cast<const SvxColumnItem&>(rCmp).Count();
398  for(sal_uInt16 i = 0; i < nCount;++i)
399  {
400  if( (*this)[i] != static_cast<const SvxColumnItem&>(rCmp)[i] )
401  return false;
402  }
403  return true;
404 }
405 
406 SvxColumnItem::SvxColumnItem( sal_uInt16 nAct ) :
407  SfxPoolItem (SID_RULER_BORDERS),
408  nLeft (0),
409  nRight (0),
410  nActColumn (nAct),
411  bTable (false),
412  bOrtho (true)
413 
414 {}
415 
416 SvxColumnItem::SvxColumnItem( sal_uInt16 nActCol, sal_uInt16 left, sal_uInt16 right ) :
417  SfxPoolItem (SID_RULER_BORDERS),
418  nLeft (left),
419  nRight (right),
420  nActColumn (nActCol),
421  bTable (true),
422  bOrtho (true)
423 {}
424 
426  SfxItemPresentation /*ePres*/,
427  MapUnit /*eCoreUnit*/,
428  MapUnit /*ePresUnit*/,
429  OUString& /*rText*/,
430  const IntlWrapper& /*rWrapper*/ ) const
431 {
432  return false;
433 }
434 
436 {
437  return new SvxColumnItem(*this);
438 }
439 
441 {
442  const sal_uInt16 nCount = Count();
443  DBG_ASSERT(nCount >= 2, "no columns");
444  if(nCount < 2)
445  return false;
446 
447  long nColWidth = (*this)[0].GetWidth();
448  for(sal_uInt16 i = 1; i < nCount; ++i) {
449  if( (*this)[i].GetWidth() != nColWidth)
450  return false;
451  }
453  return true;
454 }
455 
456 bool SvxColumnItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
457 {
458  nMemberId &= ~CONVERT_TWIPS;
459  switch ( nMemberId )
460  {
461  case MID_COLUMNARRAY:
462  return false;
463  case MID_RIGHT:
464  rVal <<= nRight;
465  break;
466  case MID_LEFT:
467  rVal <<= nLeft;
468  break;
469  case MID_ORTHO:
470  rVal <<= bOrtho;
471  break;
472  case MID_ACTUAL:
473  rVal <<= static_cast<sal_Int32>(nActColumn);
474  break;
475  case MID_TABLE:
476  rVal <<= bTable;
477  break;
478  default:
479  // SfxDispatchController_Impl::StateChanged calls this with hardcoded 0 triggering this;
480  OSL_FAIL("Wrong MemberId!");
481  return false;
482  }
483 
484  return true;
485 }
486 
487 bool SvxColumnItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
488 {
489  nMemberId &= ~CONVERT_TWIPS;
490  sal_Int32 nVal = 0;
491  switch ( nMemberId )
492  {
493  case MID_COLUMNARRAY:
494  {
495  return false;
496  }
497  case MID_RIGHT:
498  rVal >>= nRight;
499  break;
500  case MID_LEFT:
501  rVal >>= nLeft;
502  break;
503  case MID_ORTHO:
504  rVal >>= nVal;
505  bOrtho = static_cast<bool>(nVal);
506  break;
507  case MID_ACTUAL:
508  rVal >>= nVal;
509  nActColumn = static_cast<sal_uInt16>(nVal);
510  break;
511  case MID_TABLE:
512  rVal >>= nVal;
513  bTable = static_cast<bool>(nVal);
514  break;
515  default:
516  OSL_FAIL("Wrong MemberId!");
517  return false;
518  }
519 
520  return true;
521 }
522 
523 sal_uInt16 SvxColumnItem::Count() const
524 {
525  return aColumns.size();
526 }
527 
529 {
530  return aColumns[index];
531 }
532 
534 {
535  return aColumns[GetActColumn()];
536 }
537 
539 {
540  return aColumns[index];
541 }
542 
543 const SvxColumnDescription& SvxColumnItem::operator[](sal_uInt16 index) const
544 {
545  return aColumns[index];
546 }
547 
549 {
550  aColumns.push_back(rDesc);
551 }
552 
553 void SvxColumnItem::SetLeft(long left)
554 {
555  nLeft = left;
556 }
557 
558 void SvxColumnItem::SetRight(long right)
559 {
560  nRight = right;
561 }
562 
563 
565 {
566  return nActColumn == 0;
567 }
568 
570 {
571  return nActColumn == Count() - 1;
572 }
573 
574 SvxColumnDescription::SvxColumnDescription(long start, long end, bool bVis) :
575  nStart (start),
576  nEnd (end),
577  bVisible (bVis),
578  nEndMin (0),
579  nEndMax (0)
580 {}
581 
582 SvxColumnDescription::SvxColumnDescription(long start, long end, long endMin, long endMax, bool bVis) :
583  nStart (start),
584  nEnd (end),
585  bVisible (bVis),
586  // fdo#85858 hack: clamp these to smaller value to prevent overflow
587  nEndMin(std::min<long>(endMin, std::numeric_limits<unsigned short>::max())),
588  nEndMax(std::min<long>(endMax, std::numeric_limits<unsigned short>::max()))
589 {}
590 
592 {
593  return nStart == rCmp.nStart
594  && bVisible == rCmp.bVisible
595  && nEnd == rCmp.nEnd
596  && nEndMin == rCmp.nEndMin
597  && nEndMax == rCmp.nEndMax;
598 }
599 
601 {
602  return !operator==(rCmp);
603 }
604 
606 {
607  return nEnd - nStart;
608 }
609 
610 /* SvxColumnItem */
611 void SvxColumnItem::SetOrtho(bool bVal)
612 {
613  bOrtho = bVal;
614 }
615 
617 {
618  return nActColumn < aColumns.size();
619 }
620 
621 bool SvxObjectItem::operator==( const SfxPoolItem& rCmp ) const
622 {
623  return SfxPoolItem::operator==(rCmp) &&
624  nStartX == static_cast<const SvxObjectItem&>(rCmp).nStartX &&
625  nEndX == static_cast<const SvxObjectItem&>(rCmp).nEndX &&
626  nStartY == static_cast<const SvxObjectItem&>(rCmp).nStartY &&
627  nEndY == static_cast<const SvxObjectItem&>(rCmp).nEndY &&
628  bLimits == static_cast<const SvxObjectItem&>(rCmp).bLimits;
629 }
630 
632  SfxItemPresentation /*ePres*/,
633  MapUnit /*eCoreUnit*/,
634  MapUnit /*ePresUnit*/,
635  OUString& /*rText*/,
636  const IntlWrapper& /*rWrapper*/ ) const
637 {
638  return false;
639 }
640 
642 {
643  return new SvxObjectItem(*this);
644 }
645 
646 SvxObjectItem::SvxObjectItem( long nSX, long nEX,
647  long nSY, long nEY ) :
648  SfxPoolItem (SID_RULER_OBJECT),
649  nStartX (nSX),
650  nEndX (nEX),
651  nStartY (nSY),
652  nEndY (nEY),
653  bLimits (false)
654 {}
655 
656 bool SvxObjectItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
657 {
658  nMemberId &= ~CONVERT_TWIPS;
659  switch (nMemberId)
660  {
661  case MID_START_X:
662  rVal <<= nStartX;
663  break;
664  case MID_START_Y:
665  rVal <<= nStartY;
666  break;
667  case MID_END_X:
668  rVal <<= nEndX;
669  break;
670  case MID_END_Y:
671  rVal <<= nEndY;
672  break;
673  case MID_LIMIT:
674  rVal <<= bLimits;
675  break;
676  default:
677  OSL_FAIL( "Wrong MemberId" );
678  return false;
679  }
680 
681  return true;
682 }
683 
684 bool SvxObjectItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
685 {
686  nMemberId &= ~CONVERT_TWIPS;
687  bool bRet = false;
688  switch (nMemberId)
689  {
690  case MID_START_X:
691  bRet = (rVal >>= nStartX);
692  break;
693  case MID_START_Y:
694  bRet = (rVal >>= nStartY);
695  break;
696  case MID_END_X:
697  bRet = (rVal >>= nEndX);
698  break;
699  case MID_END_Y:
700  bRet = (rVal >>= nEndY);
701  break;
702  case MID_LIMIT:
703  bRet = (rVal >>= bLimits);
704  break;
705  default: OSL_FAIL( "Wrong MemberId" );
706  }
707 
708  return bRet;
709 }
710 
711 
712 void SvxObjectItem::SetStartX(long lValue)
713 {
714  nStartX = lValue;
715 }
716 
717 void SvxObjectItem::SetEndX(long lValue)
718 {
719  nEndX = lValue;
720 }
721 
722 void SvxObjectItem::SetStartY(long lValue)
723 {
724  nStartY = lValue;
725 }
726 
727 void SvxObjectItem::SetEndY(long lValue)
728 {
729  nEndY = lValue;
730 }
731 
732 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsFirstAct() const
Definition: rulritem.cxx:564
bool bVisible
#define MID_WIDTH
#define MID_X
virtual bool operator==(const SfxPoolItem &) const =0
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:684
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:621
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:289
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:656
#define MID_HEIGHT
#define MID_ACTUAL
Definition: unomid.hxx:57
void Append(const SvxColumnDescription &rDesc)
Definition: rulritem.cxx:548
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:281
bool IsLastAct() const
Definition: rulritem.cxx:569
SvxObjectItem(long nStartX, long nEndX, long nStartY, long nEndY)
Definition: rulritem.cxx:646
#define MID_COLUMNARRAY
Definition: unomid.hxx:56
#define MID_Y
#define max(a, b)
virtual SvxObjectItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:641
#define MID_START_Y
Definition: unomid.hxx:50
std::vector< SvxColumnDescription > aColumns
Definition: rulritem.hxx:145
bool operator!=(const SvxColumnDescription &rCmp) const
Definition: rulritem.cxx:600
void SetLeft(long aLeft)
Definition: rulritem.cxx:553
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:122
void SetStartY(long lValue)
Definition: rulritem.cxx:722
void SetUpper(long lArgLeft)
Definition: rulritem.cxx:269
#define MID_START_X
Definition: unomid.hxx:49
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:161
virtual SvxLongULSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:251
#define min(a, b)
SvxColumnDescription & operator[](sal_uInt16 index)
Definition: rulritem.cxx:538
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:32
void SetRight(long lArgRight)
Definition: rulritem.cxx:154
int nCount
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:35
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:319
sal_uInt16 nActColumn
Definition: rulritem.hxx:150
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:487
long GetWidth() const
Definition: rulritem.cxx:605
bool CalcOrtho() const
Definition: rulritem.cxx:440
SfxItemPresentation
void SetEndY(long lValue)
Definition: rulritem.cxx:727
#define DBG_ASSERT(sCon, aError)
int i
SvxColumnDescription & At(sal_uInt16 index)
Definition: rulritem.cxx:528
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:631
#define MID_TABLE
Definition: unomid.hxx:58
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:34
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:47
#define MID_END_X
Definition: unomid.hxx:51
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:201
#define MID_END_Y
Definition: unomid.hxx:52
sal_uInt16 Count() const
Definition: rulritem.cxx:523
void SetEndX(long lValue)
Definition: rulritem.cxx:717
void SetStartX(long lValue)
Definition: rulritem.cxx:712
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:456
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:356
constexpr sal_Int64 convertTwipToMm100(sal_Int64 n)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:82
unsigned char sal_uInt8
virtual SvxLongLRSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:132
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:425
sal_uInt16 GetActColumn() const
Definition: rulritem.hxx:182
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:36
#define MID_LIMIT
Definition: unomid.hxx:53
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:40
void SetRight(long aRight)
Definition: rulritem.cxx:558
SvxColumnDescription(long start, long end, bool bVis)
Definition: rulritem.cxx:574
constexpr sal_Int64 convertMm100ToTwip(sal_Int64 n)
#define MID_ORTHO
Definition: unomid.hxx:59
MapUnit
#define SAL_WARN(area, stream)
SvxColumnItem(sal_uInt16 nAct=0)
Definition: rulritem.cxx:406
void SetLower(long lArgRight)
Definition: rulritem.cxx:274
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:241
bool IsConsistent() const
Definition: rulritem.cxx:616
SvxColumnDescription & GetActiveColumnDescription()
Definition: rulritem.cxx:533
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:387
void SetOrtho(bool bVal)
Definition: rulritem.cxx:611
virtual SvxPagePosSizeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:366
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:33
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:168
virtual SvxColumnItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:435
bool operator==(const SvxColumnDescription &rCmp) const
Definition: rulritem.cxx:591
#define CONVERT_TWIPS
#define MID_LEFT
Definition: unomid.hxx:93
void SetLeft(long lArgLeft)
Definition: rulritem.cxx:149