diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-07-03 16:33:36 +0200 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2017-07-04 10:28:35 +0200 |
commit | dd74a659c60c1f0e7733d4244e808865377c6316 (patch) | |
tree | 402e767710ede69c40de175d26b3e2e8d3f57ac1 /include | |
parent | abc440a691efb872afac385ce5ed28cd5db56c8c (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 rotations, 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/39480
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
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 38680a96750c..9cb968dc7a17 100644 --- a/include/svx/dialogs.hrc +++ b/include/svx/dialogs.hrc @@ -750,6 +750,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_DEPTH_0 (RID_SVX_START + 992) #define RID_SVXSTR_DEPTH_1 (RID_SVX_START + 993) #define RID_SVXSTR_DEPTH_2 (RID_SVX_START + 994) 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 c748e3ad0ec1..dcf170099ea4 100644 --- a/include/svx/svdograf.hxx +++ b/include/svx/svdograf.hxx @@ -134,6 +134,8 @@ public: GraphicType GetGraphicType() const; + GraphicAttr GetGraphicAttr( SdrGrafObjTransformsAttrs nTransformFlags = SdrGrafObjTransformsAttrs::ALL ) const; + // Keep ATM for SD. bool IsAnimated() const; bool IsEPS() const; |