Resolves tdf#125531 - Empty CMIS properties dialog
CMIS tab hidden when not isCmisDocument(), ie. no elements
Change-Id: Ib682aa62ae5035a9ecb107fec709d243764346d9
Reviewed-on: https://gerrit.libreoffice.org/78625
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 86d39b6..2b49b18 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1128,6 +1128,8 @@ SfxDocumentInfoDialog::SfxDocumentInfoDialog(weld::Window* pParent, const SfxIte
AddTabPage("description", SfxDocumentDescPage::Create, nullptr);
AddTabPage("customprops", SfxCustomPropertiesPage::Create, nullptr);
AddTabPage("cmisprops", SfxCmisPropertiesPage::Create, nullptr);
if (!rInfoItem.isCmisDocument())
m_xTabCtrl->get_page("cmisprops")->hide();
AddTabPage("security", SfxSecurityPage::Create, nullptr);
}
@@ -2248,6 +2250,7 @@ SfxCmisPropertiesPage::SfxCmisPropertiesPage(TabPageParent pParent, const SfxIte
: SfxTabPage(pParent, "sfx/ui/cmisinfopage.ui", "CmisInfoPage", &rItemSet)
, m_xPropertiesCtrl(new CmisPropertiesControl(*m_xBuilder))
{
}
void SfxCmisPropertiesPage::dispose()