summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-05-22 14:20:46 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-05-22 14:20:46 +0000
commit9c8888ab6b518ae53d3135c1d47c0011339893c8 (patch)
tree43e633af44d762d076511dfb741605c0fcf0bf8d /svx/source/unodraw
parent48dd1b9ab1b16be2eeae2a57e3c02e5604d5ab2b (diff)
INTEGRATION: CWS chart2mst3 (1.22.16); FILE MERGED
2007/05/14 18:09:25 bm 1.22.16.10: RESYNC: (1.35-1.36); FILE MERGED 2007/04/19 10:04:04 bm 1.22.16.9: #i75418# support a FilterData property HighContrast for generating high-contrast metafiles 2007/03/19 15:25:42 bm 1.22.16.8: #i75418# support a FilterData property HighContrast for generating high-contrast metafiles 2007/02/07 18:57:33 iha 1.22.16.7: RESYNC: (1.33-1.35); FILE MERGED 2006/11/25 10:29:23 bm 1.22.16.6: RESYNC: (1.32-1.33); FILE MERGED 2006/11/24 20:47:59 bm 1.22.16.5: RESYNC: (1.30-1.32); FILE MERGED 2006/10/19 06:08:26 bm 1.22.16.4: RESYNC: (1.25-1.30); FILE MERGED 2006/01/25 19:46:39 bm 1.22.16.3: RESYNC: (1.24-1.25); FILE MERGED 2005/10/09 00:17:13 bm 1.22.16.2: RESYNC: (1.22-1.24); FILE MERGED 2005/06/06 13:57:04 iha 1.22.16.1: disable output at virtual device for metafile export of a whole page (otherwise the visual representation of a new chart ole has no 3d scene)
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index daa596cb9c6c..054f9847b29e 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: UnoGraphicExporter.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: kz $ $Date: 2007-05-10 15:02:42 $
+ * last change: $Author: vg $ $Date: 2007-05-22 15:20:46 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -634,6 +634,7 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
sal_Bool bExportOnlyBackground = false;
sal_Bool bVerboseComments = false;
sal_Bool bScrollText = false;
+ sal_Bool bUseHighContrast = false;
if( NULL == pFilter || NULL == pPage || NULL == mpDoc )
return sal_False;
@@ -736,6 +737,10 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
{
pDataValues->Value >>= bExportOnlyBackground;
}
+ else if( pDataValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "HighContrast" ) ) )
+ {
+ pDataValues->Value >>= bUseHighContrast;
+ }
else if( pDataValues->Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "PageNumber" ) ) )
{
pDataValues->Value >>= mnPageNumber;
@@ -902,6 +907,9 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
GDIMetaFile aMtf;
aVDev.SetMapMode( aMap );
+ if( bUseHighContrast )
+ aVDev.SetDrawMode( aVDev.GetDrawMode() | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT );
+ aVDev.EnableOutput( FALSE );
aMtf.Record( &aVDev );
Size aNewSize;
@@ -1082,6 +1090,8 @@ sal_Bool SAL_CALL GraphicExporter::filter( const Sequence< PropertyValue >& aDes
aOut.EnableOutput( FALSE );
aOut.SetMapMode( aMap );
+ if( bUseHighContrast )
+ aOut.SetDrawMode( aVDev.GetDrawMode() | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT );
GDIMetaFile aMtf;
aMtf.Clear();