summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshtxt.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-03-30 20:27:55 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-03-31 06:27:11 +0000
commita5a571307fb3306b74ab46b085cde6388270a770 (patch)
tree66d4ce12bb5236c50ab6a5d253bc8c6d8b5d292d /svx/source/unodraw/unoshtxt.cxx
parent17d821af6bb9df93569836a92f6bed975587fc6c (diff)
tdf#82580 tools: rename Rectangle to tools::Rectangle
Mostly generated using make check COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=clang-rename-wrapper RENAME_ARGS="-qualified-name=Rectangle -new-name=tools::Rectangle" Except some modules have their own foo::tools namespace, so there have to use ::tools::Rectangle. This commit just moves the class from the global namespace, it does not update pre/postwin.h yet. Change-Id: I42b2de3c6f769fcf28cfe086f98eb31e42a305f2 Reviewed-on: https://gerrit.libreoffice.org/35923 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svx/source/unodraw/unoshtxt.cxx')
-rw-r--r--svx/source/unodraw/unoshtxt.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx
index 6d87416e0e93..cb5b73836645 100644
--- a/svx/source/unodraw/unoshtxt.cxx
+++ b/svx/source/unodraw/unoshtxt.cxx
@@ -142,7 +142,7 @@ public:
bool IsValid() const;
- Rectangle GetVisArea();
+ tools::Rectangle GetVisArea();
Point LogicToPixel( const Point&, const MapMode& rMapMode );
Point PixelToLogic( const Point&, const MapMode& rMapMode );
@@ -504,10 +504,10 @@ void SvxTextEditSourceImpl::SetupOutliner()
if( mpObject && mpOutliner )
{
SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>( mpObject );
- Rectangle aPaintRect;
+ tools::Rectangle aPaintRect;
if( pTextObj )
{
- Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
+ tools::Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
pTextObj->SetupOutlinerFormatting( *mpOutliner, aPaintRect );
// calc text offset from shape anchor
@@ -525,10 +525,10 @@ void SvxTextEditSourceImpl::UpdateOutliner()
if( mpObject && mpOutliner )
{
SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>( mpObject );
- Rectangle aPaintRect;
+ tools::Rectangle aPaintRect;
if( pTextObj )
{
- Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
+ tools::Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
pTextObj->UpdateOutlinerFormatting( *mpOutliner, aPaintRect );
// calc text offset from shape anchor
@@ -734,7 +734,7 @@ SvxDrawOutlinerViewForwarder* SvxTextEditSourceImpl::CreateViewForwarder()
SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>( mpObject );
if( pTextObj )
{
- Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
+ tools::Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
OutlinerView& rOutlView = *mpView->GetTextEditOutlinerView();
return new SvxDrawOutlinerViewForwarder( rOutlView, aBoundRect.TopLeft() );
@@ -888,12 +888,12 @@ bool SvxTextEditSourceImpl::IsValid() const
return mpView && mpWindow;
}
-Rectangle SvxTextEditSourceImpl::GetVisArea()
+tools::Rectangle SvxTextEditSourceImpl::GetVisArea()
{
if( IsValid() )
{
SdrPaintWindow* pPaintWindow = mpView->FindPaintWindow(*mpWindow);
- Rectangle aVisArea;
+ tools::Rectangle aVisArea;
if(pPaintWindow)
{
@@ -904,7 +904,7 @@ Rectangle SvxTextEditSourceImpl::GetVisArea()
SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>( mpObject );
if( pTextObj )
{
- Rectangle aAnchorRect;
+ tools::Rectangle aAnchorRect;
pTextObj->TakeTextAnchorRect( aAnchorRect );
aVisArea.Move( -aAnchorRect.Left(), -aAnchorRect.Top() );
@@ -914,7 +914,7 @@ Rectangle SvxTextEditSourceImpl::GetVisArea()
}
}
- return Rectangle();
+ return tools::Rectangle();
}
Point SvxTextEditSourceImpl::LogicToPixel( const Point& rPoint, const MapMode& rMapMode )
@@ -1065,7 +1065,7 @@ bool SvxTextEditSource::IsValid() const
return mpImpl->IsValid();
}
-Rectangle SvxTextEditSource::GetVisArea() const
+tools::Rectangle SvxTextEditSource::GetVisArea() const
{
return mpImpl->GetVisArea();
}