diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-10-25 21:04:27 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-03-04 09:45:28 +0000 |
commit | bb4a052a768d5936e0e241b15d3c08a56284eeb4 (patch) | |
tree | fd3af4885825c908b0b5eff349db5442ebae29f2 /include | |
parent | f763e453263a8acfdcdf553a7c3a46ddaf476c13 (diff) |
svx: SdrTextObj maRect - use getter and add funcs. for manipulation
Change-Id: I0a416fa2ac470650c2ef430dbb91bf8d5a8013cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148210
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/svdotext.hxx | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index a2574765ade7..a1cccb0804a4 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -165,7 +165,32 @@ protected: // The "aRect" is also the rect of RectObj and CircObj. // When mbTextFrame=true the text will be formatted into this rect // When mbTextFrame=false the text will be centered around its middle - tools::Rectangle maRect; + tools::Rectangle maRectangle; + + tools::Rectangle const& getRectangle() const + { + return maRectangle; + } + + void setRectangle(tools::Rectangle const& rRectangle) + { + maRectangle = rRectangle; + } + + void setRectangleSize(sal_Int32 nWidth, sal_Int32 nHeight) + { + maRectangle.SetSize(Size(nWidth, nHeight)); + } + + void moveRectangle(sal_Int32 nXDelta, sal_Int32 nYDelta) + { + maRectangle.Move(nXDelta, nYDelta); + } + + void moveRectanglePosition(sal_Int32 nX, sal_Int32 nY) + { + maRectangle.SetPos(Point(nX, nY)); + } // The GeoStat contains the rotation and shear angles GeoStat maGeo; |