diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-12-10 15:16:32 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2019-12-11 22:51:03 +0100 |
commit | dd27fedb88cc18bbfc669503cfe510d99f40f05d (patch) | |
tree | 460ef56c194da26cc3a095648bbcd13cac40c445 /sw | |
parent | ef8674a48888e2601653fd6481b6542914ffd97c (diff) |
jsdialog: send items on status change
Use existing mechanism, delete sending in getter code
which caused unnecessary work.
Change-Id: Ibc191c16b95fd58e7065e019f48f3837cfed5bbd
Reviewed-on: https://gerrit.libreoffice.org/84914
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/drawdlg.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/shells/grfsh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/shells/txtattr.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewtab.cxx | 4 |
4 files changed, 0 insertions, 16 deletions
diff --git a/sw/source/uibase/shells/drawdlg.cxx b/sw/source/uibase/shells/drawdlg.cxx index 457e0e341cd7..0437340ebf98 100644 --- a/sw/source/uibase/shells/drawdlg.cxx +++ b/sw/source/uibase/shells/drawdlg.cxx @@ -336,10 +336,6 @@ void SwDrawShell::GetDrawAttrState(SfxItemSet& rSet) } else rSet.Put(pSdrView->GetDefaultAttr()); - - SfxViewShell* pViewShell = GetShell().GetSfxViewShell(); - if (pViewShell && comphelper::LibreOfficeKit::isActive()) - pViewShell->sendUnoStatus( &rSet ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index 98e3606f152a..0b417f441e76 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -924,10 +924,6 @@ void SwGrfShell::GetAttrState(SfxItemSet &rSet) nWhich = aIter.NextWhich(); } SetGetStateSet( nullptr ); - - SfxViewShell* pViewShell = GetShell().GetSfxViewShell(); - if (pViewShell && comphelper::LibreOfficeKit::isActive()) - pViewShell->sendUnoStatus( &rSet ); } void SwGrfShell::ExecuteRotation(SfxRequest const &rReq) diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx index 1b11fcca7bad..c7fb5cc28965 100644 --- a/sw/source/uibase/shells/txtattr.cxx +++ b/sw/source/uibase/shells/txtattr.cxx @@ -846,10 +846,6 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet) } rSet.Put(aCoreSet,false); - - SfxViewShell* pViewShell = SfxViewShell::Current(); - if (pViewShell && comphelper::LibreOfficeKit::isActive()) - pViewShell->sendUnoStatus( &rSet ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/uiview/viewtab.cxx b/sw/source/uibase/uiview/viewtab.cxx index 81b44e58ec51..ac46c5a1622a 100644 --- a/sw/source/uibase/uiview/viewtab.cxx +++ b/sw/source/uibase/uiview/viewtab.cxx @@ -2435,10 +2435,6 @@ void SwView::StateTabWin(SfxItemSet& rSet) } nWhich = aIter.NextWhich(); } - - SfxViewShell* pViewShell = SfxViewShell::Current(); - if (pViewShell && comphelper::LibreOfficeKit::isActive()) - pViewShell->sendUnoStatus( &rSet ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |