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

convert pdf options dialog to .ui format

Change-Id: I7c186ea77bbadd20ac881dcb0aa2cf7db525dc1e
üst 78587a7e
...@@ -12,6 +12,7 @@ $(eval $(call gb_UIConfig_UIConfig,filter)) ...@@ -12,6 +12,7 @@ $(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/pdfgeneralpage \
filter/uiconfig/ui/pdflinkspage \ filter/uiconfig/ui/pdflinkspage \
filter/uiconfig/ui/pdfoptionsdialog \
filter/uiconfig/ui/pdfsecuritypage \ filter/uiconfig/ui/pdfsecuritypage \
filter/uiconfig/ui/pdfuserinterfacepage \ filter/uiconfig/ui/pdfuserinterfacepage \
filter/uiconfig/ui/pdfviewpage \ filter/uiconfig/ui/pdfviewpage \
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
// warning, next range is RID_FILTER_START + 100 ! // warning, next range is RID_FILTER_START + 100 !
#define HID_FILTER_PDF_OPTIONS "HID_FILTER_PDF_OPTIONS"
#define HID_FILTER_PDF_SIGNING "HID_FILTER_PDF_SIGNING" #define HID_FILTER_PDF_SIGNING "HID_FILTER_PDF_SIGNING"
#endif #endif
......
This diff is collapsed.
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <filter.hrc> #include <filter.hrc>
#define RID_PDF_EXPORT_DLG (RID_PDF_DIALOG_START + 0)
#define RID_PDF_TAB_GENER (RID_PDF_DIALOG_START + 1) #define RID_PDF_TAB_GENER (RID_PDF_DIALOG_START + 1)
#define RID_PDF_TAB_VPREFER (RID_PDF_DIALOG_START + 2) #define RID_PDF_TAB_VPREFER (RID_PDF_DIALOG_START + 2)
#define RID_PDF_TAB_OPNFTR (RID_PDF_DIALOG_START + 3) #define RID_PDF_TAB_OPNFTR (RID_PDF_DIALOG_START + 3)
......
...@@ -69,6 +69,9 @@ class ImplErrorDialog : public ModalDialog ...@@ -69,6 +69,9 @@ class ImplErrorDialog : public ModalDialog
~ImplErrorDialog(); ~ImplErrorDialog();
}; };
class ImpPDFTabSecurityPage;
class ImpPDFTabLinksPage;
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
//class tabbed dialog //class tabbed dialog
class ImpPDFTabDialog : public SfxTabDialog class ImpPDFTabDialog : public SfxTabDialog
...@@ -82,6 +85,13 @@ private: ...@@ -82,6 +85,13 @@ private:
DECL_LINK(CancelHdl, void *); DECL_LINK(CancelHdl, void *);
sal_uInt16 mnSigningPageId;
sal_uInt16 mnSecurityPageId;
sal_uInt16 mnLinksPage;
sal_uInt16 mnInterfacePageId;
sal_uInt16 mnViewPageId;
sal_uInt16 mnGeneralPageId;
protected: protected:
//the following data are the configuration used throughout the dialog and pages //the following data are the configuration used throughout the dialog and pages
sal_Bool mbIsPresentation; sal_Bool mbIsPresentation;
...@@ -167,6 +177,10 @@ public: ...@@ -167,6 +177,10 @@ public:
Sequence< PropertyValue > GetFilterData(); Sequence< PropertyValue > GetFilterData();
ImpPDFTabSecurityPage* getSecurityPage() const;
ImpPDFTabLinksPage* getLinksPage() const;
ImpPDFTabGeneralPage* getGeneralPage() const;
protected: protected:
virtual void PageCreated( sal_uInt16 _nId, virtual void PageCreated( sal_uInt16 _nId,
SfxTabPage& _rPage ); SfxTabPage& _rPage );
......
...@@ -145,55 +145,6 @@ TabPage RID_PDF_TAB_SIGNING ...@@ -145,55 +145,6 @@ TabPage RID_PDF_TAB_SIGNING
}; };
//----------------------------------------------------------
TabDialog RID_PDF_EXPORT_DLG
{
HelpId = HID_FILTER_PDF_OPTIONS ;
OutputSize = TRUE;
SVLook = TRUE;
Moveable = TRUE;
Text [ en-US ] = "PDF Options";
TabControl 1
{
HelpId = HID_FILTER_PDF_OPTIONS ;
OutputSize = TRUE;
PageList =
{
PageItem
{
Identifier = RID_PDF_TAB_GENER;
Text [ en-US ] = "General";
};
PageItem
{
Identifier = RID_PDF_TAB_OPNFTR;
Text [ en-US ] = "Initial View";
};
PageItem
{
Identifier = RID_PDF_TAB_VPREFER;
Text [ en-US ] = "User Interface";
};
PageItem
{
Identifier = RID_PDF_TAB_LINKS;
Text [ en-US ] = "Links";
};
PageItem
{
Identifier = RID_PDF_TAB_SECURITY;
Text [ en-US ] = "Security";
};
PageItem
{
Identifier = RID_PDF_TAB_SIGNING;
Text [ en-US ] = "Digital Signatures";
};
};
};
};
ModalDialog RID_PDF_ERROR_DLG ModalDialog RID_PDF_ERROR_DLG
{ {
HelpID = "filter:ModalDialog:RID_PDF_ERROR_DLG"; HelpID = "filter:ModalDialog:RID_PDF_ERROR_DLG";
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.6 -->
<object class="GtkDialog" id="PdfOptionsDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">PDF Options</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="export">
<property name="label" translatable="yes">E_xport</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkNotebook" id="tabcontrol">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="general">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">General</property>
</object>
<packing>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="initialview">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Initial View</property>
</object>
<packing>
<property name="position">1</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="userinterface">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">User Interface</property>
</object>
<packing>
<property name="position">2</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="links">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Links</property>
</object>
<packing>
<property name="position">3</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="security">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Security</property>
</object>
<packing>
<property name="position">4</property>
<property name="tab_fill">False</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child type="tab">
<object class="GtkLabel" id="digitalsignatures">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Digital Signatures</property>
</object>
<packing>
<property name="position">5</property>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget response="0">export</action-widget>
<action-widget response="0">cancel</action-widget>
<action-widget response="0">help</action-widget>
</action-widgets>
</object>
</interface>
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