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 _EXTENSIONS_DBP_WIZARDCONTEXT_HXX_ 25 #define _EXTENSIONS_DBP_WIZARDCONTEXT_HXX_ 26 27 #include <com/sun/star/container/XNameAccess.hpp> 28 #include <com/sun/star/beans/XPropertySet.hpp> 29 #include <com/sun/star/sdbc/XRowSet.hpp> 30 #include <com/sun/star/uno/Sequence.hxx> 31 #include <com/sun/star/drawing/XDrawPage.hpp> 32 #include <com/sun/star/drawing/XControlShape.hpp> 33 #include <com/sun/star/frame/XModel.hpp> 34 #include <comphelper/stl_types.hxx> 35 36 //......................................................................... 37 namespace dbp 38 { 39 //......................................................................... 40 41 //===================================================================== 42 //= OControlWizardContext 43 //===================================================================== 44 struct OControlWizardContext 45 { 46 // the global data source context 47 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > 48 xDatasourceContext; 49 50 // the control mode 51 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > 52 xObjectModel; 53 // the form the control model belongs to 54 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > 55 xForm; 56 // the form as rowset 57 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > 58 xRowSet; 59 60 // the model of the document 61 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > 62 xDocumentModel; 63 // the page where the control mode resides 64 ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > 65 xDrawPage; 66 // the shape which carries the control 67 ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XControlShape > 68 xObjectShape; 69 70 // the tables or queries of the data source the form is bound to (if any) 71 ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > 72 xObjectContainer; 73 // the column types container of the object the form is bound to (table, query or SQL statement) 74 DECLARE_STL_USTRINGACCESS_MAP(sal_Int32,TNameTypeMap); 75 TNameTypeMap aTypes; 76 // the column names of the object the form is bound to (table, query or SQL statement) 77 ::com::sun::star::uno::Sequence< ::rtl::OUString > 78 aFieldNames; 79 80 sal_Bool bEmbedded; 81 }; 82 83 //......................................................................... 84 } // namespace dbp 85 //......................................................................... 86 87 #endif // _EXTENSIONS_DBP_WIZARDCONTEXT_HXX_ 88 89