merge the formfield patch from ooo-build
[ooovba.git] / scripting / source / storage / ScriptInfoImpl.hxx
blobc23a06ec574b9a9640b3a915c41ccbb7a9c4233d
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: ScriptInfoImpl.hxx,v $
10 * $Revision: 1.5 $
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_SCRIPTINFOIMPL_HXX_
32 #define _SCRIPTING_STORAGE_SCRIPTINFOIMPL_HXX_
34 #include <vector>
35 #include <map>
37 #include <cppu/macros.hxx>
38 #include <rtl/ustring.hxx>
41 typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > str_pair;
42 typedef ::std::map< ::rtl::OUString, str_pair,
43 ::std::equal_to< ::rtl::OUString > > strpair_map;
44 typedef ::std::vector< str_pair > props_vec;
45 typedef ::std::map< ::rtl::OUString, ::std::pair< props_vec, strpair_map >,
46 ::std::equal_to< ::rtl::OUString > > filesets_map;
48 namespace scripting_impl
51 struct ScriptInfoImpl
54 inline ScriptInfoImpl::ScriptInfoImpl() SAL_THROW( () )
55 : parcelURI()
56 , language()
57 , locales()
58 , functionname()
59 , logicalname()
60 , languagedepprops()
61 , filesets()
65 inline ScriptInfoImpl::ScriptInfoImpl( 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 langdepprops_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;
93 } // namespace scripting_impl
95 #endif // _SCRIPTING_STORAGE_SCRIPTINFOIMPL_HXX_