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/.
12 #include <librevenge/librevenge.h>
14 #include "xmlictxt.hxx"
16 namespace writerperfect::exp
18 /// Handler for <table:table>.
19 class XMLTableContext
: public XMLImportContext
22 XMLTableContext(XMLImport
& rImport
, bool bTopLevel
= false);
24 rtl::Reference
<XMLImportContext
>
25 CreateChildContext(const OUString
& rName
,
26 const css::uno::Reference
<css::xml::sax::XAttributeList
>& xAttribs
) override
;
29 startElement(const OUString
& rName
,
30 const css::uno::Reference
<css::xml::sax::XAttributeList
>& xAttribs
) override
;
31 void SAL_CALL
endElement(const OUString
& rName
) override
;
34 bool m_bTableOpened
= false;
35 /// If the context is a direct child of XMLBodyContentContext.
36 /// Only direct child of XMLBodyContentContext has to handle page span.
38 librevenge::RVNGPropertyList m_aPropertyList
;
39 librevenge::RVNGPropertyListVector m_aColumns
;
42 } // namespace writerperfect::exp
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */