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 SC_DAPITYPE_HXX 25 #define SC_DAPITYPE_HXX 26 27 #ifndef _SV_BUTTON_HXX 28 #include <vcl/button.hxx> 29 #endif 30 #include <vcl/dialog.hxx> 31 #include <vcl/edit.hxx> 32 #include <vcl/fixed.hxx> 33 #include <vcl/lstbox.hxx> 34 #include <com/sun/star/uno/Sequence.hxx> 35 36 //------------------------------------------------------------------------ 37 38 class ScDataPilotSourceTypeDlg : public ModalDialog 39 { 40 private: 41 FixedLine aFlFrame; 42 RadioButton aBtnSelection; 43 RadioButton aBtnDatabase; 44 RadioButton aBtnExternal; 45 OKButton aBtnOk; 46 CancelButton aBtnCancel; 47 HelpButton aBtnHelp; 48 49 public: 50 ScDataPilotSourceTypeDlg( Window* pParent, sal_Bool bEnableExternal ); 51 ~ScDataPilotSourceTypeDlg(); 52 53 sal_Bool IsDatabase() const; 54 sal_Bool IsExternal() const; 55 }; 56 57 58 class ScDataPilotServiceDlg : public ModalDialog 59 { 60 private: 61 FixedLine aFlFrame; 62 FixedText aFtService; 63 ListBox aLbService; 64 FixedText aFtSource; 65 Edit aEdSource; 66 FixedText aFtName; 67 Edit aEdName; 68 FixedText aFtUser; 69 Edit aEdUser; 70 FixedText aFtPasswd; 71 Edit aEdPasswd; 72 OKButton aBtnOk; 73 CancelButton aBtnCancel; 74 HelpButton aBtnHelp; 75 76 public: 77 ScDataPilotServiceDlg( Window* pParent, 78 const com::sun::star::uno::Sequence<rtl::OUString>& rServices ); 79 ~ScDataPilotServiceDlg(); 80 81 String GetServiceName() const; 82 String GetParSource() const; 83 String GetParName() const; 84 String GetParUser() const; 85 String GetParPass() const; 86 }; 87 88 89 #endif 90 91 92