summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2022-11-09 17:02:03 -0500
committerMiklos Vajna <vmiklos@collabora.com>2022-11-10 08:59:24 +0100
commit2a26f136a36791c06caa895d5a25f4633fd10651 (patch)
treee5a98514cfeb7f8f4d9ecb779ccc180ed5b8f6fe /sw/inc
parente2f8558324091bddba0637942f4f000a24e673a7 (diff)
tdf#151548 vba FormFields: Add basic word::XFormField support
Unit tests will come in the following commits that represent actual FormFields that have content/results. This lays the foundation for adding Checkboxes, Textinputs, and Dropdowns. Change-Id: If85ae25f881198d5a0699b3350a7eb20b1735c45 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142507 Reviewed-by: Justin Luth <jluth@mail.com> Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/IMark.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx
index 151c9a9333fb..776d35c2f4e3 100644
--- a/sw/inc/IMark.hxx
+++ b/sw/inc/IMark.hxx
@@ -102,6 +102,10 @@ namespace sw::mark
virtual void SetFieldname(const OUString& rFieldname) =0;
virtual void SetFieldHelptext(const OUString& rFieldHelptext) =0;
virtual void Invalidate() = 0;
+
+ virtual OUString GetContent() const { return OUString(); }
+ virtual void ReplaceContent(const OUString& /*sNewContent*/) {}
+
private:
IFieldmark(IFieldmark const &) = delete;
IFieldmark &operator =(IFieldmark const&) = delete;
@@ -128,8 +132,8 @@ namespace sw::mark
IDateFieldmark() = default;
public:
- virtual OUString GetContent() const = 0;
- virtual void ReplaceContent(const OUString& sNewContent) = 0;
+ virtual OUString GetContent() const override = 0;
+ virtual void ReplaceContent(const OUString& sNewContent) override = 0;
virtual std::pair<bool, double> GetCurrentDate() const = 0;
virtual void SetCurrentDate(double fDate) = 0;