2010-10-27 12:33:13 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-14 17:39:53 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-11-01 14:09:28 +00:00
|
|
|
|
2013-11-05 02:18:53 +01:00
|
|
|
#ifndef INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
|
|
|
|
#define INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
#include "adminpages.hxx"
|
|
|
|
#include "dsmeta.hxx"
|
|
|
|
|
|
|
|
#include <svtools/dialogcontrolling.hxx>
|
|
|
|
|
|
|
|
#include <vcl/lstbox.hxx>
|
2010-11-25 11:23:27 +01:00
|
|
|
#include <vcl/field.hxx>
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace dbaui
|
|
|
|
{
|
|
|
|
struct BooleanSettingDesc;
|
|
|
|
typedef ::std::vector< BooleanSettingDesc > BooleanSettingDescs;
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// SpecialSettingsPage
|
2014-02-22 21:20:15 +01:00
|
|
|
// implements the "Special Settings" page of the advanced database settings
|
2007-11-01 14:09:28 +00:00
|
|
|
class SpecialSettingsPage : public OGenericAdministrationPage
|
|
|
|
{
|
|
|
|
protected:
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<CheckBox> m_pIsSQL92Check;
|
|
|
|
VclPtr<CheckBox> m_pAppendTableAlias;
|
|
|
|
VclPtr<CheckBox> m_pAsBeforeCorrelationName;
|
|
|
|
VclPtr<CheckBox> m_pEnableOuterJoin;
|
|
|
|
VclPtr<CheckBox> m_pIgnoreDriverPrivileges;
|
|
|
|
VclPtr<CheckBox> m_pParameterSubstitution;
|
|
|
|
VclPtr<CheckBox> m_pSuppressVersionColumn;
|
|
|
|
VclPtr<CheckBox> m_pCatalog;
|
|
|
|
VclPtr<CheckBox> m_pSchema;
|
|
|
|
VclPtr<CheckBox> m_pIndexAppendix;
|
|
|
|
VclPtr<CheckBox> m_pDosLineEnds;
|
|
|
|
VclPtr<CheckBox> m_pCheckRequiredFields;
|
|
|
|
VclPtr<CheckBox> m_pIgnoreCurrency;
|
|
|
|
VclPtr<CheckBox> m_pEscapeDateTime;
|
|
|
|
VclPtr<CheckBox> m_pPrimaryKeySupport;
|
|
|
|
VclPtr<CheckBox> m_pRespectDriverResultSetType;
|
|
|
|
|
|
|
|
VclPtr<FixedText> m_pBooleanComparisonModeLabel;
|
|
|
|
VclPtr<ListBox> m_pBooleanComparisonMode;
|
|
|
|
|
|
|
|
VclPtr<FixedText> m_pMaxRowScanLabel;
|
|
|
|
VclPtr<NumericField> m_pMaxRowScan;
|
2010-11-25 11:23:27 +01:00
|
|
|
|
2007-11-01 14:09:28 +00:00
|
|
|
::svt::ControlDependencyManager
|
|
|
|
m_aControlDependencies;
|
|
|
|
|
|
|
|
BooleanSettingDescs m_aBooleanSettings;
|
|
|
|
|
2009-10-16 15:29:36 +02:00
|
|
|
bool m_bHasBooleanComparisonMode;
|
2010-11-25 11:23:27 +01:00
|
|
|
bool m_bHasMaxRowScan;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
public:
|
2014-06-10 17:23:12 +02:00
|
|
|
virtual bool FillItemSet ( SfxItemSet* _rCoreAttrs ) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
SpecialSettingsPage(vcl::Window* pParent, const SfxItemSet& _rCoreAttrs, const DataSourceMetaData& _rDSMeta );
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~SpecialSettingsPage();
|
2015-01-16 15:29:28 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
// OGenericAdministrationPage overridables
|
2014-04-17 11:16:55 +02:00
|
|
|
virtual void implInitControls (const SfxItemSet& _rSet, bool _bSaveValue ) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
// <method>OGenericAdministrationPage::fillControls</method>
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
// <method>OGenericAdministrationPage::fillWindows</method>
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void impl_initBooleanSettings();
|
|
|
|
};
|
|
|
|
|
2013-08-17 23:43:14 +02:00
|
|
|
// GeneratedValuesPage
|
2007-11-01 14:09:28 +00:00
|
|
|
class GeneratedValuesPage : public OGenericAdministrationPage
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
|
2015-03-09 14:29:30 +02:00
|
|
|
VclPtr<VclFrame> m_pAutoFrame;
|
|
|
|
VclPtr<CheckBox> m_pAutoRetrievingEnabled;
|
|
|
|
VclPtr<FixedText> m_pAutoIncrementLabel;
|
|
|
|
VclPtr<Edit> m_pAutoIncrement;
|
|
|
|
VclPtr<FixedText> m_pAutoRetrievingLabel;
|
|
|
|
VclPtr<Edit> m_pAutoRetrieving;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
::svt::ControlDependencyManager
|
|
|
|
m_aControlDependencies;
|
|
|
|
|
|
|
|
public:
|
2014-06-10 17:23:12 +02:00
|
|
|
virtual bool FillItemSet (SfxItemSet* _rCoreAttrs) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
2014-09-23 11:20:40 +02:00
|
|
|
GeneratedValuesPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs );
|
2007-11-01 14:09:28 +00:00
|
|
|
protected:
|
|
|
|
|
2014-06-09 09:46:45 +02:00
|
|
|
// nControlFlags is a combination of the CBTP_xxx-constants
|
2007-11-01 14:09:28 +00:00
|
|
|
virtual ~GeneratedValuesPage();
|
2015-01-16 15:29:28 +02:00
|
|
|
virtual void dispose() SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
2015-01-08 23:08:34 +01:00
|
|
|
// subclasses must override this, but it isn't pure virtual
|
2014-04-17 11:16:55 +02:00
|
|
|
virtual void implInitControls(const SfxItemSet& _rSet, bool _bSaveValue) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
// <method>OGenericAdministrationPage::fillControls</method>
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
// <method>OGenericAdministrationPage::fillWindows</method>
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList) SAL_OVERRIDE;
|
2007-11-01 14:09:28 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECL_LINK( OnCheckBoxClick, CheckBox * );
|
|
|
|
};
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
}
|
2007-11-01 14:09:28 +00:00
|
|
|
|
2013-11-05 02:18:53 +01:00
|
|
|
#endif // INCLUDED_DBACCESS_SOURCE_UI_DLG_ADVANCEDSETTINGS_HXX
|
2010-10-27 12:33:13 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|