bump product version to 4.1.6.2
[LibreOffice.git] / dbaccess / source / ui / dlg / advancedsettings.hxx
blobc980d59d6e4c27c21367018727037d2836bdf9c1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 DBACCESS_ADVANCEDSETTINGS_HXX
21 #define DBACCESS_ADVANCEDSETTINGS_HXX
23 #include "adminpages.hxx"
24 #include "dsmeta.hxx"
26 #include <svtools/dialogcontrolling.hxx>
28 #include <vcl/lstbox.hxx>
29 #include <vcl/field.hxx>
31 #include <vector>
33 //........................................................................
34 namespace dbaui
36 //........................................................................
38 struct BooleanSettingDesc;
39 typedef ::std::vector< BooleanSettingDesc > BooleanSettingDescs;
41 //====================================================================
42 //= SpecialSettingsPage
43 //====================================================================
44 /** implements the "Special Settings" page of the advanced database settings
46 class SpecialSettingsPage : public OGenericAdministrationPage
48 protected:
49 FixedLine m_aTopLine;
50 CheckBox* m_pIsSQL92Check;
51 CheckBox* m_pAppendTableAlias;
52 CheckBox* m_pAsBeforeCorrelationName;
53 CheckBox* m_pEnableOuterJoin;
54 CheckBox* m_pIgnoreDriverPrivileges;
55 CheckBox* m_pParameterSubstitution;
56 CheckBox* m_pSuppressVersionColumn;
57 CheckBox* m_pCatalog;
58 CheckBox* m_pSchema;
59 CheckBox* m_pIndexAppendix;
60 CheckBox* m_pDosLineEnds;
61 CheckBox* m_pCheckRequiredFields;
62 CheckBox* m_pIgnoreCurrency;
63 CheckBox* m_pEscapeDateTime;
64 CheckBox* m_pPrimaryKeySupport;
65 CheckBox* m_pRespectDriverResultSetType;
67 FixedText* m_pBooleanComparisonModeLabel;
68 ListBox* m_pBooleanComparisonMode;
70 FixedText* m_pMaxRowScanLabel;
71 NumericField* m_pMaxRowScan;
73 ::svt::ControlDependencyManager
74 m_aControlDependencies;
76 BooleanSettingDescs m_aBooleanSettings;
78 bool m_bHasBooleanComparisonMode;
79 bool m_bHasMaxRowScan;
81 public:
82 virtual sal_Bool FillItemSet ( SfxItemSet& _rCoreAttrs );
84 SpecialSettingsPage(Window* pParent, const SfxItemSet& _rCoreAttrs, const DataSourceMetaData& _rDSMeta );
86 protected:
87 virtual ~SpecialSettingsPage();
89 // OGenericAdministrationPage overridables
90 virtual void implInitControls (const SfxItemSet& _rSet, sal_Bool _bSaveValue );
92 // <method>OGenericAdministrationPage::fillControls</method>
93 virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList);
95 // <method>OGenericAdministrationPage::fillWindows</method>
96 virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList);
98 private:
99 void impl_initBooleanSettings();
102 //====================================================================
103 //= GeneratedValuesPage
104 //====================================================================
105 class GeneratedValuesPage : public OGenericAdministrationPage
107 protected:
109 FixedLine m_aAutoFixedLine;
110 CheckBox m_aAutoRetrievingEnabled;
111 FixedText m_aAutoIncrementLabel;
112 Edit m_aAutoIncrement;
113 FixedText m_aAutoRetrievingLabel;
114 Edit m_aAutoRetrieving;
116 ::svt::ControlDependencyManager
117 m_aControlDependencies;
119 public:
120 virtual sal_Bool FillItemSet (SfxItemSet& _rCoreAttrs);
122 GeneratedValuesPage( Window* pParent, const SfxItemSet& _rCoreAttrs );
123 protected:
125 // nControlFlags ist eine Kombination der CBTP_xxx-Konstanten
126 virtual ~GeneratedValuesPage();
128 // must be overloaded by subclasses, but it isn't pure virtual
129 virtual void implInitControls(const SfxItemSet& _rSet, sal_Bool _bSaveValue);
131 // <method>OGenericAdministrationPage::fillControls</method>
132 virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList);
134 // <method>OGenericAdministrationPage::fillWindows</method>
135 virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList);
137 private:
138 DECL_LINK( OnCheckBoxClick, CheckBox * );
141 //........................................................................
142 } // namespace dbaui
143 //........................................................................
145 #endif // DBACCESS_ADVANCEDSETTINGS_HXX
147 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */