Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_WRITERFILTER_SOURCE_OOXML_HANDLER_HXX
20 : #define INCLUDED_WRITERFILTER_SOURCE_OOXML_HANDLER_HXX
21 :
22 : #include <dmapper/resourcemodel.hxx>
23 : #include "OOXMLFastContextHandler.hxx"
24 :
25 : namespace writerfilter {
26 : namespace ooxml
27 : {
28 : class OOXMLFootnoteHandler : public Properties
29 : {
30 : OOXMLFastContextHandler * mpFastContext;
31 :
32 : public:
33 : explicit OOXMLFootnoteHandler(OOXMLFastContextHandler * pContext);
34 : virtual ~OOXMLFootnoteHandler();
35 :
36 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
37 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
38 : };
39 :
40 : class OOXMLEndnoteHandler : public Properties
41 : {
42 : OOXMLFastContextHandler * mpFastContext;
43 : public:
44 : explicit OOXMLEndnoteHandler(OOXMLFastContextHandler * pContext);
45 : virtual ~OOXMLEndnoteHandler();
46 :
47 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
48 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
49 : };
50 :
51 : class OOXMLFooterHandler : public Properties
52 : {
53 : OOXMLFastContextHandler * mpFastContext;
54 : OUString msStreamId;
55 : sal_Int32 mnType;
56 : public:
57 : explicit OOXMLFooterHandler(OOXMLFastContextHandler * pContext);
58 668 : virtual ~OOXMLFooterHandler() {}
59 : void finalize();
60 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
61 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
62 : };
63 :
64 : class OOXMLHeaderHandler : public Properties
65 : {
66 : OOXMLFastContextHandler * mpFastContext;
67 : OUString msStreamId;
68 : sal_Int32 mnType;
69 : public:
70 : explicit OOXMLHeaderHandler(OOXMLFastContextHandler * pContext);
71 644 : virtual ~OOXMLHeaderHandler() {}
72 : void finalize();
73 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
74 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
75 : };
76 :
77 : class OOXMLCommentHandler : public Properties
78 : {
79 : OOXMLFastContextHandler * mpFastContext;
80 : public:
81 : explicit OOXMLCommentHandler(OOXMLFastContextHandler * pContext);
82 : virtual ~OOXMLCommentHandler();
83 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
84 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
85 : };
86 :
87 : class OOXMLOLEHandler : public Properties
88 : {
89 : OOXMLFastContextHandler * mpFastContext;
90 :
91 : public:
92 : explicit OOXMLOLEHandler(OOXMLFastContextHandler * pContext);
93 : virtual ~OOXMLOLEHandler();
94 :
95 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
96 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
97 : };
98 :
99 : class OOXMLEmbeddedFontHandler : public Properties
100 : {
101 : OOXMLFastContextHandler * mpFastContext;
102 :
103 : public:
104 : explicit OOXMLEmbeddedFontHandler(OOXMLFastContextHandler * pContext);
105 : virtual ~OOXMLEmbeddedFontHandler();
106 :
107 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
108 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
109 : };
110 :
111 : class OOXMLBreakHandler : public Properties
112 : {
113 : sal_Int32 mnType, mnClear;
114 : Stream & mrStream;
115 : public:
116 : explicit OOXMLBreakHandler(Stream & rStream);
117 : virtual ~OOXMLBreakHandler();
118 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
119 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
120 : };
121 :
122 : class OOXMLPictureHandler : public Properties
123 : {
124 : OOXMLFastContextHandler * mpFastContext;
125 : public:
126 : explicit OOXMLPictureHandler(OOXMLFastContextHandler * pContext);
127 : virtual ~OOXMLPictureHandler();
128 :
129 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
130 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
131 : };
132 :
133 : class OOXMLHyperlinkHandler : public Properties
134 : {
135 : OOXMLFastContextHandler * mpFastContext;
136 : OUString mFieldCode;
137 : OUString mURL;
138 :
139 : public:
140 : explicit OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext);
141 : virtual ~OOXMLHyperlinkHandler();
142 :
143 : virtual void attribute(Id name, Value & val) SAL_OVERRIDE;
144 : virtual void sprm(Sprm & sprm) SAL_OVERRIDE;
145 : };
146 :
147 :
148 : }}
149 : #endif // INCLUDED_WRITERFILTER_SOURCE_OOXML_HANDLER_HXX
150 :
151 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|