Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef _WMF_HXX
21 : #define _WMF_HXX
22 :
23 : #include "svtools/svtdllapi.h"
24 : #include <svtools/fltcall.hxx>
25 :
26 : struct WMF_EXTERNALHEADER
27 : {
28 : sal_uInt16 xExt;
29 : sal_uInt16 yExt;
30 :
31 : /** One of the following values:
32 : <ul>
33 : <li>MM_TEXT</li>
34 : <li>MM_LOMETRIC</li>
35 : <li>MM_HIMETRIC</li>
36 : <li>MM_LOENGLISH</li>
37 : <li>MM_HIENGLISH</li>
38 : <li>MM_TWIPS</li>
39 : <li>MM_ISOTROPIC</li>
40 : <li>MM_ANISOTROPIC</li>
41 : </ul>
42 : If this value is 0, then no external mapmode has been defined,
43 : the internal one should then be used.
44 : */
45 : sal_uInt16 mapMode;
46 :
47 31 : WMF_EXTERNALHEADER() :
48 : xExt( 0 ),
49 : yExt( 0 ),
50 31 : mapMode( 0 )
51 : {
52 31 : }
53 : };
54 :
55 : sal_Bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaFile, FilterConfigItem* pConfigItem = NULL, WMF_EXTERNALHEADER *pExtHeader = NULL );
56 :
57 : SVT_DLLPUBLIC sal_Bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF, FilterConfigItem* pConfigItem );
58 :
59 : SVT_DLLPUBLIC sal_Bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pConfigItem = NULL, sal_Bool bPlaceable = sal_True );
60 :
61 : sal_Bool ConvertGDIMetaFileToEMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pConfigItem = NULL );
62 :
63 : SVT_DLLPUBLIC sal_Bool WriteWindowMetafileBits( SvStream& rStream, const GDIMetaFile& rMTF );
64 :
65 : #endif
66 :
67 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|