WKSSubDocument.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
/* libwps
3
* Version: MPL 2.0 / LGPLv2.1+
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
* Major Contributor(s):
10
* Copyright (C) 2006, 2007 Andrew Ziem
11
* Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
12
* Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
13
*
14
* For minor contributions see the git repository.
15
*
16
* Alternatively, the contents of this file may be used under the terms
17
* of the GNU Lesser General Public License Version 2.1 or later
18
* (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19
* applicable instead of those above.
20
*
21
* For further information visit http://libwps.sourceforge.net
22
*/
23
24
#ifndef WKSSUBDOCUMENT_H
25
#define WKSSUBDOCUMENT_H
26
27
#include "
libwps_internal.h
"
28
29
class
WKSContentListener
;
30
class
WKSParser
;
31
32
#include "
WPSSubDocument.h
"
33
35
class
WKSSubDocument
:
public
WPSSubDocument
36
{
37
public
:
39
WKSSubDocument
(
RVNGInputStreamPtr
const
&input,
WKSParser
*
parser
,
int
id
=0);
41
~WKSSubDocument
()
override
;
42
44
WKSParser
*
parser
()
const
45
{
46
return
m_parser
;
47
}
48
50
bool
operator==
(std::shared_ptr<WPSSubDocument>
const
&doc)
const override
;
51
55
virtual
void
parse
(std::shared_ptr<WKSContentListener> &listener,
libwps::SubDocumentType
subDocumentType) = 0;
56
57
protected
:
58
WKSParser
*
m_parser
;
59
private
:
60
WKSSubDocument
(
const
WKSSubDocument
&) =
delete
;
61
WKSSubDocument
&
operator=
(
const
WKSSubDocument
&) =
delete
;
62
63
};
64
#endif
65
66
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WKSSubDocument::~WKSSubDocument
~WKSSubDocument() override
destructor
Definition:
WKSSubDocument.cpp:31
WPSSubDocument.h
WPSSubDocument
virtual class to define a sub document
Definition:
WPSSubDocument.h:34
WKSSubDocument::parse
virtual void parse(std::shared_ptr< WKSContentListener > &listener, libwps::SubDocumentType subDocumentType)=0
virtual parse function
WKSSubDocument::parser
WKSParser * parser() const
returns the parser
Definition:
WKSSubDocument.h:44
WKSSubDocument.h
WKSSubDocument::WKSSubDocument
WKSSubDocument(RVNGInputStreamPtr const &input, WKSParser *parser, int id=0)
constructor
Definition:
WKSSubDocument.cpp:27
libwps::SubDocumentType
SubDocumentType
Definition:
libwps_internal.h:248
WKSSubDocument::m_parser
WKSParser * m_parser
Definition:
WKSSubDocument.h:58
WKSSubDocument
Basic class used to store a spreadsheet sub document.
Definition:
WKSSubDocument.h:36
WKSSubDocument::WKSSubDocument
WKSSubDocument(const WKSSubDocument &)=delete
RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition:
libwps_internal.h:87
libwps_internal.h
WKSSubDocument::operator=
WKSSubDocument & operator=(const WKSSubDocument &)=delete
WKSContentListener
Definition:
WKSContentListener.h:54
WKSSubDocument::operator==
bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const override
an operator =
Definition:
WKSSubDocument.cpp:35
WKSParser
Definition:
WKSParser.h:34
Generated on Fri Oct 2 2020 19:42:43 for libwps by
doxygen
1.8.18