summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-04 11:33:22 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-04 10:51:53 +0000
commit64acc9d576be9166c2da6edc6f8478e2cf31f606 (patch)
tree120fd704ef684ec0388c5943f1ac473911086dfa /dbaccess/source/ui/querydesign
parent43fbd02a82f9c87c75e83671c95c2617cc30d035 (diff)
merge dbaui::OQueryView with dbaui::OQueryDesignView
Change-Id: I9982d6c27863f533bfdb929d99602f0188972950 Reviewed-on: https://gerrit.libreoffice.org/26895 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx14
-rw-r--r--dbaccess/source/ui/querydesign/QueryViewSwitch.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx1
-rw-r--r--dbaccess/source/ui/querydesign/queryview.cxx33
4 files changed, 5 insertions, 45 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 160dca9945f8..b7d4fac51ec0 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2477,7 +2477,7 @@ namespace
OQueryDesignView::OQueryDesignView( OQueryContainerWindow* _pParent,
OQueryController& _rController,
const Reference< XComponentContext >& _rxContext)
- :OQueryView( _pParent, _rController, _rxContext )
+ :OJoinDesignView( _pParent, _rController, _rxContext )
,m_aSplitter( VclPtr<Splitter>::Create(this) )
,m_eChildFocus(NONE)
,m_bInSplitHandler( false )
@@ -2514,7 +2514,7 @@ void OQueryDesignView::dispose()
::dbaui::notifySystemWindow(this,m_pTableView,::comphelper::mem_fun(&TaskPaneList::RemoveWindow));
m_pSelectionBox.disposeAndClear();
m_aSplitter.disposeAndClear();
- OQueryView::dispose();
+ OJoinDesignView::dispose();
}
IMPL_LINK_NOARG_TYPED( OQueryDesignView, SplitHdl, Splitter*, void )
@@ -2534,7 +2534,7 @@ void OQueryDesignView::Construct()
{
m_pTableView = VclPtr<OQueryTableView>::Create(m_pScrollWindow,this);
::dbaui::notifySystemWindow(this,m_pTableView,::comphelper::mem_fun(&TaskPaneList::AddWindow));
- OQueryView::Construct();
+ OJoinDesignView::Construct();
}
void OQueryDesignView::initialize()
@@ -2630,10 +2630,6 @@ void OQueryDesignView::clear()
m_pTableView->ClearAll();
}
-void OQueryDesignView::setStatement(const OUString& /*_rsStatement*/)
-{
-}
-
void OQueryDesignView::copy()
{
if( m_eChildFocus == SELECTION)
@@ -2780,7 +2776,7 @@ bool OQueryDesignView::PreNotify(NotifyEvent& rNEvt)
m_eChildFocus = TABLEVIEW;
}
- return OQueryView::PreNotify(rNEvt);
+ return OJoinDesignView::PreNotify(rNEvt);
}
// check if the statement is correct when not returning false
@@ -3094,7 +3090,7 @@ OSQLParseNode* OQueryDesignView::getPredicateTreeFromEntry(const OTableFieldDesc
void OQueryDesignView::GetFocus()
{
- OQueryView::GetFocus();
+ OJoinDesignView::GetFocus();
if ( m_pSelectionBox && !m_pSelectionBox->HasChildPathFocus() )
{
// first we have to deactivate the current cell to refill when necessary
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
index f114478dee8b..009f120e24c7 100644
--- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
+++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
@@ -92,8 +92,6 @@ void OQueryViewSwitch::setStatement(const OUString& _rsStatement)
{
if(m_pTextView->IsVisible())
m_pTextView->setStatement(_rsStatement);
- else
- m_pDesignView->setStatement(_rsStatement);
}
void OQueryViewSwitch::copy()
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 8a96808a58db..dd348e594e4f 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -33,7 +33,6 @@
#include "QueryDesignView.hxx"
#include "QueryTableView.hxx"
#include "QueryTextView.hxx"
-#include "queryview.hxx"
#include "QueryViewSwitch.hxx"
#include "sqlmessage.hxx"
#include "TableConnectionData.hxx"
diff --git a/dbaccess/source/ui/querydesign/queryview.cxx b/dbaccess/source/ui/querydesign/queryview.cxx
deleted file mode 100644
index c18ef092d24d..000000000000
--- a/dbaccess/source/ui/querydesign/queryview.cxx
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- 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 .
- */
-
-#include "queryview.hxx"
-#include "dbu_qry.hrc"
-#include "querycontroller.hxx"
-
-using namespace dbaui;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::lang;
-OQueryView::OQueryView(vcl::Window* _pParent, OQueryController& _rController,const Reference< XComponentContext >& _rxContext)
- :OJoinDesignView( _pParent, _rController, _rxContext )
-{
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */