information from the apply file: patchname: addrbk-datasrc-ordering.diff issues: author: michael section: Misc comment: Address data source ordering x#62860 sectioncomment: git log from build repository: commit bfa619922b90a021e5d856333dd398512389ad67 Author: Jan Holesovsky <kendy@suse.cz> Date: Mon Jun 21 22:11:19 2010 +0200 Update patches to dev300-m83. * [...] commit 256381886a238d80b9ddab795b500576d92404cc Author: Jan Holesovsky <kendy@suse.cz> Date: Wed May 19 12:16:00 2010 +0200 Updated patches do dev300-m77. * [...] commit df913735fd729978d20f0282fe32d14bf597891f Author: Jan Holesovsky <kendy@suse.cz> Date: Mon May 17 01:21:36 2010 +0200 Patches adopted to the tabs -> spaces fixes + trailing whitespace cleanup. * [...] commit c6847e9b022184e98942391a2b5711c31eb25ba3 Author: Jan Holesovsky <kendy@suse.cz> Date: Fri May 14 14:32:23 2010 +0200 Convert tabs to spaces in all the code introduced by the patches. * [...] commit 09774df8a62bf886c78c0f84d56b2d518ae8107e Author: Jan Holesovsky <kendy@suse.cz> Date: Tue Apr 29 14:04:53 2008 +0000 Src680/ * Some cleaning action: src680/* -> dev300/ * patches/dev300/gstreamer-sd.diff, patches/dev300/gstreamer-slideshow.diff, patches/dev300/letter-wizard-resource-id.diff: Moved to patches/gstreamer. * patches/dev300/mono-build.diff: Moved to patches/mono. * patches/dev300/sc-hacky-handle-boolean.diff, patches/dev300/vba-workbook-worksheet-events.diff: Moved to patches/vba. * patches/src680/unittesting-*: Moved... patches/unittesting/*: ...here. * patches/src680/*: Moved... patches/dev300/*: ...here. * patches/dev300/apply, patches/Makefile.am: Add the unittesting subdir, remove src680.
126 lines
4.3 KiB
C++
126 lines
4.3 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*************************************************************************
|
|
*
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* This file is part of OpenOffice.org.
|
|
*
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
* only, as published by the Free Software Foundation.
|
|
*
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License version 3 for more details
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
* <http://www.openoffice.org/license.html>
|
|
* for a copy of the LGPLv3 License.
|
|
*
|
|
************************************************************************/
|
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
#include "precompiled_dbaccess.hxx"
|
|
|
|
#include "dbtreeview.hxx"
|
|
#include <svtools/svtreebx.hxx>
|
|
#include "dbtreelistbox.hxx"
|
|
#include "dbtreemodel.hxx"
|
|
#include "dbaccess_helpid.hrc"
|
|
|
|
// .........................................................................
|
|
namespace dbaui
|
|
{
|
|
// .........................................................................
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
using namespace ::com::sun::star::lang;
|
|
|
|
DBG_NAME(DBTreeView)
|
|
//========================================================================
|
|
// class DBTreeView
|
|
//========================================================================
|
|
DBTreeView::DBTreeView( Window* pParent, const Reference< XMultiServiceFactory >& _rxORB, WinBits nBits)
|
|
: Window( pParent, nBits )
|
|
, m_pTreeListBox(NULL)
|
|
{
|
|
DBG_CTOR(DBTreeView,NULL);
|
|
|
|
m_pTreeListBox = new DBTreeListBox(this, _rxORB ,WB_BORDER | WB_HASLINES | WB_HASLINESATROOT | WB_HASBUTTONS | WB_HSCROLL |WB_HASBUTTONSATROOT);
|
|
m_pTreeListBox->EnableCheckButton(NULL);
|
|
m_pTreeListBox->SetDragDropMode( 0 );
|
|
m_pTreeListBox->EnableInplaceEditing( sal_True );
|
|
m_pTreeListBox->SetHelpId(HID_TLB_TREELISTBOX);
|
|
m_pTreeListBox->Show();
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
DBTreeView::~DBTreeView()
|
|
{
|
|
DBG_DTOR(DBTreeView,NULL);
|
|
if (m_pTreeListBox)
|
|
{
|
|
if (m_pTreeListBox->GetModel())
|
|
{
|
|
m_pTreeListBox->GetModel()->RemoveView(m_pTreeListBox);
|
|
m_pTreeListBox->DisconnectFromModel();
|
|
}
|
|
::std::auto_ptr<Window> aTemp(m_pTreeListBox);
|
|
m_pTreeListBox = NULL;
|
|
}
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------
|
|
void DBTreeView::SetPreExpandHandler(const Link& _rHdl)
|
|
{
|
|
m_pTreeListBox->SetPreExpandHandler(_rHdl);
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------
|
|
void DBTreeView::setCopyHandler(const Link& _rHdl)
|
|
{
|
|
m_pTreeListBox->setCopyHandler(_rHdl);
|
|
}
|
|
// -----------------------------------------------------------------------------
|
|
void DBTreeView::Resize()
|
|
{
|
|
Window::Resize();
|
|
m_pTreeListBox->SetPosSizePixel(Point(0,0),GetOutputSizePixel());
|
|
}
|
|
// -------------------------------------------------------------------------
|
|
void DBTreeView::setModel(SvLBoxTreeList* _pTreeModel)
|
|
{
|
|
if (_pTreeModel)
|
|
_pTreeModel->InsertView(m_pTreeListBox);
|
|
m_pTreeListBox->SetModel(_pTreeModel);
|
|
}
|
|
|
|
// -------------------------------------------------------------------------
|
|
void DBTreeView::setSelChangeHdl( const Link& _rHdl )
|
|
{
|
|
m_pTreeListBox->SetSelChangeHdl( _rHdl );
|
|
}
|
|
// -----------------------------------------------------------------------------
|
|
void DBTreeView::GetFocus()
|
|
{
|
|
Window::GetFocus();
|
|
if ( m_pTreeListBox )//&& !m_pTreeListBox->HasChildPathFocus())
|
|
m_pTreeListBox->GrabFocus();
|
|
}
|
|
|
|
|
|
// .........................................................................
|
|
} // namespace dbaui
|
|
// .........................................................................
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|