1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef _SCRIPTING_STORAGE_SCRIPTDATA_HXX_ 29 #define _SCRIPTING_STORAGE_SCRIPTDATA_HXX_ 30 31 #include <vector> 32 #include <hash_map> 33 34 #include <cppu/macros.hxx> 35 #include <rtl/ustring.hxx> 36 37 38 39 namespace scripting_impl 40 { 41 42 typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > str_pair; 43 typedef ::std::vector< str_pair > props_vec; 44 typedef ::std::hash_map< ::rtl::OUString, props_vec, ::rtl::OUStringHash, 45 ::std::equal_to< ::rtl::OUString > > strpairvec_map; 46 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< ::rtl::OUString, 47 ::rtl::OUString >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > strpair_map; 48 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< props_vec, strpairvec_map >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > filesets_map; 49 50 struct ScriptData 51 { 52 53 inline ScriptData::ScriptData() SAL_THROW( () ) 54 : parcelURI() 55 , language() 56 , locales() 57 , functionname() 58 , logicalname() 59 , languagedepprops() 60 , filesets() 61 { 62 } 63 64 inline ScriptData::ScriptData( const ::rtl::OUString __parcelURI, 65 const ::rtl::OUString& __language, 66 const strpair_map& __locales, 67 const ::rtl::OUString& __functionname, 68 const ::rtl::OUString& __logicalname, 69 const props_vec& __languagedepprops, 70 const filesets_map& __filesets ) SAL_THROW( () ) 71 : parcelURI( __parcelURI ) 72 , language( __language ) 73 , locales( __locales ) 74 , functionname( __functionname ) 75 , logicalname( __logicalname ) 76 , languagedepprops( __languagedepprops ) 77 , filesets( __filesets ) 78 { 79 } 80 81 ::rtl::OUString parcelURI; 82 ::rtl::OUString language; 83 strpair_map locales; 84 ::rtl::OUString functionname; 85 ::rtl::OUString logicalname; 86 props_vec languagedepprops; 87 filesets_map filesets; 88 }; 89 } // namespace scripting_impl 90 #endif // _SCRIPTING_STORAGE_ScriptData_HXX_ 91 92