desktop/source/lib/init.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 46ab144819ea7ee93dcf5441c57977a973cff389
Author: Caolán McNamara <[email protected]>
AuthorDate: Tue Feb 20 17:07:28 2024 +0000
Commit: Henry Castro <[email protected]>
CommitDate: Fri Apr 19 15:46:46 2024 +0200
add getViewRenderState to LibreOfficeKitDocument
so we can get the initial render state as it is when created
Change-Id: I1202cbbf478bc4f62f4d587e1f2766c61f172cb7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163666
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Miklos Vajna <[email protected]>
(cherry picked from commit effe8f6e5cc5389b234a6e57540f935de4a6f201)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165673
Reviewed-by: Henry Castro <[email protected]>
Tested-by: Henry Castro <[email protected]>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index e602d2725b6d..32523ab22784 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -6368,6 +6368,10 @@ static char*
doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo
{
return getRulerState(pThis);
}
+ else if (aCommand == ".uno:ViewRenderState")
+ {
+ return convertOString(pDoc->getViewRenderState());
+ }
else if (o3tl::starts_with(aCommand, aViewRowColumnHeaders))
{
tools::Rectangle aRectangle;