diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-01-13 13:50:39 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-01-18 03:53:50 +0100 |
commit | 0da5e6f38aedb1fb873d1a90c506f6ab03ab1656 (patch) | |
tree | 7e217c423e6f60beafe822a9dc0bbe82f793e620 /sc/source | |
parent | 6c76f1a90f926bf056d41e60a3375611baf72e2a (diff) |
Bring uno:RefreshView to Calc
Allow refreshing the document layout via UNO slot
Change-Id: I956bb884b1fb4231b1f617c4aa5a80ff9a45ec92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109230
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index a31d73e5802c..9891d7ecf242 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -177,6 +177,11 @@ void ScDocShell::PostPaint( const ScRangeList& rRanges, PaintPartFlags nPart, sa } } +void ScDocShell::PostPaintAll() +{ + PostPaint(0, 0, 0, m_aDocument.MaxCol(), m_aDocument.MaxRow(), MAXTAB, PaintPartFlags::All); +} + void ScDocShell::PostPaintGridAll() { PostPaint( 0,0,0, m_aDocument.MaxCol(),m_aDocument.MaxRow(),MAXTAB, PaintPartFlags::Grid ); diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 055db3ac7a11..19ba7680a1fe 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1329,6 +1329,11 @@ void ScDocShell::Execute( SfxRequest& rReq ) } } break; + case SID_REFRESH_VIEW: + { + PostPaintGridAll(); + } + break; default: { // small (?) hack -> forwarding of the slots to TabViewShell diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index 6682979adc7d..529117f4e048 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -316,6 +316,7 @@ public: void PostPaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab ); void PostPaintCell( const ScAddress& rPos ); + void PostPaintAll(); void PostPaintGridAll(); void PostPaintExtras(); |