diff options
author | Oliver-Rainer Wittmann <orw@apache.org> | 2014-06-16 12:01:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-17 10:57:55 +0100 |
commit | 41d43bc95b64e1907709141fcd8b6ce08b0841c8 (patch) | |
tree | 8192f2e1b29c70926b0682dc64705ee3c1ab4c80 /sw/inc/txtfld.hxx | |
parent | d801926e0ad2ee64c41208b5ab5984d9dc5248f0 (diff) |
Resolves: #i125086# correct implementation of css::text::XTextField...
in Writer to reflect changes made for the in-place editing of Input Fields
(cherry picked from commit 90b633455a6e54300330e68e71e22e729b445f31)
Conflicts:
sw/source/core/txtnode/atrfld.cxx
sw/source/core/unocore/unofield.cxx
Change-Id: I39de2b5074c2e7d8671ad2c0a3c01a29ccfc7882
Diffstat (limited to 'sw/inc/txtfld.hxx')
-rw-r--r-- | sw/inc/txtfld.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/inc/txtfld.hxx b/sw/inc/txtfld.hxx index 44c5c5e3f901..9758bd28ce3c 100644 --- a/sw/inc/txtfld.hxx +++ b/sw/inc/txtfld.hxx @@ -22,6 +22,9 @@ #include <txatbase.hxx> #include <rtl/ustring.hxx> +#include <boost/shared_ptr.hpp> + +class SwPaM; class SwTxtNode; class SwTxtFld : public SwTxtAttr @@ -61,6 +64,13 @@ public: // enable notification that field content has changed and needs reformatting virtual void NotifyContentChange( SwFmtFld& rFmtFld ); + // deletes the given field via removing the corresponding text selection from the document's content + static void DeleteTxtFld( const SwTxtFld& rTxtFld ); + + // return text selection for the given field + static void GetPamForTxtFld( const SwTxtFld& rTxtFld, + boost::shared_ptr< SwPaM >& rPamForTxtFld ); + }; class SwTxtInputFld : public SwTxtFld |