diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-07 10:24:41 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-07 13:46:57 +0100 |
commit | 055be3f4be764e445064effabf06de9d1ed819f7 (patch) | |
tree | 0b2f908a8bc6ffb34ff6f2ae7472dfc4a7e95cc2 /include | |
parent | e53168c6875223d718df49e23b733ad6f40e0b7f (diff) |
sfx2: introduce a new .uno:SignPDF
It's similar to File -> Open, but the file picker only offers PDF files
in this case, and the import is read-only -- i.e. it's the import
equivalent of .uno:ExportToPDF.
Change-Id: I7be9d6711e0ea93643e538575c0604d41cff9b26
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/app.hxx | 1 | ||||
-rw-r--r-- | include/sfx2/filedlghelper.hxx | 6 | ||||
-rw-r--r-- | include/sfx2/sfx.hrc | 1 | ||||
-rw-r--r-- | include/sfx2/sfxsids.hrc | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/include/sfx2/app.hxx b/include/sfx2/app.hxx index 942d1baa6f32..17dbba122ad3 100644 --- a/include/sfx2/app.hxx +++ b/include/sfx2/app.hxx @@ -213,6 +213,7 @@ public: SAL_DLLPRIVATE void NewDocExec_Impl(SfxRequest &); SAL_DLLPRIVATE void OpenDocExec_Impl(SfxRequest &); SAL_DLLPRIVATE void OpenRemoteExec_Impl(SfxRequest &); + SAL_DLLPRIVATE void SignPDFExec_Impl(SfxRequest&); SAL_DLLPRIVATE void MiscExec_Impl(SfxRequest &); SAL_DLLPRIVATE void MiscState_Impl(SfxItemSet &); SAL_DLLPRIVATE static void PropExec_Impl(SfxRequest &); diff --git a/include/sfx2/filedlghelper.hxx b/include/sfx2/filedlghelper.hxx index 0c6ac8c10d42..a56b0b0c1300 100644 --- a/include/sfx2/filedlghelper.hxx +++ b/include/sfx2/filedlghelper.hxx @@ -65,10 +65,12 @@ enum class FileDialogFlags { Export = 0x02, // turn Save into Export dialog SaveACopy = 0x04, // turn Save into Save a Copy dialog MultiSelection = 0x08, - Graphic = 0x10 // register graphic formats + Graphic = 0x10, // register graphic formats + /// Sign existing PDF. + SignPDF = 0x20 }; namespace o3tl { - template<> struct typed_flags<FileDialogFlags> : is_typed_flags<FileDialogFlags, 0x1f> {}; + template<> struct typed_flags<FileDialogFlags> : is_typed_flags<FileDialogFlags, 0x3f> {}; } #define FILEDIALOG_FILTER_ALL "*.*" diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc index 251dd229285b..020f82bcb1d0 100644 --- a/include/sfx2/sfx.hrc +++ b/include/sfx2/sfx.hrc @@ -125,6 +125,7 @@ #define STR_READONLY (RID_SFX_START+105) #define STR_SFX_FILTERNAME_ALL (RID_SFX_START+106) +#define STR_SFX_FILTERNAME_PDF (RID_SFX_START+107) #define STR_EDIT (RID_SFX_START+108) #define STR_BYTES (RID_SFX_START+111) diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index 8520a2576299..0685df689e2a 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -103,6 +103,7 @@ #define SID_SAVEASDOC (SID_SFX_START + 502) #define SID_SAVEASREMOTE (SID_SFX_START + 516) #define SID_SAVESIMPLE (SID_SFX_START + 518) +#define SID_SIGNPDF (SID_SFX_START + 519) #define SID_SAVEACOPY (SID_SFX_START + 999) #define SID_SAVEACOPYITEM (SID_SFX_START + 998) #define SID_CLOSING (SID_SFX_START +1539) |