Eneboo - Documentación para desarrolladores
tools/aqods/odf-gen/spreadsheet.h
Ir a la documentación de este archivo.
00001 /*
00002 odf-gen: Simple API to generate OpenDocument documents.
00003     Copyright (C) 2009  Pablo Jorge, FuDePAN
00004 
00005     This file is part of the odf-gen project.
00006 
00007     odf-gen is free software: you can redistribute it and/or modify
00008     it under the terms of the GNU General Public License as published by
00009     the Free Software Foundation, either version 3 of the License, or
00010     (at your option) any later version.
00011 
00012     odf-gen is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015     GNU General Public License for more details.
00016 
00017     You should have received a copy of the GNU General Public License
00018     along with odf-gen.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef SPREADSHEET_H
00022 #define SPREADSHEET_H
00023 
00024 #include <iostream>
00025 
00026 #include "element.h"
00027 
00028 class Spreadsheet : public Element
00029 {
00030 public:
00031     Spreadsheet( std::ostream &ostream = std::cout )
00032         : Element( ostream )
00033     {
00034         _ostream << "<?xml version=\"1.0\"?>"
00035                  << "<spreadsheet>";
00036     }
00037     
00038     virtual void close_()
00039     {
00040         _ostream << "</spreadsheet>";
00041     }
00042     
00043     ~Spreadsheet()
00044     {
00045         close();
00046     }
00047 };
00048 
00049 #endif // SPREADSHEET_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'