summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-01-29 13:44:34 +0000
committerRüdiger Timm <rt@openoffice.org>2007-01-29 13:44:34 +0000
commit6aaaec429b7ee6f46f15f0b953f144bc7344036e (patch)
tree7372a3ea3a3b1cbcbd54420bfe64a1ce0cf56d92 /svx/source/accessibility
parentfb56a440aae9158d5527e622013554eb7de3f2b6 (diff)
INTEGRATION: CWS dr53 (1.21.184); FILE MERGED
2007/01/24 08:37:59 dr 1.21.184.1: #i19430# gnopernicus and rotated cell text
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleStaticTextBase.cxx26
1 files changed, 24 insertions, 2 deletions
diff --git a/svx/source/accessibility/AccessibleStaticTextBase.cxx b/svx/source/accessibility/AccessibleStaticTextBase.cxx
index dc27e44391cf..b2c32cd5bf15 100644
--- a/svx/source/accessibility/AccessibleStaticTextBase.cxx
+++ b/svx/source/accessibility/AccessibleStaticTextBase.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: AccessibleStaticTextBase.cxx,v $
*
- * $Revision: 1.21 $
+ * $Revision: 1.22 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 12:00:47 $
+ * last change: $Author: rt $ $Date: 2007-01-29 14:44:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -210,6 +210,8 @@ namespace accessibility
sal_Bool CopyText( sal_Int32 nStartPara, sal_Int32 nStartIndex,
sal_Int32 nEndPara, sal_Int32 nEndIndex );
+ Rectangle GetParagraphBoundingBox() const;
+
private:
EPosition ImpCalcInternal( sal_Int32 nFlatIndex, bool bExclusive ) const;
@@ -458,6 +460,21 @@ namespace accessibility
}
}
+ Rectangle AccessibleStaticTextBase_Impl::GetParagraphBoundingBox() const
+ {
+ Rectangle aRect;
+ if( mpTextParagraph )
+ {
+ awt::Rectangle aAwtRect = mpTextParagraph->getBounds();
+ aRect = Rectangle( Point( aAwtRect.X, aAwtRect.Y ), Size( aAwtRect.Width, aAwtRect.Height ) );
+ }
+ else
+ {
+ aRect.SetEmpty();
+ }
+ return aRect;
+ }
+
//------------------------------------------------------------------------
//
// AccessibleStaticTextBase implementation
@@ -916,6 +933,11 @@ namespace accessibility
aEndIndex.nPara, aEndIndex.nIndex );
}
+ Rectangle AccessibleStaticTextBase::GetParagraphBoundingBox() const
+ {
+ return mpImpl->GetParagraphBoundingBox();
+ }
+
} // end of namespace accessibility
//------------------------------------------------------------------------