Update ooo320-m1
[ooovba.git] / writerfilter / source / ooxml / Handler.hxx
blob5ef4dc4fad06da49301127d28575f517eeeeb9e6
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: Handler.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 ************************************************************************/
30 #ifndef INCLUDED_HANDLER_HXX
31 #define INCLUDED_HANDLER_HXX
33 #include <resourcemodel/WW8ResourceModel.hxx>
34 #include "OOXMLFastContextHandler.hxx"
36 namespace writerfilter {
37 namespace ooxml
39 class OOXMLFootnoteHandler : public Properties
41 OOXMLFastContextHandler * mpFastContext;
43 public:
44 OOXMLFootnoteHandler(OOXMLFastContextHandler * pContext);
45 virtual ~OOXMLFootnoteHandler();
47 virtual void attribute(Id name, Value & val);
48 virtual void sprm(Sprm & sprm);
51 class OOXMLEndnoteHandler : public Properties
53 OOXMLFastContextHandler * mpFastContext;
54 public:
55 OOXMLEndnoteHandler(OOXMLFastContextHandler * pContext);
56 virtual ~OOXMLEndnoteHandler();
58 virtual void attribute(Id name, Value & val);
59 virtual void sprm(Sprm & sprm);
62 class OOXMLFooterHandler : public Properties
64 OOXMLFastContextHandler * mpFastContext;
65 ::rtl::OUString msStreamId;
66 sal_Int32 mnType;
67 public:
68 OOXMLFooterHandler(OOXMLFastContextHandler * pContext);
69 virtual ~OOXMLFooterHandler();
70 virtual void attribute(Id name, Value & val);
71 virtual void sprm(Sprm & sprm);
74 class OOXMLHeaderHandler : public Properties
76 OOXMLFastContextHandler * mpFastContext;
77 ::rtl::OUString msStreamId;
78 sal_Int32 mnType;
79 public:
80 OOXMLHeaderHandler(OOXMLFastContextHandler * pContext);
81 virtual ~OOXMLHeaderHandler();
82 virtual void attribute(Id name, Value & val);
83 virtual void sprm(Sprm & sprm);
86 class OOXMLCommentHandler : public Properties
88 OOXMLFastContextHandler * mpFastContext;
89 ::rtl::OUString msStreamId;
90 public:
91 OOXMLCommentHandler(OOXMLFastContextHandler * pContext);
92 virtual ~OOXMLCommentHandler();
93 virtual void attribute(Id name, Value & val);
94 virtual void sprm(Sprm & sprm);
97 class OOXMLOLEHandler : public Properties
99 OOXMLFastContextHandler * mpFastContext;
101 public:
102 OOXMLOLEHandler(OOXMLFastContextHandler * pContext);
103 virtual ~OOXMLOLEHandler();
105 virtual void attribute(Id name, Value & val);
106 virtual void sprm(Sprm & sprm);
109 class OOXMLBreakHandler : public Properties
111 OOXMLFastContextHandler * mpFastContext;
112 sal_Int32 mnType, mnClear;
113 Stream & mrStream;
114 public:
115 OOXMLBreakHandler(Stream & rStream, OOXMLFastContextHandler * pContext);
116 virtual ~OOXMLBreakHandler();
117 virtual void attribute(Id name, Value & val);
118 virtual void sprm(Sprm & sprm);
121 class OOXMLPictureHandler : public Properties
123 OOXMLFastContextHandler * mpFastContext;
124 public:
125 OOXMLPictureHandler(OOXMLFastContextHandler * pContext);
126 virtual ~OOXMLPictureHandler();
128 virtual void attribute(Id name, Value & val);
129 virtual void sprm(Sprm & sprm);
132 class OOXMLHyperlinkHandler : public Properties
134 OOXMLFastContextHandler * mpFastContext;
135 ::rtl::OUString mFieldCode;
136 ::rtl::OUString mURL;
138 public:
139 OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext);
140 virtual ~OOXMLHyperlinkHandler();
142 virtual void attribute(Id name, Value & val);
143 virtual void sprm(Sprm & sprm);
148 #endif // INCLUDED_HANDLER_HXX