[Libreoffice-commits] core.git: sw/source
Xisco Fauli
xiscofauli at libreoffice.org
Sun Jun 24 23:11:11 UTC 2018
sw/source/ui/config/optload.cxx | 2 ++
sw/source/uibase/inc/cption.hxx | 12 ------------
sw/source/uibase/inc/optload.hxx | 15 +++++++++++++++
3 files changed, 17 insertions(+), 12 deletions(-)
New commits:
commit b34ed105d5eead1cb7657d0a8fc23a524cf28d31
Author: Xisco Fauli <xiscofauli at libreoffice.org>
Date: Tue Jun 19 17:12:09 2018 +0200
tdf#118240 Filter category in Autocaption as done in insert caption
Change-Id: I138a47419a7c18f59ecc1e0935b669546fcee6e6
Reviewed-on: https://gerrit.libreoffice.org/56115
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index 11525600f450..dc05b9f35417 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -462,12 +462,14 @@ SwCaptionOptPage::SwCaptionOptPage(vcl::Window* pParent, const SfxItemSet& rSet)
, m_sNone(SwResId(SW_STR_NONE))
, pMgr(new SwFieldMgr())
, bHTMLMode(false)
+ , m_aTextFilter(m_sNone)
{
get(m_pCheckLB, "objects");
get(m_pLbCaptionOrder, "captionorder");
get(m_pPreview, "preview");
get(m_pSettingsGroup, "settings");
get(m_pCategoryBox, "category");
+ m_pCategoryBox->SetTextFilter(&m_aTextFilter);
get(m_pFormatText, "numberingft");
get(m_pFormatBox, "numbering");
get(m_pNumberingSeparatorFT, "numseparatorft");
diff --git a/sw/source/uibase/inc/cption.hxx b/sw/source/uibase/inc/cption.hxx
index 3942fe4e0293..037debb11369 100644
--- a/sw/source/uibase/inc/cption.hxx
+++ b/sw/source/uibase/inc/cption.hxx
@@ -35,18 +35,6 @@
class SwFieldMgr;
class SwView;
-class TextFilterAutoConvert : public TextFilter
-{
-private:
- OUString m_sLastGoodText;
- OUString m_sNone;
-public:
- TextFilterAutoConvert(const OUString &rNone)
- : m_sNone(rNone)
- {
- }
- virtual OUString filter(const OUString &rText) override;
-};
class SwCaptionDialog : public SvxStandardDialog
{
diff --git a/sw/source/uibase/inc/optload.hxx b/sw/source/uibase/inc/optload.hxx
index fb84a7b5ff2d..ef6f828b67e9 100644
--- a/sw/source/uibase/inc/optload.hxx
+++ b/sw/source/uibase/inc/optload.hxx
@@ -43,6 +43,19 @@ public:
static FieldUnit GetValue(sal_uInt32 i);
};
+class TextFilterAutoConvert : public TextFilter
+{
+private:
+ OUString m_sLastGoodText;
+ OUString m_sNone;
+public:
+ TextFilterAutoConvert(const OUString &rNone)
+ : m_sNone(rNone)
+ {
+ }
+ virtual OUString filter(const OUString &rText) override;
+};
+
class SwLoadOptPage : public SfxTabPage
{
private:
@@ -170,6 +183,8 @@ private:
SwFieldMgr* pMgr;
bool bHTMLMode;
+ TextFilterAutoConvert m_aTextFilter;
+
DECL_LINK(SelectHdl, ComboBox&, void);
DECL_LINK(SelectListBoxHdl, ListBox&, void);
DECL_LINK(ModifyHdl, Edit&, void);
More information about the Libreoffice-commits
mailing list