summaryrefslogtreecommitdiff
path: root/include/vcl/pdfwriter.hxx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-05-17 13:43:17 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-05-17 15:53:52 +0200
commit5938db731bd5f74182acb890102deee813635513 (patch)
tree17866dc94a1c780f0472c6fb570c65dbe812e0dd /include/vcl/pdfwriter.hxx
parentf08c890482952820bf95b04872260c68082ef083 (diff)
tdf#105972: pdf form: export numeric and currency fields as number type
Initial support for AFNumber_Format and AFNumber_Keystroke More info in https://experienceleague.adobe.com/docs/experience-manager-learn/assets/FormsAPIReference.pdf?lang=en This patch adds support for CurrencySymbol, DecimalAccuracy and PrependCurrencySymbol for now Change-Id: I8d6ffac51d576a8c243b9c6d5be2c3517bc0125a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134471 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'include/vcl/pdfwriter.hxx')
-rw-r--r--include/vcl/pdfwriter.hxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index 44b6ec449b0e..74bf96255ebf 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -193,6 +193,11 @@ public:
Signature
};
+ enum FormatType
+ {
+ Text, Number
+ };
+
enum ErrorCode
{
// transparent object occurred and was draw opaque because
@@ -379,13 +384,18 @@ public:
bool Password; // visible echo off
bool FileSelect; // field is a file selector
sal_Int32 MaxLen; // maximum field length in characters, 0 means unlimited
+ FormatType Format;
+ OUString CurrencySymbol;
+ sal_Int32 DecimalAccuracy;
+ bool PrependCurrencySymbol;
EditWidget()
: AnyWidget( vcl::PDFWriter::Edit ),
MultiLine( false ),
Password( false ),
FileSelect( false ),
- MaxLen( 0 )
+ MaxLen( 0 ),
+ Format( FormatType::Text )
{}
virtual std::shared_ptr<AnyWidget> Clone() const override