diff options
author | Ádám Csaba Király <kiraly.adam.csaba@gmail.com> | 2013-04-03 21:05:12 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-05-02 09:40:10 +0000 |
commit | 7061e8403a3afddae253ad0a016e5613616030bb (patch) | |
tree | 7bceb8fe3f42eaab2b600e185d0bbe990a404ff3 /sw | |
parent | cf685e9299ab9d196b7f90803f03d4fea8d16091 (diff) |
fdo#60780, refactor Save a Copy and fix
Refactor Save a Copy, basing it on Export functionality.
SID_SAVEACOPY takes its parameters, and sends a SID_EXPORTDOC
request with them, using SID_SAVEACOPYITEM to differentiate
Save a Copy from regular Export.
Fix storing docx to url, by preventing finalizeFilter method,
in filterbase.cxx, from writing back to the original file's
MediaDescriptor.
Change-Id: I876dbe17e43b26a43f29e797fdb157e31889ee1e
Reviewed-on: https://gerrit.libreoffice.org/3355
Reviewed-by: Thorsten Behrens <tbehrens@suse.com>
Tested-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/uiview/srcview.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/uiview/view.hrc | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/ui/uiview/srcview.cxx b/sw/source/ui/uiview/srcview.cxx index 194fd2ee3ef3..53a856c39514 100644 --- a/sw/source/ui/uiview/srcview.cxx +++ b/sw/source/ui/uiview/srcview.cxx @@ -430,6 +430,9 @@ void SwSrcView::GetState(SfxItemSet& rSet) case SID_SAVEASDOC: rSet.Put(SfxStringItem(nWhich, String(SW_RES(STR_SAVEAS_SRC)))); break; + case SID_SAVEACOPY: + rSet.Put(SfxStringItem(nWhich, String(SW_RES(STR_SAVEACOPY_SRC)))); + break; case SID_SAVEDOC: { SwDocShell* pDocShell = GetDocShell(); diff --git a/sw/source/ui/uiview/view.hrc b/sw/source/ui/uiview/view.hrc index a38e4385ec10..c987cdf97d39 100644 --- a/sw/source/ui/uiview/view.hrc +++ b/sw/source/ui/uiview/view.hrc @@ -56,6 +56,8 @@ #define RID_PVIEW_TOOLBOX (RC_VIEW_BEGIN + 31) #define STR_WEBOPTIONS (RC_VIEW_BEGIN + 32) #define STR_TEXTOPTIONS (RC_VIEW_BEGIN + 33) + +#define STR_SAVEACOPY_SRC (RC_VIEW_BEGIN + 34) // MSG ------------------------------------------------------------------- #define MSG_ERR_INSERT_GLOS (RC_VIEW_BEGIN) |