xref: /AOO42X/main/sd/source/filter/eppt/escherex.hxx (revision 9bce9b0d387299c68bd81d539e1478357a103de5)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _PptEscherEX_HXX
25 #define _PptEscherEX_HXX
26 #include <filter/msfilter/escherex.hxx>
27 
28 // ---------------------------------------------------------------------------------------------
29 // Werte fuer den sal_uLong im PPT_PST_TextHeaderAtom
30 enum PPT_TextHeader
31 {
32     PPTTH_TITLE,
33     PPTTH_BODY,
34     PPTTH_NOTES,
35     PPTTH_NOTUSED,
36     PPTTH_OTHER,       // Text in a Shape
37     PPTTH_CENTERBODY,  // Subtitle in Title-Slide
38     PPTTH_CENTERTITLE, // Title in Title-Slide
39     PPTTH_HALFBODY,    // Body in two-column slide
40     PPTTH_QUARTERBODY  // Body in four-body slide
41 };
42 
43 // ---------------------------------------------------------------------------------------------
44 
45 class PptEscherEx : public EscherEx
46 {
47         sal_uInt32  ImplDggContainerSize();
48         void        ImplWriteDggContainer( SvStream& rSt );
49 
50         sal_uInt32  ImplOptAtomSize();
51         void        ImplWriteOptAtom( SvStream& rSt );
52 
53         sal_uInt32  ImplSplitMenuColorsAtomSize();
54         void        ImplWriteSplitMenuColorsAtom( SvStream& rSt );
55 
56     public:
57 
58                 PptEscherEx( SvStream& rOut, const rtl::OUString& );
59                 ~PptEscherEx();
60 
61         void    OpenContainer( sal_uInt16 n_EscherContainer, int nRecInstance = 0 );
62         void    CloseContainer();
63 
64         sal_uInt32 EnterGroup( Rectangle* pBoundRect, SvMemoryStream* pClientData );
65 
66         sal_uInt32  DrawingGroupContainerSize();
67         void    WriteDrawingGroupContainer( SvStream& rSt );
68 
69         using EscherEx::EnterGroup;
70 };
71 
72 
73 #endif
74