From 6aaaec429b7ee6f46f15f0b953f144bc7344036e Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 29 Jan 2007 13:44:34 +0000 Subject: 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 --- .../accessibility/AccessibleStaticTextBase.cxx | 26 ++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'svx/source/accessibility') 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 //------------------------------------------------------------------------ -- cgit