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 .
20 #ifndef INCLUDED_SHELL_INC_INTERNAL_BASEREADER_HXX
21 #define INCLUDED_SHELL_INC_INTERNAL_BASEREADER_HXX
23 #include "internal/global.hxx"
24 #include "internal/types.hxx"
25 #include "internal/config.hxx"
26 #include "internal/utilities.hxx"
27 #include "internal/i_xml_parser_event_handler.hxx"
29 #include "internal/xml_parser.hxx"
30 #include "internal/zipfile.hxx"
32 class CBaseReader
: public i_xml_parser_event_handler
35 virtual ~CBaseReader();
37 protected: // protected because its only an implementation relevant class
38 CBaseReader( const std::string
& DocumentName
);
40 CBaseReader( StreamInterface
*stream
);
42 virtual void start_document();
44 virtual void end_document();
46 virtual void start_element(
47 const std::wstring
& raw_name
,
48 const std::wstring
& local_name
,
49 const XmlTagAttributes_t
& attributes
) = 0;
51 virtual void end_element(
52 const std::wstring
& raw_name
, const std::wstring
& local_name
) = 0;
54 virtual void characters(const std::wstring
& character
) = 0;
56 virtual void ignore_whitespace(const std::wstring
& /*whitespaces*/){};
58 virtual void processing_instruction(
59 const std::wstring
& /*target*/, const std::wstring
& /*data*/){};
61 virtual void comment(const std::wstring
& /*comment*/){};
63 void Initialize( const std::string
& /*ContentName*/);
67 ZipFile::ZipContentBuffer_t m_ZipContent
;
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */