/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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 .
*/
css::uno::Reference< css::sdb::XSQLQueryComposer > m_xComposer; /// if we're editing an existing view, this is non-NULL
css::uno::Reference< css::sdbcx::XAlterView > m_xAlterView;
OUString m_sStatement; // contains the current sql statement
OUString m_sUpdateCatalogName; // catalog for update data
OUString m_sUpdateSchemaName; // schema for update data mutable OUString
m_sName; // name of the query
sal_Int64 m_nLimit; // the limit of the query result (All==-1)
sal_Int32 m_nVisibleRows; // which rows the selection browse should show
sal_Int32 m_nSplitPos; // the position of the splitter
sal_Int32 m_nCommandType; // the type of the object we're designing bool m_bGraphicalDesign; // are we in the graphical design mode (sal_True) or in the text design (sal_False)? bool m_bDistinct; // true when you want "select distinct" otherwise false bool m_bEscapeProcessing;// is true when we shouldn't parse the statement
/** returns the container of queries, views, or command definitions, depending on what object type we design currently.
Not allowed to be called if we design an independent SQL command.
*/
css::uno::Reference< css::container::XNameAccess >
getObjectContainer() const;
protected: // all the features which should be handled by this class virtualvoid describeSupportedFeatures() override; // state of a feature. 'feature' may be the handle of a css::util::URL somebody requested a dispatch interface for OR a toolbar slot. virtual FeatureState GetState(sal_uInt16 nId) const override; // execute a feature virtualvoid Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue>& aArgs) override;
virtual OJoinDesignView* getJoinView() override; // ask the user if the design should be saved when it is modified virtualshort saveModified() override; virtualvoid reset() override; virtualvoid impl_initialize(const ::comphelper::NamedValueCollection& rArguments) override;
void impl_reset( constbool i_bIgnoreQuerySettings = false ); /// tells the user that we needed to switch to SQL view automatically void impl_showAutoSQLViewError( const css::uno::Any& _rErrorDetails );
/** switches to the graphical or SQL view mode, as determined by m_bGraphicalDesign
*/ void impl_setViewMode( ::dbtools::SQLExceptionInfo* _pErrorInfo );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.