merge the formfield patch from ooo-build
[ooovba.git] / autodoc / inc / ary / info / docstore.hxx
blob227baa9e509da2e9c72d291cb2da0c7a4ff0bf73
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: docstore.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ARY_INFO_DOCSTORE_HXX
32 #define ARY_INFO_DOCSTORE_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 // COMPONENTS
39 // PARAMETERS
40 #include <ary/info/inftypes.hxx>
42 namespace ary
44 namespace doc
46 class Node;
51 namespace info
54 class DocuStore
56 public:
57 virtual ~DocuStore() {}
59 void Store2CurFile(
60 DYN doc::Node & let_drDocu );
61 void Store2CurNamespace(
62 DYN doc::Node & let_drDocu );
64 void Store2ConnectedDeclaration(
65 DYN doc::Node & let_drDocu );
67 void Store2Glossary(
68 DYN doc::Node & let_drDocu,
69 const String & i_sExplainedTerm );
70 void Store2GlobalTexts(
71 DYN doc::Node & let_drDocu,
72 ary::info::GlobalTextId
73 i_nId );
74 private:
75 virtual void do_Store2CurFile(
76 DYN doc::Node & let_drDocu ) = 0;
77 virtual void do_Store2CurNamespace(
78 DYN doc::Node & let_drDocu ) = 0;
80 virtual void do_Store2ConnectedDeclaration(
81 DYN doc::Node & let_drDocu ) = 0;
83 virtual void do_Store2Glossary(
84 DYN doc::Node & let_drDocu,
85 const String & i_sExplainedTerm ) = 0;
86 virtual void do_Store2GlobalTexts(
87 DYN doc::Node & let_drDocu,
88 ary::info::GlobalTextId
89 i_nId ) = 0;
95 // IMPLEMENTATION
96 inline void
97 DocuStore::Store2CurFile( DYN doc::Node & let_drDocu )
98 { do_Store2CurFile(let_drDocu); }
99 inline void
100 DocuStore::Store2CurNamespace( DYN doc::Node & let_drDocu )
101 { do_Store2CurNamespace(let_drDocu); }
102 inline void
103 DocuStore::Store2ConnectedDeclaration( DYN doc::Node & let_drDocu )
104 { do_Store2ConnectedDeclaration(let_drDocu); }
105 inline void
106 DocuStore::Store2Glossary( DYN doc::Node & let_drDocu,
107 const String & i_sExplainedTerm )
108 { do_Store2Glossary(let_drDocu, i_sExplainedTerm); }
109 inline void
110 DocuStore::Store2GlobalTexts( DYN doc::Node & let_drDocu,
111 ary::info::GlobalTextId i_nId )
112 { do_Store2GlobalTexts(let_drDocu, i_nId); }
117 } // namespace info
118 } // namespace ary
119 #endif