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 /reportdesign | |
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 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/report/ReportController.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index 27c76ab9c35a..aa56679522ec 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -793,6 +793,9 @@ FeatureState OReportController::GetState(sal_uInt16 _nId) const case SID_SAVEASDOC: aReturn.bEnabled = isConnected() && isEditable(); break; + case SID_SAVEACOPY: + aReturn.bEnabled = isConnected() && isEditable(); + break; case SID_EDITDOC: aReturn.bChecked = isEditable(); break; @@ -1913,6 +1916,7 @@ void OReportController::describeSupportedFeatures() implDescribeSupportedFeature( ".uno:NewDoc", SID_NEWDOC, CommandGroup::DOCUMENT ); implDescribeSupportedFeature( ".uno:Save", SID_SAVEDOC, CommandGroup::DOCUMENT ); implDescribeSupportedFeature( ".uno:SaveAs", SID_SAVEASDOC, CommandGroup::DOCUMENT ); + implDescribeSupportedFeature( ".uno:SaveACopy", SID_SAVEACOPY, CommandGroup::DOCUMENT ); implDescribeSupportedFeature( ".uno:InsertPageNumberField", SID_INSERT_FLD_PGNUMBER, CommandGroup::INSERT ); implDescribeSupportedFeature( ".uno:InsertDateTimeField", SID_DATETIME, CommandGroup::INSERT ); |