include/svx/ClassificationDialog.hxx | 2 +- svx/source/dialog/ClassificationDialog.cxx | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-)
New commits: commit 133d617a7758acb342d82e5d446e165cd87e2cac Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> Date: Fri Nov 17 21:36:44 2017 +0900 TSCP: remember the state of IP section expander state Change-Id: I899c05a4260324fa4c5648d7164821eddb1ead08 Reviewed-on: https://gerrit.libreoffice.org/44879 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/include/svx/ClassificationDialog.hxx b/include/svx/ClassificationDialog.hxx index 64a5206924e4..d98f516d2015 100644 --- a/include/svx/ClassificationDialog.hxx +++ b/include/svx/ClassificationDialog.hxx @@ -69,7 +69,7 @@ private: DECL_LINK(SelectRecentlyUsedHdl, ListBox&, void); DECL_LINK(SelectIPPartHdl, ListBox&, void); DECL_LINK(EditWindowModifiedHdl, LinkParamNone*, void); - + DECL_LINK(ExpandedHdl, VclExpander&, void); void insertField(ClassificationType eType, OUString const & rString, OUString const & rFullString, OUString const & rIdentifier = OUString()); 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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits