summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2019-02-20 14:36:12 +0300
committerAndras Timar <andras.timar@collabora.com>2019-03-27 21:43:59 +0100
commitddcc4c817380f013ed312367c17c8603e96c2237 (patch)
tree60da37c1e5ec42a07327e27c29b35fb9ea981219 /include
parent6f5466e19e7a645ad0a8215c29a2a3a0213e6dd6 (diff)
Add style options to redaction export
* Add 2 new uno command aliases to handle 2 different styles of redaction export/sanitization: * .uno:RedactedExportBlack & .uno:RedactedExportWhite * Replace the single export button with the 2 new buttons * Add a new toolbox names .uno:RedactedExportToolbox which consists of the new 2 commands. It will be added to the Redaction toolbar after we solve the icon issue. * Now new redaction shapes are named as RectangleRedactionShape or FreeformRedactionShape based on their type. * While exporting to PDF, a seamless step of "Sanitization" takes place, in which, all shapes in the Draw doc are traversed and turned into opaq black or white (with black border) shapes, then the whole doc is converted into bitmap (page by page). * After the export operation is completed. All shapes are converted back to the usual redaction style (gray and transparent). * Icon issue: * We need 2 new icons for our new commands, one for black redaction shapes without border, and one for white redaction shapes with black border. * I tried adding links to a current icon, but it didn't work, so they are iconless for now. * Next to do: Handle icon issue, and take the redaction implementation into a separate helper class because it is growing fast. Change-Id: I9b2b7716289b800cdbe7bf3ffa4a442fe5afc474 Reviewed-on: https://gerrit.libreoffice.org/68072 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/69836 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/sfxsids.hrc3
-rw-r--r--include/svx/svxids.hrc4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index e275ba953a69..c725951cf118 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -247,8 +247,9 @@
#define SID_NO_FILE_SYNC (SID_SFX_START + 1729)
#define SID_IS_REDACT_MODE (SID_SFX_START + 1731)
+#define SID_REDACTION_STYLE (SID_SFX_START + 1732)
-// SID_SFX_free_START (SID_SFX_START + 1732)
+// SID_SFX_free_START (SID_SFX_START + 1733)
// SID_SFX_free_END (SID_SFX_START + 3999)
#define SID_OPEN_NEW_VIEW (SID_SFX_START + 520)
diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index 8649f2ba2317..b3ed3911ac36 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -471,6 +471,8 @@
// CAUTION! Range <413 .. 413> used by EditEngine (!)
+#define SID_DRAWTBX_REDACTED_EXPORT ( SID_SVX_START + 606 )
+
#define SID_ATTR_3D_START ( SID_SVX_START + 415 )
#define SID_RULER_PROTECT SID_ATTR_3D_START
#define SID_COLOR_CONTROL ( SID_SVX_START + 417 )
@@ -552,7 +554,7 @@
#define SID_FM_DBGRID ( SID_SVX_START + 603 )
#define SID_FM_IMAGEBUTTON ( SID_SVX_START + 604 )
#define SID_FM_FILECONTROL ( SID_SVX_START + 605 )
-//FREE
+//( SID_SVX_START + 606 ) is used by SID_DRAWTBX_REDACTED_EXPORT
#define SID_FM_NAVIGATIONBAR ( SID_SVX_START + 607 )
//FREE
//FREE