From bebd483511a0a83532dc37e76e8ba76a67dd921f Mon Sep 17 00:00:00 2001 From: akki95 Date: Mon, 8 Feb 2016 09:11:06 +0530 Subject: 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 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- sw/source/ui/fldui/fldref.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sw/source/ui/fldui/fldref.hxx') 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 m_pNameFT; VclPtr m_pNameED; VclPtr m_pValueED; + VclPtr 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# -- cgit