Kaydet (Commit) 6f2b115d authored tarafından Caolán McNamara's avatar Caolán McNamara

weld ImpPDFTabGeneralPage

Change-Id: Ic72572f775f68ee5378203c9d0cded1baa02b297
Reviewed-on: https://gerrit.libreoffice.org/56026
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 516c7519
This diff is collapsed.
......@@ -182,76 +182,73 @@ class ImpPDFTabGeneralPage : public SfxTabPage
{
friend class ImpPDFTabLinksPage;
VclPtr<RadioButton> mpRbAll;
VclPtr<RadioButton> mpRbRange;
VclPtr<RadioButton> mpRbSelection;
VclPtr<Edit> mpEdPages;
VclPtr<FixedText> mpSelectedSheets;
VclPtr<RadioButton> mpRbLosslessCompression;
VclPtr<RadioButton> mpRbJPEGCompression;
VclPtr<VclContainer> mpQualityFrame;
VclPtr<MetricField> mpNfQuality;
VclPtr<CheckBox> mpCbReduceImageResolution;
VclPtr<ComboBox> mpCoReduceImageResolution;
VclPtr<CheckBox> mpCbPDFA1b;
VclPtr<CheckBox> mpCbTaggedPDF;
bool mbTaggedPDFUserSelection;
VclPtr<CheckBox> mpCbExportFormFields;
bool mbExportFormFieldsUserSelection;
VclPtr<VclContainer> mpFormsFrame;
VclPtr<ListBox> mpLbFormsFormat;
VclPtr<CheckBox> mpCbAllowDuplicateFieldNames;
VclPtr<CheckBox> mpCbExportBookmarks;
VclPtr<CheckBox> mpCbExportHiddenSlides;
VclPtr<CheckBox> mpCbExportNotes;
VclPtr<CheckBox> mpCbViewPDF;
VclPtr<CheckBox> mpCbUseReferenceXObject;
VclPtr<CheckBox> mpCbExportNotesPages;
VclPtr<CheckBox> mpCbExportOnlyNotesPages;
VclPtr<CheckBox> mpCbExportEmptyPages;
VclPtr<CheckBox> mpCbExportPlaceholders;
VclPtr<CheckBox> mpCbAddStream;
VclPtr<CheckBox> mpCbWatermark;
VclPtr<FixedText> mpFtWatermark;
VclPtr<Edit> mpEdWatermark;
bool mbIsPresentation;
bool mbIsSpreadsheet;
bool mbIsWriter;
VclPtr<ImpPDFTabDialog> mpaParent;
DECL_LINK( ToggleAllHdl, RadioButton&, void );
DECL_LINK( TogglePagesHdl, RadioButton&, void );
DECL_LINK( ToggleSelectionHdl, RadioButton&, void );
DECL_LINK( ToggleCompressionHdl, RadioButton&, void );
DECL_LINK( ToggleReduceImageResolutionHdl, CheckBox&, void );
DECL_LINK( ToggleWatermarkHdl, CheckBox&, void );
DECL_LINK( ToggleAddStreamHdl, CheckBox&, void );
DECL_LINK( ToggleExportFormFieldsHdl, CheckBox&, void );
DECL_LINK( ToggleExportNotesPagesHdl, CheckBox&, void );
bool mbIsPresentation;
bool mbIsSpreadsheet;
bool mbIsWriter;
VclPtr<ImpPDFTabDialog> mpaParent;
std::unique_ptr<weld::RadioButton> mxRbAll;
std::unique_ptr<weld::RadioButton> mxRbRange;
std::unique_ptr<weld::RadioButton> mxRbSelection;
std::unique_ptr<weld::Entry> mxEdPages;
std::unique_ptr<weld::Label> mxSelectedSheets;
std::unique_ptr<weld::RadioButton> mxRbLosslessCompression;
std::unique_ptr<weld::RadioButton> mxRbJPEGCompression;
std::unique_ptr<weld::Widget> mxQualityFrame;
std::unique_ptr<weld::MetricSpinButton> mxNfQuality;
std::unique_ptr<weld::CheckButton> mxCbReduceImageResolution;
std::unique_ptr<weld::ComboBoxText> mxCoReduceImageResolution;
std::unique_ptr<weld::CheckButton> mxCbPDFA1b;
std::unique_ptr<weld::CheckButton> mxCbTaggedPDF;
std::unique_ptr<weld::CheckButton> mxCbExportFormFields;
std::unique_ptr<weld::Widget> mxFormsFrame;
std::unique_ptr<weld::ComboBoxText> mxLbFormsFormat;
std::unique_ptr<weld::CheckButton> mxCbAllowDuplicateFieldNames;
std::unique_ptr<weld::CheckButton> mxCbExportBookmarks;
std::unique_ptr<weld::CheckButton> mxCbExportHiddenSlides;
std::unique_ptr<weld::CheckButton> mxCbExportNotes;
std::unique_ptr<weld::CheckButton> mxCbViewPDF;
std::unique_ptr<weld::CheckButton> mxCbUseReferenceXObject;
std::unique_ptr<weld::CheckButton> mxCbExportNotesPages;
std::unique_ptr<weld::CheckButton> mxCbExportOnlyNotesPages;
std::unique_ptr<weld::CheckButton> mxCbExportEmptyPages;
std::unique_ptr<weld::CheckButton> mxCbExportPlaceholders;
std::unique_ptr<weld::CheckButton> mxCbAddStream;
std::unique_ptr<weld::CheckButton> mxCbWatermark;
std::unique_ptr<weld::Label> mxFtWatermark;
std::unique_ptr<weld::Entry> mxEdWatermark;
std::unique_ptr<weld::Label> mxSlidesFt;
std::unique_ptr<weld::Label> mxSheetsFt;
DECL_LINK(ToggleAllHdl, weld::ToggleButton&, void);
DECL_LINK(TogglePagesHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleSelectionHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleCompressionHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleReduceImageResolutionHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleWatermarkHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleAddStreamHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleExportFormFieldsHdl, weld::ToggleButton&, void);
DECL_LINK(ToggleExportNotesPagesHdl, weld::ToggleButton&, void);
void TogglePagesHdl();
void EnableExportNotesPages();
public:
DECL_LINK( ToggleExportPDFAHdl, CheckBox&, void );
DECL_LINK(ToggleExportPDFAHdl, weld::ToggleButton&, void);
ImpPDFTabGeneralPage( vcl::Window* pParent, const SfxItemSet& rSet );
ImpPDFTabGeneralPage(TabPageParent pParent, const SfxItemSet& rSet);
virtual ~ImpPDFTabGeneralPage() override;
virtual void dispose() override;
static VclPtr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* rAttrSet);
void GetFilterConfigItem(ImpPDFTabDialog* paParent);
void SetFilterConfigItem(ImpPDFTabDialog* paParent);
bool IsPdfaSelected() const { return mpCbPDFA1b->IsChecked(); }
bool IsPdfaSelected() const { return mxCbPDFA1b->get_active(); }
};
/// Class tab page viewer
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.22.1 -->
<interface domain="flt">
<requires lib="gtk+" version="3.18"/>
<object class="GtkAdjustment" id="adjustment1">
......@@ -47,7 +47,6 @@
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">range</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -64,7 +63,7 @@
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">selection</property>
<property name="group">all</property>
<accessibility>
<relation type="label-for" target="pages"/>
</accessibility>
......@@ -95,6 +94,7 @@
<object class="GtkEntry" id="pages">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
<property name="width_chars">5</property>
<accessibility>
<relation type="labelled-by" target="range"/>
......@@ -178,9 +178,10 @@
<property name="can_focus">False</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkSpinButton" id="quality:0%">
<object class="GtkSpinButton" id="quality">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
<property name="adjustment">adjustment1</property>
</object>
<packing>
......@@ -199,6 +200,7 @@
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="pdfgeneralpage|label6">_Quality:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">quality</property>
<property name="xalign">0</property>
</object>
</child>
......@@ -253,9 +255,13 @@
<child internal-child="entry">
<object class="GtkEntry" id="comboboxtext-entry">
<property name="can_focus">False</property>
<property name="activates_default">True</property>
<property name="text" translatable="yes" context="pdfgeneralpage|comboboxtext-entry">75 DPI</property>
</object>
</child>
<accessibility>
<relation type="labelled-by" target="reduceresolution"/>
</accessibility>
</object>
<packing>
<property name="left_attach">1</property>
......@@ -285,7 +291,6 @@
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">jpegcompress</property>
</object>
<packing>
<property name="left_attach">0</property>
......@@ -367,6 +372,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
......@@ -743,7 +749,7 @@
<object class="GtkSizeGroup" id="sizegroup2">
<widgets>
<widget name="pages"/>
<widget name="quality:0%"/>
<widget name="quality"/>
<widget name="resolution"/>
</widgets>
</object>
......
filter/uiconfig/ui/pdfgeneralpage.ui://GtkSpinButton[@id='quality:0%'] no-labelled-by
filter/uiconfig/ui/pdfgeneralpage.ui://GtkLabel[@id='label6'] orphan-label
filter/uiconfig/ui/pdfgeneralpage.ui://GtkCheckButton[@id='reduceresolution'] missing-labelled-by
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment