merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / dlg / advancedsettings.hxx
blob955dbc2e0248f1d99e28c90342753ec3978022dc
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: advancedsettings.hxx,v $
10 * $Revision: 1.4 $
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 ************************************************************************/
31 #ifndef DBACCESS_ADVANCEDSETTINGS_HXX
32 #define DBACCESS_ADVANCEDSETTINGS_HXX
34 #include "adminpages.hxx"
35 #include "dsmeta.hxx"
37 /** === begin UNO includes === **/
38 /** === end UNO includes === **/
40 #include <svtools/dialogcontrolling.hxx>
42 #include <vcl/lstbox.hxx>
44 #include <vector>
46 //........................................................................
47 namespace dbaui
49 //........................................................................
51 struct BooleanSettingDesc;
52 typedef ::std::vector< BooleanSettingDesc > BooleanSettingDescs;
54 //====================================================================
55 //= SpecialSettingsPage
56 //====================================================================
57 /** implements the "Special Settings" page of the advanced database settings
59 class SpecialSettingsPage : public OGenericAdministrationPage
61 protected:
62 FixedLine m_aTopLine;
63 CheckBox* m_pIsSQL92Check;
64 CheckBox* m_pAppendTableAlias;
65 CheckBox* m_pAsBeforeCorrelationName;
66 CheckBox* m_pEnableOuterJoin;
67 CheckBox* m_pIgnoreDriverPrivileges;
68 CheckBox* m_pParameterSubstitution;
69 CheckBox* m_pSuppressVersionColumn;
70 CheckBox* m_pCatalog;
71 CheckBox* m_pSchema;
72 CheckBox* m_pIndexAppendix;
73 CheckBox* m_pDosLineEnds;
74 CheckBox* m_pCheckRequiredFields;
75 CheckBox* m_pIgnoreCurrency;
76 CheckBox* m_pEscapeDateTime;
78 FixedText* m_pBooleanComparisonModeLabel;
79 ListBox* m_pBooleanComparisonMode;
81 ::svt::ControlDependencyManager
82 m_aControlDependencies;
84 BooleanSettingDescs m_aBooleanSettings;
86 AdvancedSettingsSupport
87 m_aSupported;
89 public:
90 virtual BOOL FillItemSet ( SfxItemSet& _rCoreAttrs );
92 SpecialSettingsPage(Window* pParent, const SfxItemSet& _rCoreAttrs, const DataSourceMetaData& _rDSMeta );
94 protected:
95 virtual ~SpecialSettingsPage();
97 // OGenericAdministrationPage overridables
98 virtual void implInitControls (const SfxItemSet& _rSet, sal_Bool _bSaveValue );
100 // <method>OGenericAdministrationPage::fillControls</method>
101 virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList);
103 // <method>OGenericAdministrationPage::fillWindows</method>
104 virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList);
106 private:
107 void impl_initBooleanSettings();
110 //====================================================================
111 //= GeneratedValuesPage
112 //====================================================================
113 class GeneratedValuesPage : public OGenericAdministrationPage
115 protected:
117 FixedLine m_aAutoFixedLine;
118 CheckBox m_aAutoRetrievingEnabled;
119 FixedText m_aAutoIncrementLabel;
120 Edit m_aAutoIncrement;
121 FixedText m_aAutoRetrievingLabel;
122 Edit m_aAutoRetrieving;
124 ::svt::ControlDependencyManager
125 m_aControlDependencies;
127 public:
128 virtual BOOL FillItemSet (SfxItemSet& _rCoreAttrs);
130 GeneratedValuesPage( Window* pParent, const SfxItemSet& _rCoreAttrs );
131 protected:
133 // nControlFlags ist eine Kombination der CBTP_xxx-Konstanten
134 virtual ~GeneratedValuesPage();
136 // must be overloaded by subclasses, but it isn't pure virtual
137 virtual void implInitControls(const SfxItemSet& _rSet, sal_Bool _bSaveValue);
139 // <method>OGenericAdministrationPage::fillControls</method>
140 virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList);
142 // <method>OGenericAdministrationPage::fillWindows</method>
143 virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList);
145 private:
146 DECL_LINK( OnCheckBoxClick, CheckBox * );
149 //........................................................................
150 } // namespace dbaui
151 //........................................................................
153 #endif // DBACCESS_ADVANCEDSETTINGS_HXX