Bump version to 4.1-6
[LibreOffice.git] / writerfilter / source / ooxml / Handler.hxx
blob7fc7e0110410b8fd303f4d7a021a2e2b7fe94149
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_HANDLER_HXX
20 #define INCLUDED_HANDLER_HXX
22 #include <resourcemodel/WW8ResourceModel.hxx>
23 #include "OOXMLFastContextHandler.hxx"
25 namespace writerfilter {
26 namespace ooxml
28 class OOXMLFootnoteHandler : public Properties
30 OOXMLFastContextHandler * mpFastContext;
32 public:
33 OOXMLFootnoteHandler(OOXMLFastContextHandler * pContext);
34 virtual ~OOXMLFootnoteHandler();
36 virtual void attribute(Id name, Value & val);
37 virtual void sprm(Sprm & sprm);
40 class OOXMLEndnoteHandler : public Properties
42 OOXMLFastContextHandler * mpFastContext;
43 public:
44 OOXMLEndnoteHandler(OOXMLFastContextHandler * pContext);
45 virtual ~OOXMLEndnoteHandler();
47 virtual void attribute(Id name, Value & val);
48 virtual void sprm(Sprm & sprm);
51 class OOXMLFooterHandler : public Properties
53 OOXMLFastContextHandler * mpFastContext;
54 OUString msStreamId;
55 sal_Int32 mnType;
56 public:
57 OOXMLFooterHandler(OOXMLFastContextHandler * pContext);
58 virtual ~OOXMLFooterHandler();
59 virtual void attribute(Id name, Value & val);
60 virtual void sprm(Sprm & sprm);
63 class OOXMLHeaderHandler : public Properties
65 OOXMLFastContextHandler * mpFastContext;
66 OUString msStreamId;
67 sal_Int32 mnType;
68 public:
69 OOXMLHeaderHandler(OOXMLFastContextHandler * pContext);
70 virtual ~OOXMLHeaderHandler();
71 virtual void attribute(Id name, Value & val);
72 virtual void sprm(Sprm & sprm);
75 class OOXMLCommentHandler : public Properties
77 OOXMLFastContextHandler * mpFastContext;
78 OUString msStreamId;
79 public:
80 OOXMLCommentHandler(OOXMLFastContextHandler * pContext);
81 virtual ~OOXMLCommentHandler();
82 virtual void attribute(Id name, Value & val);
83 virtual void sprm(Sprm & sprm);
86 class OOXMLOLEHandler : public Properties
88 OOXMLFastContextHandler * mpFastContext;
90 public:
91 OOXMLOLEHandler(OOXMLFastContextHandler * pContext);
92 virtual ~OOXMLOLEHandler();
94 virtual void attribute(Id name, Value & val);
95 virtual void sprm(Sprm & sprm);
98 class OOXMLEmbeddedFontHandler : public Properties
100 OOXMLFastContextHandler * mpFastContext;
102 public:
103 OOXMLEmbeddedFontHandler(OOXMLFastContextHandler * pContext);
104 virtual ~OOXMLEmbeddedFontHandler();
106 virtual void attribute(Id name, Value & val);
107 virtual void sprm(Sprm & sprm);
110 class OOXMLBreakHandler : public Properties
112 sal_Int32 mnType, mnClear;
113 Stream & mrStream;
114 public:
115 OOXMLBreakHandler(Stream & rStream);
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 OUString mFieldCode;
136 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
150 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */