xref: /trunk/main/extensions/source/bibliography/bibmod.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*46dbaceeSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*46dbaceeSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*46dbaceeSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*46dbaceeSAndrew Rist  * distributed with this work for additional information
6*46dbaceeSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*46dbaceeSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*46dbaceeSAndrew Rist  * "License"); you may not use this file except in compliance
9*46dbaceeSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*46dbaceeSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*46dbaceeSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*46dbaceeSAndrew Rist  * software distributed under the License is distributed on an
15*46dbaceeSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*46dbaceeSAndrew Rist  * KIND, either express or implied.  See the License for the
17*46dbaceeSAndrew Rist  * specific language governing permissions and limitations
18*46dbaceeSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*46dbaceeSAndrew Rist  *************************************************************/
21*46dbaceeSAndrew Rist 
22*46dbaceeSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef BIBMOD_HXX
25cdf0e10cSrcweir #define BIBMOD_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir class ResMgr;
29cdf0e10cSrcweir class BibDataManager;
30cdf0e10cSrcweir class BibConfig;
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #define BIBLIOGRAPHY_INI_GROUP      "Bibliography"
33cdf0e10cSrcweir #define BIBLIOGRAPHY_INI_CUR_NAME   "BibliographyCurrent"
34cdf0e10cSrcweir #define BIBLIOGRAPHY_INI_DB_ENTRY   "Bibliography"
35cdf0e10cSrcweir #define BIBLIOGRAPHY_INI_MAPPING    "BibliographyFields"
36cdf0e10cSrcweir #define BIBLIOGRAPHY_TYPE_NAMES     "BibliographyTypeNames"
37cdf0e10cSrcweir 
38cdf0e10cSrcweir class BibModul
39cdf0e10cSrcweir {
40cdf0e10cSrcweir     private:
41cdf0e10cSrcweir         ResMgr*                 pResMgr;
42cdf0e10cSrcweir         static BibConfig*       pBibConfig;
43cdf0e10cSrcweir 
44cdf0e10cSrcweir     public:
45cdf0e10cSrcweir                                 BibModul();
46cdf0e10cSrcweir                                 ~BibModul();
47cdf0e10cSrcweir 
GetResMgr()48cdf0e10cSrcweir         ResMgr*                 GetResMgr(){return pResMgr;}
49cdf0e10cSrcweir         static BibConfig*       GetConfig();
50cdf0e10cSrcweir 
51cdf0e10cSrcweir         BibDataManager*         createDataManager();
52cdf0e10cSrcweir 
53cdf0e10cSrcweir };
54cdf0e10cSrcweir 
55cdf0e10cSrcweir typedef BibModul*       PtrBibModul;
56cdf0e10cSrcweir typedef PtrBibModul*    HdlBibModul;
57cdf0e10cSrcweir 
58cdf0e10cSrcweir HdlBibModul     OpenBibModul();
59cdf0e10cSrcweir void            CloseBibModul(HdlBibModul ppBibModul);
60cdf0e10cSrcweir 
61cdf0e10cSrcweir #endif
62