diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-11-02 15:21:31 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-11-02 10:10:58 +0100 |
commit | 8748b1afbfb419405d197fad7b95a2b10bfa1b3a (patch) | |
tree | 5fa330fc95ccbd69a72b36120b5743f14b7a5288 /svx | |
parent | d2397c08722b9acf84b7a03e1395f5391998cf84 (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')
-rw-r--r-- | svx/source/dialog/ClassificationDialog.cxx | 8 | ||||
-rw-r--r-- | svx/uiconfig/ui/classificationdialog.ui | 2 |
2 files changed, 9 insertions, 1 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(); } diff --git a/svx/uiconfig/ui/classificationdialog.ui b/svx/uiconfig/ui/classificationdialog.ui index 99d8bf88ad5a..b953c003e0ec 100644 --- a/svx/uiconfig/ui/classificationdialog.ui +++ b/svx/uiconfig/ui/classificationdialog.ui @@ -261,7 +261,7 @@ </packing> </child> <child> - <object class="GtkExpander"> + <object class="GtkExpander" id="intellectualPropertyExpander"> <property name="visible">True</property> <property name="can_focus">True</property> <child> |