diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2024-10-25 15:48:58 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2025-01-03 10:03:06 +0100 |
commit | b4d1dff8835a2c52f2adf767596a367695a9e1a5 (patch) | |
tree | dbfd5977efb3f37af13ee83ba29ad12abb1ae3c6 /sfx2 | |
parent | 72df5a6fdf3e14d9994ebd1de269ab712136a27a (diff) |
jsdialog: enable style sidebar
- disable not supported previews field, action menu for now
Change-Id: Ife94ee96dd15bd92752ff6e9cc5e68243aac0851
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175646
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179625
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/sidebar/ResourceManager.cxx | 2 | ||||
-rw-r--r-- | sfx2/uiconfig/ui/templatepanel.ui | 7 |
3 files changed, 12 insertions, 4 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 6acd68b51675..b26123129f88 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -34,6 +34,7 @@ #include <sal/log.hxx> #include <osl/diagnose.h> #include <comphelper/diagnose_ex.hxx> +#include <comphelper/lok.hxx> #include <sfx2/app.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/bindings.hxx> @@ -255,6 +256,8 @@ SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl(SfxBindings* pB, weld { mxFilterLb->set_help_id(HID_TEMPLATE_FILTER); mxPreviewCheckbox->set_active(officecfg::Office::Common::StylesAndFormatting::Preview::get()); + if (comphelper::LibreOfficeKit::isActive()) + mxPreviewCheckbox->hide(); } void SfxTemplateDialog_Impl::EnableEdit(bool bEnable, StyleList* rStyleList) @@ -812,6 +815,10 @@ SfxTemplateDialog_Impl::SfxTemplateDialog_Impl(SfxBindings* pB, SfxTemplatePanel m_xToolMenu->connect_activate(LINK(this, SfxTemplateDialog_Impl, ToolMenuSelectHdl)); m_xActionTbR->set_item_help_id(u"update"_ustr, HID_TEMPLDLG_UPDATEBYEXAMPLE); + // Features not working in LOK yet + if (comphelper::LibreOfficeKit::isActive()) + m_xActionTbR->hide(); + Initialize(); } diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index cf333c1b0a8f..f64bf4fae805 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -264,7 +264,7 @@ void ResourceManager::ReadDeckList() if (comphelper::LibreOfficeKit::isActive()) { // Hide these decks in LOK as they aren't fully functional. - if (aDeckName == "GalleryDeck" || aDeckName == "StyleListDeck") + if (aDeckName == "GalleryDeck") continue; } diff --git a/sfx2/uiconfig/ui/templatepanel.ui b/sfx2/uiconfig/ui/templatepanel.ui index fca889705756..19528fc78075 100644 --- a/sfx2/uiconfig/ui/templatepanel.ui +++ b/sfx2/uiconfig/ui/templatepanel.ui @@ -301,7 +301,7 @@ </packing> </child> <child> - <object class="GtkBox"> + <object class="GtkBox" id="settings"> <property name="visible">True</property> <property name="can-focus">False</property> <child> @@ -345,9 +345,10 @@ </child> </object> <packing> + <property name="homogeneous">True</property> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">4</property> + <property name="position">5</property> </packing> </child> <child> @@ -363,7 +364,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">5</property> + <property name="position">4</property> </packing> </child> </object> |