diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 17:12:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-28 12:47:31 +0100 |
commit | efe22f3fa2375c233b86d9a4556e2cd7eed85f9d (patch) | |
tree | 6c8283a52080c266f54ea416befd31d3f7456893 /svtools/source | |
parent | 398d10a506f9f1c4109d012f22f0e85ee571fe9f (diff) |
drop old tools/gen methods in reportdesign..xmloff
Change-Id: I398831c526ba51d861557fa6c13c0e2fb44dfbe0
Reviewed-on: https://gerrit.libreoffice.org/50447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/simptabl.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/scriptedtext.cxx | 3 | ||||
-rw-r--r-- | svtools/source/misc/imap.cxx | 4 |
4 files changed, 7 insertions, 6 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index e142449e99ec..12e574e345f9 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -386,7 +386,7 @@ public: const tools::Rectangle& GetEntryBoundRect( SvxIconChoiceCtrlEntry* ); void InvalidateBoundingRect( tools::Rectangle& rRect ) { - rRect.Right() = LONG_MAX; + rRect.SetRight(LONG_MAX); bBoundRectsDirty = true; } static bool IsBoundingRectValid( const tools::Rectangle& rRect ) { return ( rRect.Right() != LONG_MAX ); } diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx index 7807f93b39ad..5bb7eb91eb24 100644 --- a/svtools/source/contnr/simptabl.cxx +++ b/svtools/source/contnr/simptabl.cxx @@ -145,13 +145,13 @@ void SvSimpleTable::UpdateViewSize() Size HbSize=aHeaderBar->GetSizePixel(); HbSize.setWidth(theWinSize.Width() ); - theWinSize.Height()-=HbSize.Height(); + theWinSize.AdjustHeight(-HbSize.Height()); Point thePos(0,0); aHeaderBar->SetPosPixel(thePos); aHeaderBar->SetSizePixel(HbSize); - thePos.Y()+=HbSize.Height(); + thePos.AdjustY(HbSize.Height()); SvHeaderTabListBox::SetPosPixel(thePos); SvHeaderTabListBox::SetSizePixel(theWinSize); Invalidate(); diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx index 9d06321e42a5..16b90aedd764 100644 --- a/svtools/source/control/scriptedtext.cxx +++ b/svtools/source/control/scriptedtext.cxx @@ -102,7 +102,8 @@ const vcl::Font& SvtScriptedTextHelper_Impl::GetFont( sal_uInt16 _nScript ) cons void SvtScriptedTextHelper_Impl::CalculateSizes() { - maTextSize.Width() = maTextSize.Height() = 0; + maTextSize.setWidth(0); + maTextSize.setHeight(0); mrOutDevice.Push(PushFlags::FONT | PushFlags::TEXTCOLOR); // calculate text portion widths and total width diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx index 3792f06996a6..19965aa8b50f 100644 --- a/svtools/source/misc/imap.cxx +++ b/svtools/source/misc/imap.cxx @@ -36,8 +36,8 @@ #include <memory> -#define SCALEPOINT(aPT,aFracX,aFracY) (aPT).X()=long((aPT).X()*aFracX); \ - (aPT).Y()=long((aPT).Y()*aFracY); +#define SCALEPOINT(aPT,aFracX,aFracY) (aPT).setX(long((aPT).X()*aFracX)); \ + (aPT).setY(long((aPT).Y()*aFracY)); /******************************************************************************/ |