1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
21 #define INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
23 #include "adminpages.hxx"
26 #include <svtools/dialogcontrolling.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/field.hxx>
35 struct BooleanSettingDesc
;
36 typedef ::std::vector
< BooleanSettingDesc
> BooleanSettingDescs
;
38 // SpecialSettingsPage
39 // implements the "Special Settings" page of the advanced database settings
40 class SpecialSettingsPage
: public OGenericAdministrationPage
43 VclPtr
<CheckBox
> m_pIsSQL92Check
;
44 VclPtr
<CheckBox
> m_pAppendTableAlias
;
45 VclPtr
<CheckBox
> m_pAsBeforeCorrelationName
;
46 VclPtr
<CheckBox
> m_pEnableOuterJoin
;
47 VclPtr
<CheckBox
> m_pIgnoreDriverPrivileges
;
48 VclPtr
<CheckBox
> m_pParameterSubstitution
;
49 VclPtr
<CheckBox
> m_pSuppressVersionColumn
;
50 VclPtr
<CheckBox
> m_pCatalog
;
51 VclPtr
<CheckBox
> m_pSchema
;
52 VclPtr
<CheckBox
> m_pIndexAppendix
;
53 VclPtr
<CheckBox
> m_pDosLineEnds
;
54 VclPtr
<CheckBox
> m_pCheckRequiredFields
;
55 VclPtr
<CheckBox
> m_pIgnoreCurrency
;
56 VclPtr
<CheckBox
> m_pEscapeDateTime
;
57 VclPtr
<CheckBox
> m_pPrimaryKeySupport
;
58 VclPtr
<CheckBox
> m_pRespectDriverResultSetType
;
60 VclPtr
<FixedText
> m_pBooleanComparisonModeLabel
;
61 VclPtr
<ListBox
> m_pBooleanComparisonMode
;
63 VclPtr
<FixedText
> m_pMaxRowScanLabel
;
64 VclPtr
<NumericField
> m_pMaxRowScan
;
66 ::svt::ControlDependencyManager
67 m_aControlDependencies
;
69 BooleanSettingDescs m_aBooleanSettings
;
71 bool m_bHasBooleanComparisonMode
;
72 bool m_bHasMaxRowScan
;
75 virtual bool FillItemSet ( SfxItemSet
* _rCoreAttrs
) SAL_OVERRIDE
;
77 SpecialSettingsPage(vcl::Window
* pParent
, const SfxItemSet
& _rCoreAttrs
, const DataSourceMetaData
& _rDSMeta
);
80 virtual ~SpecialSettingsPage();
81 virtual void dispose() SAL_OVERRIDE
;
83 // OGenericAdministrationPage overridables
84 virtual void implInitControls (const SfxItemSet
& _rSet
, bool _bSaveValue
) SAL_OVERRIDE
;
86 // <method>OGenericAdministrationPage::fillControls</method>
87 virtual void fillControls(::std::vector
< ISaveValueWrapper
* >& _rControlList
) SAL_OVERRIDE
;
89 // <method>OGenericAdministrationPage::fillWindows</method>
90 virtual void fillWindows(::std::vector
< ISaveValueWrapper
* >& _rControlList
) SAL_OVERRIDE
;
93 void impl_initBooleanSettings();
96 // GeneratedValuesPage
97 class GeneratedValuesPage
: public OGenericAdministrationPage
101 VclPtr
<VclFrame
> m_pAutoFrame
;
102 VclPtr
<CheckBox
> m_pAutoRetrievingEnabled
;
103 VclPtr
<FixedText
> m_pAutoIncrementLabel
;
104 VclPtr
<Edit
> m_pAutoIncrement
;
105 VclPtr
<FixedText
> m_pAutoRetrievingLabel
;
106 VclPtr
<Edit
> m_pAutoRetrieving
;
108 ::svt::ControlDependencyManager
109 m_aControlDependencies
;
112 virtual bool FillItemSet (SfxItemSet
* _rCoreAttrs
) SAL_OVERRIDE
;
114 GeneratedValuesPage( vcl::Window
* pParent
, const SfxItemSet
& _rCoreAttrs
);
117 // nControlFlags is a combination of the CBTP_xxx-constants
118 virtual ~GeneratedValuesPage();
119 virtual void dispose() SAL_OVERRIDE
;
121 // subclasses must override this, but it isn't pure virtual
122 virtual void implInitControls(const SfxItemSet
& _rSet
, bool _bSaveValue
) SAL_OVERRIDE
;
124 // <method>OGenericAdministrationPage::fillControls</method>
125 virtual void fillControls(::std::vector
< ISaveValueWrapper
* >& _rControlList
) SAL_OVERRIDE
;
127 // <method>OGenericAdministrationPage::fillWindows</method>
128 virtual void fillWindows(::std::vector
< ISaveValueWrapper
* >& _rControlList
) SAL_OVERRIDE
;
131 DECL_LINK( OnCheckBoxClick
, CheckBox
* );
136 #endif // INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
138 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */