summaryrefslogtreecommitdiff
path: root/sd/source/ui/table/tablefunction.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/table/tablefunction.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/table/tablefunction.cxx')
-rw-r--r--sd/source/ui/table/tablefunction.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index 2ab095e09c29..69878f2ef874 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -137,7 +137,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
nRows = pDlg->getRows();
}
- Rectangle aRect;
+ ::tools::Rectangle aRect;
SdrObject* pPickObj = mpView->GetEmptyPresentationObject( PRESOBJ_TABLE );
if( pPickObj )
@@ -150,7 +150,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
Size aSize( 14100, 2000 );
Point aPos;
- Rectangle aWinRect(aPos, GetActiveWindow()->GetOutputSizePixel());
+ ::tools::Rectangle aWinRect(aPos, GetActiveWindow()->GetOutputSizePixel());
aWinRect = GetActiveWindow()->PixelToLogic(aWinRect);
// make sure that the default size of the table fits on the paper and is inside the viewing area.
@@ -160,7 +160,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
if (comphelper::LibreOfficeKit::isActive())
{
// aWinRect is nonsensical in the LOK case
- aWinRect = Rectangle(aPos, aMaxSize);
+ aWinRect = ::tools::Rectangle(aPos, aMaxSize);
}
else
{
@@ -184,7 +184,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
aPos = aWinRect.Center();
aPos.X() -= aSize.Width() / 2;
aPos.Y() -= aSize.Height() / 2;
- aRect = Rectangle(aPos, aSize);
+ aRect = ::tools::Rectangle(aPos, aSize);
}
sdr::table::SdrTableObj* pObj = new sdr::table::SdrTableObj( GetDoc(), aRect, nColumns, nRows );
@@ -275,7 +275,7 @@ void CreateTableFromRTF( SvStream& rStream, SdDrawDocument* pModel )
{
Size aSize( 200, 200 );
Point aPos;
- Rectangle aRect (aPos, aSize);
+ ::tools::Rectangle aRect (aPos, aSize);
sdr::table::SdrTableObj* pObj = new sdr::table::SdrTableObj( pModel, aRect, 1, 1 );
pObj->NbcSetStyleSheet( pModel->GetDefaultStyleSheet(), true );
OUString sTableStyle;