1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_WRITERFILTER_SOURCE_OOXML_HANDLER_HXX
20 #define INCLUDED_WRITERFILTER_SOURCE_OOXML_HANDLER_HXX
22 #include <dmapper/resourcemodel.hxx>
23 #include "OOXMLFastContextHandler.hxx"
25 namespace writerfilter
{
28 class OOXMLFootnoteHandler
: public Properties
30 OOXMLFastContextHandler
* mpFastContext
;
33 explicit OOXMLFootnoteHandler(OOXMLFastContextHandler
* pContext
);
34 virtual ~OOXMLFootnoteHandler() override
;
36 virtual void attribute(Id name
, Value
& val
) override
;
37 virtual void sprm(Sprm
& sprm
) override
;
40 class OOXMLEndnoteHandler
: public Properties
42 OOXMLFastContextHandler
* mpFastContext
;
44 explicit OOXMLEndnoteHandler(OOXMLFastContextHandler
* pContext
);
45 virtual ~OOXMLEndnoteHandler() override
;
47 virtual void attribute(Id name
, Value
& val
) override
;
48 virtual void sprm(Sprm
& sprm
) override
;
51 class OOXMLFooterHandler
: public Properties
53 OOXMLFastContextHandler
* mpFastContext
;
57 explicit OOXMLFooterHandler(OOXMLFastContextHandler
* pContext
);
59 virtual void attribute(Id name
, Value
& val
) override
;
60 virtual void sprm(Sprm
& sprm
) override
;
63 class OOXMLHeaderHandler
: public Properties
65 OOXMLFastContextHandler
* mpFastContext
;
69 explicit OOXMLHeaderHandler(OOXMLFastContextHandler
* pContext
);
71 virtual void attribute(Id name
, Value
& val
) override
;
72 virtual void sprm(Sprm
& sprm
) override
;
75 class OOXMLCommentHandler
: public Properties
77 OOXMLFastContextHandler
* mpFastContext
;
79 explicit OOXMLCommentHandler(OOXMLFastContextHandler
* pContext
);
80 virtual ~OOXMLCommentHandler() override
;
81 virtual void attribute(Id name
, Value
& val
) override
;
82 virtual void sprm(Sprm
& sprm
) override
;
85 class OOXMLOLEHandler
: public Properties
87 OOXMLFastContextHandler
* mpFastContext
;
90 explicit OOXMLOLEHandler(OOXMLFastContextHandler
* pContext
);
91 virtual ~OOXMLOLEHandler() override
;
93 virtual void attribute(Id name
, Value
& val
) override
;
94 virtual void sprm(Sprm
& sprm
) override
;
97 class OOXMLEmbeddedFontHandler
: public Properties
99 OOXMLFastContextHandler
* mpFastContext
;
102 explicit OOXMLEmbeddedFontHandler(OOXMLFastContextHandler
* pContext
);
103 virtual ~OOXMLEmbeddedFontHandler() override
;
105 virtual void attribute(Id name
, Value
& val
) override
;
106 virtual void sprm(Sprm
& sprm
) override
;
109 class OOXMLBreakHandler
: public Properties
111 sal_Int32 mnType
, mnClear
;
114 explicit OOXMLBreakHandler(Stream
& rStream
);
115 virtual ~OOXMLBreakHandler() override
;
116 virtual void attribute(Id name
, Value
& val
) override
;
117 virtual void sprm(Sprm
& sprm
) override
;
120 class OOXMLPictureHandler
: public Properties
122 OOXMLFastContextHandler
* mpFastContext
;
124 explicit OOXMLPictureHandler(OOXMLFastContextHandler
* pContext
);
125 virtual ~OOXMLPictureHandler() override
;
127 virtual void attribute(Id name
, Value
& val
) override
;
128 virtual void sprm(Sprm
& sprm
) override
;
131 class OOXMLHyperlinkHandler
: public Properties
133 OOXMLFastContextHandler
* mpFastContext
;
138 explicit OOXMLHyperlinkHandler(OOXMLFastContextHandler
* pContext
);
139 virtual ~OOXMLHyperlinkHandler() override
;
142 virtual void attribute(Id name
, Value
& val
) override
;
143 virtual void sprm(Sprm
& sprm
) override
;
146 class OOXMLHyperlinkURLHandler
: public Properties
148 OOXMLFastContextHandler
* mpFastContext
;
152 explicit OOXMLHyperlinkURLHandler(OOXMLFastContextHandler
* pContext
);
153 virtual ~OOXMLHyperlinkURLHandler() override
;
155 virtual void attribute(Id name
, Value
& val
) override
;
156 virtual void sprm(Sprm
& sprm
) override
;
161 #endif // INCLUDED_WRITERFILTER_SOURCE_OOXML_HANDLER_HXX
163 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */