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 __FRAMEWORK_SERVICES_MEDIATYPEDETECTIONHELPER_HXX_ 25 #define __FRAMEWORK_SERVICES_MEDIATYPEDETECTIONHELPER_HXX_ 26 27 //_________________________________________________________________________________________________________________ 28 // my own includes 29 //_________________________________________________________________________________________________________________ 30 31 #include <macros/generic.hxx> 32 #include <macros/debug.hxx> 33 #include <macros/xinterface.hxx> 34 #include <macros/xtypeprovider.hxx> 35 #include <macros/xserviceinfo.hxx> 36 #include <general.h> 37 38 //_________________________________________________________________________________________________________________ 39 // interface includes 40 //_________________________________________________________________________________________________________________ 41 #include <com/sun/star/util/XStringMapping.hpp> 42 43 //_________________________________________________________________________________________________________________ 44 // other includes 45 //_________________________________________________________________________________________________________________ 46 #include <cppuhelper/implbase2.hxx> 47 //_________________________________________________________________________________________________________________ 48 // namespaces 49 //_________________________________________________________________________________________________________________ 50 51 namespace framework{ 52 53 //_________________________________________________________________________________________________________________ 54 // definitions 55 //_________________________________________________________________________________________________________________ 56 57 /*-************************************************************************************************************//** 58 @short - 59 @descr - 60 61 @implements XInterface 62 XTypeProvider 63 XServiceInfo 64 XStringMapping 65 @base OWeakObject 66 67 @devstatus deprecated 68 *//*-*************************************************************************************************************/ 69 70 class MediaTypeDetectionHelper : public ::cppu::WeakImplHelper2< ::com::sun::star::util::XStringMapping, css::lang::XServiceInfo> 71 { 72 //------------------------------------------------------------------------------------------------------------- 73 // public methods 74 //------------------------------------------------------------------------------------------------------------- 75 76 public: 77 78 //--------------------------------------------------------------------------------------------------------- 79 // constructor / destructor 80 //--------------------------------------------------------------------------------------------------------- 81 82 /*-****************************************************************************************************//** 83 @short standard ctor 84 @descr These initialize a new instance of this class with all needed informations for work. 85 86 @seealso - 87 88 @param "xFactory", reference to factory which has created our owner(!). We can use these to create new uno-services. 89 @return - 90 91 @onerror - 92 *//*-*****************************************************************************************************/ 93 94 MediaTypeDetectionHelper( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ); 95 96 /*-****************************************************************************************************//** 97 @short standard destructor 98 @descr This method destruct an instance of this class and clear some member. 99 100 @seealso - 101 102 @param - 103 @return - 104 105 @onerror - 106 *//*-*****************************************************************************************************/ 107 108 virtual ~MediaTypeDetectionHelper(); 109 110 //--------------------------------------------------------------------------------------------------------- 111 // XInterface, XTypeProvider, XServiceInfo 112 //--------------------------------------------------------------------------------------------------------- 113 114 DECLARE_XSERVICEINFO 115 116 //--------------------------------------------------------------------------------------------------------- 117 // XStringMapping 118 //--------------------------------------------------------------------------------------------------------- 119 120 /*-****************************************************************************************************//** 121 @short - 122 @descr - 123 124 @seealso - 125 126 @param - 127 @return - 128 129 @onerror - 130 *//*-*****************************************************************************************************/ 131 132 virtual sal_Bool SAL_CALL mapStrings( css::uno::Sequence< ::rtl::OUString >& seqParameter ) throw( css::uno::RuntimeException ); 133 134 //------------------------------------------------------------------------------------------------------------- 135 // variables 136 // should be private every time 137 //------------------------------------------------------------------------------------------------------------- 138 139 private: 140 141 css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; /// reference to global servicemanager 142 143 }; 144 145 } // namespace framework 146 147 #endif // #ifndef __FRAMEWORK_SERVICES_MEDIATYPEDETECTIONHELPER_HXX_ 148