MWAWSpreadsheetDecoder.hxx Source File documentation

MWAWSpreadsheetDecoder.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3/* libmwaw
4* Version: MPL 2.0 / LGPLv2+
5*
6* The contents of this file are subject to the Mozilla Public License Version
7* 2.0 (the "License"); you may not use this file except in compliance with
8* the License or as specified alternatively below. You may obtain a copy of
9* the License at http://www.mozilla.org/MPL/
10*
11* Software distributed under the License is distributed on an "AS IS" basis,
12* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13* for the specific language governing rights and limitations under the
14* License.
15*
16* Major Contributor(s):
17 * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
18 * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl)
19* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
20* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
21* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
22* Copyright (C) 2006, 2007 Andrew Ziem
23* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
24*
25*
26* All Rights Reserved.
27*
28* For minor contributions see the git repository.
29*
30* Alternatively, the contents of this file may be used under the terms of
31* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
32* in which case the provisions of the LGPLv2+ are applicable
33* instead of those above.
34*/
35
36#ifndef MWAW_SPREADSHEET_DECODER_HXX
37#define MWAW_SPREADSHEET_DECODER_HXX
38
39#include <librevenge/librevenge.h>
40#include "libmwaw_internal.hxx"
41
42#include "MWAWPropertyHandler.hxx"
43
48 class MWAWSpreadsheetDecoder final : public MWAWPropertyHandler
49{
50public:
52 explicit MWAWSpreadsheetDecoder(librevenge::RVNGSpreadsheetInterface *output) : MWAWPropertyHandler(), m_output(output) { }
54 ~MWAWSpreadsheetDecoder() final {}
55
57 void insertElement(const char *psName) final;
59 void insertElement(const char *psName, const librevenge::RVNGPropertyList &xPropList) final;
61 void insertElement(const char *psName, const librevenge::RVNGPropertyList &xPropList,
62 const librevenge::RVNGPropertyListVector &vector);
64 void characters(const librevenge::RVNGString &sCharacters) final
65 {
66 if (!m_output) return;
67 m_output->insertText(sCharacters);
68 }
69private:
71 MWAWSpreadsheetDecoder(MWAWSpreadsheetDecoder const &) = delete;
73 MWAWSpreadsheetDecoder operator=(MWAWSpreadsheetDecoder const &) = delete;
75 librevenge::RVNGSpreadsheetInterface *m_output;
76};
77
78#endif
79
80// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWPropertyHandler.hxx
MWAWPropertyHandler::MWAWPropertyHandler
MWAWPropertyHandler()
constructor
Definition MWAWPropertyHandler.hxx:48
MWAWSpreadsheetDecoder::operator=
MWAWSpreadsheetDecoder operator=(MWAWSpreadsheetDecoder const &)=delete
operator= (undefined)
MWAWSpreadsheetDecoder::m_output
librevenge::RVNGSpreadsheetInterface * m_output
the interface output
Definition MWAWSpreadsheetDecoder.hxx:75
MWAWSpreadsheetDecoder::MWAWSpreadsheetDecoder
MWAWSpreadsheetDecoder(librevenge::RVNGSpreadsheetInterface *output)
constructor
Definition MWAWSpreadsheetDecoder.hxx:52
MWAWSpreadsheetDecoder::characters
void characters(const librevenge::RVNGString &sCharacters) final
insert a sequence of character
Definition MWAWSpreadsheetDecoder.hxx:64
MWAWSpreadsheetDecoder::insertElement
void insertElement(const char *psName) final
insert an element
Definition MWAWSpreadsheetDecoder.cxx:47
MWAWSpreadsheetDecoder::~MWAWSpreadsheetDecoder
~MWAWSpreadsheetDecoder() final
destructor
Definition MWAWSpreadsheetDecoder.hxx:54
MWAWSpreadsheetDecoder::MWAWSpreadsheetDecoder
MWAWSpreadsheetDecoder(MWAWSpreadsheetDecoder const &)=delete
copy constructor (undefined)
MWAWSpreadsheetDecoder::insertElement
void insertElement(const char *psName, const librevenge::RVNGPropertyList &xPropList, const librevenge::RVNGPropertyListVector &vector)
insert an element ( with a librevenge::RVNGPropertyListVector parameter )
libmwaw_internal.hxx