merged tag LIBREOFFICE_3_2_99_3
[LibreOffice.git] / scripting / source / storage / ScriptData.hxx
blob6154b7428c495bfdd3a48ec94d169915238e6cd0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _SCRIPTING_STORAGE_SCRIPTDATA_HXX_
30 #define _SCRIPTING_STORAGE_SCRIPTDATA_HXX_
32 #include <vector>
33 #include <hash_map>
35 #include <cppu/macros.hxx>
36 #include <rtl/ustring.hxx>
40 namespace scripting_impl
43 typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > str_pair;
44 typedef ::std::vector< str_pair > props_vec;
45 typedef ::std::hash_map< ::rtl::OUString, props_vec, ::rtl::OUStringHash,
46 ::std::equal_to< ::rtl::OUString > > strpairvec_map;
47 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< ::rtl::OUString,
48 ::rtl::OUString >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > strpair_map;
49 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< props_vec, strpairvec_map >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > filesets_map;
51 struct ScriptData
54 inline ScriptData::ScriptData() SAL_THROW( () )
55 : parcelURI()
56 , language()
57 , locales()
58 , functionname()
59 , logicalname()
60 , languagedepprops()
61 , filesets()
65 inline ScriptData::ScriptData( const ::rtl::OUString __parcelURI,
66 const ::rtl::OUString& __language,
67 const strpair_map& __locales,
68 const ::rtl::OUString& __functionname,
69 const ::rtl::OUString& __logicalname,
70 const props_vec& __languagedepprops,
71 const filesets_map& __filesets ) SAL_THROW( () )
72 : parcelURI( __parcelURI )
73 , language( __language )
74 , locales( __locales )
75 , functionname( __functionname )
76 , logicalname( __logicalname )
77 , languagedepprops( __languagedepprops )
78 , filesets( __filesets )
82 ::rtl::OUString parcelURI;
83 ::rtl::OUString language;
84 strpair_map locales;
85 ::rtl::OUString functionname;
86 ::rtl::OUString logicalname;
87 props_vec languagedepprops;
88 filesets_map filesets;
90 } // namespace scripting_impl
91 #endif // _SCRIPTING_STORAGE_ScriptData_HXX_
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */