Update ooo320-m1
[ooovba.git] / scripting / source / storage / ScriptData.hxx
blob104dfc4b4b023c4528fda2be971716fd1a03c137
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: ScriptData.hxx,v $
10 * $Revision: 1.6 $
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 _SCRIPTING_STORAGE_SCRIPTDATA_HXX_
32 #define _SCRIPTING_STORAGE_SCRIPTDATA_HXX_
34 #include <vector>
35 #include <hash_map>
37 #include <cppu/macros.hxx>
38 #include <rtl/ustring.hxx>
42 namespace scripting_impl
45 typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > str_pair;
46 typedef ::std::vector< str_pair > props_vec;
47 typedef ::std::hash_map< ::rtl::OUString, props_vec, ::rtl::OUStringHash,
48 ::std::equal_to< ::rtl::OUString > > strpairvec_map;
49 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< ::rtl::OUString,
50 ::rtl::OUString >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > strpair_map;
51 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< props_vec, strpairvec_map >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > filesets_map;
53 struct ScriptData
56 inline ScriptData::ScriptData() SAL_THROW( () )
57 : parcelURI()
58 , language()
59 , locales()
60 , functionname()
61 , logicalname()
62 , languagedepprops()
63 , filesets()
67 inline ScriptData::ScriptData( const ::rtl::OUString __parcelURI,
68 const ::rtl::OUString& __language,
69 const strpair_map& __locales,
70 const ::rtl::OUString& __functionname,
71 const ::rtl::OUString& __logicalname,
72 const props_vec& __languagedepprops,
73 const filesets_map& __filesets ) SAL_THROW( () )
74 : parcelURI( __parcelURI )
75 , language( __language )
76 , locales( __locales )
77 , functionname( __functionname )
78 , logicalname( __logicalname )
79 , languagedepprops( __languagedepprops )
80 , filesets( __filesets )
84 ::rtl::OUString parcelURI;
85 ::rtl::OUString language;
86 strpair_map locales;
87 ::rtl::OUString functionname;
88 ::rtl::OUString logicalname;
89 props_vec languagedepprops;
90 filesets_map filesets;
92 } // namespace scripting_impl
93 #endif // _SCRIPTING_STORAGE_ScriptData_HXX_