summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2019-02-20 14:36:12 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-02-23 15:59:34 +0100
commit10edac7eccc74aca057a086fed6a58f4387920b6 (patch)
treebed86e5db929af1fc2597f9754da2aab9fb59b15 /include
parente99a7a8dfa6f85a8b8bc53298f9300cf2fc77ec2 (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>
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 491874ecdaa0..24f7d569e5db 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -257,8 +257,9 @@ class SfxDocumentInfoItem;
// not required for preview, but interferes with not-yet-saved embedded data source for main document.
#define SID_NO_EMBEDDED_DS TypedWhichId<SfxBoolItem>(SID_SFX_START + 1731)
#define SID_IS_REDACT_MODE (SID_SFX_START + 1733)
+#define SID_REDACTION_STYLE (SID_SFX_START + 1734)
-// SID_SFX_free_START (SID_SFX_START + 1734)
+// SID_SFX_free_START (SID_SFX_START + 1735)
// 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 408cb8175455..5e082fa30943 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -458,6 +458,8 @@ class SfxStringItem;
// 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 )
@@ -540,7 +542,7 @@ class SfxStringItem;
#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