summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser/brwview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/browser/brwview.cxx')
-rw-r--r--dbaccess/source/ui/browser/brwview.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/dbaccess/source/ui/browser/brwview.cxx b/dbaccess/source/ui/browser/brwview.cxx
index 44a6b40e1f2f..4d4f6adaa6ec 100644
--- a/dbaccess/source/ui/browser/brwview.cxx
+++ b/dbaccess/source/ui/browser/brwview.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* 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
@@ -70,17 +70,17 @@ using namespace dbaui;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::sdb;
using namespace ::com::sun::star::form;
-// using namespace ::com::sun::star::sdbcx;
+// using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-namespace
+namespace
{
sal_Bool isGrabVclControlFocusAllowed(const UnoDataBrowserView* _pView)
{
- sal_Bool bGrabFocus = sal_False;
+ sal_Bool bGrabFocus = sal_False;
SbaGridControl* pVclControl = _pView->getVclControl();
Reference< ::com::sun::star::awt::XControl > xGrid = _pView->getGridControl();
if (pVclControl && xGrid.is())
@@ -104,7 +104,7 @@ namespace
DBG_NAME(UnoDataBrowserView)
// -------------------------------------------------------------------------
-UnoDataBrowserView::UnoDataBrowserView( Window* pParent,
+UnoDataBrowserView::UnoDataBrowserView( Window* pParent,
IController& _rController,
const Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rFactory)
:ODataView(pParent,_rController,_rFactory)
@@ -144,7 +144,7 @@ void UnoDataBrowserView::Construct(const Reference< ::com::sun::star::awt::XCont
// get the VCL-control
m_pVclControl = NULL;
- getVclControl();
+ getVclControl();
DBG_ASSERT(m_pVclControl != NULL, "UnoDataBrowserView::Construct : no real grid control !");
}
@@ -162,7 +162,7 @@ UnoDataBrowserView::~UnoDataBrowserView()
m_pSplitter = NULL;
}
setTreeView(NULL);
-
+
if ( m_pStatus )
{
delete m_pStatus;
@@ -238,17 +238,17 @@ void UnoDataBrowserView::hideStatus()
// -------------------------------------------------------------------------
void UnoDataBrowserView::resizeDocumentView(Rectangle& _rPlayground)
{
- Point aSplitPos;
- Size aSplitSize;
- Point aPlaygroundPos( _rPlayground.TopLeft() );
- Size aPlaygroundSize( _rPlayground.GetSize() );
+ Point aSplitPos;
+ Size aSplitSize;
+ Point aPlaygroundPos( _rPlayground.TopLeft() );
+ Size aPlaygroundSize( _rPlayground.GetSize() );
if (m_pTreeView && m_pTreeView->IsVisible() && m_pSplitter)
{
// calculate the splitter pos and size
- aSplitPos = m_pSplitter->GetPosPixel();
+ aSplitPos = m_pSplitter->GetPosPixel();
aSplitPos.Y() = aPlaygroundPos.Y();
- aSplitSize = m_pSplitter->GetOutputSizePixel();
+ aSplitSize = m_pSplitter->GetOutputSizePixel();
aSplitSize.Height() = aPlaygroundSize.Height();
if( ( aSplitPos.X() + aSplitSize.Width() ) > ( aPlaygroundSize.Width() ))
@@ -258,8 +258,8 @@ void UnoDataBrowserView::resizeDocumentView(Rectangle& _rPlayground)
aSplitPos.X() = aPlaygroundPos.X() + sal_Int32(aPlaygroundSize.Width() * 0.2);
// the tree pos and size
- Point aTreeViewPos( aPlaygroundPos );
- Size aTreeViewSize( aSplitPos.X(), aPlaygroundSize.Height() );
+ Point aTreeViewPos( aPlaygroundPos );
+ Size aTreeViewSize( aSplitPos.X(), aPlaygroundSize.Height() );
// the status pos and size
if (m_pStatus && m_pStatus->IsVisible())
@@ -272,7 +272,7 @@ void UnoDataBrowserView::resizeDocumentView(Rectangle& _rPlayground)
m_pStatus->SetPosSizePixel( aStatusPos, aStatusSize );
aTreeViewSize.Height() -= aStatusSize.Height();
}
-
+
// set the size of treelistbox
m_pTreeView->SetPosSizePixel( aTreeViewPos, aTreeViewSize );
@@ -299,8 +299,8 @@ sal_uInt16 UnoDataBrowserView::View2ModelPos(sal_uInt16 nPos) const
}
// -----------------------------------------------------------------------------
-SbaGridControl* UnoDataBrowserView::getVclControl() const
-{
+SbaGridControl* UnoDataBrowserView::getVclControl() const
+{
if ( !m_pVclControl )
{
OSL_ENSURE(m_xGrid.is(),"Grid not set!");
@@ -319,7 +319,7 @@ SbaGridControl* UnoDataBrowserView::getVclControl() const
}
}
}
- return m_pVclControl;
+ return m_pVclControl;
}
// -----------------------------------------------------------------------------
void UnoDataBrowserView::GetFocus()