diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-23 13:13:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-24 10:51:45 +0000 |
commit | 920d4463f6e59b815852c173e2974ffc7b4bb284 (patch) | |
tree | ac56efa2d79ad622f261e8664a57afa7c7ea0e49 /include/vcl/pdfwriter.hxx | |
parent | 2b7109a12ab772bf53766d6e06b422c8e687d482 (diff) |
loplugin:singlevalfields in vcl(part1)
Change-Id: I0031199937cc95793951a070c4b3d8910933e69f
Reviewed-on: https://gerrit.libreoffice.org/26595
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl/pdfwriter.hxx')
-rw-r--r-- | include/vcl/pdfwriter.hxx | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index 085210a31545..5e503e3a56dc 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -341,12 +341,10 @@ public: struct CheckBoxWidget : public AnyWidget { bool Checked; - bool ButtonIsLeft; CheckBoxWidget() : AnyWidget( vcl::PDFWriter::CheckBox ), - Checked( false ), - ButtonIsLeft( true ) + Checked( false ) {} virtual AnyWidget* Clone() const override @@ -359,14 +357,12 @@ public: { bool Selected; sal_Int32 RadioGroup; - bool ButtonIsLeft; OUString OnValue; // the value of the radio button if it is selected RadioButtonWidget() : AnyWidget( vcl::PDFWriter::RadioButton ), Selected( false ), - RadioGroup( 0 ), - ButtonIsLeft( true ) + RadioGroup( 0 ) {} virtual AnyWidget* Clone() const override @@ -431,13 +427,11 @@ public: // note: PDF only supports dropdown comboboxes struct ComboBoxWidget : public AnyWidget { - bool Sort; std::vector<OUString> Entries; // set the current value in AnyWidget::Text ComboBoxWidget() - : AnyWidget( vcl::PDFWriter::ComboBox ), - Sort( false ) + : AnyWidget( vcl::PDFWriter::ComboBox ) {} virtual AnyWidget* Clone() const override @@ -448,14 +442,8 @@ public: struct SignatureWidget: public AnyWidget { - // Use Sig prefix for members to avoid conflict with - // the Location member of the AnyWidget which specifies the coordinates - // of the signature - bool SigHidden; - SignatureWidget() - : AnyWidget( vcl::PDFWriter::Signature ), - SigHidden( true ) + : AnyWidget( vcl::PDFWriter::Signature ) {} virtual AnyWidget* Clone() const override @@ -506,7 +494,6 @@ The following structure describes the permissions used in PDF security struct PDFEncryptionProperties { - bool Security128bit; // true to select 128 bit encryption, false for 40 bit //for both 40 and 128 bit security, see 3.5.2 PDF v 1.4 table 3.15, v 1.5 and v 1.6 table 3.20. bool CanPrintTheDocument; bool CanModifyTheContent; @@ -531,7 +518,6 @@ The following structure describes the permissions used in PDF security //permission default set for 128 bit, accessibility only PDFEncryptionProperties() : - Security128bit ( true ), CanPrintTheDocument ( false ), CanModifyTheContent ( false ), CanCopyOrExtract ( false ), @@ -589,7 +575,6 @@ The following structure describes the permissions used in PDF security */ PDFWriter::ExportDataFormat SubmitFormat; bool AllowDuplicateFieldNames; - bool FieldsUseSystemFonts; /* the following data members are used to customize the PDF viewer preferences */ @@ -640,7 +625,6 @@ The following structure describes the permissions used in PDF security Tagged( false ), SubmitFormat( PDFWriter::FDF ), AllowDuplicateFieldNames( false ), - FieldsUseSystemFonts( true ), PDFDocumentMode( PDFWriter::ModeDefault ), PDFDocumentAction( PDFWriter::ActionDefault ), Zoom( 100 ), |