1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: emfwr.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #include <tools/debug.hxx>
35 #include <vcl/metaact.hxx>
36 #include <vcl/graph.hxx>
37 #include <vcl/gdimtf.hxx>
38 #include <vcl/virdev.hxx>
39 #include <svtools/fltcall.hxx>
50 FilterConfigItem
* mpFilterConfigItem
;
59 sal_uInt32 mnLineHandle
;
61 sal_uInt32 mnFillHandle
;
63 sal_uInt32 mnTextHandle
;
64 sal_uInt32 mnHorTextAlign
;
66 void ImplBeginRecord( sal_uInt32 nType
);
69 ULONG
ImplAcquireHandle();
70 void ImplReleaseHandle( ULONG nHandle
);
72 BOOL
ImplPrepareHandleSelect( sal_uInt32
& rHandle
, ULONG nSelectType
);
73 void ImplCheckLineAttr();
74 void ImplCheckFillAttr();
75 void ImplCheckTextAttr();
77 void ImplWriteColor( const Color
& rColor
);
78 void ImplWriteRasterOp( RasterOp eRop
);
79 void ImplWriteExtent( long nExtent
);
80 void ImplWritePoint( const Point
& rPoint
);
81 void ImplWriteSize( const Size
& rSize
);
82 void ImplWriteRect( const Rectangle
& rRect
);
83 void ImplWritePath( const PolyPolygon
& rPolyPoly
, sal_Bool bClose
);
84 void ImplWritePolygonRecord( const Polygon
& rPoly
, BOOL bClose
);
85 void ImplWritePolyPolygonRecord( const PolyPolygon
& rPolyPoly
);
86 void ImplWriteBmpRecord( const Bitmap
& rBmp
, const Point
& rPt
, const Size
& rSz
, UINT32 nROP
);
87 void ImplWriteTextRecord( const Point
& rPos
, const String rText
, const sal_Int32
* pDXArray
, sal_uInt32 nWidth
);
89 void ImplWrite( const GDIMetaFile
& rMtf
);
95 BOOL
WriteEMF( const GDIMetaFile
& rMtf
, SvStream
& rOStm
, FilterConfigItem
* pConfigItem
= NULL
);