lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / writerfilter / source / ooxml / Handler.hxx
blob5de41e3519818e967f38efea3f12999f2df1cecf
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_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 {
26 namespace ooxml
28 class OOXMLFootnoteHandler : public Properties
30 OOXMLFastContextHandler * mpFastContext;
32 public:
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;
43 public:
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;
54 OUString msStreamId;
55 sal_Int32 mnType;
56 public:
57 explicit OOXMLFooterHandler(OOXMLFastContextHandler * pContext);
58 void finalize();
59 virtual void attribute(Id name, Value & val) override;
60 virtual void sprm(Sprm & sprm) override;
63 class OOXMLHeaderHandler : public Properties
65 OOXMLFastContextHandler * mpFastContext;
66 OUString msStreamId;
67 sal_Int32 mnType;
68 public:
69 explicit OOXMLHeaderHandler(OOXMLFastContextHandler * pContext);
70 void finalize();
71 virtual void attribute(Id name, Value & val) override;
72 virtual void sprm(Sprm & sprm) override;
75 class OOXMLCommentHandler : public Properties
77 OOXMLFastContextHandler * mpFastContext;
78 public:
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;
89 public:
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;
101 public:
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;
112 Stream & mrStream;
113 public:
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;
123 public:
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;
134 OUString mFieldCode;
135 OUString mURL;
137 public:
138 explicit OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext);
139 virtual ~OOXMLHyperlinkHandler() override;
140 void writetext();
142 virtual void attribute(Id name, Value & val) override;
143 virtual void sprm(Sprm & sprm) override;
146 class OOXMLHyperlinkURLHandler : public Properties
148 OOXMLFastContextHandler * mpFastContext;
149 OUString mURL;
151 public:
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: */