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>
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
36SfxPoolItem* 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
47bool 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
82bool 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 ? o3tl::toTwips(aLeftRightMargin.Left, o3tl::Length::mm100) : aLeftRightMargin.Left;
94 mlRight = bConvert ? o3tl::toTwips(aLeftRightMargin.Right, o3tl::Length::mm100) : aLeftRightMargin.Right;
95 return true;
96 }
97 }
98 else if ( rVal >>= nVal )
99 {
100 if ( bConvert )
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
139 mlLeft (lLeft),
140 mlRight (lRight)
141{}
142
144 SfxPoolItem (0),
145 mlLeft (0),
146 mlRight (0)
147{}
148
150{
151 mlLeft = lArgLeft;
152}
153
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
168bool 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
201bool 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 ? o3tl::toTwips(aUpperLowerMargin.Upper, o3tl::Length::mm100) : aUpperLowerMargin.Upper;
213 mlRight = bConvert ? o3tl::toTwips(aUpperLowerMargin.Lower, o3tl::Length::mm100) : aUpperLowerMargin.Lower;
214 return true;
215 }
216 }
217 else if ( rVal >>= nVal )
218 {
219 if ( bConvert )
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
258 mlLeft (lLeft),
259 mlRight (lRight)
260{}
261
263 SfxPoolItem (0),
264 mlLeft (0),
265 mlRight (0)
266{}
267
268
270{
271 mlLeft = lArgLeft;
272}
273
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
289bool 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
319bool 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
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
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
407 SfxPoolItem (SID_RULER_BORDERS),
408 nLeft (0),
409 nRight (0),
410 nActColumn (nAct),
411 bTable (false),
412 bOrtho (true)
413
414{}
415
416SvxColumnItem::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 tools::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
456bool SvxColumnItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
457{
458 nMemberId &= ~CONVERT_TWIPS;
459 switch ( nMemberId )
460 {
461 case 0:
462 // SfxDispatchController_Impl::StateChanged calls this with hardcoded 0 triggering this;
463 SAL_INFO("svx", "SvxColumnItem::QueryValue with nMemberId of 0");
464 return false;
465 case MID_COLUMNARRAY:
466 return false;
467 case MID_RIGHT:
468 rVal <<= nRight;
469 break;
470 case MID_LEFT:
471 rVal <<= nLeft;
472 break;
473 case MID_ORTHO:
474 rVal <<= bOrtho;
475 break;
476 case MID_ACTUAL:
477 rVal <<= static_cast<sal_Int32>(nActColumn);
478 break;
479 case MID_TABLE:
480 rVal <<= bTable;
481 break;
482 default:
483 SAL_WARN("svx", "Wrong MemberId!");
484 return false;
485 }
486
487 return true;
488}
489
490bool SvxColumnItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
491{
492 nMemberId &= ~CONVERT_TWIPS;
493 sal_Int32 nVal = 0;
494 switch ( nMemberId )
495 {
496 case MID_COLUMNARRAY:
497 {
498 return false;
499 }
500 case MID_RIGHT:
501 rVal >>= nRight;
502 break;
503 case MID_LEFT:
504 rVal >>= nLeft;
505 break;
506 case MID_ORTHO:
507 rVal >>= nVal;
508 bOrtho = static_cast<bool>(nVal);
509 break;
510 case MID_ACTUAL:
511 rVal >>= nVal;
512 nActColumn = static_cast<sal_uInt16>(nVal);
513 break;
514 case MID_TABLE:
515 rVal >>= nVal;
516 bTable = static_cast<bool>(nVal);
517 break;
518 default:
519 OSL_FAIL("Wrong MemberId!");
520 return false;
521 }
522
523 return true;
524}
525
526sal_uInt16 SvxColumnItem::Count() const
527{
528 return aColumns.size();
529}
530
532{
533 return aColumns[index];
534}
535
537{
538 return aColumns[GetActColumn()];
539}
540
542{
543 return aColumns[index];
544}
545
547{
548 return aColumns[index];
549}
550
552{
553 aColumns.push_back(rDesc);
554}
555
557{
558 nLeft = left;
559}
560
562{
563 nRight = right;
564}
565
566
568{
569 return nActColumn == 0;
570}
571
573{
574 return nActColumn == Count() - 1;
575}
576
578 nStart (start),
579 nEnd (end),
580 bVisible (bVis),
581 nEndMin (0),
582 nEndMax (0)
583{}
584
586 nStart (start),
587 nEnd (end),
588 bVisible (bVis),
589 // fdo#85858 hack: clamp these to smaller value to prevent overflow
590 nEndMin(std::min<tools::Long>(endMin, std::numeric_limits<unsigned short>::max())),
591 nEndMax(std::min<tools::Long>(endMax, std::numeric_limits<unsigned short>::max()))
592{}
593
595{
596 return nStart == rCmp.nStart
597 && bVisible == rCmp.bVisible
598 && nEnd == rCmp.nEnd
599 && nEndMin == rCmp.nEndMin
600 && nEndMax == rCmp.nEndMax;
601}
602
604{
605 return !operator==(rCmp);
606}
607
609{
610 return nEnd - nStart;
611}
612
613/* SvxColumnItem */
615{
616 bOrtho = bVal;
617}
618
620{
621 return nActColumn < aColumns.size();
622}
623
624bool SvxObjectItem::operator==( const SfxPoolItem& rCmp ) const
625{
626 return SfxPoolItem::operator==(rCmp) &&
627 nStartX == static_cast<const SvxObjectItem&>(rCmp).nStartX &&
628 nEndX == static_cast<const SvxObjectItem&>(rCmp).nEndX &&
629 nStartY == static_cast<const SvxObjectItem&>(rCmp).nStartY &&
630 nEndY == static_cast<const SvxObjectItem&>(rCmp).nEndY &&
631 bLimits == static_cast<const SvxObjectItem&>(rCmp).bLimits;
632}
633
635 SfxItemPresentation /*ePres*/,
636 MapUnit /*eCoreUnit*/,
637 MapUnit /*ePresUnit*/,
638 OUString& /*rText*/,
639 const IntlWrapper& /*rWrapper*/ ) const
640{
641 return false;
642}
643
645{
646 return new SvxObjectItem(*this);
647}
648
650 tools::Long nSY, tools::Long nEY ) :
651 SfxPoolItem (SID_RULER_OBJECT),
652 nStartX (nSX),
653 nEndX (nEX),
654 nStartY (nSY),
655 nEndY (nEY),
656 bLimits (false)
657{}
658
659bool SvxObjectItem::QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId ) const
660{
661 nMemberId &= ~CONVERT_TWIPS;
662 switch (nMemberId)
663 {
664 case MID_START_X:
665 rVal <<= nStartX;
666 break;
667 case MID_START_Y:
668 rVal <<= nStartY;
669 break;
670 case MID_END_X:
671 rVal <<= nEndX;
672 break;
673 case MID_END_Y:
674 rVal <<= nEndY;
675 break;
676 case MID_LIMIT:
677 rVal <<= bLimits;
678 break;
679 default:
680 OSL_FAIL( "Wrong MemberId" );
681 return false;
682 }
683
684 return true;
685}
686
687bool SvxObjectItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
688{
689 nMemberId &= ~CONVERT_TWIPS;
690 bool bRet = false;
691 switch (nMemberId)
692 {
693 case MID_START_X:
694 bRet = (rVal >>= nStartX);
695 break;
696 case MID_START_Y:
697 bRet = (rVal >>= nStartY);
698 break;
699 case MID_END_X:
700 bRet = (rVal >>= nEndX);
701 break;
702 case MID_END_Y:
703 bRet = (rVal >>= nEndY);
704 break;
705 case MID_LIMIT:
706 bRet = (rVal >>= bLimits);
707 break;
708 default: OSL_FAIL( "Wrong MemberId" );
709 }
710
711 return bRet;
712}
713
714
716{
717 nStartX = lValue;
718}
719
721{
722 nEndX = lValue;
723}
724
726{
727 nStartY = lValue;
728}
729
731{
732 nEndY = lValue;
733}
734
735/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr auto convertTwipToMm100(N n)
virtual bool operator==(const SfxPoolItem &) const=0
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:425
void SetLeft(tools::Long aLeft)
Definition: rulritem.cxx:556
sal_uInt16 Count() const
Definition: rulritem.cxx:526
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:490
SvxColumnDescription & operator[](sal_uInt16 index)
Definition: rulritem.cxx:541
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:35
tools::Long nRight
Definition: rulritem.hxx:151
void SetOrtho(bool bVal)
Definition: rulritem.cxx:614
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:456
virtual SvxColumnItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:435
bool IsFirstAct() const
Definition: rulritem.cxx:567
tools::Long nLeft
Definition: rulritem.hxx:150
bool CalcOrtho() const
Definition: rulritem.cxx:440
SvxColumnItem(sal_uInt16 nAct=0)
Definition: rulritem.cxx:406
sal_uInt16 GetActColumn() const
Definition: rulritem.hxx:185
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:387
sal_uInt16 nActColumn
Definition: rulritem.hxx:153
SvxColumnDescription & GetActiveColumnDescription()
Definition: rulritem.cxx:536
void Append(const SvxColumnDescription &rDesc)
Definition: rulritem.cxx:551
bool IsConsistent() const
Definition: rulritem.cxx:619
std::vector< SvxColumnDescription > aColumns
Definition: rulritem.hxx:148
void SetRight(tools::Long aRight)
Definition: rulritem.cxx:561
SvxColumnDescription & At(sal_uInt16 index)
Definition: rulritem.cxx:531
bool IsLastAct() const
Definition: rulritem.cxx:572
virtual SvxLongLRSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:132
void SetLeft(tools::Long lArgLeft)
Definition: rulritem.cxx:149
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:82
tools::Long mlRight
Definition: rulritem.hxx:30
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:47
tools::Long mlLeft
Definition: rulritem.hxx:29
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:122
void SetRight(tools::Long lArgRight)
Definition: rulritem.cxx:154
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:33
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:40
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:168
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:201
void SetLower(tools::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
tools::Long mlLeft
Definition: rulritem.hxx:59
tools::Long mlRight
Definition: rulritem.hxx:60
virtual SvxLongULSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:251
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:34
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:161
void SetUpper(tools::Long lArgLeft)
Definition: rulritem.cxx:269
virtual SvxObjectItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:644
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:634
tools::Long nStartY
Definition: rulritem.hxx:200
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:624
SvxObjectItem(tools::Long nStartX, tools::Long nEndX, tools::Long nStartY, tools::Long nEndY)
Definition: rulritem.cxx:649
tools::Long nEndX
Definition: rulritem.hxx:199
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:687
void SetEndX(tools::Long lValue)
Definition: rulritem.cxx:720
tools::Long nStartX
Definition: rulritem.hxx:198
void SetStartX(tools::Long lValue)
Definition: rulritem.cxx:715
void SetEndY(tools::Long lValue)
Definition: rulritem.cxx:730
tools::Long nEndY
Definition: rulritem.hxx:201
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:36
void SetStartY(tools::Long lValue)
Definition: rulritem.cxx:725
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:659
virtual bool operator==(const SfxPoolItem &) const override
Definition: rulritem.cxx:281
tools::Long lHeight
Definition: rulritem.hxx:91
tools::Long lWidth
Definition: rulritem.hxx:90
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
Definition: rulritem.cxx:289
static SfxPoolItem * CreateDefault()
Definition: rulritem.cxx:32
virtual SvxPagePosSizeItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition: rulritem.cxx:366
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
Definition: rulritem.cxx:319
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
Definition: rulritem.cxx:356
int nCount
#define DBG_ASSERT(sCon, aError)
OString right
#define max(a, b)
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
MapUnit
#define MID_X
#define MID_Y
#define MID_HEIGHT
#define MID_WIDTH
int i
index
constexpr auto toTwips(N number, Length from)
end
long Long
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
sal_Int16 nId
SfxItemPresentation
#define CONVERT_TWIPS
tools::Long nStart
Definition: rulritem.hxx:119
bool operator==(const SvxColumnDescription &rCmp) const
Definition: rulritem.cxx:594
bool operator!=(const SvxColumnDescription &rCmp) const
Definition: rulritem.cxx:603
tools::Long GetWidth() const
Definition: rulritem.cxx:608
SvxColumnDescription(tools::Long start, tools::Long end, bool bVis)
Definition: rulritem.cxx:577
tools::Long nEnd
Definition: rulritem.hxx:120
tools::Long nEndMax
Definition: rulritem.hxx:124
tools::Long nEndMin
Definition: rulritem.hxx:123
bool bVisible
unsigned char sal_uInt8
#define MID_COLUMNARRAY
Definition: unomid.hxx:56
#define MID_LIMIT
Definition: unomid.hxx:53
#define MID_END_X
Definition: unomid.hxx:51
#define MID_LEFT
Definition: unomid.hxx:93
#define MID_ORTHO
Definition: unomid.hxx:59
#define MID_START_X
Definition: unomid.hxx:49
#define MID_TABLE
Definition: unomid.hxx:58
#define MID_ACTUAL
Definition: unomid.hxx:57
#define MID_END_Y
Definition: unomid.hxx:52
#define MID_START_Y
Definition: unomid.hxx:50
sal_uInt64 left