summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews3.cxx
diff options
context:
space:
mode:
authorDieter Loeschky <dl@openoffice.org>2001-10-05 12:22:51 +0000
committerDieter Loeschky <dl@openoffice.org>2001-10-05 12:22:51 +0000
commitbd837fcbae7662bd127cb214f1497e4bf750cab0 (patch)
treec984a8c545b65c038ce3bd738497accc6ad21a95 /sd/source/ui/view/drviews3.cxx
parent2395f55b4b72f0a16d42ef10339de00e034ccbfe (diff)
#92085# GetRulerState(): setting of SID_RULER_LR_MIN_MAX corrected
Diffstat (limited to 'sd/source/ui/view/drviews3.cxx')
-rw-r--r--sd/source/ui/view/drviews3.cxx19
1 files changed, 12 insertions, 7 deletions
diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx
index a17127aa3899..cd915866cde1 100644
--- a/sd/source/ui/view/drviews3.cxx
+++ b/sd/source/ui/view/drviews3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drviews3.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: dl $ $Date: 2001-10-05 06:43:59 $
+ * last change: $Author: dl $ $Date: 2001-10-05 13:22:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -743,11 +743,16 @@ void SdDrawViewShell::GetRulerState(SfxItemSet& rSet)
Point aPagePos = pWindow->GetViewOrigin();
Size aPageSize = pActualPage->GetSize();
- Rectangle aRect(aPagePos, Point(
- aViewSize.Width() - (aPagePos.X() + aPageSize.Width()),
- aViewSize.Height() - (aPagePos.Y() + aPageSize.Height())));
- SfxRectangleItem aMinMax(SID_RULER_LR_MIN_MAX, aRect);
- rSet.Put(aMinMax);
+ Rectangle aRect(aPagePos, Point( aViewSize.Width() - (aPagePos.X() + aPageSize.Width()),
+ aViewSize.Height() - (aPagePos.Y() + aPageSize.Height())));
+
+ if( pDrView->IsTextEdit() )
+ {
+ Point aPnt1 = pWindow->GetWinViewPos();
+ Point aPnt2 = pWindow->GetViewOrigin();
+ Rectangle aMinMaxRect = Rectangle( aPnt1, Size(ULONG_MAX, ULONG_MAX) );
+ rSet.Put( SfxRectangleItem(SID_RULER_LR_MIN_MAX, aMinMaxRect) );
+ }
SvxLongLRSpaceItem aLRSpace(aPagePos.X() + pActualPage->GetLftBorder(),
aRect.Right() + pActualPage->GetRgtBorder(),