diff options
author | akki95 <akshaydeepiitr@gmail.com> | 2016-02-08 09:11:06 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-02-19 09:43:19 +0000 |
commit | bebd483511a0a83532dc37e76e8ba76a67dd921f (patch) | |
tree | 243f7855ed9c89517d4280fc5c44c938f4be9169 /sw/source/ui/fldui/fldref.hxx | |
parent | 8779459b1a619fc09e60d4c7ee9b86803383f5d0 (diff) |
tdf#32364 - Add a "filter" to Insert > Field > Other > Cross reference tab
-> Modified fldrefpage.ui using Glade to include filter GTK textbox.
-> Added related code in fldref.cxx and fldref.hxx
-> Modified UpdateSubType() code: Added a parameter and code to get the desired result.
Change-Id: I3044c9d38b5f0a984ddcd0f27d075a86abaae7fe
Reviewed-on: https://gerrit.libreoffice.org/22197
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/source/ui/fldui/fldref.hxx')
-rw-r--r-- | sw/source/ui/fldui/fldref.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/fldref.hxx b/sw/source/ui/fldui/fldref.hxx index f06f114d6585..51a6cc5d48b5 100644 --- a/sw/source/ui/fldui/fldref.hxx +++ b/sw/source/ui/fldui/fldref.hxx @@ -44,6 +44,7 @@ class SwFieldRefPage : public SwFieldPage VclPtr<FixedText> m_pNameFT; VclPtr<Edit> m_pNameED; VclPtr<Edit> m_pValueED; + VclPtr<Edit> m_pFilterED; OUString sBookmarkText; OUString sFootnoteText; OUString sEndnoteText; @@ -64,9 +65,14 @@ class SwFieldRefPage : public SwFieldPage DECL_LINK_TYPED(SubTypeListBoxHdl, ListBox&, void); DECL_LINK_TYPED(SubTypeTreeListBoxHdl, SvTreeListBox*, void); DECL_LINK_TYPED(ModifyHdl, Edit&, void); + DECL_LINK_TYPED(ModifyHdl_Impl, Edit&, void); + void SubTypeHdl(); - void UpdateSubType(); + void UpdateSubType(OUString filterString = OUString()); + + bool MatchSubstring( OUString list_string, OUString substr ); + sal_Int32 FillFormatLB(sal_uInt16 nTypeId); // #i83479# |