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 _DBAUI_UNOSQLMESSAGE_HXX_ 25 #define _DBAUI_UNOSQLMESSAGE_HXX_ 26 27 #ifndef _SVT_GENERICUNODIALOG_HXX_ 28 #include <svtools/genericunodialog.hxx> 29 #endif 30 #ifndef _DBAUI_MODULE_DBU_HXX_ 31 #include "moduledbu.hxx" 32 #endif 33 //......................................................................... 34 namespace dbaui 35 { 36 //......................................................................... 37 38 typedef ::svt::OGenericUnoDialog OSQLMessageDialogBase; 39 class OSQLMessageDialog 40 :public OSQLMessageDialogBase 41 ,public ::comphelper::OPropertyArrayUsageHelper< OSQLMessageDialog > 42 { 43 OModuleClient m_aModuleClient; 44 protected: 45 // <properties> 46 ::com::sun::star::uno::Any m_aException; 47 ::rtl::OUString m_sHelpURL; 48 // </properties> 49 50 protected: 51 OSQLMessageDialog(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB); 52 53 public: 54 // XTypeProvider 55 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(com::sun::star::uno::RuntimeException); 56 57 // XServiceInfo 58 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException); 59 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(com::sun::star::uno::RuntimeException); 60 61 // XServiceInfo - static methods 62 static com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( com::sun::star::uno::RuntimeException ); 63 static ::rtl::OUString getImplementationName_Static(void) throw( com::sun::star::uno::RuntimeException ); 64 static com::sun::star::uno::Reference< com::sun::star::uno::XInterface > 65 SAL_CALL Create(const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >&); 66 67 // XPropertySet 68 virtual com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException); 69 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); 70 71 // OPropertyArrayUsageHelper 72 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; 73 74 protected: 75 // OPropertySetHelper overridables 76 // (overwrittin these three, because we have some special handling for our property) 77 virtual sal_Bool SAL_CALL convertFastPropertyValue( com::sun::star::uno::Any& _rConvertedValue, com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const com::sun::star::uno::Any& _rValue) throw(com::sun::star::lang::IllegalArgumentException); 78 79 // OGenericUnoDialog overridables 80 virtual Dialog* createDialog(Window* _pParent); 81 }; 82 83 //......................................................................... 84 } // namespace dbaui 85 //......................................................................... 86 87 #endif // _DBAUI_UNOSQLMESSAGE_HXX_ 88 89