fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / svx / source / dialog / rulritem.cxx
blob6d2e2bdf297a4c93e5a2e6e5cf581b134df6e711
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include <svx/dialogs.hrc>
21 #include "svx/rulritem.hxx"
22 #include <tools/mapunit.hxx>
23 #include <osl/diagnose.h>
24 #include <com/sun/star/awt/Rectangle.hpp>
25 #include <com/sun/star/frame/status/LeftRightMargin.hpp>
26 #include <com/sun/star/frame/status/UpperLowerMargin.hpp>
28 TYPEINIT1_AUTOFACTORY(SvxPagePosSizeItem, SfxPoolItem);
29 TYPEINIT1_AUTOFACTORY(SvxLongLRSpaceItem, SfxPoolItem);
30 TYPEINIT1_AUTOFACTORY(SvxLongULSpaceItem, SfxPoolItem);
31 TYPEINIT1(SvxColumnItem, SfxPoolItem);
32 TYPEINIT1(SvxObjectItem, SfxPoolItem);
34 /* SvxLongLRSpaceItem */
36 bool SvxLongLRSpaceItem::operator==( const SfxPoolItem& rCmp) const
38 return SfxPoolItem::operator==(rCmp) &&
39 mlLeft == static_cast<const SvxLongLRSpaceItem &>(rCmp).mlLeft &&
40 mlRight == static_cast<const SvxLongLRSpaceItem &>(rCmp).mlRight;
43 bool SvxLongLRSpaceItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
45 bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
46 nMemberId &= ~CONVERT_TWIPS;
48 sal_Int32 nVal;
49 switch( nMemberId )
51 case 0:
53 ::com::sun::star::frame::status::LeftRightMargin aLeftRightMargin;
54 aLeftRightMargin.Left = bConvert ? convertTwipToMm100( mlLeft ) : mlLeft;
55 aLeftRightMargin.Right = bConvert ? convertTwipToMm100( mlRight ) : mlRight;
56 rVal <<= aLeftRightMargin;
57 return true;
60 case MID_LEFT:
61 nVal = mlLeft;
62 break;
63 case MID_RIGHT:
64 nVal = mlRight;
65 break;
66 default:
67 OSL_FAIL("Wrong MemberId!");
68 return false;
71 if ( bConvert )
72 nVal = convertTwipToMm100( nVal );
74 rVal <<= nVal;
75 return true;
78 bool SvxLongLRSpaceItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId )
80 bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
81 nMemberId &= ~CONVERT_TWIPS;
83 sal_Int32 nVal = 0;
84 if ( nMemberId == 0 )
86 ::com::sun::star::frame::status::LeftRightMargin aLeftRightMargin;
87 if ( rVal >>= aLeftRightMargin )
89 mlLeft = bConvert ? convertMm100ToTwip(aLeftRightMargin.Left) : aLeftRightMargin.Left;
90 mlRight = bConvert ? convertMm100ToTwip(aLeftRightMargin.Right) : aLeftRightMargin.Right;
91 return true;
94 else if ( rVal >>= nVal )
96 if ( bConvert )
97 nVal = convertMm100ToTwip( nVal );
99 switch( nMemberId )
101 case MID_LEFT:
102 mlLeft = nVal;
103 break;
104 case MID_RIGHT:
105 mlRight = nVal;
106 break;
107 default:
108 OSL_FAIL("Wrong MemberId!");
109 return false;
112 return true;
115 return false;
118 bool SvxLongLRSpaceItem::GetPresentation(
119 SfxItemPresentation /*ePres*/,
120 SfxMapUnit /*eCoreUnit*/,
121 SfxMapUnit /*ePresUnit*/,
122 OUString& /*rText*/,
123 const IntlWrapper* /*pWrapper*/) const
125 return false;
128 SfxPoolItem* SvxLongLRSpaceItem::Clone(SfxItemPool *) const
130 return new SvxLongLRSpaceItem(*this);
133 SvxLongLRSpaceItem::SvxLongLRSpaceItem(long lLeft, long lRight, sal_uInt16 nId) :
134 SfxPoolItem (nId),
135 mlLeft (lLeft),
136 mlRight (lRight)
139 SvxLongLRSpaceItem::SvxLongLRSpaceItem() :
140 SfxPoolItem (0),
141 mlLeft (0),
142 mlRight (0)
145 SvxLongLRSpaceItem::SvxLongLRSpaceItem(const SvxLongLRSpaceItem &rCpy) :
146 SfxPoolItem (rCpy),
147 mlLeft (rCpy.mlLeft),
148 mlRight (rCpy.mlRight)
153 void SvxLongLRSpaceItem::SetLeft(long lArgLeft)
155 mlLeft = lArgLeft;
158 void SvxLongLRSpaceItem::SetRight(long lArgRight)
160 mlRight = lArgRight;
163 /* SvxLongULSpaceItem */
165 bool SvxLongULSpaceItem::operator==( const SfxPoolItem& rCmp) const
167 return SfxPoolItem::operator==(rCmp) &&
168 mlLeft == static_cast<const SvxLongULSpaceItem&>(rCmp).mlLeft &&
169 mlRight == static_cast<const SvxLongULSpaceItem&>(rCmp).mlRight;
172 bool SvxLongULSpaceItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
174 bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
175 nMemberId &= ~CONVERT_TWIPS;
177 sal_Int32 nVal;
178 switch( nMemberId )
180 case 0:
182 ::com::sun::star::frame::status::UpperLowerMargin aUpperLowerMargin;
183 aUpperLowerMargin.Upper = bConvert ? convertTwipToMm100( mlLeft ) : mlLeft;
184 aUpperLowerMargin.Lower = bConvert ? convertTwipToMm100( mlRight ) : mlRight;
185 rVal <<= aUpperLowerMargin;
186 return true;
189 case MID_UPPER:
190 nVal = mlLeft;
191 break;
192 case MID_LOWER:
193 nVal = mlRight;
194 break;
195 default: OSL_FAIL("Wrong MemberId!"); return false;
198 if ( bConvert )
199 nVal = convertTwipToMm100( nVal );
201 rVal <<= nVal;
202 return true;
205 bool SvxLongULSpaceItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId )
207 bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
208 nMemberId &= ~CONVERT_TWIPS;
210 sal_Int32 nVal = 0;
211 if ( nMemberId == 0 )
213 ::com::sun::star::frame::status::UpperLowerMargin aUpperLowerMargin;
214 if ( rVal >>= aUpperLowerMargin )
216 mlLeft = bConvert ? convertMm100ToTwip( aUpperLowerMargin.Upper ) : aUpperLowerMargin.Upper;
217 mlRight = bConvert ? convertMm100ToTwip( aUpperLowerMargin.Lower ) : aUpperLowerMargin.Lower;
218 return true;
221 else if ( rVal >>= nVal )
223 if ( bConvert )
224 nVal = convertMm100ToTwip( nVal );
226 switch( nMemberId )
228 case MID_UPPER:
229 mlLeft = nVal;
230 break;
231 case MID_LOWER:
232 mlRight = nVal;
233 break;
234 default:
235 OSL_FAIL("Wrong MemberId!");
236 return false;
239 return true;
242 return false;
245 bool SvxLongULSpaceItem::GetPresentation(
246 SfxItemPresentation /*ePres*/,
247 SfxMapUnit /*eCoreUnit*/,
248 SfxMapUnit /*ePresUnit*/,
249 OUString& /*rText*/,
250 const IntlWrapper* /*pWrapper*/ ) const
252 return false;
255 SfxPoolItem* SvxLongULSpaceItem::Clone(SfxItemPool *) const
257 return new SvxLongULSpaceItem(*this);
260 SvxLongULSpaceItem::SvxLongULSpaceItem(long lLeft, long lRight, sal_uInt16 nId) :
261 SfxPoolItem (nId),
262 mlLeft (lLeft),
263 mlRight (lRight)
266 SvxLongULSpaceItem::SvxLongULSpaceItem(const SvxLongULSpaceItem &rCpy) :
267 SfxPoolItem (rCpy),
268 mlLeft (rCpy.mlLeft),
269 mlRight (rCpy.mlRight)
272 SvxLongULSpaceItem::SvxLongULSpaceItem() :
273 SfxPoolItem (0),
274 mlLeft (0),
275 mlRight (0)
280 void SvxLongULSpaceItem::SetUpper(long lArgLeft)
282 mlLeft = lArgLeft;
285 void SvxLongULSpaceItem::SetLower(long lArgRight)
287 mlRight = lArgRight;
290 /* SvxPagePosSizeItem */
292 bool SvxPagePosSizeItem::operator==( const SfxPoolItem& rCmp) const
294 return SfxPoolItem::operator==(rCmp) &&
295 aPos == static_cast<const SvxPagePosSizeItem &>(rCmp).aPos &&
296 lWidth == static_cast<const SvxPagePosSizeItem &>(rCmp).lWidth &&
297 lHeight == static_cast<const SvxPagePosSizeItem &>(rCmp).lHeight;
300 bool SvxPagePosSizeItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
302 nMemberId &= ~CONVERT_TWIPS;
304 sal_Int32 nVal;
305 switch ( nMemberId )
307 case 0 :
309 com::sun::star::awt::Rectangle aPagePosSize;
310 aPagePosSize.X = aPos.X();
311 aPagePosSize.Y = aPos.Y();
312 aPagePosSize.Width = lWidth;
313 aPagePosSize.Height = lHeight;
314 rVal <<= aPagePosSize;
315 return true;
318 case MID_X: nVal = aPos.X(); break;
319 case MID_Y: nVal = aPos.Y(); break;
320 case MID_WIDTH: nVal = lWidth; break;
321 case MID_HEIGHT: nVal = lHeight; break;
323 default: OSL_FAIL("Wrong MemberId!"); return false;
326 rVal <<= nVal;
327 return true;
330 bool SvxPagePosSizeItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId )
332 nMemberId &= ~CONVERT_TWIPS;
334 sal_Int32 nVal = 0;
335 if ( nMemberId == 0 )
337 com::sun::star::awt::Rectangle aPagePosSize;
338 if ( rVal >>= aPagePosSize )
340 aPos.X() = aPagePosSize.X;
341 aPos.Y() = aPagePosSize.Y;
342 lWidth = aPagePosSize.Width;
343 lHeight = aPagePosSize.Height;
344 return true;
346 else
347 return false;
349 else if ( rVal >>= nVal )
351 switch ( nMemberId )
353 case MID_X: aPos.X() = nVal; break;
354 case MID_Y: aPos.Y() = nVal; break;
355 case MID_WIDTH: lWidth = nVal; break;
356 case MID_HEIGHT: lHeight = nVal; break;
358 default: OSL_FAIL("Wrong MemberId!"); return false;
361 return true;
364 return false;
367 bool SvxPagePosSizeItem::GetPresentation(
368 SfxItemPresentation /*ePres*/,
369 SfxMapUnit /*eCoreUnit*/,
370 SfxMapUnit /*ePresUnit*/,
371 OUString& /*rText*/,
372 const IntlWrapper* /*pWrapper*/ ) const
374 return false;
377 SfxPoolItem* SvxPagePosSizeItem::Clone(SfxItemPool *) const
379 return new SvxPagePosSizeItem(*this);
382 SvxPagePosSizeItem::SvxPagePosSizeItem(const Point &rP, long lW, long lH) :
383 SfxPoolItem (SID_RULER_PAGE_POS),
384 aPos (rP),
385 lWidth (lW),
386 lHeight (lH)
389 SvxPagePosSizeItem::SvxPagePosSizeItem(const SvxPagePosSizeItem &rCpy) :
390 SfxPoolItem (rCpy),
391 aPos (rCpy.aPos),
392 lWidth (rCpy.lWidth),
393 lHeight (rCpy.lHeight)
396 SvxPagePosSizeItem::SvxPagePosSizeItem() :
397 SfxPoolItem (0),
398 aPos (0, 0),
399 lWidth (0),
400 lHeight (0)
403 /* SvxColumnItem */
405 bool SvxColumnItem::operator==(const SfxPoolItem& rCmp) const
407 if(!SfxPoolItem::operator==(rCmp) ||
408 nActColumn != static_cast<const SvxColumnItem&>(rCmp).nActColumn ||
409 nLeft != static_cast<const SvxColumnItem&>(rCmp).nLeft ||
410 nRight != static_cast<const SvxColumnItem&>(rCmp).nRight ||
411 bTable != static_cast<const SvxColumnItem&>(rCmp).bTable ||
412 Count() != static_cast<const SvxColumnItem&>(rCmp).Count())
413 return false;
415 const sal_uInt16 nCount = static_cast<const SvxColumnItem&>(rCmp).Count();
416 for(sal_uInt16 i = 0; i < nCount;++i)
418 if( (*this)[i] != static_cast<const SvxColumnItem&>(rCmp)[i] )
419 return false;
421 return true;
424 SvxColumnItem::SvxColumnItem( sal_uInt16 nAct ) :
425 SfxPoolItem (SID_RULER_BORDERS),
426 nLeft (0),
427 nRight (0),
428 nActColumn (nAct),
429 bTable (false),
430 bOrtho (true)
434 SvxColumnItem::SvxColumnItem( sal_uInt16 nActCol, sal_uInt16 left, sal_uInt16 right ) :
435 SfxPoolItem (SID_RULER_BORDERS),
436 nLeft (left),
437 nRight (right),
438 nActColumn (nActCol),
439 bTable (true),
440 bOrtho (true)
443 SvxColumnItem::SvxColumnItem( const SvxColumnItem& rCopy ) :
444 SfxPoolItem (rCopy),
445 nLeft (rCopy.nLeft),
446 nRight (rCopy.nRight),
447 nActColumn (rCopy.nActColumn),
448 bTable (rCopy.bTable),
449 bOrtho (rCopy.bOrtho)
451 aColumns.resize(rCopy.aColumns.size());
452 std::copy(rCopy.aColumns.begin(), rCopy.aColumns.end(), aColumns.begin());
455 SvxColumnItem::~SvxColumnItem()
458 bool SvxColumnItem::GetPresentation(
459 SfxItemPresentation /*ePres*/,
460 SfxMapUnit /*eCoreUnit*/,
461 SfxMapUnit /*ePresUnit*/,
462 OUString& /*rText*/,
463 const IntlWrapper* /*pWrapper*/ ) const
465 return false;
468 SfxPoolItem* SvxColumnItem::Clone(SfxItemPool* /*pPool*/) const
470 return new SvxColumnItem(*this);
473 const SvxColumnItem& SvxColumnItem::operator=(const SvxColumnItem& rCopy)
475 nLeft = rCopy.nLeft;
476 nRight = rCopy.nRight;
477 bTable = rCopy.bTable;
478 nActColumn = rCopy.nActColumn;
479 aColumns.resize(rCopy.aColumns.size());
481 std::copy(rCopy.aColumns.begin(), rCopy.aColumns.end(), aColumns.begin());
483 return *this;
486 bool SvxColumnItem::CalcOrtho() const
488 const sal_uInt16 nCount = Count();
489 DBG_ASSERT(nCount >= 2, "no columns");
490 if(nCount < 2)
491 return false;
493 long nColWidth = (*this)[0].GetWidth();
494 for(sal_uInt16 i = 1; i < nCount; ++i) {
495 if( (*this)[i].GetWidth() != nColWidth)
496 return false;
498 //!! Wide divider
499 return true;
502 bool SvxColumnItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
504 nMemberId &= ~CONVERT_TWIPS;
505 switch ( nMemberId )
507 case MID_COLUMNARRAY:
508 return false;
509 case MID_RIGHT:
510 rVal <<= nRight;
511 break;
512 case MID_LEFT:
513 rVal <<= nLeft;
514 break;
515 case MID_ORTHO:
516 rVal <<= bOrtho;
517 break;
518 case MID_ACTUAL:
519 rVal <<= (sal_Int32) nActColumn;
520 break;
521 case MID_TABLE:
522 rVal <<= bTable;
523 break;
524 default:
525 OSL_FAIL("Wrong MemberId!");
526 return false;
529 return true;
532 bool SvxColumnItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId )
534 nMemberId &= ~CONVERT_TWIPS;
535 sal_Int32 nVal = 0;
536 switch ( nMemberId )
538 case MID_COLUMNARRAY:
540 return false;
542 case MID_RIGHT:
543 rVal >>= nRight;
544 break;
545 case MID_LEFT:
546 rVal >>= nLeft;
547 break;
548 case MID_ORTHO:
549 rVal >>= nVal;
550 bOrtho = (bool) nVal;
551 break;
552 case MID_ACTUAL:
553 rVal >>= nVal;
554 nActColumn = (sal_uInt16) nVal;
555 break;
556 case MID_TABLE:
557 rVal >>= nVal;
558 bTable = (bool) nVal;
559 break;
560 default:
561 OSL_FAIL("Wrong MemberId!");
562 return false;
565 return true;
568 sal_uInt16 SvxColumnItem::Count() const
570 return aColumns.size();
573 SvxColumnDescription& SvxColumnItem::At(sal_uInt16 index)
575 return aColumns[index];
578 SvxColumnDescription& SvxColumnItem::GetActiveColumnDescription()
580 return aColumns[GetActColumn()];
583 SvxColumnDescription& SvxColumnItem::operator[](sal_uInt16 index)
585 return aColumns[index];
588 const SvxColumnDescription& SvxColumnItem::operator[](sal_uInt16 index) const
590 return aColumns[index];
593 void SvxColumnItem::Insert(const SvxColumnDescription &rDesc, sal_uInt16 nPos)
595 aColumns.insert(aColumns.begin() + nPos, rDesc);
598 void SvxColumnItem::Append(const SvxColumnDescription &rDesc)
600 Insert(rDesc, Count());
603 void SvxColumnItem::SetLeft(long left)
605 nLeft = left;
608 void SvxColumnItem::SetRight(long right)
610 nRight = right;
614 bool SvxColumnItem::IsFirstAct() const
616 return nActColumn == 0;
619 bool SvxColumnItem::IsLastAct() const
621 return nActColumn == Count() - 1;
624 SvxColumnDescription::SvxColumnDescription() :
625 nStart (0),
626 nEnd (0),
627 bVisible (true),
628 nEndMin (0),
629 nEndMax (0)
632 SvxColumnDescription::SvxColumnDescription(const SvxColumnDescription &rCopy) :
633 nStart (rCopy.nStart),
634 nEnd (rCopy.nEnd),
635 bVisible (rCopy.bVisible),
636 nEndMin (rCopy.nEndMin),
637 nEndMax (rCopy.nEndMax)
640 SvxColumnDescription::SvxColumnDescription(long start, long end, bool bVis) :
641 nStart (start),
642 nEnd (end),
643 bVisible (bVis),
644 nEndMin (0),
645 nEndMax (0)
648 SvxColumnDescription::SvxColumnDescription(long start, long end, long endMin, long endMax, bool bVis) :
649 nStart (start),
650 nEnd (end),
651 bVisible (bVis),
652 // fdo#85858 hack: clamp these to smaller value to prevent overflow
653 nEndMin(std::min<long>(endMin, std::numeric_limits<unsigned short>::max())),
654 nEndMax(std::min<long>(endMax, std::numeric_limits<unsigned short>::max()))
657 bool SvxColumnDescription::operator==(const SvxColumnDescription& rCmp) const
659 return nStart == rCmp.nStart
660 && bVisible == rCmp.bVisible
661 && nEnd == rCmp.nEnd
662 && nEndMin == rCmp.nEndMin
663 && nEndMax == rCmp.nEndMax;
666 bool SvxColumnDescription::operator!=(const SvxColumnDescription& rCmp) const
668 return !operator==(rCmp);
671 long SvxColumnDescription::GetWidth() const
673 return nEnd - nStart;
676 /* SvxColumnItem */
677 void SvxColumnItem::SetOrtho(bool bVal)
679 bOrtho = bVal;
682 bool SvxColumnItem::IsConsistent() const
684 return nActColumn < aColumns.size();
687 bool SvxObjectItem::operator==( const SfxPoolItem& rCmp ) const
689 return SfxPoolItem::operator==(rCmp) &&
690 nStartX == static_cast<const SvxObjectItem&>(rCmp).nStartX &&
691 nEndX == static_cast<const SvxObjectItem&>(rCmp).nEndX &&
692 nStartY == static_cast<const SvxObjectItem&>(rCmp).nStartY &&
693 nEndY == static_cast<const SvxObjectItem&>(rCmp).nEndY &&
694 bLimits == static_cast<const SvxObjectItem&>(rCmp).bLimits;
697 bool SvxObjectItem::GetPresentation(
698 SfxItemPresentation /*ePres*/,
699 SfxMapUnit /*eCoreUnit*/,
700 SfxMapUnit /*ePresUnit*/,
701 OUString& /*rText*/,
702 const IntlWrapper* /*pWrapper*/ ) const
704 return false;
707 SfxPoolItem* SvxObjectItem::Clone(SfxItemPool *) const
709 return new SvxObjectItem(*this);
712 SvxObjectItem::SvxObjectItem( long nSX, long nEX,
713 long nSY, long nEY, bool limits ) :
714 SfxPoolItem (SID_RULER_OBJECT),
715 nStartX (nSX),
716 nEndX (nEX),
717 nStartY (nSY),
718 nEndY (nEY),
719 bLimits (limits)
722 SvxObjectItem::SvxObjectItem( const SvxObjectItem& rCopy ) :
723 SfxPoolItem (rCopy),
724 nStartX (rCopy.nStartX),
725 nEndX (rCopy.nEndX),
726 nStartY (rCopy.nStartY),
727 nEndY (rCopy.nEndY),
728 bLimits (rCopy.bLimits)
731 bool SvxObjectItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId ) const
733 nMemberId &= ~CONVERT_TWIPS;
734 switch (nMemberId)
736 case MID_START_X:
737 rVal <<= nStartX;
738 break;
739 case MID_START_Y:
740 rVal <<= nStartY;
741 break;
742 case MID_END_X:
743 rVal <<= nEndX;
744 break;
745 case MID_END_Y:
746 rVal <<= nEndY;
747 break;
748 case MID_LIMIT:
749 rVal <<= bLimits;
750 break;
751 default:
752 OSL_FAIL( "Wrong MemberId" );
753 return false;
756 return true;
759 bool SvxObjectItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId )
761 nMemberId &= ~CONVERT_TWIPS;
762 bool bRet = false;
763 switch (nMemberId)
765 case MID_START_X:
766 bRet = (rVal >>= nStartX);
767 break;
768 case MID_START_Y:
769 bRet = (rVal >>= nStartY);
770 break;
771 case MID_END_X:
772 bRet = (rVal >>= nEndX);
773 break;
774 case MID_END_Y:
775 bRet = (rVal >>= nEndY);
776 break;
777 case MID_LIMIT:
778 bRet = (rVal >>= bLimits);
779 break;
780 default: OSL_FAIL( "Wrong MemberId" );
783 return bRet;
791 void SvxObjectItem::SetStartX(long lValue)
793 nStartX = lValue;
796 void SvxObjectItem::SetEndX(long lValue)
798 nEndX = lValue;
801 void SvxObjectItem::SetStartY(long lValue)
803 nStartY = lValue;
806 void SvxObjectItem::SetEndY(long lValue)
808 nEndY = lValue;
811 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */