diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-07-03 16:33:36 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-07-05 09:48:19 +0200 |
commit | 970a2517d27336deb8b140f31371f37ea1c890f6 (patch) | |
tree | 2598ca7da9d0727b60b95c1e25875bc8aa0393c9 /include | |
parent | 89d56ad70a5b43509d647d89d0cd12e481642954 (diff) |
support for saving a modified image instead of original version
Normally when you save an image through the "Save..." entry in the
context menu for an image, the saved image is the original one more
eventually applied filters (which are not removeable).
Further applied transformations like rotation, cropping, color effects
are not included in the saved image.
This patch offers the user to choose if saving the original image
(with filters) or the modified version through a pop-up dialog.
The new feature is available in Writer, Draw and Calc.
Change-Id: I4f983e3a5e8a6839fa5789a96c4d8c44477c1fd7
Reviewed-on: https://gerrit.libreoffice.org/39487
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/dialogs.hrc | 3 | ||||
-rw-r--r-- | include/svx/graphichelper.hxx | 1 | ||||
-rw-r--r-- | include/svx/svdograf.hxx | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/include/svx/dialogs.hrc b/include/svx/dialogs.hrc index 1c320896368d..e6176b1e2a19 100644 --- a/include/svx/dialogs.hrc +++ b/include/svx/dialogs.hrc @@ -862,6 +862,9 @@ #define RID_SVX_EXTRUSION_BAR (RID_SVX_START + 986) #define RID_SVX_FONTWORK_BAR (RID_SVX_START + 987) +// String for saving modified image (instead of original) +#define RID_SVXSTR_SAVE_MODIFIED_IMAGE (RID_SVX_START + 988) + #define RID_SVXSTR_EXTRUSION_COLOR (RID_SVX_START + 991) #define RID_SVXSTR_DEPTH_0 (RID_SVX_START + 992) diff --git a/include/svx/graphichelper.hxx b/include/svx/graphichelper.hxx index eca65563ef69..9056d92dedde 100644 --- a/include/svx/graphichelper.hxx +++ b/include/svx/graphichelper.hxx @@ -32,6 +32,7 @@ public: static void GetPreferredExtension( OUString& rExtension, const Graphic& rGraphic ); static OUString ExportGraphic( const Graphic& rGraphic, const OUString& rGraphicName ); static void SaveShapeAsGraphic( const css::uno::Reference< css::drawing::XShape >& xShape ); + static short HasToSaveTransformedImage(vcl::Window* pWin); }; diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx index 77183c301de2..e8cb176ad10b 100644 --- a/include/svx/svdograf.hxx +++ b/include/svx/svdograf.hxx @@ -133,6 +133,8 @@ public: GraphicType GetGraphicType() const; + GraphicAttr GetGraphicAttr( SdrGrafObjTransformsAttrs nTransformFlags = SdrGrafObjTransformsAttrs::ALL ) const; + // Keep ATM for SD. bool IsAnimated() const; bool IsEPS() const; |