merge the formfield patch from ooo-build
[ooovba.git] / starmath / source / eqnolefilehdr.hxx
blob1fbe4db167047aea0b1376cdab464f9c9b8b262e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: eqnolefilehdr.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
31 #ifndef __EQNOLEFILEHDR_HXX__
32 #define __EQNOLEFILEHDR_HXX__
34 #include <sal/types.h>
35 #include <sot/storage.hxx>
37 class SvStorageStream;
38 class SotStorage;
40 #define EQNOLEFILEHDR_SIZE 28
42 class EQNOLEFILEHDR
44 public:
45 EQNOLEFILEHDR() {}
46 EQNOLEFILEHDR(sal_uInt32 nLenMTEF) : nCBHdr(0x1c),nVersion(0x20000),
47 nCf(0xc1c6),nCBObject(nLenMTEF),nReserved1(0),nReserved2(0x0014F690),
48 nReserved3(0x0014EBB4), nReserved4(0) {}
50 sal_uInt16 nCBHdr; // length of header, sizeof(EQNOLEFILEHDR) = 28
51 sal_uInt32 nVersion; // hiword = 2, loword = 0
52 sal_uInt16 nCf; // clipboard format ("MathType EF")
53 sal_uInt32 nCBObject; // length of MTEF data following this header
54 sal_uInt32 nReserved1; // not used
55 sal_uInt32 nReserved2; // not used
56 sal_uInt32 nReserved3; // not used
57 sal_uInt32 nReserved4; // not used
59 void Read(SvStorageStream *pS);
60 void Write(SvStorageStream *pS);
63 sal_Bool GetMathTypeVersion( SotStorage* pStor, sal_uInt8 &nVersion );
65 #endif