diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2017-11-08 16:53:12 +0300 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-11-30 11:26:20 +0100 |
commit | 25555c50ad2a57c1b2313f39b8132ac5e80a45fd (patch) | |
tree | ab52692678aefc050be079afc4bee6eaf885913e /sc/source/ui/inc/notemark.hxx | |
parent | e134bebe10f809214e48fadbc3006ddcf95731c9 (diff) |
tdf#113901: Grid offset for notes and temporary notes modified.
Older calculations for gird offset were incomplete: are not used for notes
(only for temporary ones on mouse over), were not taken into account during
temporary note disappear and contain duplicated code from
ScDrawView::SyncForGrid()
New approach elminate described above problems.
Change-Id: I5f92971e156f37f052b4e6d47b2f16480bdbaf7e
Reviewed-on: https://gerrit.libreoffice.org/44464
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'sc/source/ui/inc/notemark.hxx')
-rw-r--r-- | sc/source/ui/inc/notemark.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/inc/notemark.hxx b/sc/source/ui/inc/notemark.hxx index 8b87809d0fd1..967b8d4962e4 100644 --- a/sc/source/ui/inc/notemark.hxx +++ b/sc/source/ui/inc/notemark.hxx @@ -27,6 +27,7 @@ #include <postit.hxx> class SdrModel; +class ScDrawView; class ScNoteMarker { @@ -45,16 +46,16 @@ private: bool bByKeyboard; tools::Rectangle aRect; + ScDrawView* aDrawView; SdrModel* pModel; ScCaptionPtr mxObject; bool bVisible; - Point aGridOff; DECL_LINK( TimeHdl, Timer*, void ); public: ScNoteMarker( vcl::Window* pWin, vcl::Window* pRight, vcl::Window* pBottom, vcl::Window* pDiagonal, ScDocument* pD, const ScAddress& aPos, const OUString& rUser, - const MapMode& rMap, bool bLeftEdge, bool bForce, bool bKeyboard ); + const MapMode& rMap, bool bLeftEdge, bool bForce, bool bKeyboard, ScDrawView * pDrawView); ~ScNoteMarker(); void Draw(); @@ -62,7 +63,6 @@ public: const ScAddress& GetDocPos() const { return aDocPos; } bool IsByKeyboard() const { return bByKeyboard; } - void SetGridOff( const Point& rOff ) { aGridOff = rOff; } }; #endif |