summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-02 15:21:31 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-02 10:10:58 +0100
commit8748b1afbfb419405d197fad7b95a2b10bfa1b3a (patch)
tree5fa330fc95ccbd69a72b36120b5743f14b7a5288 /svx/source
parentd2397c08722b9acf84b7a03e1395f5391998cf84 (diff)
TSCP: make configurable if IP section is expanded
Change-Id: I38b8c1da096c2b38f52defd8bb9a522e32fb881c Reviewed-on: https://gerrit.libreoffice.org/44188 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/ClassificationDialog.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx
index b82743a1675a..ef7ef7010ada 100644
--- a/svx/source/dialog/ClassificationDialog.cxx
+++ b/svx/source/dialog/ClassificationDialog.cxx
@@ -23,6 +23,8 @@
#include <tools/XmlWriter.hxx>
#include <tools/XmlWalker.hxx>
+#include <officecfg/Office/Common.hxx>
+
namespace svx {
namespace {
@@ -138,6 +140,8 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent, const bool bPer
get(m_pIntellectualPropertyPartAddButton, "intellectualPropertyPartAddButton");
get(m_pIntellectualPropertyPartEdit, "intellectualPropertyPartEntry");
+ get(m_pIntellectualPropertyExpander, "intellectualPropertyExpander");
+
m_pSignButton->SetClickHdl(LINK(this, ClassificationDialog, ButtonClicked));
m_pSignButton->Show(m_bPerParagraph);
@@ -178,6 +182,9 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent, const bool bPer
m_pIntellectualPropertyPartListBox->EnableAutoSize(true);
m_pRecentlyUsedListBox->SetSelectHdl(LINK(this, ClassificationDialog, SelectRecentlyUsedHdl));
+
+ bool bExpand = officecfg::Office::Common::Classification::AdvancedClassificationDialogIntellectualPropertySectionExpanded::get();
+ m_pIntellectualPropertyExpander->set_expanded(bExpand);
}
ClassificationDialog::~ClassificationDialog()
@@ -199,6 +206,7 @@ void ClassificationDialog::dispose()
m_pIntellectualPropertyPartNumberListBox.clear();
m_pIntellectualPropertyPartAddButton.clear();
m_pIntellectualPropertyPartEdit.clear();
+ m_pIntellectualPropertyExpander.clear();
ModalDialog::dispose();
}