merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / inc / WCPage.hxx
blobb81ec4859d8f622b9b7e53926f383e6a6fb44655
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: WCPage.hxx,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBAUI_WIZARD_CPAGE_HXX
31 #define DBAUI_WIZARD_CPAGE_HXX
33 #include "WTabPage.hxx"
35 #ifndef DBAUI_ENUMTYPES_HXX
36 #include "QEnumTypes.hxx"
37 #endif
38 #ifndef _SV_FIXED_HXX
39 #include <vcl/fixed.hxx>
40 #endif
41 #ifndef _SV_GROUP_HXX
42 #include <vcl/group.hxx>
43 #endif
44 #ifndef _SV_FIXED_HXX
45 #include <vcl/fixed.hxx>
46 #endif
47 #ifndef _SV_EDIT_HXX
48 #include <vcl/edit.hxx>
49 #endif
50 #ifndef _SV_BUTTON_HXX
51 #include <vcl/button.hxx>
52 #endif
54 namespace dbaui
56 class OWizColumnSelect;
57 class OWizNormalExtend;
58 //========================================================================
59 class OCopyTable : public OWizardPage
61 protected:
62 FixedText m_ftTableName;
63 Edit m_edTableName;
64 FixedLine m_aFL_Options;
65 RadioButton m_aRB_DefData;
66 RadioButton m_aRB_Def;
67 RadioButton m_aRB_View;
68 RadioButton m_aRB_AppendData;
69 CheckBox m_aCB_UseHeaderLine;
70 CheckBox m_aCB_PrimaryColumn;
71 FixedText m_aFT_KeyName;
72 Edit m_edKeyName;
73 sal_Int16 m_nOldOperation;
75 OWizColumnSelect* m_pPage2;
76 OWizNormalExtend* m_pPage3;
78 BOOL m_bPKeyAllowed;
79 BOOL m_bUseHeaderAllowed;
82 DECL_LINK( AppendDataClickHdl, Button* );
83 DECL_LINK( RadioChangeHdl, Button* );
84 DECL_LINK( KeyClickHdl, Button* );
86 sal_Bool checkAppendData();
87 //--------dyf add
88 void SetAppendDataRadio();
89 //--------add end
91 public:
92 virtual void Reset();
93 virtual void ActivatePage();
94 virtual BOOL LeavePage();
95 virtual String GetTitle() const ;
97 OCopyTable( Window * pParent );
98 virtual ~OCopyTable();
100 inline BOOL IsOptionDefData() const { return m_aRB_DefData.IsChecked(); }
101 inline BOOL IsOptionDef() const { return m_aRB_Def.IsChecked(); }
102 inline BOOL IsOptionAppendData() const { return m_aRB_AppendData.IsChecked(); }
103 inline BOOL IsOptionView() const { return m_aRB_View.IsChecked(); }
104 inline BOOL UseHeaderLine() const { return m_aCB_UseHeaderLine.IsChecked(); }
105 String GetKeyName() const { return m_edKeyName.GetText(); }
107 void setCreateStyleAction();
108 inline void disallowViews()
110 m_aRB_View.Disable();
112 inline void disallowUseHeaderLine()
114 m_bUseHeaderAllowed = FALSE;
115 m_aCB_UseHeaderLine.Disable();
118 void setCreatePrimaryKey( bool _bDoCreate, const ::rtl::OUString& _rSuggestedName );
121 #endif // DBAUI_WIZARD_CPAGE_HXX