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 #ifndef _TAB_SPLIT_HXX 24 #define _TAB_SPLIT_HXX 25 26 #include <svx/stddlg.hxx> 27 28 #ifndef _FIXED_HXX //autogen 29 #include <vcl/fixed.hxx> 30 #endif 31 32 #ifndef _FIELD_HXX //autogen 33 #include <vcl/field.hxx> 34 #endif 35 36 #ifndef _IMAGEBTN_HXX //autogen 37 #include <vcl/button.hxx> 38 #endif 39 40 #ifndef _BUTTON_HXX //autogen 41 #include <vcl/button.hxx> 42 #endif 43 44 class SwWrtShell; 45 46 class SwSplitTableDlg : public SvxStandardDialog 47 { 48 FixedLine aCountFL; 49 FixedText aCountLbl; 50 NumericField aCountEdit; 51 FixedLine aDirFL; 52 ImageRadioButton aHorzBox; 53 ImageRadioButton aVertBox; 54 CheckBox aPropCB; 55 OKButton aOKBtn; 56 CancelButton aCancelBtn; 57 HelpButton aHelpBtn; 58 SwWrtShell& rSh; 59 60 protected: 61 virtual void Apply(); 62 63 public: 64 SwSplitTableDlg(Window *pParent, SwWrtShell& rShell ); 65 DECL_LINK( ClickHdl, Button * ); 66 IsHorizontal() const67 sal_Bool IsHorizontal() const { return aHorzBox.IsChecked(); } IsProportional() const68 sal_Bool IsProportional() const { return aPropCB.IsChecked() && aHorzBox.IsChecked(); } GetCount() const69 long GetCount() const { return sal::static_int_cast< long >(aCountEdit.GetValue()); } 70 }; 71 72 #endif 73