LibreOffice Module dbaccess (master) 1
RelationDesignView.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
21#include <RelationTableView.hxx>
23#include <vcl/event.hxx>
24
25using namespace ::dbaui;
26using namespace ::com::sun::star::uno;
27using namespace ::com::sun::star::lang;
28using namespace ::com::sun::star::sdbc;
29using namespace ::com::sun::star::beans;
30using namespace ::com::sun::star::container;
31
32ORelationDesignView::ORelationDesignView(vcl::Window* _pParent, ORelationController& _rController,const Reference< XComponentContext >& _rxContext)
33 :OJoinDesignView( _pParent, _rController, _rxContext )
34{
35}
36
38{
41}
42
44{
45 m_pTableView->clearLayoutInformation();
46 m_pTableView->ReSync();
47
49}
50
52{
53 bool bDone = false;
54 if(rNEvt.GetType() == NotifyEventType::GETFOCUS)
55 {
56 if(m_pTableView && !m_pTableView->HasChildPathFocus())
57 {
58 m_pTableView->GrabTabWinFocus();
59 bDone = true;
60 }
61 }
62 if(!bDone)
63 bDone = OJoinDesignView::PreNotify(rNEvt);
64 return bDone;
65}
66
68{
70 if ( m_pTableView && m_pTableView->IsVisible() && !m_pTableView->GetTabWinMap().empty() )
71 m_pTableView->GrabTabWinFocus();
72}
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
NotifyEventType GetType() const
static VclPtr< reference_type > Create(Arg &&... arg)
virtual bool PreNotify(NotifyEvent &rNEvt) override
Definition: dataview.cxx:96
VclPtr< OJoinTableView > m_pTableView
virtual void initialize() override
VclPtr< OScrollWindowHelper > m_pScrollWindow
virtual void Construct() override
late construction
virtual void Construct() override
late construction
virtual void GetFocus() override
virtual bool PreNotify(NotifyEvent &rNEvt) override
virtual void initialize() override
virtual void GetFocus()