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

convert pdf export general page to .ui

Change-Id: I94d86f9807e67bd4f352321fde1c83913b5a4fed
üst d02de50c
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
$(eval $(call gb_UIConfig_UIConfig,filter)) $(eval $(call gb_UIConfig_UIConfig,filter))
$(eval $(call gb_UIConfig_add_uifiles,filter,\ $(eval $(call gb_UIConfig_add_uifiles,filter,\
filter/uiconfig/ui/pdfgeneralpage \
filter/uiconfig/ui/pdflinkspage \ filter/uiconfig/ui/pdflinkspage \
filter/uiconfig/ui/pdfsecuritypage \ filter/uiconfig/ui/pdfsecuritypage \
filter/uiconfig/ui/pdfuserinterfacepage \ filter/uiconfig/ui/pdfuserinterfacepage \
......
This diff is collapsed.
...@@ -52,43 +52,6 @@ ...@@ -52,43 +52,6 @@
//ATTENTION: maximum allowed value is( RID_PDF_DIALOG_START + 19) //ATTENTION: maximum allowed value is( RID_PDF_DIALOG_START + 19)
//controls for General tab page
#define FL_PAGES 1
#define RB_ALL 2
#define RB_RANGE 3
#define RB_SELECTION 4
#define ED_PAGES 5
#define BT_OK 6
#define BT_CANCEL 7
#define BT_HELP 8
#define FL_IMAGES 9
#define RB_LOSSLESSCOMPRESSION 10
#define RB_JPEGCOMPRESSION 11
#define FT_QUALITY 12
#define NF_QUALITY 13
#define CB_REDUCEIMAGERESOLUTION 14
#define CO_REDUCEIMAGERESOLUTION 15
#define FL_GENERAL 16
#define CB_TAGGEDPDF 17
#define CB_EXPORTNOTES 18
#define CB_EXPORTBOOKMARKS 19
#define CB_EXPORTFORMFIELDS 20
#define FT_FORMSFORMAT 21
#define LB_FORMSFORMAT 22
#define CB_ALLOWDUPLICATEFIELDNAMES 23
#define CB_EXPORTEMPTYPAGES 24
#define CB_ADDSTREAM 25
#define CB_PDFA_1B_SELECT 26
#define CB_EXPORTNOTESPAGES 27
#define FT_ADDSTREAMDESCRIPTION 29
#define CB_EXPORTHIDDENSLIDES 30
#define FL_WATERMARK 31
#define CB_WATERMARK 32
#define FT_WATERMARK 33
#define ED_WATERMARK 34
#define CB_VIEWPDF 35
#define FL_GENERAL_VERTICAL 157 #define FL_GENERAL_VERTICAL 157
#define FL_INITVIEW_VERTICAL 158 #define FL_INITVIEW_VERTICAL 158
#define FL_VPREFER_VERTICAL 158 #define FL_VPREFER_VERTICAL 158
......
...@@ -176,54 +176,47 @@ protected: ...@@ -176,54 +176,47 @@ protected:
//class tab page general //class tab page general
class ImpPDFTabGeneralPage : public SfxTabPage class ImpPDFTabGeneralPage : public SfxTabPage
{ {
friend class ImpPDFTabLinksPage; friend class ImpPDFTabLinksPage;
FixedLine maFlPages; RadioButton* mpRbAll;
RadioButton maRbAll; RadioButton* mpRbRange;
RadioButton maRbRange; RadioButton* mpRbSelection;
RadioButton maRbSelection; Edit* mpEdPages;
Edit maEdPages;
FixedLine maFlCompression;
RadioButton maRbLosslessCompression;
RadioButton maRbJPEGCompression;
FixedText maFtQuality;
MetricField maNfQuality;
CheckBox maCbReduceImageResolution;
ComboBox maCoReduceImageResolution;
FixedLine m_aVerticalLine;
FixedLine maFlGeneral;
CheckBox maCbPDFA1b;
CheckBox maCbTaggedPDF;
sal_Bool mbTaggedPDFUserSelection;
CheckBox maCbExportFormFields;
sal_Bool mbExportFormFieldsUserSelection;
FixedText maFtFormsFormat;
ListBox maLbFormsFormat;
CheckBox maCbAllowDuplicateFieldNames;
CheckBox maCbExportBookmarks;
CheckBox maCbExportHiddenSlides;
CheckBox maCbExportNotes;
CheckBox maCbViewPDF;
CheckBox maCbExportNotesPages;
CheckBox maCbExportEmptyPages;
CheckBox maCbAddStream;
FixedText maFtAddStreamDescription;
FixedLine maFlWatermark;
CheckBox maCbWatermark;
FixedText maFtWatermark;
Edit maEdWatermark;
sal_Bool mbIsPresentation; RadioButton* mpRbLosslessCompression;
sal_Bool mbIsWriter; RadioButton* mpRbJPEGCompression;
VclContainer* mpQualityFrame;
MetricField* mpNfQuality;
CheckBox* mpCbReduceImageResolution;
ComboBox* mpCoReduceImageResolution;
CheckBox* mpCbPDFA1b;
CheckBox* mpCbTaggedPDF;
bool mbTaggedPDFUserSelection;
CheckBox* mpCbExportFormFields;
bool mbExportFormFieldsUserSelection;
VclContainer* mpFormsFrame;
ListBox* mpLbFormsFormat;
CheckBox* mpCbAllowDuplicateFieldNames;
const ImpPDFTabDialog* mpaParent; CheckBox* mpCbExportBookmarks;
CheckBox* mpCbExportHiddenSlides;
CheckBox* mpCbExportNotes;
CheckBox* mpCbViewPDF;
CheckBox* mpCbExportNotesPages;
CheckBox* mpCbExportEmptyPages;
CheckBox* mpCbAddStream;
CheckBox* mpCbWatermark;
FixedText* mpFtWatermark;
Edit* mpEdWatermark;
bool mbIsPresentation;
bool mbIsWriter;
const ImpPDFTabDialog* mpaParent;
DECL_LINK( TogglePagesHdl, void* ); DECL_LINK( TogglePagesHdl, void* );
DECL_LINK( ToggleCompressionHdl, void* ); DECL_LINK( ToggleCompressionHdl, void* );
...@@ -242,9 +235,9 @@ public: ...@@ -242,9 +235,9 @@ public:
static SfxTabPage* Create( Window* pParent, static SfxTabPage* Create( Window* pParent,
const SfxItemSet& rAttrSet); const SfxItemSet& rAttrSet);
void GetFilterConfigItem( ImpPDFTabDialog* paParent ); void GetFilterConfigItem(ImpPDFTabDialog* paParent);
void SetFilterConfigItem( const ImpPDFTabDialog* paParent ); void SetFilterConfigItem(const ImpPDFTabDialog* paParent);
sal_Bool IsPdfaSelected() { return maCbPDFA1b.IsChecked(); }; bool IsPdfaSelected() const { return mpCbPDFA1b->IsChecked(); }
}; };
//class tab page viewer //class tab page viewer
......
...@@ -40,278 +40,6 @@ String STR_PDF_EXPORT_ODPWD ...@@ -40,278 +40,6 @@ String STR_PDF_EXPORT_ODPWD
Text[ en-US ] = "Set permission password"; Text[ en-US ] = "Set permission password";
}; };
//////////////////////////////////////////////////////////////
//tab page for PDF Export, general preferences
TabPage RID_PDF_TAB_GENER
{
HelpId = HID_FILTER_PDF_OPTIONS ;
Hide = TRUE ;
Text[ en-US ] = "General";
TAB_PDF_SIZE;
FixedLine FL_PAGES
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 164 , 8 ) ;
Text[ en-US ] = "Range";
};
RadioButton RB_ALL
{
HelpID = "filter:RadioButton:RID_PDF_TAB_GENER:RB_ALL";
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
Text[ en-US ] = "~All";
};
RadioButton RB_RANGE
{
HelpID = "filter:RadioButton:RID_PDF_TAB_GENER:RB_RANGE";
Pos = MAP_APPFONT ( 12 , 27 ) ;
Size = MAP_APPFONT ( 101 , 10 ) ;
Text[ en-US ] = "~Pages";
};
Edit ED_PAGES
{
HelpID = "filter:Edit:RID_PDF_TAB_GENER:ED_PAGES";
Border = TRUE ;
Pos = MAP_APPFONT ( 116, 26 ) ;
Size = MAP_APPFONT ( 48 , 12 ) ;
};
RadioButton RB_SELECTION
{
HelpID = "filter:RadioButton:RID_PDF_TAB_GENER:RB_SELECTION";
Pos = MAP_APPFONT ( 12 , 40 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
Text[ en-US ] = "~Selection";
};
FixedLine FL_IMAGES
{
Pos = MAP_APPFONT ( 6 , 53 ) ;
Size = MAP_APPFONT ( 164 , 8 ) ;
Text[ en-US ] = "Images";
};
RadioButton RB_LOSSLESSCOMPRESSION
{
HelpID = "filter:RadioButton:RID_PDF_TAB_GENER:RB_LOSSLESSCOMPRESSION";
Pos = MAP_APPFONT ( 12 , 64 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
Text[ en-US ] = "~Lossless compression";
};
RadioButton RB_JPEGCOMPRESSION
{
HelpID = "filter:RadioButton:RID_PDF_TAB_GENER:RB_JPEGCOMPRESSION";
Pos = MAP_APPFONT ( 12 , 76 ) ;
Size = MAP_APPFONT ( 158, 10 ) ;
Text[ en-US ] = "~JPEG compression";
};
FixedText FT_QUALITY
{
Pos = MAP_APPFONT ( 30 , 89 ) ;
Size = MAP_APPFONT ( 83, 10 ) ;
Text[ en-US ] = "~Quality";
};
MetricField NF_QUALITY
{
HelpID = "filter:MetricField:RID_PDF_TAB_GENER:NF_QUALITY";
Border = TRUE ;
Pos = MAP_APPFONT ( 116, 88 ) ;
Size = MAP_APPFONT ( 48, 12 ) ;
TabStop = TRUE ;
Spin = TRUE ;
StrictFormat = TRUE ;
Last = 100 ;
Repeat = TRUE ;
};
CheckBox CB_REDUCEIMAGERESOLUTION
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_REDUCEIMAGERESOLUTION";
Pos = MAP_APPFONT ( 12 , 103 ) ;
Size = MAP_APPFONT ( 101 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "~Reduce image resolution";
};
ComboBox CO_REDUCEIMAGERESOLUTION
{
HelpID = "filter:ComboBox:RID_PDF_TAB_GENER:CO_REDUCEIMAGERESOLUTION";
Pos = MAP_APPFONT ( 116 , 102 ) ;
Size = MAP_APPFONT ( 48 , 50 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
StringList =
{
"75 DPI" ;
"150 DPI" ;
"300 DPI" ;
"600 DPI" ;
"1200 DPI" ;
};
};
FixedLine FL_WATERMARK
{
Pos = MAP_APPFONT ( 6 , 123 ) ;
Size = MAP_APPFONT ( 164 , 10 ) ;
Text[ en-US ] = "Watermark";
};
CheckBox CB_WATERMARK
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_SIGNWITHWATERMARK";
Pos = MAP_APPFONT ( 6, 135 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "Sign with Watermark";
};
FixedText FT_WATERMARK
{
Pos = MAP_APPFONT ( 6 , 150) ;
Size = MAP_APPFONT ( 90 , 8 ) ;
Text [ en-US ] = "Watermark Text";
};
Edit ED_WATERMARK
{
HelpID = "filter:Edit:RID_PDF_TAB_GENER:EDIT_WATERMARKTEXT";
Pos = MAP_APPFONT ( 15, 160 ) ;
Size = MAP_APPFONT ( 100 , 10 ) ;
Border = TRUE;
};
FixedLine FL_GENERAL_VERTICAL
{
Pos = MAP_APPFONT ( 175 , 3 ) ;
Size = MAP_APPFONT ( 4 , 190 ) ;
Vert = TRUE;
};
FixedLine FL_GENERAL
{
Pos = MAP_APPFONT ( 182 , 3 ) ;
Size = MAP_APPFONT ( 164 , 8 ) ;
Text[ en-US ] = "General";
};
CheckBox CB_ADDSTREAM
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_ADDSTREAM";
Pos = MAP_APPFONT ( 188 , 14 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "Em~bed OpenDocument file";
};
FixedText FT_ADDSTREAMDESCRIPTION
{
Pos = MAP_APPFONT( 206 , 23 ) ;
Size = MAP_APPFONT( 140, 16 ) ;
Wordbreak = TRUE ;
Text[ en-US ] = "Makes this PDF easily editable in %PRODUCTNAME" ;
};
CheckBox CB_PDFA_1B_SELECT
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_PDFA_1B_SELECT";
Pos = MAP_APPFONT ( 188, 40 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "P~DF/A-1a";
};
CheckBox CB_TAGGEDPDF
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_TAGGEDPDF";
Pos = MAP_APPFONT ( 188 , 53 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "~Tagged PDF";
};
CheckBox CB_EXPORTFORMFIELDS
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_EXPORTFORMFIELDS";
Pos = MAP_APPFONT ( 188 , 66 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "~Create PDF form";
};
FixedText FT_FORMSFORMAT
{
Pos = MAP_APPFONT ( 206 , 79 ) ;
Size = MAP_APPFONT ( 93, 8 ) ;
Text[ en-US ] = "Submit ~format";
};
ListBox LB_FORMSFORMAT
{
HelpID = "filter:ListBox:RID_PDF_TAB_GENER:LB_FORMSFORMAT";
Border = TRUE ;
Pos = MAP_APPFONT ( 302, 77 ) ;
Size = MAP_APPFONT ( 38, 48 ) ;
DeltaLang = < Default ; Default ; Default ; Default ; > ;
TabStop = TRUE ;
DropDown = TRUE ;
StringList =
{
< "FDF" ; Default; > ;
< "PDF" ; > ;
< "HTML" ; > ;
< "XML" ; > ;
};
};
CheckBox CB_ALLOWDUPLICATEFIELDNAMES
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_ALLOWDUPLICATEFIELDNAMES";
Pos = MAP_APPFONT( 206, 92 );
Size = MAP_APPFONT( 128, 10 );
TabStop = TRUE;
Text [ en-US ] = "Allow duplicate field ~names";
};
CheckBox CB_EXPORTBOOKMARKS
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_EXPORTBOOKMARKS";
Pos = MAP_APPFONT ( 188 , 105 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "Export ~bookmarks";
};
CheckBox CB_EXPORTNOTES
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_EXPORTNOTES";
Pos = MAP_APPFONT ( 188 , 118 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "~Export comments";
};
CheckBox CB_EXPORTNOTESPAGES
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_EXPORTNOTESPAGES";
Pos = MAP_APPFONT ( 188 , 131 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "Export ~notes pages";
};
CheckBox CB_EXPORTHIDDENSLIDES
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_EXPORTHIDDENSLIDES";
Pos = MAP_APPFONT ( 188 , 144 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "Export ~hidden pages";
};
CheckBox CB_EXPORTEMPTYPAGES
{
HelpID = "filter:CheckBox:RID_PDF_TAB_GENER:CB_EXPORTEMPTYPAGES";
Pos = MAP_APPFONT ( 188 , 157 ) ;
Size = MAP_APPFONT ( 158 , 16 ) ;
TabStop = TRUE ;
WordBreak = TRUE ;
Text[ en-US ] = "Exp~ort automatically inserted blank pages";
};
CheckBox CB_VIEWPDF
{
Pos = MAP_APPFONT ( 188 , 181 ) ;
Size = MAP_APPFONT ( 158 , 10 ) ;
TabStop = TRUE ;
Text[ en-US ] = "~View PDF after Export";
};
};
WarningBox RID_PDF_WARNPDFAPASSWORD WarningBox RID_PDF_WARNPDFAPASSWORD
{ {
Title[en-US] = "PDF/A Export"; Title[en-US] = "PDF/A Export";
......
This diff is collapsed.
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