Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

document.h

00001 // -*- C++ -*- 00002 00003 /* 00004 * Gnome Chemistry Utils 00005 * chemistry/document.h 00006 * 00007 * Copyright (C) 2004 00008 * 00009 * Developed by Jean Bréfort <jean.brefort@normalesup.org> 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Lesser General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2.1 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this library; if not, write to the 00023 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00024 * Boston, MA 02111-1307, USA. 00025 */ 00026 00027 00028 #ifndef GCU_DOCUMENT_H 00029 #define GCU_DOCUMENT_H 00030 00031 #include "object.h" 00032 00033 using namespace std; 00034 00035 namespace gcu 00036 { 00040 class Document: public Object 00041 { 00042 public: 00046 Document (); 00050 virtual ~Document (); 00051 00052 public: 00053 00061 gchar* GetNewId (gchar* id); 00062 00070 string& GetTranslatedId (const char* id) {return m_TranslationTable[id];} 00071 00078 void EraseTranslationId (const char* Id) {m_TranslationTable.erase (Id);} 00079 00085 void EmptyTranslationTable() {m_TranslationTable.clear();} 00086 00087 private: 00088 map <string, string> m_TranslationTable;//used when Ids translations are necessary (on pasting...) 00089 }; 00090 00091 } 00092 #endif //GCU_DOCUMENT_H

Generated on Tue Sep 21 14:59:35 2004 for The Gnome Chemistry Utils by doxygen 1.3.8