merge the formfield patch from ooo-build
[ooovba.git] / sd / source / filter / eppt / escherex.hxx
blobc466b915b611391be8a163786c6559b2766f0d67
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: escherex.hxx,v $
10 * $Revision: 1.12 $
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 _PptEscherEX_HXX
32 #define _PptEscherEX_HXX
33 #include <svx/escherex.hxx>
35 // ---------------------------------------------------------------------------------------------
36 // Werte fuer den ULONG im PPT_PST_TextHeaderAtom
37 enum PPT_TextHeader
39 PPTTH_TITLE,
40 PPTTH_BODY,
41 PPTTH_NOTES,
42 PPTTH_NOTUSED,
43 PPTTH_OTHER, // Text in a Shape
44 PPTTH_CENTERBODY, // Subtitle in Title-Slide
45 PPTTH_CENTERTITLE, // Title in Title-Slide
46 PPTTH_HALFBODY, // Body in two-column slide
47 PPTTH_QUARTERBODY // Body in four-body slide
50 // ---------------------------------------------------------------------------------------------
52 class PptEscherEx : public EscherEx
54 SvMemoryStream maFIDCLs;
56 sal_uInt32 ImplDggContainerSize();
57 void ImplWriteDggContainer( SvStream& rSt );
59 sal_uInt32 ImplDggAtomSize();
60 void ImplWriteDggAtom( SvStream& rSt );
62 sal_uInt32 ImplOptAtomSize();
63 void ImplWriteOptAtom( SvStream& rSt );
65 sal_uInt32 ImplSplitMenuColorsAtomSize();
66 void ImplWriteSplitMenuColorsAtom( SvStream& rSt );
68 public:
70 PptEscherEx( SvStream& rOut, UINT32 nDrawings );
71 ~PptEscherEx();
73 void OpenContainer( UINT16 n_EscherContainer, int nRecInstance = 0 );
74 void CloseContainer();
76 sal_uInt32 EnterGroup( Rectangle* pBoundRect, SvMemoryStream* pClientData );
78 UINT32 DrawingGroupContainerSize();
79 void WriteDrawingGroupContainer( SvStream& rSt );
81 using EscherEx::EnterGroup;
85 #endif