summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/frmview.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 /sd/source/ui/view/frmview.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 'sd/source/ui/view/frmview.cxx')
-rw-r--r--sd/source/ui/view/frmview.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 357623295654..df7efde02afa 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -205,7 +205,7 @@ FrameView::FrameView(SdDrawDocument* pDrawDoc, FrameView* pFrameView /* = NULK *
SetActiveLayer( SD_RESSTR(STR_LAYER_LAYOUT) );
mbNoColors = true;
mbNoAttribs = false;
- maVisArea = Rectangle( Point(), Size(0, 0) );
+ maVisArea = ::tools::Rectangle( Point(), Size(0, 0) );
mePageKind = PageKind::Standard;
mePageKindOnLoad = PageKind::Standard;
mnSelectedPage = 0;
@@ -427,7 +427,7 @@ void FrameView::WriteUserDataSequence ( css::uno::Sequence < css::beans::Propert
// aUserData.addValue( sUNO_View_EditModeHandout, makeAny( (sal_Int32)GetViewShEditMode( PageKind::Handout ) ) );
{
- const Rectangle aVisArea = GetVisArea();
+ const ::tools::Rectangle aVisArea = GetVisArea();
aUserData.addValue( sUNO_View_VisibleAreaTop, makeAny( (sal_Int32)aVisArea.Top() ) );
aUserData.addValue( sUNO_View_VisibleAreaLeft, makeAny( (sal_Int32)aVisArea.Left() ) );
@@ -658,7 +658,7 @@ void FrameView::ReadUserDataSequence ( const css::uno::Sequence < css::beans::Pr
sal_Int32 nTop = 0;
if( pValue->Value >>= nTop )
{
- Rectangle aVisArea( GetVisArea() );
+ ::tools::Rectangle aVisArea( GetVisArea() );
aVisArea.Bottom() += nTop - aVisArea.Top();
aVisArea.Top() = nTop;
SetVisArea( aVisArea );
@@ -669,7 +669,7 @@ void FrameView::ReadUserDataSequence ( const css::uno::Sequence < css::beans::Pr
sal_Int32 nLeft = 0;
if( pValue->Value >>= nLeft )
{
- Rectangle aVisArea( GetVisArea() );
+ ::tools::Rectangle aVisArea( GetVisArea() );
aVisArea.Right() += nLeft - aVisArea.Left();
aVisArea.Left() = nLeft;
SetVisArea( aVisArea );
@@ -680,7 +680,7 @@ void FrameView::ReadUserDataSequence ( const css::uno::Sequence < css::beans::Pr
sal_Int32 nWidth = 0;
if( pValue->Value >>= nWidth )
{
- Rectangle aVisArea( GetVisArea() );
+ ::tools::Rectangle aVisArea( GetVisArea() );
aVisArea.Right() = aVisArea.Left() + nWidth - 1;
SetVisArea( aVisArea );
}
@@ -690,7 +690,7 @@ void FrameView::ReadUserDataSequence ( const css::uno::Sequence < css::beans::Pr
sal_Int32 nHeight = 0;
if( pValue->Value >>= nHeight )
{
- Rectangle aVisArea( GetVisArea() );
+ ::tools::Rectangle aVisArea( GetVisArea() );
aVisArea.Bottom() = nHeight + aVisArea.Top() - 1;
SetVisArea( aVisArea );
}