1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef ARY_INFO_DOCSTORE_HXX 29 #define ARY_INFO_DOCSTORE_HXX 30 31 32 33 // USED SERVICES 34 // BASE CLASSES 35 // COMPONENTS 36 // PARAMETERS 37 #include <ary/info/inftypes.hxx> 38 39 namespace ary 40 { 41 namespace doc 42 { 43 class Node; 44 } 45 46 47 48 namespace info 49 { 50 51 class DocuStore 52 { 53 public: 54 virtual ~DocuStore() {} 55 56 void Store2CurFile( 57 DYN doc::Node & let_drDocu ); 58 void Store2CurNamespace( 59 DYN doc::Node & let_drDocu ); 60 61 void Store2ConnectedDeclaration( 62 DYN doc::Node & let_drDocu ); 63 64 void Store2Glossary( 65 DYN doc::Node & let_drDocu, 66 const String & i_sExplainedTerm ); 67 void Store2GlobalTexts( 68 DYN doc::Node & let_drDocu, 69 ary::info::GlobalTextId 70 i_nId ); 71 private: 72 virtual void do_Store2CurFile( 73 DYN doc::Node & let_drDocu ) = 0; 74 virtual void do_Store2CurNamespace( 75 DYN doc::Node & let_drDocu ) = 0; 76 77 virtual void do_Store2ConnectedDeclaration( 78 DYN doc::Node & let_drDocu ) = 0; 79 80 virtual void do_Store2Glossary( 81 DYN doc::Node & let_drDocu, 82 const String & i_sExplainedTerm ) = 0; 83 virtual void do_Store2GlobalTexts( 84 DYN doc::Node & let_drDocu, 85 ary::info::GlobalTextId 86 i_nId ) = 0; 87 }; 88 89 90 91 92 // IMPLEMENTATION 93 inline void 94 DocuStore::Store2CurFile( DYN doc::Node & let_drDocu ) 95 { do_Store2CurFile(let_drDocu); } 96 inline void 97 DocuStore::Store2CurNamespace( DYN doc::Node & let_drDocu ) 98 { do_Store2CurNamespace(let_drDocu); } 99 inline void 100 DocuStore::Store2ConnectedDeclaration( DYN doc::Node & let_drDocu ) 101 { do_Store2ConnectedDeclaration(let_drDocu); } 102 inline void 103 DocuStore::Store2Glossary( DYN doc::Node & let_drDocu, 104 const String & i_sExplainedTerm ) 105 { do_Store2Glossary(let_drDocu, i_sExplainedTerm); } 106 inline void 107 DocuStore::Store2GlobalTexts( DYN doc::Node & let_drDocu, 108 ary::info::GlobalTextId i_nId ) 109 { do_Store2GlobalTexts(let_drDocu, i_nId); } 110 111 112 113 114 } // namespace info 115 } // namespace ary 116 #endif 117