summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2019-01-29 23:02:22 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2019-01-31 23:55:09 +0100
commit51af3179cf972809d6495c7d58033e069f647bbf (patch)
tree57e50481a7cb83a54892ab73891151bbf498ec95 /include
parentfb95d74f9f2583259e5dea55bd83b2d6a7d98c19 (diff)
Support bitmap PDF export for Redaction
* Add a new parameter IsRedactMode (SID_IS_REDACT_MODE) to .uno:ExportDirectToPDF * Make sure the new param makes it into PDFExport as part of FilterData * Hijack the metafile before being sent to ImplExportPage(), convert to bitmap, and replace the original * Add a new entry to GenericCommands.xcu to make our button with param visible * Nitpick: For things to be included in the bitmap conversion, they need to be added to the metafile before the conversion in PDFExport::ExportSelection(). Things added after that point (inside ImplExportPage() for example) will not be bitmapped/pixelized Change-Id: Iec7020917da920a968ea969b98e53f17eadaa275 Reviewed-on: https://gerrit.libreoffice.org/67108 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/sfxsids.hrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index badaedad4d26..811bfe59ce57 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -256,8 +256,9 @@ class SfxDocumentInfoItem;
// Used to export a temporary file for preview in Mail Merge Wizard, where saving the data source is
// 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)
-// SID_SFX_free_START (SID_SFX_START + 1733)
+// SID_SFX_free_START (SID_SFX_START + 1734)
// SID_SFX_free_END (SID_SFX_START + 3999)
#define SID_OPEN_NEW_VIEW (SID_SFX_START + 520)