1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SCRIPTING_STORAGE_SCRIPTINFOIMPL_HXX_
25 #define _SCRIPTING_STORAGE_SCRIPTINFOIMPL_HXX_
26 
27 #include <vector>
28 #include <map>
29 
30 #include <cppu/macros.hxx>
31 #include <rtl/ustring.hxx>
32 
33 
34 typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > str_pair;
35 typedef ::std::map< ::rtl::OUString, str_pair,
36     ::std::equal_to< ::rtl::OUString > > strpair_map;
37 typedef ::std::vector< str_pair > props_vec;
38 typedef ::std::map< ::rtl::OUString, ::std::pair< props_vec, strpair_map >,
39     ::std::equal_to< ::rtl::OUString > > filesets_map;
40 
41 namespace scripting_impl
42 {
43 
44 struct ScriptInfoImpl
45 {
46 
ScriptInfoImpl()47     inline ScriptInfoImpl::ScriptInfoImpl() SAL_THROW( () )
48        : parcelURI()
49        , language()
50        , locales()
51        , functionname()
52        , logicalname()
53        , languagedepprops()
54        , filesets()
55        {
56        }
57 
ScriptInfoImpl(const::rtl::OUString __parcelURI,const::rtl::OUString & __language,const strpair_map & __locales,const::rtl::OUString & __functionname,const::rtl::OUString & __logicalname,const langdepprops_vec & __languagedepprops,const filesets_map & __filesets)58    inline ScriptInfoImpl::ScriptInfoImpl( const ::rtl::OUString __parcelURI,
59        const ::rtl::OUString& __language,
60        const strpair_map& __locales,
61        const ::rtl::OUString& __functionname,
62        const ::rtl::OUString& __logicalname,
63        const langdepprops_vec& __languagedepprops,
64        const filesets_map& __filesets ) SAL_THROW( () )
65        : parcelURI( __parcelURI )
66        , language( __language )
67        , locales( __locales )
68        , functionname( __functionname )
69        , logicalname( __logicalname )
70        , languagedepprops( __languagedepprops )
71        , filesets( __filesets )
72    {
73    }
74 
75    ::rtl::OUString parcelURI;
76    ::rtl::OUString language;
77    strpair_map locales;
78    ::rtl::OUString functionname;
79    ::rtl::OUString logicalname;
80    props_vec languagedepprops;
81    filesets_map filesets;
82 
83 };
84 
85 
86 } // namespace scripting_impl
87 
88 #endif // _SCRIPTING_STORAGE_SCRIPTINFOIMPL_HXX_
89 
90