desktop/source/lib/init.cxx | 3 ++- sw/source/uibase/uiview/viewstat.cxx | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-)
New commits: commit 97988a0705b95b6bf6d32f38c66e954d3012ec38 Author: Muhammet Kara <muhammet.k...@collabora.com> AuthorDate: Sat Jan 25 04:10:38 2020 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Feb 12 11:43:35 2020 +0100 lok: Add LOK_CALLBACK_STATE_CHANGED for uno:Orientation Change-Id: Iab3aaf742bdb9fc4b9c5875fee7d769fa0581eeb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87370 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Aron Budea <aron.bu...@collabora.com> Tested-by: Aron Budea <aron.bu...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88451 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index ed3bc77c2667..90989c45df96 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2654,7 +2654,8 @@ static void doc_iniUnoCommands () OUString(".uno:OnlineAutoFormat"), OUString(".uno:InsertSymbol"), OUString(".uno:EditRegion"), - OUString(".uno:ThesaurusDialog") + OUString(".uno:ThesaurusDialog"), + OUString(".uno:Orientation") }; util::URL aCommandURL; diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index ca90d62f1528..caa3bd34a6a2 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -187,6 +187,20 @@ void SwView::GetState(SfxItemSet &rSet) } ::PageDescToItemSet( rDesc, rSet); + + if (nWhich == SID_ATTR_PAGE_ORIENTATION && comphelper::LibreOfficeKit::isActive()) + { + OString aPayload = ".uno:Orientation="; + if (rDesc.GetLandscape()) + { + aPayload += "IsLandscape"; + } + else + { + aPayload += "IsPortrait"; + } + libreOfficeKitViewCallback(LOK_CALLBACK_STATE_CHANGED, aPayload.getStr()); + } } break; case RES_BACKGROUND: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits