summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-17 21:36:44 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-18 01:16:57 +0100
commit133d617a7758acb342d82e5d446e165cd87e2cac (patch)
tree28c231d0e4b04f1a3ea028d940ac42b40856c03e /svx
parent7d469172132ba5a1d11eb1200e996019ce645f0c (diff)
TSCP: remember the state of IP section expander state
Change-Id: I899c05a4260324fa4c5648d7164821eddb1ead08 Reviewed-on: https://gerrit.libreoffice.org/44879 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/ClassificationDialog.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx
index 4484d765d0bf..ad6d6ded5074 100644
--- a/svx/source/dialog/ClassificationDialog.cxx
+++ b/svx/source/dialog/ClassificationDialog.cxx
@@ -231,6 +231,7 @@ ClassificationDialog::ClassificationDialog(vcl::Window* pParent, const bool bPer
bool bExpand = officecfg::Office::Common::Classification::IntellectualPropertySectionExpanded::get();
m_pIntellectualPropertyExpander->set_expanded(bExpand);
+ m_pIntellectualPropertyExpander->SetExpandedHdl(LINK(this, ClassificationDialog, ExpandedHdl));
m_pEditWindow->SetModifyHdl(LINK(this, ClassificationDialog, EditWindowModifiedHdl));
}
@@ -697,6 +698,12 @@ IMPL_LINK_NOARG(ClassificationDialog, EditWindowModifiedHdl, LinkParamNone*, voi
toggleWidgetsDependingOnCategory();
}
+IMPL_LINK(ClassificationDialog, ExpandedHdl, VclExpander&, rExpander, void)
+{
+ std::shared_ptr<comphelper::ConfigurationChanges> aConfigurationChanges(comphelper::ConfigurationChanges::create());
+ officecfg::Office::Common::Classification::IntellectualPropertySectionExpanded::set(rExpander.get_expanded(), aConfigurationChanges);
+ aConfigurationChanges->commit();
+}
} // end svx