summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r--dbaccess/source/ui/querydesign/ConnectionData.hxx14
-rw-r--r--dbaccess/source/ui/querydesign/ConnectionLine.cxx60
-rw-r--r--dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx10
-rw-r--r--dbaccess/source/ui/querydesign/ConnectionLineData.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/JAccess.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/JoinController.cxx10
-rw-r--r--dbaccess/source/ui/querydesign/JoinDesignView.cxx8
-rw-r--r--dbaccess/source/ui/querydesign/JoinExchange.cxx6
-rw-r--r--dbaccess/source/ui/querydesign/JoinTableView.cxx72
-rw-r--r--dbaccess/source/ui/querydesign/QTableConnection.cxx8
-rw-r--r--dbaccess/source/ui/querydesign/QTableConnection.hxx10
-rw-r--r--dbaccess/source/ui/querydesign/QTableConnectionData.cxx6
-rw-r--r--dbaccess/source/ui/querydesign/QTableConnectionData.hxx30
-rw-r--r--dbaccess/source/ui/querydesign/QTableWindow.cxx6
-rw-r--r--dbaccess/source/ui/querydesign/QTableWindow.hxx40
-rw-r--r--dbaccess/source/ui/querydesign/QTableWindowData.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/QTableWindowData.hxx2
-rw-r--r--dbaccess/source/ui/querydesign/Query.hrc6
-rw-r--r--dbaccess/source/ui/querydesign/QueryAddTabConnUndoAction.hxx2
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx38
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignUndoAction.hxx4
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx318
-rw-r--r--dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.hxx10
-rw-r--r--dbaccess/source/ui/querydesign/QuerySizeTabWinUndoAct.hxx12
-rw-r--r--dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx92
-rw-r--r--dbaccess/source/ui/querydesign/QueryTabConnUndoAction.hxx6
-rw-r--r--dbaccess/source/ui/querydesign/QueryTabWinShowUndoAct.hxx10
-rw-r--r--dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx28
-rw-r--r--dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx16
-rw-r--r--dbaccess/source/ui/querydesign/QueryTableView.cxx90
-rw-r--r--dbaccess/source/ui/querydesign/QueryTextView.cxx6
-rw-r--r--dbaccess/source/ui/querydesign/QueryViewSwitch.cxx30
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx246
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx340
-rw-r--r--dbaccess/source/ui/querydesign/TableConnection.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/TableConnectionData.cxx12
-rw-r--r--dbaccess/source/ui/querydesign/TableFieldDescription.cxx28
-rw-r--r--dbaccess/source/ui/querydesign/TableFieldInfo.cxx2
-rw-r--r--dbaccess/source/ui/querydesign/TableFieldInfo.hxx14
-rw-r--r--dbaccess/source/ui/querydesign/TableWindow.cxx46
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowAccess.cxx16
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowData.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowListBox.cxx28
-rw-r--r--dbaccess/source/ui/querydesign/TableWindowTitle.cxx14
-rw-r--r--dbaccess/source/ui/querydesign/query.src2
-rw-r--r--dbaccess/source/ui/querydesign/querycontainerwindow.cxx24
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx36
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.cxx38
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.hrc16
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.hxx32
-rw-r--r--dbaccess/source/ui/querydesign/querydlg.src8
-rw-r--r--dbaccess/source/ui/querydesign/queryview.cxx2
53 files changed, 936 insertions, 936 deletions
diff --git a/dbaccess/source/ui/querydesign/ConnectionData.hxx b/dbaccess/source/ui/querydesign/ConnectionData.hxx
index 67a768e79f40..72764da1317b 100644
--- a/dbaccess/source/ui/querydesign/ConnectionData.hxx
+++ b/dbaccess/source/ui/querydesign/ConnectionData.hxx
@@ -2,7 +2,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
@@ -32,13 +32,13 @@ namespace dbaui
{
//==================================================================
- // ConnData ---------->* ConnLineData
- // ^1 ^1
- // | |
- // Conn ---------->* ConnLine
+ // ConnData ---------->* ConnLineData
+ // ^1 ^1
+ // | |
+ // Conn ---------->* ConnLine
//==================================================================
-
+
}
#endif // DBAUI_CONNECTIONDATA_HXX
@@ -54,7 +54,7 @@ DECLARE_LIST( OConnectionLineList, OConnectionLine* );
DECLARE_LIST( OTableConnectionDataList, OTableConnectionData* );
//==================================================================
-const USHORT MAX_CONN_COUNT = 2;
+const USHORT MAX_CONN_COUNT = 2;
class SbaJoinTabWin;
class SbaJoinTabWinCont;
diff --git a/dbaccess/source/ui/querydesign/ConnectionLine.cxx b/dbaccess/source/ui/querydesign/ConnectionLine.cxx
index 4c119ca15c78..04018dec54d0 100644
--- a/dbaccess/source/ui/querydesign/ConnectionLine.cxx
+++ b/dbaccess/source/ui/querydesign/ConnectionLine.cxx
@@ -2,7 +2,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
@@ -48,8 +48,8 @@ const long HIT_SENSITIVE_RADIUS = 5;
namespace
{
/** calcRect creates a new rectangle with the given points
- @param _rBase the base point
- @param _aVector the vector which will be added
+ @param _rBase the base point
+ @param _aVector the vector which will be added
*/
inline Rectangle calcRect(const Point& _rBase,const Point& _aVector)
{
@@ -57,9 +57,9 @@ namespace
}
// -----------------------------------------------------------------------------
/** GetTextPos calculate the rectangle for the connection to be drawn
- @param _pWin the table window where to draw it
- @param _aConnPos the connection point
- @param _aDescrLinePos the description line pos
+ @param _pWin the table window where to draw it
+ @param _aConnPos the connection point
+ @param _aDescrLinePos the description line pos
*/
Rectangle GetTextPos(const OTableWindow* _pWin, const Point& _aConnPos,const Point& _aDescrLinePos)
{
@@ -88,10 +88,10 @@ namespace
}
// -----------------------------------------------------------------------------
/** calcPointsYValue calculate the points Y value in relation to the listbox entry
- @param _pWin the corresponding window
- @param _pEntry the source or dest entry
- @param _rNewConPos (in/out) the connection pos
- @param _rNewDescrPos (in/out) the description pos
+ @param _pWin the corresponding window
+ @param _pEntry the source or dest entry
+ @param _rNewConPos (in/out) the connection pos
+ @param _rNewDescrPos (in/out) the description pos
*/
void calcPointsYValue(const OTableWindow* _pWin,SvLBoxEntry* _pEntry,Point& _rNewConPos,Point& _rNewDescrPos)
{
@@ -254,20 +254,20 @@ BOOL OConnectionLine::RecalcLine()
aSourceCenter.X() = pSourceWin->GetPosPixel().X() + (long)( 0.5*pSourceWin->GetSizePixel().Width() );
aDestCenter.X() = pDestWin->GetPosPixel().X() + (long)( 0.5*pDestWin->GetSizePixel().Width() );
- const OTableWindow* pFirstWin = pDestWin;
- const OTableWindow* pSecondWin = pSourceWin;
- Point* pFirstConPos = &m_aDestConnPos;
- Point* pFirstDescrPos = &m_aDestDescrLinePos;
- Point* pSecondConPos = &m_aSourceConnPos;
- Point* pSecondDescrPos = &m_aSourceDescrLinePos;
+ const OTableWindow* pFirstWin = pDestWin;
+ const OTableWindow* pSecondWin = pSourceWin;
+ Point* pFirstConPos = &m_aDestConnPos;
+ Point* pFirstDescrPos = &m_aDestDescrLinePos;
+ Point* pSecondConPos = &m_aSourceConnPos;
+ Point* pSecondDescrPos = &m_aSourceDescrLinePos;
if( aDestCenter.X() > aSourceCenter.X() )
{
- pFirstWin = pSourceWin;
- pSecondWin = pDestWin;
- pFirstConPos = &m_aSourceConnPos;
- pFirstDescrPos = &m_aSourceDescrLinePos;
- pSecondConPos = &m_aDestConnPos;
- pSecondDescrPos = &m_aDestDescrLinePos;
+ pFirstWin = pSourceWin;
+ pSecondWin = pDestWin;
+ pFirstConPos = &m_aSourceConnPos;
+ pFirstDescrPos = &m_aSourceDescrLinePos;
+ pSecondConPos = &m_aDestConnPos;
+ pSecondDescrPos = &m_aDestDescrLinePos;
}
if ( pFirstWin == pSecondWin && pSourceEntry != pDestEntry )
@@ -279,7 +279,7 @@ BOOL OConnectionLine::RecalcLine()
//////////////////////////////////////////////////////////////////////
// aSourceConnPosY bestimmen
calcPointsYValue(pSourceWin,pSourceEntry,m_aSourceConnPos,m_aSourceDescrLinePos);
-
+
//////////////////////////////////////////////////////////////////////
// aDestConnPosY bestimmen
calcPointsYValue(pDestWin,pDestEntry,m_aDestConnPos,m_aDestDescrLinePos);
@@ -337,7 +337,7 @@ double dist_Euklid(const Point &p1, const Point& p2,const Point& pM, Point& q)
double l = (v.X() * w.Y() - v.Y() * w.X()) / a;
double a2 = w.X()*v.X()+w.Y()*v.Y();
a = a2 / (a * a);
- q.X() = long(p1.X() + a * v.X());
+ q.X() = long(p1.X() + a * v.X());
q.Y() = long(p1.Y() + a * v.Y());
return l;
}
@@ -361,14 +361,14 @@ bool OConnectionLine::CheckHit( const Point& rMousePos ) const
return false;
}
// -----------------------------------------------------------------------------
-Rectangle OConnectionLine::GetSourceTextPos() const
-{
- return GetTextPos(m_pTabConn->GetSourceWin(),m_aSourceConnPos,m_aSourceDescrLinePos);
+Rectangle OConnectionLine::GetSourceTextPos() const
+{
+ return GetTextPos(m_pTabConn->GetSourceWin(),m_aSourceConnPos,m_aSourceDescrLinePos);
}
// -----------------------------------------------------------------------------
-Rectangle OConnectionLine::GetDestTextPos() const
-{
- return GetTextPos(m_pTabConn->GetDestWin(),m_aDestConnPos,m_aDestDescrLinePos);
+Rectangle OConnectionLine::GetDestTextPos() const
+{
+ return GetTextPos(m_pTabConn->GetDestWin(),m_aDestConnPos,m_aDestDescrLinePos);
}
// -----------------------------------------------------------------------------
Point OConnectionLine::getMidPoint() const
diff --git a/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx b/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
index 8f532687e72c..ba68d702ef41 100644
--- a/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
+++ b/dbaccess/source/ui/querydesign/ConnectionLineAccess.cxx
@@ -2,7 +2,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
@@ -46,11 +46,11 @@ namespace dbaui
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
- // using namespace ::com::sun::star::awt;
+ // using namespace ::com::sun::star::awt;
using namespace ::com::sun::star;
OConnectionLineAccess::OConnectionLineAccess(OTableConnection* _pLine)
- : VCLXAccessibleComponent(_pLine->GetComponentInterface().is() ? _pLine->GetWindowPeer() : NULL)
+ : VCLXAccessibleComponent(_pLine->GetComponentInterface().is() ? _pLine->GetWindowPeer() : NULL)
,m_pLine(_pLine)
{
}
@@ -206,7 +206,7 @@ namespace dbaui
aSeq[0] = m_pLine->GetSourceWin()->GetAccessible();
aSeq[1] = m_pLine->GetDestWin()->GetAccessible();
}
-
+
return AccessibleRelation(AccessibleRelationType::CONTROLLED_BY,aSeq);
}
// -----------------------------------------------------------------------------
@@ -232,7 +232,7 @@ namespace dbaui
DBG_DTOR(OTableConnection,NULL);
//////////////////////////////////////////////////////////////////////
// clear vector
- clearLineData();
+ clearLineData();
}
// -----------------------------------------------------------------------------
sal_Bool OConnectionLineAccess::isEditable() const
diff --git a/dbaccess/source/ui/querydesign/ConnectionLineData.cxx b/dbaccess/source/ui/querydesign/ConnectionLineData.cxx
index 49360b0959b5..9140d6effec2 100644
--- a/dbaccess/source/ui/querydesign/ConnectionLineData.cxx
+++ b/dbaccess/source/ui/querydesign/ConnectionLineData.cxx
@@ -2,7 +2,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
@@ -96,7 +96,7 @@ namespace dbaui
//-------------------------------------------------------------------------
bool operator==(const OConnectionLineData& lhs, const OConnectionLineData& rhs)
{
- return (lhs.m_aSourceFieldName == rhs.m_aSourceFieldName)
+ return (lhs.m_aSourceFieldName == rhs.m_aSourceFieldName)
&& (lhs.m_aDestFieldName == rhs.m_aDestFieldName);
}
}
diff --git a/dbaccess/source/ui/querydesign/JAccess.cxx b/dbaccess/source/ui/querydesign/JAccess.cxx
index 155aac4c27da..beb41dee8ca2 100644
--- a/dbaccess/source/ui/querydesign/JAccess.cxx
+++ b/dbaccess/source/ui/querydesign/JAccess.cxx
@@ -2,7 +2,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
diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx
index 3f3059967447..77b31a8a4fd9 100644
--- a/dbaccess/source/ui/querydesign/JoinController.cxx
+++ b/dbaccess/source/ui/querydesign/JoinController.cxx
@@ -2,7 +2,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
@@ -30,7 +30,7 @@
#include "precompiled_dbaccess.hxx"
#include <sfx2/sfxsids.hrc>
#include "dbu_qry.hrc"
-#include "browserids.hxx"
+#include "browserids.hxx"
#include <comphelper/types.hxx>
#include "dbustrings.hrc"
#include <connectivity/dbtools.hxx>
@@ -175,12 +175,12 @@ OJoinController::OJoinController(const Reference< XMultiServiceFactory >& _rM)
:OJoinController_BASE(_rM)
,m_pAddTableDialog(NULL)
{
- DBG_CTOR(OJoinController,NULL);
+ DBG_CTOR(OJoinController,NULL);
}
// -----------------------------------------------------------------------------
OJoinController::~OJoinController()
{
- DBG_DTOR(OJoinController,NULL);
+ DBG_DTOR(OJoinController,NULL);
}
// -----------------------------------------------------------------------------
@@ -291,7 +291,7 @@ void OJoinController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
return;
case RET_NO:
reset();
- setModified(sal_False); // and we are not modified yet
+ setModified(sal_False); // and we are not modified yet
break;
default:
break;
diff --git a/dbaccess/source/ui/querydesign/JoinDesignView.cxx b/dbaccess/source/ui/querydesign/JoinDesignView.cxx
index 85c5a9eb9120..17ad8bd84b50 100644
--- a/dbaccess/source/ui/querydesign/JoinDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinDesignView.cxx
@@ -2,7 +2,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
@@ -49,7 +49,7 @@
#include <comphelper/extract.hxx>
#include "UITools.hxx"
#include "JoinTableView.hxx"
-// #include <com/sun/star/util/URL.hdl>
+// #include <com/sun/star/util/URL.hdl>
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -87,7 +87,7 @@ void OJoinDesignView::Construct()
m_pScrollWindow->setTableView(m_pTableView);
m_pScrollWindow->Show();
m_pTableView->Show();
-
+
SetBackground( Wallpaper( Application::GetSettings().GetStyleSettings().GetFaceColor()) );
ODataView::Construct();
@@ -95,7 +95,7 @@ void OJoinDesignView::Construct()
// -----------------------------------------------------------------------------
void OJoinDesignView::initialize()
{
- // getAddTableDialog()->Update();
+ // getAddTableDialog()->Update();
}
// -------------------------------------------------------------------------
void OJoinDesignView::resizeDocumentView(Rectangle& _rPlayground)
diff --git a/dbaccess/source/ui/querydesign/JoinExchange.cxx b/dbaccess/source/ui/querydesign/JoinExchange.cxx
index 75d69afa5b09..b984201492e9 100644
--- a/dbaccess/source/ui/querydesign/JoinExchange.cxx
+++ b/dbaccess/source/ui/querydesign/JoinExchange.cxx
@@ -2,7 +2,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
@@ -81,7 +81,7 @@ namespace dbaui
sal_Bool OJoinExchObj::isFormatAvailable( const DataFlavorExVector& _rFormats ,SotFormatStringId _nSlotID)
{
DataFlavorExVector::const_iterator aCheckEnd = _rFormats.end();
- for ( DataFlavorExVector::const_iterator aCheck = _rFormats.begin();
+ for ( DataFlavorExVector::const_iterator aCheck = _rFormats.begin();
aCheck != aCheckEnd;
++aCheck
)
@@ -174,6 +174,6 @@ namespace dbaui
}
-} // namespace dbaui
+} // namespace dbaui
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index 60099ed9999d..1437a57c4d59 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -2,7 +2,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
@@ -64,14 +64,14 @@ using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
-#define LINE_SIZE 50
+#define LINE_SIZE 50
////////////////////////////////////////////////////////////////
// Konstanten fuer das Fensterlayout
-#define TABWIN_SPACING_X 17
-#define TABWIN_SPACING_Y 17
+#define TABWIN_SPACING_X 17
+#define TABWIN_SPACING_Y 17
-#define TABWIN_WIDTH_STD 120
-#define TABWIN_HEIGHT_STD 120
+#define TABWIN_WIDTH_STD 120
+#define TABWIN_HEIGHT_STD 120
DBG_NAME(OScrollWindowHelper)
OScrollWindowHelper::OScrollWindowHelper( Window* pParent) : Window( pParent)
@@ -105,7 +105,7 @@ OScrollWindowHelper::~OScrollWindowHelper()
DBG_DTOR(OScrollWindowHelper,NULL);
::std::auto_ptr<Window> aTemp(m_pCornerWindow);
m_pCornerWindow = NULL;
- m_pTableView = NULL;
+ m_pTableView = NULL;
}
// -----------------------------------------------------------------------------
@@ -207,7 +207,7 @@ OJoinTableView::~OJoinTableView()
}
//////////////////////////////////////////////////////////////////////
// Listen loeschen
- clearLayoutInformation();
+ clearLayoutInformation();
}
//------------------------------------------------------------------------------
IMPL_LINK( OJoinTableView, ScrollHdl, ScrollBar*, pScrollBar )
@@ -274,7 +274,7 @@ bool OJoinTableView::RemoveConnection( OTableConnection* _pConn,sal_Bool _bDelet
modified();
if ( m_pAccessible )
- m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
+ m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
makeAny(_pConn->GetAccessible()),
Any());
if ( _bDelete )
@@ -359,7 +359,7 @@ void OJoinTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::rt
modified();
if ( m_pAccessible )
- m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
+ m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
Any(),
makeAny(pNewTabWin->GetAccessible()));
}
@@ -384,7 +384,7 @@ void OJoinTableView::RemoveTabWin( OTableWindow* pTabWin )
{
OTableConnection* pTabConn = (*aIter);
if(
- ( pData == pTabConn->GetData()->getReferencingTable()) ||
+ ( pData == pTabConn->GetData()->getReferencingTable()) ||
( pData == pTabConn->GetData()->getReferencedTable())
)
{
@@ -400,7 +400,7 @@ void OJoinTableView::RemoveTabWin( OTableWindow* pTabWin )
if ( bRemove )
{
if ( m_pAccessible )
- m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
+ m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
makeAny(pTabWin->GetAccessible()),Any()
);
@@ -444,7 +444,7 @@ namespace
long nOldThumbPos = pBar->GetThumbPos();
long nNewThumbPos = nOldThumbPos + nDelta;
if( nNewThumbPos < 0 )
- nNewThumbPos = 0;// bRet = FALSE;
+ nNewThumbPos = 0;// bRet = FALSE;
else if( nNewThumbPos > pBar->GetRangeMax() )
nNewThumbPos = pBar->GetRangeMax();// bRet = FALSE;
@@ -466,7 +466,7 @@ namespace
Point aUpperLeft = _rPoint;
// normalize with respect to visibility
aUpperLeft -= _pView->GetScrollOffset();
- // aUpperLeft.Y() -= _pView->GetScrollOffset().Y();
+ // aUpperLeft.Y() -= _pView->GetScrollOffset().Y();
Point aLowerRight(aUpperLeft.X() + _rSize.Width(), aUpperLeft.Y() + _rSize.Height());
// data about ourself
@@ -485,7 +485,7 @@ namespace
_nScrollX = aLowerRight.X() - aSize.Width() + TABWIN_SPACING_X;
// ensure the visibility of the left border (higher priority)
- // if ( (aUpperLeft.X() - _nScrollX) < 0 )
+ // if ( (aUpperLeft.X() - _nScrollX) < 0 )
if ( aUpperLeft.X() < 0 )
_nScrollX = aUpperLeft.X() - TABWIN_SPACING_X;
}
@@ -496,7 +496,7 @@ namespace
if ( aLowerRight.Y() > aSize.Height() )
_nScrollY = aLowerRight.Y() - aSize.Height() + TABWIN_SPACING_Y;
// upper border
- // if ( (aUpperLeft.Y() - _nScrollY) < 0 )
+ // if ( (aUpperLeft.Y() - _nScrollY) < 0 )
if ( aUpperLeft.Y() < 0 )
_nScrollY = aUpperLeft.Y() - TABWIN_SPACING_Y;
}
@@ -534,7 +534,7 @@ void OJoinTableView::EnsureVisible(const OTableWindow* _pWin)
{
// data about the tab win
TTableWindowData::value_type pData = _pWin->GetData();
- // Point aUpperLeft = pData->GetPosition();
+ // Point aUpperLeft = pData->GetPosition();
EnsureVisible( pData->GetPosition() , pData->GetSize());
Invalidate(INVALIDATE_NOCHILDREN);
}
@@ -1051,14 +1051,14 @@ void OJoinTableView::DrawConnections( const Rectangle& rRect )
//------------------------------------------------------------------------------
::std::vector<OTableConnection*>::const_iterator OJoinTableView::getTableConnections(const OTableWindow* _pFromWin) const
{
- return ::std::find_if( m_vTableConnection.begin(),
+ return ::std::find_if( m_vTableConnection.begin(),
m_vTableConnection.end(),
::std::bind2nd(::std::mem_fun(&OTableConnection::isTableConnection),_pFromWin));
}
// -----------------------------------------------------------------------------
sal_Int32 OJoinTableView::getConnectionCount(const OTableWindow* _pFromWin) const
{
- return ::std::count_if( m_vTableConnection.begin(),
+ return ::std::count_if( m_vTableConnection.begin(),
m_vTableConnection.end(),
::std::bind2nd(::std::mem_fun(&OTableConnection::isTableConnection),_pFromWin));
}
@@ -1083,8 +1083,8 @@ void OJoinTableView::ClearAll()
RemoveConnection( *aIter ,sal_True);
m_vTableConnection.clear();
- m_pLastFocusTabWin = NULL;
- m_pSelectedConn = NULL;
+ m_pLastFocusTabWin = NULL;
+ m_pSelectedConn = NULL;
// scroll to the upper left
ScrollPane(-GetScrollOffset().X(), TRUE, TRUE);
@@ -1229,8 +1229,8 @@ BOOL OJoinTableView::IsAddAllowed()
}
// nicht wenn keine Joins moeglich
-// if (!GetDatabase()->IsCapable(SDB_CAP_JOIN) && nMax <= GetTabWinCount())
-// return FALSE;
+// if (!GetDatabase()->IsCapable(SDB_CAP_JOIN) && nMax <= GetTabWinCount())
+// return FALSE;
return TRUE;
}
@@ -1316,14 +1316,14 @@ OTableConnection* OJoinTableView::GetTabConn(const OTableWindow* pLhs,const OTab
{
OTableConnection* pData = *aIter;
- if ( ( (pData->GetSourceWin() == pLhs)
- && ( (pData->GetDestWin() == pRhs)
- || (NULL == pRhs)
+ if ( ( (pData->GetSourceWin() == pLhs)
+ && ( (pData->GetDestWin() == pRhs)
+ || (NULL == pRhs)
)
)
- || ( (pData->GetSourceWin() == pRhs)
- && ( (pData->GetDestWin() == pLhs)
- || (NULL == pLhs)
+ || ( (pData->GetSourceWin() == pRhs)
+ && ( (pData->GetDestWin() == pLhs)
+ || (NULL == pLhs)
)
)
)
@@ -1381,7 +1381,7 @@ long OJoinTableView::PreNotify(NotifyEvent& rNEvt)
// no tab wins -> no conns -> no traveling
break;
- const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
+ const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
if (!pKeyEvent->GetKeyCode().IsMod1())
{
switch (pKeyEvent->GetKeyCode().GetCode())
@@ -1403,7 +1403,7 @@ long OJoinTableView::PreNotify(NotifyEvent& rNEvt)
OTableConnection* pNextConn = NULL;
if (aIter != m_aTableMap.end())
- { // there is a currently active tab win
+ { // there is a currently active tab win
// check if there is an "overflow" and we should select a conn instead of a win
if (!m_vTableConnection.empty())
{
@@ -1441,7 +1441,7 @@ long OJoinTableView::PreNotify(NotifyEvent& rNEvt)
}
}
else
- { // no active tab win -> travel the connections
+ { // no active tab win -> travel the connections
// find the currently selected conn within the conn list
sal_Int32 i(0);
for ( ::std::vector<OTableConnection*>::iterator connectionIter = m_vTableConnection.begin();
@@ -1467,7 +1467,7 @@ long OJoinTableView::PreNotify(NotifyEvent& rNEvt)
// there is a currently active conn
pNextConn = m_vTableConnection[(i + (bForward ? 1 : m_vTableConnection.size() - 1)) % m_vTableConnection.size()];
else
- { // no tab win selected, no conn selected
+ { // no tab win selected, no conn selected
if (!m_vTableConnection.empty())
pNextConn = m_vTableConnection[bForward ? 0 : m_vTableConnection.size() - 1];
else if (!m_aTableMap.empty())
@@ -1634,8 +1634,8 @@ void OJoinTableView::StartDrag( sal_Int8 /*nAction*/, const Point& /*rPosPixel*/
// -----------------------------------------------------------------------------
void OJoinTableView::clearLayoutInformation()
{
- m_pLastFocusTabWin = NULL;
- m_pSelectedConn = NULL;
+ m_pLastFocusTabWin = NULL;
+ m_pSelectedConn = NULL;
//////////////////////////////////////////////////////////////////////
// Listen loeschen
OTableWindowMapIterator aIter = m_aTableMap.begin();
@@ -1705,7 +1705,7 @@ void OJoinTableView::addConnection(OTableConnection* _pConnection,sal_Bool _bAdd
modified();
if ( m_pAccessible )
- m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
+ m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
Any(),
makeAny(_pConnection->GetAccessible()));
}
diff --git a/dbaccess/source/ui/querydesign/QTableConnection.cxx b/dbaccess/source/ui/querydesign/QTableConnection.cxx
index 4bba1b75eaaa..3720e53a2326 100644
--- a/dbaccess/source/ui/querydesign/QTableConnection.cxx
+++ b/dbaccess/source/ui/querydesign/QTableConnection.cxx
@@ -2,7 +2,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
@@ -82,13 +82,13 @@ sal_Bool OQueryTableConnection::operator==(const OQueryTableConnection& rCompare
OQueryTableConnectionData* pCompData = static_cast<OQueryTableConnectionData*>(rCompare.GetData().get());
// Connections werden als gleich angesehen, wenn sie in Source-/Dest-Fenstername und Source-/Dest-FieldIndex uebereinstimmen ...
- return ( ( (pMyData->getReferencedTable() == pCompData->getReferencedTable()) &&
+ return ( ( (pMyData->getReferencedTable() == pCompData->getReferencedTable()) &&
(pMyData->getReferencingTable() == pCompData->getReferencingTable()) &&
(pMyData->GetFieldIndex(JTCS_TO) == pCompData->GetFieldIndex(JTCS_TO)) &&
(pMyData->GetFieldIndex(JTCS_FROM) == pCompData->GetFieldIndex(JTCS_FROM))
)
- || // ... oder diese Uebereinstimmung ueber Kreuz besteht
- ( (pMyData->getReferencingTable() == pCompData->getReferencedTable()) &&
+ || // ... oder diese Uebereinstimmung ueber Kreuz besteht
+ ( (pMyData->getReferencingTable() == pCompData->getReferencedTable()) &&
(pMyData->getReferencedTable() == pCompData->getReferencingTable()) &&
(pMyData->GetFieldIndex(JTCS_TO) == pCompData->GetFieldIndex(JTCS_FROM)) &&
(pMyData->GetFieldIndex(JTCS_FROM) == pCompData->GetFieldIndex(JTCS_TO))
diff --git a/dbaccess/source/ui/querydesign/QTableConnection.hxx b/dbaccess/source/ui/querydesign/QTableConnection.hxx
index a2402acab43b..9e49ded4088a 100644
--- a/dbaccess/source/ui/querydesign/QTableConnection.hxx
+++ b/dbaccess/source/ui/querydesign/QTableConnection.hxx
@@ -2,7 +2,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
@@ -38,7 +38,7 @@ namespace dbaui
class OQueryTableView;
class OQueryTableConnection : public OTableConnection
{
- sal_Bool m_bVisited; // is true if the conn was already visited through the join algorithm
+ sal_Bool m_bVisited; // is true if the conn was already visited through the join algorithm
public:
OQueryTableConnection(OQueryTableView* pContainer, const TTableConnectionData::value_type& pTabConnData);
OQueryTableConnection(const OQueryTableConnection& rConn);
@@ -47,10 +47,10 @@ namespace dbaui
OQueryTableConnection& operator=(const OQueryTableConnection& rConn);
sal_Bool operator==(const OQueryTableConnection& rCompare);
- inline ::rtl::OUString GetAliasName(EConnectionSide nWhich) const { return static_cast<OQueryTableConnectionData*>(GetData().get())->GetAliasName(nWhich); }
+ inline ::rtl::OUString GetAliasName(EConnectionSide nWhich) const { return static_cast<OQueryTableConnectionData*>(GetData().get())->GetAliasName(nWhich); }
- inline sal_Bool IsVisited() const { return m_bVisited; }
- inline void SetVisited(sal_Bool bVisited) { m_bVisited = bVisited; }
+ inline sal_Bool IsVisited() const { return m_bVisited; }
+ inline void SetVisited(sal_Bool bVisited) { m_bVisited = bVisited; }
};
}
diff --git a/dbaccess/source/ui/querydesign/QTableConnectionData.cxx b/dbaccess/source/ui/querydesign/QTableConnectionData.cxx
index a15714a299cc..40111be03592 100644
--- a/dbaccess/source/ui/querydesign/QTableConnectionData.cxx
+++ b/dbaccess/source/ui/querydesign/QTableConnectionData.cxx
@@ -2,7 +2,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
@@ -156,8 +156,8 @@ void OQueryTableConnectionData::InitFromDrag(const OTableFieldDescRef& rDragLeft
}
// -----------------------------------------------------------------------------
OTableConnectionData* OQueryTableConnectionData::NewInstance() const
-{
- return new OQueryTableConnectionData();
+{
+ return new OQueryTableConnectionData();
}
// -----------------------------------------------------------------------------
BOOL OQueryTableConnectionData::Update()
diff --git a/dbaccess/source/ui/querydesign/QTableConnectionData.hxx b/dbaccess/source/ui/querydesign/QTableConnectionData.hxx
index f7d2173907b1..061541663229 100644
--- a/dbaccess/source/ui/querydesign/QTableConnectionData.hxx
+++ b/dbaccess/source/ui/querydesign/QTableConnectionData.hxx
@@ -2,7 +2,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
@@ -37,13 +37,13 @@ namespace dbaui
{
class OQueryTableConnectionData : public OTableConnectionData
{
- sal_Int32 m_nFromEntryIndex;
- sal_Int32 m_nDestEntryIndex;
- EJoinType m_eJoinType;
+ sal_Int32 m_nFromEntryIndex;
+ sal_Int32 m_nDestEntryIndex;
+ EJoinType m_eJoinType;
bool m_bNatural;
- ETableFieldType m_eFromType;
- ETableFieldType m_eDestType;
+ ETableFieldType m_eFromType;
+ ETableFieldType m_eDestType;
protected:
// fuer das Anlegen und Duplizieren von Lines vom eigenen Typ
@@ -61,25 +61,25 @@ namespace dbaui
virtual void CopyFrom(const OTableConnectionData& rSource);
virtual OTableConnectionData* NewInstance() const;
-
+
/** Update create a new connection
@return true if successful
*/
virtual BOOL Update();
- ::rtl::OUString GetAliasName(EConnectionSide nWhich) const;
+ ::rtl::OUString GetAliasName(EConnectionSide nWhich) const;
- sal_Int32 GetFieldIndex(EConnectionSide nWhich) const { return nWhich==JTCS_TO ? m_nDestEntryIndex : m_nFromEntryIndex; }
- void SetFieldIndex(EConnectionSide nWhich, sal_Int32 nVal) { if (nWhich==JTCS_TO) m_nDestEntryIndex=nVal; else m_nFromEntryIndex=nVal; }
+ sal_Int32 GetFieldIndex(EConnectionSide nWhich) const { return nWhich==JTCS_TO ? m_nDestEntryIndex : m_nFromEntryIndex; }
+ void SetFieldIndex(EConnectionSide nWhich, sal_Int32 nVal) { if (nWhich==JTCS_TO) m_nDestEntryIndex=nVal; else m_nFromEntryIndex=nVal; }
- ETableFieldType GetFieldType(EConnectionSide nWhich) const { return nWhich==JTCS_TO ? m_eDestType : m_eFromType; }
- void SetFieldType(EConnectionSide nWhich, ETableFieldType eType) { if (nWhich==JTCS_TO) m_eDestType=eType; else m_eFromType=eType; }
+ ETableFieldType GetFieldType(EConnectionSide nWhich) const { return nWhich==JTCS_TO ? m_eDestType : m_eFromType; }
+ void SetFieldType(EConnectionSide nWhich, ETableFieldType eType) { if (nWhich==JTCS_TO) m_eDestType=eType; else m_eFromType=eType; }
- void InitFromDrag(const OTableFieldDescRef& rDragLeft, const OTableFieldDescRef& rDragRight);
+ void InitFromDrag(const OTableFieldDescRef& rDragLeft, const OTableFieldDescRef& rDragRight);
- EJoinType GetJoinType() const { return m_eJoinType; };
- void SetJoinType(const EJoinType& eJT) { m_eJoinType = eJT; };
+ EJoinType GetJoinType() const { return m_eJoinType; };
+ void SetJoinType(const EJoinType& eJT) { m_eJoinType = eJT; };
inline void setNatural(bool _bNatural) { m_bNatural = _bNatural; }
inline bool isNatural() const { return m_bNatural; }
diff --git a/dbaccess/source/ui/querydesign/QTableWindow.cxx b/dbaccess/source/ui/querydesign/QTableWindow.cxx
index 45135346cde9..4700ebfff613 100644
--- a/dbaccess/source/ui/querydesign/QTableWindow.cxx
+++ b/dbaccess/source/ui/querydesign/QTableWindow.cxx
@@ -2,7 +2,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
@@ -124,9 +124,9 @@ sal_Bool OQueryTableWindow::Init()
m_aTitle.SetText( pWinData->GetWinName() );
m_aTitle.Show();
- // sal_Bool bSuccess(sal_True);
+ // sal_Bool bSuccess(sal_True);
if (!bSuccess)
- { // es soll nur ein Dummy-Window aufgemacht werden ...
+ { // es soll nur ein Dummy-Window aufgemacht werden ...
DBG_ASSERT(GetAliasName().getLength(), "OQueryTableWindow::Init : kein Alias- UND kein Tabellenname geht nicht !");
// .. aber das braucht wenigstens einen Alias
diff --git a/dbaccess/source/ui/querydesign/QTableWindow.hxx b/dbaccess/source/ui/querydesign/QTableWindow.hxx
index deaad8621808..b1fe23703c4a 100644
--- a/dbaccess/source/ui/querydesign/QTableWindow.hxx
+++ b/dbaccess/source/ui/querydesign/QTableWindow.hxx
@@ -2,7 +2,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
@@ -38,52 +38,52 @@ namespace dbaui
//==================================================================
class OQueryTableWindow : public OTableWindow
{
- sal_Int32 m_nAliasNum;
- ::rtl::OUString m_strInitialAlias;
+ sal_Int32 m_nAliasNum;
+ ::rtl::OUString m_strInitialAlias;
public:
OQueryTableWindow( Window* pParent, const TTableWindowData::value_type& pTabWinData, sal_Unicode* pszInitialAlias = NULL );
virtual ~OQueryTableWindow();
- ::rtl::OUString GetAliasName() const
- {
- return static_cast<OQueryTableWindowData*>(GetData().get())->GetAliasName();
+ ::rtl::OUString GetAliasName() const
+ {
+ return static_cast<OQueryTableWindowData*>(GetData().get())->GetAliasName();
}
- void SetAliasName(const ::rtl::OUString& strNewAlias)
- {
- static_cast<OQueryTableWindowData*>(GetData().get())->SetAliasName(strNewAlias);
+ void SetAliasName(const ::rtl::OUString& strNewAlias)
+ {
+ static_cast<OQueryTableWindowData*>(GetData().get())->SetAliasName(strNewAlias);
}
// spaeter Constructor, die Basisklasse ERZEUGT beim ersten Aufruf die Listbox
- virtual BOOL Init();
+ virtual BOOL Init();
- inline sal_Int32 GetAliasNum() const { return m_nAliasNum; }
+ inline sal_Int32 GetAliasNum() const { return m_nAliasNum; }
- BOOL ExistsField(const ::rtl::OUString& strFieldName, OTableFieldDescRef& rInfo);
- BOOL ExistsAVisitedConn() const;
+ BOOL ExistsField(const ::rtl::OUString& strFieldName, OTableFieldDescRef& rInfo);
+ BOOL ExistsAVisitedConn() const;
- virtual ::rtl::OUString GetName() const { return GetWinName(); }
+ virtual ::rtl::OUString GetName() const { return GetWinName(); }
protected:
- virtual void KeyInput( const KeyEvent& rEvt );
+ virtual void KeyInput( const KeyEvent& rEvt );
- virtual void OnEntryDoubleClicked(SvLBoxEntry* pEntry);
+ virtual void OnEntryDoubleClicked(SvLBoxEntry* pEntry);
// wird aus dem DoubleClickHdl der ListBox heraus aufgerufen
/** delete the user data with the equal type as created within createUserData
- @param _pUserData
+ @param _pUserData
The user data store in the listbox entries. Created with a call to createUserData.
_pUserData may be <NULL/>.
*/
virtual void deleteUserData(void*& _pUserData);
/** creates user information that will be append at the ListBoxentry
- @param _xColumn
+ @param _xColumn
The corresponding column, can be <NULL/>.
- @param _bPrimaryKey
+ @param _bPrimaryKey
<TRUE/> when the column belongs to the primary key
@return
the user data which will be append at the listbox entry, may be <NULL/>
*/
- virtual void* createUserData(const ::com::sun::star::uno::Reference<
+ virtual void* createUserData(const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet>& _xColumn,
bool _bPrimaryKey);
};
diff --git a/dbaccess/source/ui/querydesign/QTableWindowData.cxx b/dbaccess/source/ui/querydesign/QTableWindowData.cxx
index 5fc047a9fbcf..142f8badde70 100644
--- a/dbaccess/source/ui/querydesign/QTableWindowData.cxx
+++ b/dbaccess/source/ui/querydesign/QTableWindowData.cxx
@@ -2,7 +2,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
diff --git a/dbaccess/source/ui/querydesign/QTableWindowData.hxx b/dbaccess/source/ui/querydesign/QTableWindowData.hxx
index 9a54e738a764..da13c287b1ed 100644
--- a/dbaccess/source/ui/querydesign/QTableWindowData.hxx
+++ b/dbaccess/source/ui/querydesign/QTableWindowData.hxx
@@ -2,7 +2,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
diff --git a/dbaccess/source/ui/querydesign/Query.hrc b/dbaccess/source/ui/querydesign/Query.hrc
index 6fb9bb9ac5d0..d529b048d3a7 100644
--- a/dbaccess/source/ui/querydesign/Query.hrc
+++ b/dbaccess/source/ui/querydesign/Query.hrc
@@ -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
@@ -27,8 +27,8 @@
#ifndef DBAUI_QUERY_HRC
#define DBAUI_QUERY_HRC
-#define IMG_PRIMARY_KEY 1
-#define IMG_FOREIGN_KEY 2
+#define IMG_PRIMARY_KEY 1
+#define IMG_FOREIGN_KEY 2
#endif // DBAUI_QUERY_HRC
diff --git a/dbaccess/source/ui/querydesign/QueryAddTabConnUndoAction.hxx b/dbaccess/source/ui/querydesign/QueryAddTabConnUndoAction.hxx
index c0ef7d5ef1ef..c847b8c56d6d 100644
--- a/dbaccess/source/ui/querydesign/QueryAddTabConnUndoAction.hxx
+++ b/dbaccess/source/ui/querydesign/QueryAddTabConnUndoAction.hxx
@@ -2,7 +2,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
diff --git a/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx
index 6cccdbcf9c34..c94bc1e390d3 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignFieldUndoAct.hxx
@@ -2,7 +2,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
@@ -38,23 +38,23 @@ namespace dbaui
// ================================================================================================
// OQueryDesignFieldUndoAct - Basisklasse fuer Undos in der Feldauflistung im Abfrageentwurf
-
+
class OQueryDesignFieldUndoAct : public OCommentUndoAction
{
protected:
- OSelectionBrowseBox* pOwner;
- USHORT m_nColumnPostion;
+ OSelectionBrowseBox* pOwner;
+ USHORT m_nColumnPostion;
- virtual void Undo() = 0;
- virtual void Redo() = 0;
+ virtual void Undo() = 0;
+ virtual void Redo() = 0;
public:
OQueryDesignFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, USHORT nCommentID);
virtual ~OQueryDesignFieldUndoAct();
- inline void SetColumnPosition(USHORT _nColumnPostion)
- {
- m_nColumnPostion = _nColumnPostion;
+ inline void SetColumnPosition(USHORT _nColumnPostion)
+ {
+ m_nColumnPostion = _nColumnPostion;
OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
OSL_ENSURE(m_nColumnPostion < pOwner->GetColumnCount(),"Position outside the column count!");
}
@@ -66,16 +66,16 @@ namespace dbaui
class OTabFieldCellModifiedUndoAct : public OQueryDesignFieldUndoAct
{
protected:
- String m_strNextCellContents;
- sal_Int32 m_nCellIndex;
+ String m_strNextCellContents;
+ sal_Int32 m_nCellIndex;
public:
- OTabFieldCellModifiedUndoAct(OSelectionBrowseBox* pSelBrwBox)
- : OQueryDesignFieldUndoAct(pSelBrwBox, STR_QUERY_UNDO_MODIFY_CELL)
+ OTabFieldCellModifiedUndoAct(OSelectionBrowseBox* pSelBrwBox)
+ : OQueryDesignFieldUndoAct(pSelBrwBox, STR_QUERY_UNDO_MODIFY_CELL)
,m_nCellIndex(BROWSER_INVALIDID){ }
- inline void SetCellContents(const String& str) { m_strNextCellContents = str; }
- inline void SetCellIndex(sal_Int32 nIndex) { m_nCellIndex = nIndex; }
+ inline void SetCellContents(const String& str) { m_strNextCellContents = str; }
+ inline void SetCellIndex(sal_Int32 nIndex) { m_nCellIndex = nIndex; }
virtual void Undo();
virtual void Redo() { Undo(); }
@@ -87,7 +87,7 @@ namespace dbaui
class OTabFieldSizedUndoAct : public OQueryDesignFieldUndoAct
{
protected:
- long m_nNextWidth;
+ long m_nNextWidth;
public:
OTabFieldSizedUndoAct(OSelectionBrowseBox* pSelBrwBox) : OQueryDesignFieldUndoAct(pSelBrwBox, STR_QUERY_UNDO_SIZE_COLUMN), m_nNextWidth(0) { }
@@ -104,7 +104,7 @@ namespace dbaui
class OTabFieldUndoAct : public OQueryDesignFieldUndoAct
{
protected:
- OTableFieldDescRef pDescr; // geloeschte Spaltenbeschreibung
+ OTableFieldDescRef pDescr; // geloeschte Spaltenbeschreibung
public:
OTabFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, USHORT nCommentID) : OQueryDesignFieldUndoAct(pSelBrwBox, nCommentID) { }
@@ -145,8 +145,8 @@ namespace dbaui
{
protected:
virtual void Undo();
- virtual void Redo()
- {
+ virtual void Redo()
+ {
Undo();
}
diff --git a/dbaccess/source/ui/querydesign/QueryDesignUndoAction.hxx b/dbaccess/source/ui/querydesign/QueryDesignUndoAction.hxx
index 557a94c14204..21f37bb16407 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignUndoAction.hxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignUndoAction.hxx
@@ -2,7 +2,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
@@ -39,7 +39,7 @@ namespace dbaui
class OQueryDesignUndoAction : public OCommentUndoAction
{
protected:
- OJoinTableView* m_pOwner; // in diesem Container spielt sich alles ab
+ OJoinTableView* m_pOwner; // in diesem Container spielt sich alles ab
public:
OQueryDesignUndoAction(OJoinTableView* pOwner, USHORT nCommentID) : OCommentUndoAction(nCommentID), m_pOwner(pOwner) { }
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 60e71a4a8e7d..27a3c9c1c38a 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2,7 +2,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
@@ -75,7 +75,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
-#define SQL_ISRULEOR2(pParseNode, e1,e2) ((pParseNode)->isRule() && (\
+#define SQL_ISRULEOR2(pParseNode, e1,e2) ((pParseNode)->isRule() && (\
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e1) || \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e2)))
@@ -87,14 +87,14 @@ namespace
static const ::rtl::OUString C_OR = ::rtl::OUString::createFromAscii(" OR ");
// forward declarations
- sal_Bool InsertJoin( const OQueryDesignView* _pView,
+ sal_Bool InsertJoin( const OQueryDesignView* _pView,
const ::connectivity::OSQLParseNode *pNode);
SqlParseError InstallFields(OQueryDesignView* _pView,
const ::connectivity::OSQLParseNode* pNode,
OJoinTableView::OTableWindowMap* pTabList );
- SqlParseError GetGroupCriteria( OQueryDesignView* _pView,
+ SqlParseError GetGroupCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode* pSelectRoot );
@@ -103,7 +103,7 @@ namespace
const ::connectivity::OSQLParseNode* pSelectRoot,
sal_uInt16& rLevel );
- SqlParseError GetOrderCriteria( OQueryDesignView* _pView,
+ SqlParseError GetOrderCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode* pParseRoot );
@@ -161,12 +161,12 @@ namespace
Reference<XNameAccess> xReferencedTableColumns(aInfoData->getReferencedTable()->getColumns());
Sequence< ::rtl::OUString> aSeq = aInfoData->getReferencingTable()->getColumns()->getElementNames();
const ::rtl::OUString* pIter = aSeq.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
+ const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
for(;pIter != pEnd;++pIter)
{
if ( xReferencedTableColumns->hasByName(*pIter) )
aInfoData->AppendConnLine(*pIter,*pIter);
- }
+ }
}
catch( const Exception& )
{
@@ -193,7 +193,7 @@ namespace
pConn->GetData()->AppendConnLine( aSourceFieldName,aDestFieldName);
pConn->UpdateLineList();
// Modified-Flag
- // SetModified();
+ // SetModified();
// und neu zeichnen
pConn->RecalcLines();
// fuer das unten folgende Invalidate muss ich dieser neuen Connection erst mal die Moeglichkeit geben,
@@ -202,13 +202,13 @@ namespace
}
}
//------------------------------------------------------------------------------
- ::rtl::OUString ParseCondition( OQueryController& rController
+ ::rtl::OUString ParseCondition( OQueryController& rController
,const ::connectivity::OSQLParseNode* pCondition
,const ::rtl::OUString _sDecimal
,const ::com::sun::star::lang::Locale& _rLocale
,sal_uInt32 _nStartIndex)
{
- ::rtl::OUString aCondition;
+ ::rtl::OUString aCondition;
Reference< XConnection> xConnection = rController.getConnection();
if ( xConnection.is() )
{
@@ -237,8 +237,8 @@ namespace
if ( SQL_ISRULE( pParseNode, qualified_join ) || SQL_ISRULE( pParseNode, joined_table ) || SQL_ISRULE( pParseNode, cross_union ) )
pJoinNode = pParseNode;
- else if( SQL_ISRULE(pParseNode,table_ref)
- && pParseNode->count() == 4 ) // '{' SQL_TOKEN_OJ joined_table '}'
+ else if( SQL_ISRULE(pParseNode,table_ref)
+ && pParseNode->count() == 4 ) // '{' SQL_TOKEN_OJ joined_table '}'
pJoinNode = pParseNode->getChild(2);
if ( pJoinNode )
@@ -258,7 +258,7 @@ namespace
/** FillDragInfo fills the field description out of the table
*/
//------------------------------------------------------------------------------
- SqlParseError FillDragInfo( const OQueryDesignView* _pView,
+ SqlParseError FillDragInfo( const OQueryDesignView* _pView,
const ::connectivity::OSQLParseNode* pColumnRef,
OTableFieldDescRef& _rDragInfo)
{
@@ -273,7 +273,7 @@ namespace
if ( aTableRange.getLength() )
{
- OQueryTableWindow* pSTW = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( aTableRange );
+ OQueryTableWindow* pSTW = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( aTableRange );
bErg = (pSTW && pSTW->ExistsField( aColumnName, _rDragInfo ) );
}
if ( !bErg )
@@ -303,7 +303,7 @@ namespace
return eErrorCode;
}
//------------------------------------------------------------------------------
- ::rtl::OUString BuildJoinCriteria( const Reference< XConnection>& _xConnection,
+ ::rtl::OUString BuildJoinCriteria( const Reference< XConnection>& _xConnection,
OConnectionLineDataVec* pLineDataList,
OQueryTableConnectionData* pData)
{
@@ -340,12 +340,12 @@ namespace
}
//------------------------------------------------------------------------------
/** JoinCycle looks for a join cycle and append it to the string
- @param _xConnection the connection
- @param _pEntryConn the table connection which holds the data
- @param _pEntryTabTo the corresponding table window
- @param _rJoin the String which will contain the resulting string
+ @param _xConnection the connection
+ @param _pEntryConn the table connection which holds the data
+ @param _pEntryTabTo the corresponding table window
+ @param _rJoin the String which will contain the resulting string
*/
- void JoinCycle( const Reference< XConnection>& _xConnection,
+ void JoinCycle( const Reference< XConnection>& _xConnection,
OQueryTableConnection* _pEntryConn,
const OQueryTableWindow* _pEntryTabTo,
::rtl::OUString& _rJoin )
@@ -368,14 +368,14 @@ namespace
}
}
//------------------------------------------------------------------------------
- ::rtl::OUString BuildTable( const Reference< XConnection>& _xConnection,
+ ::rtl::OUString BuildTable( const Reference< XConnection>& _xConnection,
const OQueryTableWindow* pEntryTab,
bool _bForce = false
)
{
::rtl::OUString aDBName(pEntryTab->GetComposedName());
- // Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getConnection();
+ // Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getConnection();
if( _xConnection.is() )
{
try
@@ -404,7 +404,7 @@ namespace
return aDBName;
}
//------------------------------------------------------------------------------
- ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
+ ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
const ::rtl::OUString& rLh,
const ::rtl::OUString& rRh,
OQueryTableConnectionData* pData)
@@ -444,7 +444,7 @@ namespace
return aErg;
}
//------------------------------------------------------------------------------
- ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
+ ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
OQueryTableWindow* pLh,
OQueryTableWindow* pRh,
OQueryTableConnectionData* pData
@@ -454,7 +454,7 @@ namespace
return BuildJoin(_xConnection,BuildTable(_xConnection,pLh,bForce),BuildTable(_xConnection,pRh,bForce),pData);
}
//------------------------------------------------------------------------------
- ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
+ ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
const ::rtl::OUString &rLh,
OQueryTableWindow* pRh,
OQueryTableConnectionData* pData
@@ -463,7 +463,7 @@ namespace
return BuildJoin(_xConnection,rLh,BuildTable(_xConnection,pRh),pData);
}
//------------------------------------------------------------------------------
- ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
+ ::rtl::OUString BuildJoin( const Reference< XConnection>& _xConnection,
OQueryTableWindow* pLh,
const ::rtl::OUString &rRh,
OQueryTableConnectionData* pData
@@ -472,7 +472,7 @@ namespace
return BuildJoin(_xConnection,BuildTable(_xConnection,pLh),rRh,pData);
}
//------------------------------------------------------------------------------
- void GetNextJoin( const Reference< XConnection>& _xConnection,
+ void GetNextJoin( const Reference< XConnection>& _xConnection,
OQueryTableConnection* pEntryConn,
OQueryTableWindow* pEntryTabTo,
::rtl::OUString &aJoin)
@@ -481,7 +481,7 @@ namespace
if ( pEntryConnData->GetJoinType() == INNER_JOIN && !pEntryConnData->isNatural() )
return;
- // Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getConnection();
+ // Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getConnection();
if(!aJoin.getLength())
{
@@ -536,20 +536,20 @@ namespace
}
}
//------------------------------------------------------------------------------
- SqlParseError InsertJoinConnection( const OQueryDesignView* _pView,
+ SqlParseError InsertJoinConnection( const OQueryDesignView* _pView,
const ::connectivity::OSQLParseNode *pNode,
const EJoinType& _eJoinType,
const ::connectivity::OSQLParseNode *pLeftTable,
const ::connectivity::OSQLParseNode *pRightTable)
{
SqlParseError eErrorCode = eOk;
- if (pNode->count() == 3 && // Ausdruck is geklammert
+ if (pNode->count() == 3 && // Ausdruck is geklammert
SQL_ISPUNCTUATION(pNode->getChild(0),"(") &&
SQL_ISPUNCTUATION(pNode->getChild(2),")"))
{
eErrorCode = InsertJoinConnection(_pView,pNode->getChild(1), _eJoinType,pLeftTable,pRightTable);
}
- else if (SQL_ISRULEOR2(pNode,search_condition,boolean_term) && // AND/OR-Verknuepfung:
+ else if (SQL_ISRULEOR2(pNode,search_condition,boolean_term) && // AND/OR-Verknuepfung:
pNode->count() == 3)
{
// nur AND Verknüpfung zulassen
@@ -579,8 +579,8 @@ namespace
if ( pLeftTable )
{
- OQueryTableWindow* pLeftWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pLeftTable->getByRule(OSQLParseNode::table_ref) ));
- // OQueryTableWindow* pRightWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pRightTable->getByRule(OSQLParseNode::table_ref) ));
+ OQueryTableWindow* pLeftWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pLeftTable->getByRule(OSQLParseNode::table_ref) ));
+ // OQueryTableWindow* pRightWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pRightTable->getByRule(OSQLParseNode::table_ref) ));
if ( pLeftWindow == aDragLeft->GetTabWindow() )
insertConnection(_pView,_eJoinType,aDragLeft,aDragRight);
else
@@ -594,14 +594,14 @@ namespace
return eErrorCode;
}
//------------------------------------------------------------------------------
- sal_Bool GetInnerJoinCriteria( const OQueryDesignView* _pView,
+ sal_Bool GetInnerJoinCriteria( const OQueryDesignView* _pView,
const ::connectivity::OSQLParseNode *pCondition)
{
return InsertJoinConnection(_pView,pCondition, INNER_JOIN,NULL,NULL) != eOk;
}
//------------------------------------------------------------------------------
- ::rtl::OUString GenerateSelectList( const OQueryDesignView* _pView,
- OTableFields& _rFieldList,
+ ::rtl::OUString GenerateSelectList( const OQueryDesignView* _pView,
+ OTableFields& _rFieldList,
sal_Bool bAlias)
{
Reference< XConnection> xConnection = static_cast<OQueryController&>(_pView->getController()).getConnection();
@@ -656,7 +656,7 @@ namespace
{
// we have to look if we have alias.* here but before we have to check if the column doesn't already exist
String sTemp = rFieldName;
- OTableFieldDescRef aInfo = new OTableFieldDesc();
+ OTableFieldDescRef aInfo = new OTableFieldDesc();
OJoinTableView::OTableWindowMap::iterator tableIter = pTabList->begin();
OJoinTableView::OTableWindowMap::iterator tableEnd = pTabList->end();
sal_Bool bFound = sal_False;
@@ -689,9 +689,9 @@ namespace
aTmpStr = aTmpStr2;
}
- if (rFieldAlias.getLength() &&
- (rFieldName.toChar() != '*' ||
- pEntryField->isNumericOrAggreateFunction() ||
+ if (rFieldAlias.getLength() &&
+ (rFieldName.toChar() != '*' ||
+ pEntryField->isNumericOrAggreateFunction() ||
pEntryField->isOtherFunction()))
{
aTmpStr.append(s_sAs);
@@ -711,14 +711,14 @@ namespace
return aFieldListStr.makeStringAndClear();
}
//------------------------------------------------------------------------------
- sal_Bool GenerateCriterias( OQueryDesignView* _pView,
+ sal_Bool GenerateCriterias( OQueryDesignView* _pView,
::rtl::OUStringBuffer& rRetStr,
::rtl::OUStringBuffer& rHavingStr,
OTableFields& _rFieldList,
sal_Bool bMulti )
{
// * darf keine Filter enthalten : habe ich die entsprechende Warnung schon angezeigt ?
- sal_Bool bCritsOnAsterikWarning = sal_False; // ** TMFS **
+ sal_Bool bCritsOnAsterikWarning = sal_False; // ** TMFS **
::rtl::OUString aFieldName,aCriteria,aWhereStr,aHavingStr,aWork/*,aOrderStr*/;
// Zeilenweise werden die Ausdr"ucke mit AND verknuepft
@@ -744,7 +744,7 @@ namespace
for(aIter = _rFieldList.begin();aIter != aEnd;++aIter)
{
- OTableFieldDescRef pEntryField = *aIter;
+ OTableFieldDescRef pEntryField = *aIter;
aFieldName = pEntryField->GetField();
if (!aFieldName.getLength())
@@ -773,8 +773,8 @@ namespace
if ( pEntryField->isAggreateFunction() || pEntryField->IsGroupBy() )
{
- if (!aHavingStr.getLength()) // noch keine Kriterien
- aHavingStr += ::rtl::OUString('('); // Klammern
+ if (!aHavingStr.getLength()) // noch keine Kriterien
+ aHavingStr += ::rtl::OUString('('); // Klammern
else
aHavingStr += C_AND;
@@ -782,9 +782,9 @@ namespace
{
OSL_ENSURE(pEntryField->GetFunction().getLength(),"No function name for aggregate given!");
aHavingStr += pEntryField->GetFunction();
- aHavingStr += ::rtl::OUString('('); // Klammern
+ aHavingStr += ::rtl::OUString('('); // Klammern
aHavingStr += aWork;
- aHavingStr += ::rtl::OUString(')'); // Klammern
+ aHavingStr += ::rtl::OUString(')'); // Klammern
}
else
aHavingStr += aWork;
@@ -798,10 +798,10 @@ namespace
if (bMulti && !(pEntryField->isOtherFunction() || (aFieldName.toChar() == '*')))
pParseNode->replaceNodeValue(pEntryField->GetAlias(),aFieldName);
::rtl::OUString sHavingStr = aHavingStr;
-
+
sal_uInt32 nCount = pParseNode->count();
for( sal_uInt32 node = 1 ; node < nCount ; ++node)
- pParseNode->getChild(node)->parseNodeToStr( sHavingStr,
+ pParseNode->getChild(node)->parseNodeToStr( sHavingStr,
xConnection,
&rContext,
sal_False,
@@ -813,8 +813,8 @@ namespace
}
else
{
- if ( !aWhereStr.getLength() ) // noch keine Kriterien
- aWhereStr += ::rtl::OUString('('); // Klammern
+ if ( !aWhereStr.getLength() ) // noch keine Kriterien
+ aWhereStr += ::rtl::OUString('('); // Klammern
else
aWhereStr += C_AND;
@@ -829,7 +829,7 @@ namespace
if (bMulti && !(pEntryField->isOtherFunction() || (aFieldName.toChar() == '*')))
pParseNode->replaceNodeValue(pEntryField->GetAlias(),aFieldName);
::rtl::OUString aWhere = aWhereStr;
- pParseNode->parseNodeToStr( aWhere,
+ pParseNode->parseNodeToStr( aWhere,
xConnection,
&rContext,
sal_False,
@@ -847,8 +847,8 @@ namespace
// nur einmal für jedes Feld
else if ( !i && pEntryField->isCondition() )
{
- if (!aWhereStr.getLength()) // noch keine Kriterien
- aWhereStr += ::rtl::OUString('('); // Klammern
+ if (!aWhereStr.getLength()) // noch keine Kriterien
+ aWhereStr += ::rtl::OUString('('); // Klammern
else
aWhereStr += C_AND;
aWhereStr += pEntryField->GetField();
@@ -856,28 +856,28 @@ namespace
}
if (aWhereStr.getLength())
{
- aWhereStr += ::rtl::OUString(')'); // Klammern zu fuer 'AND' Zweig
- if (rRetStr.getLength()) // schon Feldbedingungen ?
+ aWhereStr += ::rtl::OUString(')'); // Klammern zu fuer 'AND' Zweig
+ if (rRetStr.getLength()) // schon Feldbedingungen ?
rRetStr.append(C_OR);
- else // Klammern auf fuer 'OR' Zweig
+ else // Klammern auf fuer 'OR' Zweig
rRetStr.append(sal_Unicode('('));
rRetStr.append(aWhereStr);
}
if (aHavingStr.getLength())
{
- aHavingStr += ::rtl::OUString(')'); // Klammern zu fuer 'AND' Zweig
- if (rHavingStr.getLength()) // schon Feldbedingungen ?
+ aHavingStr += ::rtl::OUString(')'); // Klammern zu fuer 'AND' Zweig
+ if (rHavingStr.getLength()) // schon Feldbedingungen ?
rHavingStr.append(C_OR);
- else // Klammern auf fuer 'OR' Zweig
+ else // Klammern auf fuer 'OR' Zweig
rHavingStr.append(sal_Unicode('('));
rHavingStr.append(aHavingStr);
}
}
if (rRetStr.getLength())
- rRetStr.append(sal_Unicode(')')); // Klammern zu fuer 'OR' Zweig
+ rRetStr.append(sal_Unicode(')')); // Klammern zu fuer 'OR' Zweig
if (rHavingStr.getLength())
- rHavingStr.append(sal_Unicode(')')); // Klammern zu fuer 'OR' Zweig
+ rHavingStr.append(sal_Unicode(')')); // Klammern zu fuer 'OR' Zweig
}
catch(SQLException&)
{
@@ -886,7 +886,7 @@ namespace
return sal_True;
}
//------------------------------------------------------------------------------
- SqlParseError GenerateOrder( OQueryDesignView* _pView,
+ SqlParseError GenerateOrder( OQueryDesignView* _pView,
OTableFields& _rFieldList,
sal_Bool bMulti,
::rtl::OUString& _rsRet)
@@ -906,12 +906,12 @@ namespace
Reference< XDatabaseMetaData > xMetaData = xConnection->getMetaData();
::rtl::OUString aQuote = xMetaData->getIdentifierQuoteString();
// * darf keine Filter enthalten : habe ich die entsprechende Warnung schon angezeigt ?
- sal_Bool bCritsOnAsterikWarning = sal_False; // ** TMFS **
+ sal_Bool bCritsOnAsterikWarning = sal_False; // ** TMFS **
OTableFields::iterator aIter = _rFieldList.begin();
OTableFields::iterator aEnd = _rFieldList.end();
for(;aIter != aEnd;++aIter)
{
- OTableFieldDescRef pEntryField = *aIter;
+ OTableFieldDescRef pEntryField = *aIter;
EOrderDir eOrder = pEntryField->GetOrderDir();
// nur wenn eine Sortierung und ein Tabellenname vorhanden ist-> erzeugen
@@ -1024,9 +1024,9 @@ namespace
}
}
//------------------------------------------------------------------------------
- ::rtl::OUString GenerateFromClause( const Reference< XConnection>& _xConnection,
- const OQueryTableView::OTableWindowMap* pTabList,
- const ::std::vector<OTableConnection*>* pConnList
+ ::rtl::OUString GenerateFromClause( const Reference< XConnection>& _xConnection,
+ const OQueryTableView::OTableWindowMap* pTabList,
+ const ::std::vector<OTableConnection*>* pConnList
)
{
@@ -1169,7 +1169,7 @@ namespace
OTableFields::iterator aEnd = _rFieldList.end();
for(;aIter != aEnd;++aIter)
{
- OTableFieldDescRef pEntryField = *aIter;
+ OTableFieldDescRef pEntryField = *aIter;
if ( pEntryField->IsGroupBy() )
{
DBG_ASSERT(pEntryField->GetField().getLength(),"Kein FieldName vorhanden!;-(");
@@ -1189,7 +1189,7 @@ namespace
if (pParseNode.get())
{
::rtl::OUString sGroupBy;
- pParseNode->getChild(0)->parseNodeToStr( sGroupBy,
+ pParseNode->getChild(0)->parseNodeToStr( sGroupBy,
xConnection,
&rController.getParser().getContext(),
sal_False,
@@ -1229,7 +1229,7 @@ namespace
sal_Bool bHaving = sal_False,
bool bAddOrOnOneLine = false);
// -----------------------------------------------------------------------------
- SqlParseError GetSelectionCriteria( OQueryDesignView* _pView,
+ SqlParseError GetSelectionCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode* pNode,
sal_uInt16& rLevel )
@@ -1265,7 +1265,7 @@ namespace
GetInnerJoinCriteria(_pView,pNodeTmp);
// now simplify again, join are checked in ComparisonPredicate
::connectivity::OSQLParseNode::absorptions(pNodeTmp);
- pNodeTmp = pNode->getChild(1);
+ pNodeTmp = pNode->getChild(1);
// it could happen that pCondition is not more valid
eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pNodeTmp, rLevel);
@@ -1273,7 +1273,7 @@ namespace
return eErrorCode;
}
//------------------------------------------------------------------------------
- SqlParseError GetANDCriteria( OQueryDesignView* _pView,
+ SqlParseError GetANDCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode * pCondition,
sal_uInt16& nLevel,
@@ -1348,14 +1348,14 @@ namespace
return bRet;
}
//--------------------------------------------------------------------------------------------------
- SqlParseError GetANDCriteria( OQueryDesignView* _pView,
+ SqlParseError GetANDCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode * pCondition,
sal_uInt16& nLevel,
sal_Bool bHaving,
bool bAddOrOnOneLine)
{
- const ::com::sun::star::lang::Locale aLocale = _pView->getLocale();
+ const ::com::sun::star::lang::Locale aLocale = _pView->getLocale();
const ::rtl::OUString sDecimal = _pView->getDecimalSeparator();
// ich werde ein paar Mal einen gecasteten Pointer auf meinen ::com::sun::star::sdbcx::Container brauchen
@@ -1371,7 +1371,7 @@ namespace
if ( SQL_ISRULE( pSearchCondition, search_condition) ) // we have a or
{
_pSelectionBrw->DuplicateConditionLevel( nLevel);
- eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(0), nLevel,bHaving,bMustAddOrOnOneLine );
+ eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(0), nLevel,bHaving,bMustAddOrOnOneLine );
++nLevel;
eErrorCode = GetORCriteria(_pView,_pSelectionBrw,pSearchCondition->getChild(2), nLevel,bHaving,bMustAddOrOnOneLine );
}
@@ -1396,7 +1396,7 @@ namespace
if (SQL_ISRULE(pValueExp, column_ref ) )
{
::rtl::OUString aColumnName;
- ::rtl::OUString aCondition;
+ ::rtl::OUString aCondition;
Reference< XConnection> xConnection = rController.getConnection();
if ( xConnection.is() )
{
@@ -1409,7 +1409,7 @@ namespace
static_cast<sal_Char>(sDecimal.toChar()),
&rController.getParser().getContext());
- pValueExp->parseNodeToPredicateStr( aColumnName,
+ pValueExp->parseNodeToPredicateStr( aColumnName,
xConnection,
rController.getNumberFormatter(),
aLocale,
@@ -1429,12 +1429,12 @@ namespace
_pSelectionBrw->AddCondition(aDragLeft, aCondition, nLevel,bAddOrOnOneLine);
}
}
- else if(SQL_ISRULEOR2(pValueExp,general_set_fct ,set_fct_spec) ||
- SQL_ISRULEOR2(pValueExp,position_exp,extract_exp) ||
- SQL_ISRULEOR2(pValueExp,fold,char_substring_fct) ||
+ else if(SQL_ISRULEOR2(pValueExp,general_set_fct ,set_fct_spec) ||
+ SQL_ISRULEOR2(pValueExp,position_exp,extract_exp) ||
+ SQL_ISRULEOR2(pValueExp,fold,char_substring_fct) ||
SQL_ISRULEOR2(pValueExp,length_exp,char_value_fct))
{
- AddFunctionCondition( _pView,
+ AddFunctionCondition( _pView,
_pSelectionBrw,
pCondition,
nLevel,
@@ -1448,12 +1448,12 @@ namespace
_pView->getController().appendError( sError );
}
}
- else if( SQL_ISRULEOR2(pCondition,test_for_null,in_predicate)
- || SQL_ISRULEOR2(pCondition,all_or_any_predicate,between_predicate))
+ else if( SQL_ISRULEOR2(pCondition,test_for_null,in_predicate)
+ || SQL_ISRULEOR2(pCondition,all_or_any_predicate,between_predicate))
{
if ( SQL_ISRULEOR2(pCondition->getChild(0), set_fct_spec , general_set_fct ) )
{
- AddFunctionCondition( _pView,
+ AddFunctionCondition( _pView,
_pSelectionBrw,
pCondition,
nLevel,
@@ -1464,7 +1464,7 @@ namespace
{
// parse condition
::rtl::OUString sCondition = ParseCondition(rController,pCondition,sDecimal,aLocale,1);
- OTableFieldDescRef aDragLeft = new OTableFieldDesc();
+ OTableFieldDescRef aDragLeft = new OTableFieldDesc();
if ( eOk == ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(0),aDragLeft)) )
{
if ( bHaving )
@@ -1475,7 +1475,7 @@ namespace
else
{
// Funktions-Bedingung parsen
- ::rtl::OUString sCondition = ParseCondition(rController,pCondition,sDecimal,aLocale,1);
+ ::rtl::OUString sCondition = ParseCondition(rController,pCondition,sDecimal,aLocale,1);
Reference< XConnection> xConnection = rController.getConnection();
Reference< XDatabaseMetaData > xMetaData = xConnection->getMetaData();
// the international doesn't matter I have a string
@@ -1499,7 +1499,7 @@ namespace
else if( SQL_ISRULEOR2(pCondition,existence_test,unique_test) )
{
// Funktions-Bedingung parsen
- ::rtl::OUString aCondition = ParseCondition(rController,pCondition,sDecimal,aLocale,0);
+ ::rtl::OUString aCondition = ParseCondition(rController,pCondition,sDecimal,aLocale,0);
OTableFieldDescRef aDragLeft = new OTableFieldDesc();
aDragLeft->SetField(aCondition);
@@ -1525,11 +1525,11 @@ namespace
OSQLParseNode* pFunction = pCondition->getChild(0);
- OSL_ENSURE(SQL_ISRULEOR2(pFunction,general_set_fct ,set_fct_spec) ||
- SQL_ISRULEOR2(pFunction,position_exp,extract_exp) ||
- SQL_ISRULEOR2(pFunction,fold,char_substring_fct) ||
+ OSL_ENSURE(SQL_ISRULEOR2(pFunction,general_set_fct ,set_fct_spec) ||
+ SQL_ISRULEOR2(pFunction,position_exp,extract_exp) ||
+ SQL_ISRULEOR2(pFunction,fold,char_substring_fct) ||
SQL_ISRULEOR2(pFunction,length_exp,char_value_fct),"Illegal call!");
- ::rtl::OUString aCondition;
+ ::rtl::OUString aCondition;
OTableFieldDescRef aDragLeft = new OTableFieldDesc();
::rtl::OUString aColumnName;
@@ -1544,18 +1544,18 @@ namespace
static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()),
&rController.getParser().getContext());
- pFunction->parseNodeToStr( aColumnName,
+ pFunction->parseNodeToStr( aColumnName,
xConnection,
&rController.getParser().getContext(),
sal_True,
sal_True); // quote is to true because we need quoted elements inside the function
// i75557
//pFunction->parseNodeToPredicateStr(aColumnName,
- // xConnection,
- // rController.getNumberFormatter(),
- // _pView->getLocale(),
- // static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()),
- // &rController.getParser().getContext());
+ // xConnection,
+ // rController.getNumberFormatter(),
+ // _pView->getLocale(),
+ // static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()),
+ // &rController.getParser().getContext());
// don't display the column name
aCondition = aCondition.copy(aColumnName.getLength());
aCondition = aCondition.trim();
@@ -1587,7 +1587,7 @@ namespace
&& SQL_ISRULE(pParamNode,num_value_exp) )
{
::rtl::OUString sParameterValue;
- pParamNode->parseNodeToStr( sParameterValue,
+ pParamNode->parseNodeToStr( sParameterValue,
xConnection,
&rController.getParser().getContext());
nFunctionType |= FKT_NUMERIC;
@@ -1618,7 +1618,7 @@ namespace
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode * pCondition,
const sal_uInt16 nLevel,
- sal_Bool bHaving
+ sal_Bool bHaving
,bool bAddOrOnOneLine)
{
SqlParseError eErrorCode = eOk;
@@ -1628,7 +1628,7 @@ namespace
if ( SQL_ISRULE(pCondition->getChild(0), column_ref )
|| SQL_ISRULE(pCondition->getChild(pCondition->count()-1), column_ref) )
{
- ::rtl::OUString aCondition;
+ ::rtl::OUString aCondition;
OTableFieldDescRef aDragLeft = new OTableFieldDesc();
if ( SQL_ISRULE(pCondition->getChild(0), column_ref ) && SQL_ISRULE(pCondition->getChild(pCondition->count()-1), column_ref ) )
@@ -1726,7 +1726,7 @@ namespace
}
// else ???
-
+
if( eOk == ( eErrorCode = FillDragInfo(_pView,pCondition->getChild(nPos),aDragLeft)))
{
if(bHaving)
@@ -1736,7 +1736,7 @@ namespace
}
else if( SQL_ISRULEOR2(pCondition->getChild(0), set_fct_spec , general_set_fct ) )
{
- AddFunctionCondition( _pView,
+ AddFunctionCondition( _pView,
_pSelectionBrw,
pCondition,
nLevel,
@@ -1833,21 +1833,21 @@ namespace
_raInfo->SetTable(::rtl::OUString());
_raInfo->SetAlias(::rtl::OUString());
_raInfo->SetField(aColumnName);
- _raInfo->SetFieldAlias(aColumnAlias); // nyi : hier ein fortlaufendes Expr_1, Expr_2 ...
+ _raInfo->SetFieldAlias(aColumnAlias); // nyi : hier ein fortlaufendes Expr_1, Expr_2 ...
_raInfo->SetFunctionType(FKT_OTHER);
}
}
//-----------------------------------------------------------------------------
- sal_Bool checkJoinConditions( const OQueryDesignView* _pView,
+ sal_Bool checkJoinConditions( const OQueryDesignView* _pView,
const ::connectivity::OSQLParseNode* _pNode )
{
const ::connectivity::OSQLParseNode* pJoinNode = NULL;
sal_Bool bRet = sal_True;
if (SQL_ISRULE(_pNode,qualified_join))
pJoinNode = _pNode;
- else if (SQL_ISRULE(_pNode,table_ref)
- && _pNode->count() == 3
- && SQL_ISPUNCTUATION(_pNode->getChild(0),"(")
+ else if (SQL_ISRULE(_pNode,table_ref)
+ && _pNode->count() == 3
+ && SQL_ISPUNCTUATION(_pNode->getChild(0),"(")
&& SQL_ISPUNCTUATION(_pNode->getChild(2),")") ) // '(' joined_table ')'
pJoinNode = _pNode->getChild(1);
else if (! ( SQL_ISRULE(_pNode, table_ref) && _pNode->count() == 2) ) // table_node table_primary_as_range_column
@@ -1894,7 +1894,7 @@ namespace
}
else
{
- if (SQL_ISRULE(pJoinType,join_type)) // eine Ebene tiefer
+ if (SQL_ISRULE(pJoinType,join_type)) // eine Ebene tiefer
pJoinType = pJoinType->getChild(0);
if (SQL_ISTOKEN(pJoinType->getChild(0),LEFT))
@@ -1921,8 +1921,8 @@ namespace
if ( eJoinType == CROSS_JOIN || bNatural )
{
- OQueryTableWindow* pLeftWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pNode->getChild(0)) );
- OQueryTableWindow* pRightWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pRightTableRef) );
+ OQueryTableWindow* pLeftWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pNode->getChild(0)) );
+ OQueryTableWindow* pRightWindow = static_cast<OQueryTableView*>(_pView->getTableView())->FindTable( getTableRange(_pView,pRightTableRef) );
OSL_ENSURE(pLeftWindow && pRightWindow,"Table Windows could not be found!");
if ( !pLeftWindow || !pRightWindow )
return sal_False;
@@ -1939,7 +1939,7 @@ namespace
insertConnection(_pView,eJoinType,aDragLeft,aDragRight,bNatural);
}
-
+
return sal_True;
}
@@ -2048,7 +2048,7 @@ namespace
}
// find the existent window for this alias
- OQueryTableWindow* pExistentWin = pTableView->FindTable( sAlias );
+ OQueryTableWindow* pExistentWin = pTableView->FindTable( sAlias );
if ( !pExistentWin )
{
pTableView->AddTabWin( sComposedName, sAlias, sal_False ); // don't create data here
@@ -2068,8 +2068,8 @@ namespace
OJoinTableView::OTableWindowMap::iterator aIterTableEnd = aTableMap.end();
for(;aIterTableMap != aIterTableEnd;++aIterTableMap)
{
- if(aMap.find(aIterTableMap->second->GetComposedName()) == aMap.end() &&
- aMap.find(aIterTableMap->first) == aMap.end())
+ if(aMap.find(aIterTableMap->second->GetComposedName()) == aMap.end() &&
+ aMap.find(aIterTableMap->first) == aMap.end())
pTableView->RemoveTabWin(aIterTableMap->second);
}
@@ -2118,7 +2118,7 @@ namespace
<TRUE/> when columns could be inserted otherwise <FALSE/>
*/
//------------------------------------------------------------------------------
- SqlParseError fillSelectSubList( OQueryDesignView* _pView,
+ SqlParseError fillSelectSubList( OQueryDesignView* _pView,
OJoinTableView::OTableWindowMap* _pTabList)
{
SqlParseError eErrorCode = eOk;
@@ -2129,7 +2129,7 @@ namespace
for(;aIter != aEnd && eOk == eErrorCode ;++aIter)
{
OQueryTableWindow* pTabWin = static_cast<OQueryTableWindow*>(aIter->second);
- OTableFieldDescRef aInfo = new OTableFieldDesc();
+ OTableFieldDescRef aInfo = new OTableFieldDesc();
if (pTabWin->ExistsField( sAsterix, aInfo ))
{
eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField);
@@ -2147,7 +2147,7 @@ namespace
return eNoSelectStatement;
::connectivity::OSQLParseNode* pParseTree = pNode->getChild(2); // selection
- sal_Bool bFirstField = sal_True; // bei der Initialisierung muß auf alle Faelle das erste Feld neu aktiviert werden
+ sal_Bool bFirstField = sal_True; // bei der Initialisierung muß auf alle Faelle das erste Feld neu aktiviert werden
SqlParseError eErrorCode = eOk;
@@ -2181,7 +2181,7 @@ namespace
pColumnRef = pColumnRef->getChild(0);
OTableFieldDescRef aInfo = new OTableFieldDesc();
- if ( pColumnRef->count() == 3 &&
+ if ( pColumnRef->count() == 3 &&
SQL_ISPUNCTUATION(pColumnRef->getChild(0),"(") &&
SQL_ISPUNCTUATION(pColumnRef->getChild(2),")")
)
@@ -2193,9 +2193,9 @@ namespace
eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField);
bFirstField = sal_False;
}
- else if(SQL_ISRULEOR2(pColumnRef,general_set_fct ,set_fct_spec) ||
- SQL_ISRULEOR2(pColumnRef,position_exp,extract_exp) ||
- SQL_ISRULEOR2(pColumnRef,fold,char_substring_fct) ||
+ else if(SQL_ISRULEOR2(pColumnRef,general_set_fct ,set_fct_spec) ||
+ SQL_ISRULEOR2(pColumnRef,position_exp,extract_exp) ||
+ SQL_ISRULEOR2(pColumnRef,fold,char_substring_fct) ||
SQL_ISRULEOR2(pColumnRef,length_exp,char_value_fct))
{
::rtl::OUString aColumns;
@@ -2205,11 +2205,11 @@ namespace
_pView->getLocale(),
static_cast<sal_Char>(_pView->getDecimalSeparator().toChar()),
&rController.getParser().getContext());
- //pColumnRef->parseNodeToStr( aColumns,
- // xConnection,
- // &rController.getParser().getContext(),
- // sal_True,
- // sal_True); // quote is to true because we need quoted elements inside the function
+ //pColumnRef->parseNodeToStr( aColumns,
+ // xConnection,
+ // &rController.getParser().getContext(),
+ // sal_True,
+ // sal_True); // quote is to true because we need quoted elements inside the function
sal_Int32 nFunctionType = FKT_NONE;
::connectivity::OSQLParseNode* pParamRef = NULL;
@@ -2217,8 +2217,8 @@ namespace
if ( nColumnRefPos >= 0 && static_cast<sal_uInt32>(nColumnRefPos) < pColumnRef->count() )
pParamRef = pColumnRef->getChild(nColumnRefPos);
- if ( SQL_ISRULE(pColumnRef,general_set_fct)
- && SQL_ISRULE(pParamRef,column_ref) )
+ if ( SQL_ISRULE(pColumnRef,general_set_fct)
+ && SQL_ISRULE(pParamRef,column_ref) )
{
// Parameter auf Columnref pr"ufen
InsertColumnRef(_pView,pParamRef,aColumnName,aColumnAlias,aTableRange,aInfo,pTabList);
@@ -2244,11 +2244,11 @@ namespace
{
::rtl::OUString sFieldName = aColumns;
if ( pParamRef )
- { // we got an aggregate function but without column name inside
+ { // we got an aggregate function but without column name inside
// so we set the whole argument of the function as field name
nFunctionType |= FKT_NUMERIC;
sFieldName = ::rtl::OUString();
- pParamRef->parseNodeToStr( sFieldName,
+ pParamRef->parseNodeToStr( sFieldName,
xConnection,
&rController.getParser().getContext(),
sal_True,
@@ -2279,10 +2279,10 @@ namespace
eErrorCode = _pView->InsertField(aInfo, sal_True, bFirstField);
bFirstField = sal_False;
}
- else //if(SQL_ISRULE(pColumnRef,num_value_exp) || SQL_ISRULE(pColumnRef,term))
+ else //if(SQL_ISRULE(pColumnRef,num_value_exp) || SQL_ISRULE(pColumnRef,term))
{
::rtl::OUString aColumns;
- pColumnRef->parseNodeToStr( aColumns,
+ pColumnRef->parseNodeToStr( aColumns,
xConnection,
&rController.getParser().getContext(),
sal_True,
@@ -2323,7 +2323,7 @@ namespace
return eErrorCode;
}
//------------------------------------------------------------------------------
- SqlParseError GetOrderCriteria( OQueryDesignView* _pView,
+ SqlParseError GetOrderCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode* pParseRoot )
{
@@ -2339,13 +2339,13 @@ namespace
for( sal_uInt32 i=0 ; i<pNode->count() ; i++ )
{
eOrderDir = ORDER_ASC;
- ::connectivity::OSQLParseNode* pChild = pNode->getChild( i );
+ ::connectivity::OSQLParseNode* pChild = pNode->getChild( i );
if (SQL_ISTOKEN( pChild->getChild(1), DESC ) )
eOrderDir = ORDER_DESC;
::connectivity::OSQLParseNode* pArgument = pChild->getChild(0);
-
+
if(SQL_ISRULE(pArgument,column_ref))
{
if( eOk == FillDragInfo(_pView,pArgument,aDragLeft))
@@ -2373,7 +2373,7 @@ namespace
_pSelectionBrw->AddOrder( aDragLeft, eOrderDir, i );
else if( SQL_ISRULE(pArgument, set_fct_spec ) )
{
-
+
Reference< XConnection> xConnection = rController.getConnection();
if(xConnection.is())
{
@@ -2400,7 +2400,7 @@ namespace
return eErrorCode;
}
//------------------------------------------------------------------------------
- SqlParseError GetHavingCriteria( OQueryDesignView* _pView,
+ SqlParseError GetHavingCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode* pSelectRoot,
sal_uInt16& rLevel )
@@ -2411,7 +2411,7 @@ namespace
return eErrorCode;
}
//------------------------------------------------------------------------------
- SqlParseError GetGroupCriteria( OQueryDesignView* _pView,
+ SqlParseError GetGroupCriteria( OQueryDesignView* _pView,
OSelectionBrowseBox* _pSelectionBrw,
const ::connectivity::OSQLParseNode* pSelectRoot )
{
@@ -2441,12 +2441,12 @@ namespace
_pSelectionBrw->AddGroupBy( aDragInfo, i );
}
else if( SQL_ISRULE(pArgument, set_fct_spec ) )
- {
+ {
Reference< XConnection> xConnection = rController.getConnection();
if(xConnection.is())
{
::rtl::OUString sGroupByExpression;
- pArgument->parseNodeToStr( sGroupByExpression,
+ pArgument->parseNodeToStr( sGroupByExpression,
xConnection,
&rController.getParser().getContext(),
sal_True,
@@ -2521,7 +2521,7 @@ namespace
// end of anonymouse namespace
DBG_NAME(OQueryDesignView)
-OQueryDesignView::OQueryDesignView( OQueryContainerWindow* _pParent,
+OQueryDesignView::OQueryDesignView( OQueryContainerWindow* _pParent,
OQueryController& _rController,
const Reference< XMultiServiceFactory >& _rFactory)
:OQueryView( _pParent, _rController, _rFactory )
@@ -2603,8 +2603,8 @@ void OQueryDesignView::resizeDocumentView(Rectangle& _rPlayground)
sal_Int32 nSplitPos = static_cast<OQueryController&>(getController()).getSplitPos();
if ( 0 != aPlaygroundSize.Height() )
{
- if ( ( -1 == nSplitPos )
- || ( nSplitPos >= aPlaygroundSize.Height() )
+ if ( ( -1 == nSplitPos )
+ || ( nSplitPos >= aPlaygroundSize.Height() )
)
{
// let the selection browse box determine an optimal size
@@ -2618,7 +2618,7 @@ void OQueryDesignView::resizeDocumentView(Rectangle& _rPlayground)
}
if ( !m_bInSplitHandler )
- { // the resize is triggered by something else than the split handler
+ { // the resize is triggered by something else than the split handler
// our main focus is to try to preserve the size of the selectionbrowse box
Size aSelBoxSize = m_pSelectionBox->GetSizePixel();
if ( aSelBoxSize.Height() )
@@ -2639,8 +2639,8 @@ void OQueryDesignView::resizeDocumentView(Rectangle& _rPlayground)
}
// normalize the split pos
- Point aSplitPos = Point( _rPlayground.Left(), nSplitPos );
- Size aSplitSize = Size( _rPlayground.GetSize().Width(), m_aSplitter.GetSizePixel().Height() );
+ Point aSplitPos = Point( _rPlayground.Left(), nSplitPos );
+ Size aSplitSize = Size( _rPlayground.GetSize().Width(), m_aSplitter.GetSizePixel().Height() );
if( ( aSplitPos.Y() + aSplitSize.Height() ) > ( aPlaygroundSize.Height() ))
aSplitPos.Y() = aPlaygroundSize.Height() - aSplitSize.Height();
@@ -2742,7 +2742,7 @@ void OQueryDesignView::TableDeleted(const ::rtl::OUString& rAliasName)
{
// Nachricht, dass Tabelle aus dem Fenster gel"oscht wurde
DeleteFields(rAliasName);
- static_cast<OQueryController&>(getController()).InvalidateFeature(ID_BROWSER_ADDTABLE); // view nochmal bescheid sagen
+ static_cast<OQueryController&>(getController()).InvalidateFeature(ID_BROWSER_ADDTABLE); // view nochmal bescheid sagen
}
//------------------------------------------------------------------------------
void OQueryDesignView::DeleteFields( const ::rtl::OUString& rAliasName )
@@ -2861,24 +2861,24 @@ sal_Bool OQueryDesignView::checkStatement()
OTableFieldDescRef pEntryField = *aIter;
if ( pEntryField->GetField().getLength() && pEntryField->IsVisible() )
++nFieldcount;
- else if (pEntryField->GetField().getLength() &&
- !pEntryField->HasCriteria() &&
- pEntryField->isNoneFunction() &&
- pEntryField->GetOrderDir() == ORDER_NONE &&
+ else if (pEntryField->GetField().getLength() &&
+ !pEntryField->HasCriteria() &&
+ pEntryField->isNoneFunction() &&
+ pEntryField->GetOrderDir() == ORDER_NONE &&
!pEntryField->IsGroupBy() &&
!pEntryField->GetFunction().getLength() )
rUnUsedFields.push_back(pEntryField);
}
- if ( !nFieldcount ) // keine Felder sichtbar also zur"uck
+ if ( !nFieldcount ) // keine Felder sichtbar also zur"uck
{
rUnUsedFields = rFieldList;
return ::rtl::OUString();
}
OQueryTableView::OTableWindowMap* pTabList = m_pTableView->GetTabWinMap();
- sal_uInt32 nTabcount = pTabList->size();
+ sal_uInt32 nTabcount = pTabList->size();
- ::rtl::OUString aFieldListStr(GenerateSelectList(this,rFieldList,nTabcount>1));
+ ::rtl::OUString aFieldListStr(GenerateSelectList(this,rFieldList,nTabcount>1));
if( !aFieldListStr.getLength() )
return ::rtl::OUString();
// Ausnahmebehandlung, wenn keine Felder angegeben worden sind
@@ -2887,7 +2887,7 @@ sal_Bool OQueryDesignView::checkStatement()
// und eine Errormeldung erzeugt
// ----------------- Tabellenliste aufbauen ----------------------
- const ::std::vector<OTableConnection*>* pConnList = m_pTableView->getTableConnections();
+ const ::std::vector<OTableConnection*>* pConnList = m_pTableView->getTableConnections();
Reference< XConnection> xConnection = rController.getConnection();
::rtl::OUString aTableListStr(GenerateFromClause(xConnection,pTabList,pConnList));
DBG_ASSERT(aTableListStr.getLength(), "OQueryDesignView::getStatement() : unerwartet : habe Felder, aber keine Tabellen !");
@@ -3029,7 +3029,7 @@ void OQueryDesignView::SaveUIConfig()
{
OQueryController& rCtrl = static_cast<OQueryController&>(getController());
rCtrl.SaveTabWinsPosSize( m_pTableView->GetTabWinMap(), m_pScrollWindow->GetHScrollBar()->GetThumbPos(), m_pScrollWindow->GetVScrollBar()->GetThumbPos() );
- // rCtrl.SaveTabFieldsWidth( m_pSelectionBox );
+ // rCtrl.SaveTabFieldsWidth( m_pSelectionBox );
rCtrl.setVisibleRows( m_pSelectionBox->GetNoneVisibleRows() );
if ( m_aSplitter.GetSplitPosPixel() != 0 )
rCtrl.setSplitPos( m_aSplitter.GetSplitPosPixel() );
@@ -3091,7 +3091,7 @@ OSQLParseNode* OQueryDesignView::getPredicateTreeFromEntry(OTableFieldDescRef pE
}
Reference<XDatabaseMetaData> xMeta = xConnection->getMetaData();
- parse::OParseColumn* pColumn = new parse::OParseColumn( pEntry->GetField(),
+ parse::OParseColumn* pColumn = new parse::OParseColumn( pEntry->GetField(),
::rtl::OUString(),
::rtl::OUString(),
::rtl::OUString(),
@@ -3116,7 +3116,7 @@ OSQLParseNode* OQueryDesignView::getPredicateTreeFromEntry(OTableFieldDescRef pE
}
}
- OSQLParseNode* pParseNode = rParser.predicateTree( _rsErrorMessage,
+ OSQLParseNode* pParseNode = rParser.predicateTree( _rsErrorMessage,
sTest,
static_cast<OQueryController&>(getController()).getNumberFormatter(),
_rxColumn);
diff --git a/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.cxx b/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.cxx
index fb662a8b7438..c402bd70c466 100644
--- a/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.cxx
+++ b/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.cxx
@@ -2,7 +2,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
diff --git a/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.hxx
index 692bd3946fda..73b1a6671e4b 100644
--- a/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QueryMoveTabWinUndoAct.hxx
@@ -2,7 +2,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
@@ -41,8 +41,8 @@ namespace dbaui
class OTableWindow;
class OJoinMoveTabWinUndoAct : public OQueryDesignUndoAction
{
- Point m_ptNextPosition;
- OTableWindow* m_pTabWin;
+ Point m_ptNextPosition;
+ OTableWindow* m_pTabWin;
protected:
void TogglePosition();
@@ -50,8 +50,8 @@ namespace dbaui
public:
OJoinMoveTabWinUndoAct(OJoinTableView* pOwner, const Point& ptOriginalPosition, OTableWindow* pTabWin);
- virtual void Undo() { TogglePosition(); }
- virtual void Redo() { TogglePosition(); }
+ virtual void Undo() { TogglePosition(); }
+ virtual void Redo() { TogglePosition(); }
};
// ------------------------------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/querydesign/QuerySizeTabWinUndoAct.hxx b/dbaccess/source/ui/querydesign/QuerySizeTabWinUndoAct.hxx
index 11a2fc0412de..83bbafa6affc 100644
--- a/dbaccess/source/ui/querydesign/QuerySizeTabWinUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QuerySizeTabWinUndoAct.hxx
@@ -2,7 +2,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
@@ -39,9 +39,9 @@ namespace dbaui
class OTableWindow;
class OJoinSizeTabWinUndoAct : public OQueryDesignUndoAction
{
- Point m_ptNextPosition;
- Size m_szNextSize;
- OTableWindow* m_pTabWin;
+ Point m_ptNextPosition;
+ Size m_szNextSize;
+ OTableWindow* m_pTabWin;
protected:
inline void ToggleSizePosition();
@@ -52,8 +52,8 @@ namespace dbaui
// hier sind physische, nicht logische Koordinaten
// (im Gegensatz zur QueryMoveTabWinUndoAct)
- virtual void Undo() { ToggleSizePosition(); }
- virtual void Redo() { ToggleSizePosition(); }
+ virtual void Undo() { ToggleSizePosition(); }
+ virtual void Redo() { ToggleSizePosition(); }
};
//------------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx b/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx
index 93775a1be43e..7e11cddc796a 100644
--- a/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.cxx
@@ -2,7 +2,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
@@ -44,7 +44,7 @@ OQueryTabConnUndoAction::~OQueryTabConnUndoAction()
{
DBG_DTOR(OQueryTabConnUndoAction,NULL);
if (m_bOwnerOfConn)
- { // ich besitze die Connection -> loeschen
+ { // ich besitze die Connection -> loeschen
m_pOwner->DeselectConn(m_pConnection);
delete m_pConnection;
}
@@ -59,80 +59,80 @@ OQueryTabConnUndoAction::OQueryTabConnUndoAction(OQueryTableView* pOwner, USHORT
DBG_CTOR(OQueryTabConnUndoAction,NULL);
}
// -----------------------------------------------------------------------------
-OQueryAddTabConnUndoAction::OQueryAddTabConnUndoAction(OQueryTableView* pOwner)
- : OQueryTabConnUndoAction(pOwner, STR_QUERY_UNDO_INSERTCONNECTION)
-{
+OQueryAddTabConnUndoAction::OQueryAddTabConnUndoAction(OQueryTableView* pOwner)
+ : OQueryTabConnUndoAction(pOwner, STR_QUERY_UNDO_INSERTCONNECTION)
+{
}
// -----------------------------------------------------------------------------
-void OQueryAddTabConnUndoAction::Undo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->DropConnection(m_pConnection);
- SetOwnership(TRUE);
+void OQueryAddTabConnUndoAction::Undo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->DropConnection(m_pConnection);
+ SetOwnership(TRUE);
}
// -----------------------------------------------------------------------------
-void OQueryAddTabConnUndoAction::Redo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->GetConnection(m_pConnection);
- SetOwnership(FALSE);
+void OQueryAddTabConnUndoAction::Redo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->GetConnection(m_pConnection);
+ SetOwnership(FALSE);
}
// -----------------------------------------------------------------------------
-OQueryDelTabConnUndoAction::OQueryDelTabConnUndoAction(OQueryTableView* pOwner)
- : OQueryTabConnUndoAction(pOwner, STR_QUERY_UNDO_REMOVECONNECTION)
-{
+OQueryDelTabConnUndoAction::OQueryDelTabConnUndoAction(OQueryTableView* pOwner)
+ : OQueryTabConnUndoAction(pOwner, STR_QUERY_UNDO_REMOVECONNECTION)
+{
}
// -----------------------------------------------------------------------------
-void OQueryDelTabConnUndoAction::Undo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->GetConnection(m_pConnection);
- SetOwnership(FALSE);
+void OQueryDelTabConnUndoAction::Undo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->GetConnection(m_pConnection);
+ SetOwnership(FALSE);
}
// -----------------------------------------------------------------------------
-void OQueryDelTabConnUndoAction::Redo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->DropConnection(m_pConnection);
- SetOwnership(TRUE);
+void OQueryDelTabConnUndoAction::Redo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->DropConnection(m_pConnection);
+ SetOwnership(TRUE);
}
// -----------------------------------------------------------------------------
-OQueryTabWinShowUndoAct::OQueryTabWinShowUndoAct(OQueryTableView* pOwner)
- : OQueryTabWinUndoAct(pOwner, STR_QUERY_UNDO_TABWINSHOW)
-{
+OQueryTabWinShowUndoAct::OQueryTabWinShowUndoAct(OQueryTableView* pOwner)
+ : OQueryTabWinUndoAct(pOwner, STR_QUERY_UNDO_TABWINSHOW)
+{
}
// -----------------------------------------------------------------------------
OQueryTabWinShowUndoAct::~OQueryTabWinShowUndoAct()
{
}
// -----------------------------------------------------------------------------
-void OQueryTabWinShowUndoAct::Undo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->HideTabWin(m_pTabWin, this);
- SetOwnership(TRUE);
+void OQueryTabWinShowUndoAct::Undo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->HideTabWin(m_pTabWin, this);
+ SetOwnership(TRUE);
}
// -----------------------------------------------------------------------------
-void OQueryTabWinShowUndoAct::Redo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->ShowTabWin(m_pTabWin, this,sal_True);
- SetOwnership(FALSE);
+void OQueryTabWinShowUndoAct::Redo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->ShowTabWin(m_pTabWin, this,sal_True);
+ SetOwnership(FALSE);
}
// -----------------------------------------------------------------------------
-OQueryTabWinDelUndoAct::OQueryTabWinDelUndoAct(OQueryTableView* pOwner)
- : OQueryTabWinUndoAct(pOwner, STR_QUERY_UNDO_TABWINDELETE)
-{
+OQueryTabWinDelUndoAct::OQueryTabWinDelUndoAct(OQueryTableView* pOwner)
+ : OQueryTabWinUndoAct(pOwner, STR_QUERY_UNDO_TABWINDELETE)
+{
}
// -----------------------------------------------------------------------------
OQueryTabWinDelUndoAct::~OQueryTabWinDelUndoAct()
{
}
// -----------------------------------------------------------------------------
-void OQueryTabWinDelUndoAct::Undo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->ShowTabWin( m_pTabWin, this,sal_True );
- SetOwnership(FALSE);
+void OQueryTabWinDelUndoAct::Undo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->ShowTabWin( m_pTabWin, this,sal_True );
+ SetOwnership(FALSE);
}
// -----------------------------------------------------------------------------
-void OQueryTabWinDelUndoAct::Redo()
-{
- static_cast<OQueryTableView*>(m_pOwner)->HideTabWin( m_pTabWin, this );
- SetOwnership(TRUE);
+void OQueryTabWinDelUndoAct::Redo()
+{
+ static_cast<OQueryTableView*>(m_pOwner)->HideTabWin( m_pTabWin, this );
+ SetOwnership(TRUE);
}
// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.hxx b/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.hxx
index 42a2e738bc53..3dcfa4cacfa6 100644
--- a/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.hxx
+++ b/dbaccess/source/ui/querydesign/QueryTabConnUndoAction.hxx
@@ -2,7 +2,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
@@ -37,8 +37,8 @@ namespace dbaui
class OQueryTabConnUndoAction : public OQueryDesignUndoAction
{
protected:
- OQueryTableConnection* m_pConnection;
- BOOL m_bOwnerOfConn;
+ OQueryTableConnection* m_pConnection;
+ BOOL m_bOwnerOfConn;
// bin ich alleiniger Eigentuemer der Connection ? (aendert sich mit jedem Redo oder Undo)
public:
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinShowUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryTabWinShowUndoAct.hxx
index f5988bd65786..0a64becdcd55 100644
--- a/dbaccess/source/ui/querydesign/QueryTabWinShowUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QueryTabWinShowUndoAct.hxx
@@ -2,7 +2,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
@@ -42,8 +42,8 @@ namespace dbaui
OQueryTabWinShowUndoAct(OQueryTableView* pOwner);
~OQueryTabWinShowUndoAct();
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
// ================================================================================================
@@ -55,8 +55,8 @@ namespace dbaui
OQueryTabWinDelUndoAct(OQueryTableView* pOwner);
~OQueryTabWinDelUndoAct();
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
}
#endif // DBAUI_QUERYTABWINSHOWUNDOACT_HXX
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
index 953cab5fa552..21c4d3aad0f4 100644
--- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.cxx
@@ -2,7 +2,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
@@ -39,23 +39,23 @@
using namespace dbaui;
-DBG_NAME(OQueryDesignFieldUndoAct)
-OQueryDesignFieldUndoAct::OQueryDesignFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, USHORT nCommentID)
+DBG_NAME(OQueryDesignFieldUndoAct)
+OQueryDesignFieldUndoAct::OQueryDesignFieldUndoAct(OSelectionBrowseBox* pSelBrwBox, USHORT nCommentID)
: OCommentUndoAction(nCommentID)
, pOwner(pSelBrwBox)
- , m_nColumnPostion(BROWSER_INVALIDID)
-{
+ , m_nColumnPostion(BROWSER_INVALIDID)
+{
DBG_CTOR(OQueryDesignFieldUndoAct,NULL);
}
// -----------------------------------------------------------------------------
-OQueryDesignFieldUndoAct::~OQueryDesignFieldUndoAct()
-{
+OQueryDesignFieldUndoAct::~OQueryDesignFieldUndoAct()
+{
DBG_DTOR(OQueryDesignFieldUndoAct,NULL);
- pOwner = NULL;
+ pOwner = NULL;
}
// -----------------------------------------------------------------------------
-DBG_NAME(OQueryTabWinUndoAct )
+DBG_NAME(OQueryTabWinUndoAct )
// ------------------------------------------------------------------------------------------------
OQueryTabWinUndoAct::OQueryTabWinUndoAct(OQueryTableView* pOwner, USHORT nCommentID)
:OQueryDesignUndoAction(pOwner, nCommentID)
@@ -66,9 +66,9 @@ OQueryTabWinUndoAct::OQueryTabWinUndoAct(OQueryTableView* pOwner, USHORT nCommen
//==============================================================================
OQueryTabWinUndoAct::~OQueryTabWinUndoAct()
{
- DBG_DTOR(OQueryTabWinUndoAct ,NULL);
+ DBG_DTOR(OQueryTabWinUndoAct ,NULL);
if (m_bOwnerOfObjects)
- { // wenn ich der alleinige Owner des Fenster bin, muss ich dafuer sorgen, dass es geloescht wird
+ { // wenn ich der alleinige Owner des Fenster bin, muss ich dafuer sorgen, dass es geloescht wird
OSL_ENSURE(m_pTabWin != NULL, "OQueryTabWinUndoAct::~OQueryTabWinUndoAct() : m_pTabWin sollte nicht NULL sein");
OSL_ENSURE(!m_pTabWin->IsVisible(), "OQueryTabWinUndoAct::~OQueryTabWinUndoAct() : *m_pTabWin sollte nicht sichtbar sein");
@@ -118,8 +118,8 @@ void OTabFieldSizedUndoAct::Undo()
pOwner->LeaveUndoMode();
}
// -----------------------------------------------------------------------------
-void OTabFieldMovedUndoAct::Undo()
-{
+void OTabFieldMovedUndoAct::Undo()
+{
pOwner->EnterUndoMode();
OSL_ENSURE(m_nColumnPostion != BROWSER_INVALIDID,"Column position was not set add the undo action!");
if ( m_nColumnPostion != BROWSER_INVALIDID )
@@ -127,7 +127,7 @@ void OTabFieldMovedUndoAct::Undo()
sal_uInt16 nId = pDescr->GetColumnId();
USHORT nOldPos = pOwner->GetColumnPos(nId);
pOwner->SetColumnPos(nId,m_nColumnPostion);
- pOwner->ColumnMoved(nId,FALSE);
+ pOwner->ColumnMoved(nId,FALSE);
m_nColumnPostion = nOldPos;
}
pOwner->LeaveUndoMode();
diff --git a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx
index 1fa0df1f3a01..e1e055ce272a 100644
--- a/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx
+++ b/dbaccess/source/ui/querydesign/QueryTabWinUndoAct.hxx
@@ -2,7 +2,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
@@ -48,8 +48,8 @@ namespace dbaui
{
protected:
::std::vector<OTableConnection*> m_vTableConnection;
- OQueryTableWindow* m_pTabWin;
- BOOL m_bOwnerOfObjects;
+ OQueryTableWindow* m_pTabWin;
+ BOOL m_bOwnerOfObjects;
// bin ich alleiniger Eigentuemer der verwalteten Objekte ? (aendert sich mit jedem Redo oder Undo)
public:
@@ -67,18 +67,18 @@ namespace dbaui
// anschliessend sollte das SetOwnership aufgerufen werden
// Zugriff auf die verwalteten Connections
- USHORT ConnCount() { return (USHORT)m_vTableConnection.size(); }
+ USHORT ConnCount() { return (USHORT)m_vTableConnection.size(); }
- ::std::vector<OTableConnection*>* GetTabConnList() { return &m_vTableConnection; }
+ ::std::vector<OTableConnection*>* GetTabConnList() { return &m_vTableConnection; }
void InsertConnection( OTableConnection* pConnection ) { m_vTableConnection.push_back(pConnection); }
- void RemoveConnection( OTableConnection* pConnection )
- {
+ void RemoveConnection( OTableConnection* pConnection )
+ {
m_vTableConnection.erase(::std::remove(m_vTableConnection.begin(),m_vTableConnection.end(),pConnection),m_vTableConnection.end());
}
};
-
+
}
#endif // DBAUI_QUERYTABWINUNDOACT_HXX
diff --git a/dbaccess/source/ui/querydesign/QueryTableView.cxx b/dbaccess/source/ui/querydesign/QueryTableView.cxx
index b4b0506950ca..faef87de1c7d 100644
--- a/dbaccess/source/ui/querydesign/QueryTableView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTableView.cxx
@@ -2,7 +2,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
@@ -71,7 +71,7 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::accessibility;
//------------------------------------------------------------------------------
-namespace
+namespace
{
// -----------------------------------------------------------------------------
sal_Bool isColumnInKeyType(const Reference<XIndexAccess>& _rxKeys,const ::rtl::OUString& _rColumnName,sal_Int32 _nKeyType)
@@ -109,13 +109,13 @@ namespace
}
// -----------------------------------------------------------------------------
/** appends a new TabAdd Undo action at controller
- @param _pView the view which we use
- @param _pUndoAction the undo action which should be added
- @param _pConnection the connection for which the undo action should be appended
- @param _bOwner is the undo action the owner
+ @param _pView the view which we use
+ @param _pUndoAction the undo action which should be added
+ @param _pConnection the connection for which the undo action should be appended
+ @param _bOwner is the undo action the owner
*/
// -----------------------------------------------------------------------------
- void addUndoAction( OQueryTableView* _pView,
+ void addUndoAction( OQueryTableView* _pView,
OQueryTabConnUndoAction* _pUndoAction,
OQueryTableConnection* _pConnection,
sal_Bool _bOwner = sal_False)
@@ -126,10 +126,10 @@ namespace
}
// -----------------------------------------------------------------------------
/** openJoinDialog opens the join dialog with this connection data
- @param _pView the view which we use
- @param _pConnectionData the connection data
+ @param _pView the view which we use
+ @param _pConnectionData the connection data
- @return true when OK was pressed otherwise false
+ @return true when OK was pressed otherwise false
*/
sal_Bool openJoinDialog(OQueryTableView* _pView,const TTableConnectionData::value_type& _pConnectionData,BOOL _bSelectableTables)
{
@@ -147,9 +147,9 @@ namespace
}
// -----------------------------------------------------------------------------
/** connectionModified adds an undo action for the modified connection and forces an redraw
- @param _pView the view which we use
- @param _pConnection the connection which was modified
- @param _bAddUndo true when an undo action should be appended
+ @param _pView the view which we use
+ @param _pConnection the connection which was modified
+ @param _bAddUndo true when an undo action should be appended
*/
void connectionModified(OQueryTableView* _pView,
OTableConnection* _pConnection,
@@ -160,7 +160,7 @@ namespace
// add an undo action
if ( _bAddUndo )
- addUndoAction( _pView,
+ addUndoAction( _pView,
new OQueryAddTabConnUndoAction(_pView),
static_cast< OQueryTableConnection*>(_pConnection));
// redraw
@@ -180,7 +180,7 @@ namespace
// nothing to do if one of both denotes a query
return;
- // we found a table in our view where we can insert some connections
+ // we found a table in our view where we can insert some connections
// the key columns have a property called RelatedColumn
// OQueryTableConnectionData aufbauen
OQueryTableConnectionData* pNewConnData = new OQueryTableConnectionData( _rSource.GetData(), _rDest.GetData() );
@@ -214,7 +214,7 @@ namespace
else
OSL_ENSURE(0,"Column not found!");
}
- // get the position inside the tabe
+ // get the position inside the tabe
Reference<XNameAccess> xRefColumns = _rDest.GetOriginalColumns();
if(xRefColumns.is())
{
@@ -293,7 +293,7 @@ void OQueryTableView::ReSync()
TTableWindowData::reverse_iterator aIter = pTabWinDataList->rbegin();
// Fenster kreieren und einfuegen
-
+
for(;aIter != pTabWinDataList->rend();++aIter)
{
OQueryTableWindowData* pData = static_cast<OQueryTableWindowData*>(aIter->get());
@@ -314,7 +314,7 @@ void OQueryTableView::ReSync()
continue;
}
- (*GetTabWinMap())[pData->GetAliasName()] = pTabWin; // am Anfang einfuegen, da ich die DataList ja rueckwaerts durchlaufe
+ (*GetTabWinMap())[pData->GetAliasName()] = pTabWin; // am Anfang einfuegen, da ich die DataList ja rueckwaerts durchlaufe
// wenn in den Daten keine Position oder Groesse steht -> Default
if (!pData->HasPosition() && !pData->HasSize())
SetDefaultTabWinPosSize(pTabWin);
@@ -325,7 +325,7 @@ void OQueryTableView::ReSync()
// Verbindungen einfuegen
TTableConnectionData* pTabConnDataList = m_pView->getController().getTableConnectionData();
TTableConnectionData::reverse_iterator aConIter = pTabConnDataList->rbegin();
-
+
for(;aConIter != pTabConnDataList->rend();++aConIter)
{
OQueryTableConnectionData* pTabConnData = static_cast<OQueryTableConnectionData*>(aConIter->get());
@@ -337,7 +337,7 @@ void OQueryTableView::ReSync()
bInvalid = bInvalid && ::std::find(arrInvalidTables.begin(),arrInvalidTables.end(),strTabExistenceTest) != arrInvalidTables.end();
if (bInvalid)
- { // nein -> Pech gehabt, die Connection faellt weg
+ { // nein -> Pech gehabt, die Connection faellt weg
pTabConnDataList->erase( ::std::remove(pTabConnDataList->begin(),pTabConnDataList->end(),*aConIter) ,pTabConnDataList->end());
continue;
}
@@ -369,9 +369,9 @@ void OQueryTableView::NotifyTabConnection(const OQueryTableConnection& rNewConn,
DBG_CHKTHIS(OQueryTableView,NULL);
// erst mal schauen, ob ich diese Connection schon habe
OQueryTableConnection* pTabConn = NULL;
- const ::std::vector<OTableConnection*>* pConnections = getTableConnections();
+ const ::std::vector<OTableConnection*>* pConnections = getTableConnections();
::std::vector<OTableConnection*>::const_iterator aEnd = pConnections->end();
- ::std::vector<OTableConnection*>::const_iterator aIter = ::std::find( pConnections->begin(),
+ ::std::vector<OTableConnection*>::const_iterator aIter = ::std::find( pConnections->begin(),
aEnd,
static_cast<const OTableConnection*>(&rNewConn)
);
@@ -427,8 +427,8 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rTableName, const ::rtl:
::rtl::OUString sCatalog, sSchema, sTable;
::dbtools::qualifiedNameComponents(xMetaData,
_rTableName,
- sCatalog,
- sSchema,
+ sCatalog,
+ sSchema,
sTable,
::dbtools::eInDataManipulation);
::rtl::OUString sRealName(sSchema);
@@ -444,7 +444,7 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rTableName, const ::rtl:
}
}
// -----------------------------------------------------------------------------
-// find the table which has a foreign key with this referencedTable name
+// find the table which has a foreign key with this referencedTable name
Reference<XPropertySet> getKeyReferencedTo(const Reference<XIndexAccess>& _rxKeys,const ::rtl::OUString& _rReferencedTable)
{
if(!_rxKeys.is())
@@ -505,12 +505,12 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::r
// Neue UndoAction
OQueryTabWinShowUndoAct* pUndoAction = new OQueryTabWinShowUndoAct(this);
- pUndoAction->SetTabWin(pNewTabWin); // Fenster
+ pUndoAction->SetTabWin(pNewTabWin); // Fenster
sal_Bool bSuccess = ShowTabWin(pNewTabWin, pUndoAction,bAppend);
if(!bSuccess)
{
// reset table window
- pUndoAction->SetTabWin(NULL);
+ pUndoAction->SetTabWin(NULL);
pUndoAction->SetOwnership(sal_False);
delete pUndoAction;
@@ -523,7 +523,7 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::r
{
modified();
if ( m_pAccessible )
- m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
+ m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
Any(),
makeAny(pNewTabWin->GetAccessible())
);
@@ -558,7 +558,7 @@ void OQueryTableView::AddTabWin(const ::rtl::OUString& _rComposedName, const ::r
switch ( nKeyType )
{
case KeyType::FOREIGN:
- { // our new table has a foreign key
+ { // our new table has a foreign key
// so look if the referenced table is already in our list
xProp->getPropertyValue(PROPERTY_REFERENCEDTABLE) >>= aReferencedTable;
OSL_ENSURE(aReferencedTable.getLength(),"Foreign key without referencedTableName");
@@ -634,8 +634,8 @@ void OQueryTableView::AddConnection(const OJoinExchangeData& jxdSource, const OJ
OQueryTableWindow* pDestWin = static_cast< OQueryTableWindow*>(jxdDest.pListBox->GetTabWin());
String aSourceFieldName, aDestFieldName;
- aSourceFieldName = jxdSource.pListBox->GetEntryText(jxdSource.pEntry);
- aDestFieldName = jxdDest.pListBox->GetEntryText(jxdDest.pEntry);
+ aSourceFieldName = jxdSource.pListBox->GetEntryText(jxdSource.pEntry);
+ aDestFieldName = jxdDest.pListBox->GetEntryText(jxdDest.pEntry);
OTableConnection* pConn = GetTabConn(pSourceWin,pDestWin,true);
if ( !pConn )
@@ -644,8 +644,8 @@ void OQueryTableView::AddConnection(const OJoinExchangeData& jxdSource, const OJ
OQueryTableConnectionData* pNewConnectionData = new OQueryTableConnectionData(pSourceWin->GetData(), pDestWin->GetData());
TTableConnectionData::value_type aNewConnectionData(pNewConnectionData);
- sal_uInt32 nSourceFieldIndex, nDestFieldIndex;
- ETableFieldType eSourceFieldType, eDestFieldType;
+ sal_uInt32 nSourceFieldIndex, nDestFieldIndex;
+ ETableFieldType eSourceFieldType, eDestFieldType;
// Namen/Position/Typ der beiden betroffenen Felder besorgen ...
// Source
@@ -704,8 +704,8 @@ void OQueryTableView::createNewConnection()
if( openJoinDialog(this,pData,TRUE) )
{
OTableWindowMap* pMap = GetTabWinMap();
- OQueryTableWindow* pSourceWin = static_cast< OQueryTableWindow*>((*pMap)[pData->getReferencingTable()->GetWinName()]);
- OQueryTableWindow* pDestWin = static_cast< OQueryTableWindow*>((*pMap)[pData->getReferencedTable()->GetWinName()]);
+ OQueryTableWindow* pSourceWin = static_cast< OQueryTableWindow*>((*pMap)[pData->getReferencingTable()->GetWinName()]);
+ OQueryTableWindow* pDestWin = static_cast< OQueryTableWindow*>((*pMap)[pData->getReferencedTable()->GetWinName()]);
// first we have to look if the this connection already exists
OTableConnection* pConn = GetTabConn(pSourceWin,pDestWin,true);
sal_Bool bNew = sal_True;
@@ -735,7 +735,7 @@ bool OQueryTableView::RemoveConnection( OTableConnection* _pConnection,sal_Bool
bool bRet = OJoinTableView::RemoveConnection( _pConnection,sal_False);
// add undo action
- addUndoAction( this,
+ addUndoAction( this,
new OQueryDelTabConnUndoAction(this),
static_cast< OQueryTableConnection*>(_pConnection),
sal_True);
@@ -810,9 +810,9 @@ void OQueryTableView::RemoveTabWin(OTableWindow* pTabWin)
modified();
if ( m_pAccessible )
- m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
+ m_pAccessible->notifyAccessibleEvent( AccessibleEventId::CHILD,
makeAny(pTabWin->GetAccessible()),
- Any()
+ Any()
);
}
@@ -820,7 +820,7 @@ void OQueryTableView::RemoveTabWin(OTableWindow* pTabWin)
void OQueryTableView::EnsureVisible(const OTableWindow* pWin)
{
DBG_CHKTHIS(OQueryTableView,NULL);
-
+
Invalidate(INVALIDATE_NOCHILDREN);
OJoinTableView::EnsureVisible(pWin);
}
@@ -830,10 +830,10 @@ void OQueryTableView::GetConnection(OQueryTableConnection* pConn)
{
DBG_CHKTHIS(OQueryTableView,NULL);
// bei mir und dem Dokument einfuegen
-
+
addConnection( pConn );
// invalidieren (damit es neu gezeichnet wird)
- // pConn->Invalidate();
+ // pConn->Invalidate();
}
//------------------------------------------------------------------------
@@ -868,7 +868,7 @@ void OQueryTableView::HideTabWin( OQueryTableWindow* pTabWin, OQueryTabWinUndoAc
break;
}
- pTabWin->Hide(); // nicht zerstoeren, steht im Undo!!
+ pTabWin->Hide(); // nicht zerstoeren, steht im Undo!!
// die Daten zum TabWin muessen auch aus meiner Verantwortung entlassen werden
TTableWindowData* pTabWinDataList = m_pView->getController().getTableWindowData();
@@ -964,8 +964,8 @@ sal_Bool OQueryTableView::ShowTabWin( OQueryTableWindow* pTabWin, OQueryTabWinUn
addConnection(*aIter); // add all connections from the undo action
// each connection should invalidated inside addConnection so we don't need this here any longer
-// if ( !pOwnList->empty() )
-// InvalidateConnections();
+// if ( !pOwnList->empty() )
+// InvalidateConnections();
pTableCon->clear();
// und die Daten des Fensters ebenfalls in Liste (des Docs)
@@ -992,7 +992,7 @@ sal_Bool OQueryTableView::ShowTabWin( OQueryTableWindow* pTabWin, OQueryTabWinUn
// damit habe ich das Doc natuerlich modifiziert
if(!m_pView->getController().isReadOnly())
m_pView->getController().setModified( sal_True );
-
+
m_pView->getController().InvalidateFeature(SID_BROWSER_CLEAR_QUERY);
return bSuccess;
diff --git a/dbaccess/source/ui/querydesign/QueryTextView.cxx b/dbaccess/source/ui/querydesign/QueryTextView.cxx
index cd2e92a4d2cd..5644e889505e 100644
--- a/dbaccess/source/ui/querydesign/QueryTextView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryTextView.cxx
@@ -2,7 +2,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
@@ -62,14 +62,14 @@ OQueryTextView::OQueryTextView(OQueryContainerWindow* _pParent)
m_pEdit->SaveValue();
m_pEdit->SetPosPixel( Point( 0, 0 ) );
m_pEdit->Show();
- // m_pEdit->GrabFocus();
+ // m_pEdit->GrabFocus();
}
// -----------------------------------------------------------------------------
OQueryTextView::~OQueryTextView()
{
DBG_DTOR(OQueryTextView,NULL);
::std::auto_ptr<Window> aTemp(m_pEdit);
- m_pEdit = NULL;
+ m_pEdit = NULL;
}
// -----------------------------------------------------------------------------
void OQueryTextView::GetFocus()
diff --git a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
index 792d283ee8a3..7fee959e767d 100644
--- a/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
+++ b/dbaccess/source/ui/querydesign/QueryViewSwitch.cxx
@@ -2,7 +2,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
@@ -46,11 +46,11 @@ using namespace ::com::sun::star::lang;
DBG_NAME(OQueryViewSwitch)
OQueryViewSwitch::OQueryViewSwitch(OQueryContainerWindow* _pParent, OQueryController& _rController,const Reference< XMultiServiceFactory >& _rFactory)
: m_bAddTableDialogWasVisible(sal_False)
-{
+{
DBG_CTOR(OQueryViewSwitch,NULL);
-
- m_pTextView = new OQueryTextView(_pParent);
- m_pDesignView = new OQueryDesignView( _pParent, _rController, _rFactory );
+
+ m_pTextView = new OQueryTextView(_pParent);
+ m_pDesignView = new OQueryDesignView( _pParent, _rController, _rFactory );
}
// -----------------------------------------------------------------------------
OQueryViewSwitch::~OQueryViewSwitch()
@@ -63,7 +63,7 @@ OQueryViewSwitch::~OQueryViewSwitch()
{
::std::auto_ptr<Window> aTemp(m_pDesignView);
m_pDesignView = NULL;
- }
+ }
}
// -------------------------------------------------------------------------
void OQueryViewSwitch::Construct()
@@ -82,7 +82,7 @@ void OQueryViewSwitch::resizeDocumentView(Rectangle& _rPlayground)
{
m_pTextView->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() );
m_pDesignView->SetPosSizePixel( _rPlayground.TopLeft(), _rPlayground.GetSize() );
-
+
// just for completeness: there is no space left, we occupied it all ...
_rPlayground.SetPos( _rPlayground.BottomRight() );
_rPlayground.SetSize( Size( 0, 0 ) );
@@ -266,8 +266,8 @@ bool OQueryViewSwitch::impl_postViewSwitch( const bool i_bGraphicalDesign, const
{
if ( i_bSuccess )
{
- m_pTextView->Show ( !i_bGraphicalDesign );
- m_pDesignView->Show ( i_bGraphicalDesign );
+ m_pTextView->Show ( !i_bGraphicalDesign );
+ m_pDesignView->Show ( i_bGraphicalDesign );
OAddTableDlg* pAddTabDialog( getAddTableDialog() );
if ( pAddTabDialog )
if ( i_bGraphicalDesign && m_bAddTableDialogWasVisible )
@@ -296,12 +296,12 @@ OAddTableDlg* OQueryViewSwitch::getAddTableDialog()
// -----------------------------------------------------------------------------
sal_Bool OQueryViewSwitch::isSlotEnabled(sal_Int32 _nSlotId)
{
- return m_pDesignView->isSlotEnabled(_nSlotId);
+ return m_pDesignView->isSlotEnabled(_nSlotId);
}
// -----------------------------------------------------------------------------
void OQueryViewSwitch::setSlotEnabled(sal_Int32 _nSlotId,sal_Bool _bEnable)
{
- m_pDesignView->setSlotEnabled(_nSlotId,_bEnable);
+ m_pDesignView->setSlotEnabled(_nSlotId,_bEnable);
}
// -----------------------------------------------------------------------------
void OQueryViewSwitch::SaveUIConfig()
@@ -317,9 +317,9 @@ void OQueryViewSwitch::SetPosSizePixel( Point _rPt,Size _rSize)
m_pTextView->SetPosSizePixel( _rPt,_rSize);
}
// -----------------------------------------------------------------------------
-Reference< XMultiServiceFactory > OQueryViewSwitch::getORB() const
-{
- return m_pDesignView->getORB();
+Reference< XMultiServiceFactory > OQueryViewSwitch::getORB() const
+{
+ return m_pDesignView->getORB();
}
// -----------------------------------------------------------------------------
bool OQueryViewSwitch::reset( ::dbtools::SQLExceptionInfo* _pErrorInfo )
@@ -337,7 +337,7 @@ bool OQueryViewSwitch::reset( ::dbtools::SQLExceptionInfo* _pErrorInfo )
void OQueryViewSwitch::setNoneVisbleRow(sal_Int32 _nRows)
{
if(m_pDesignView)
- m_pDesignView->setNoneVisbleRow(_nRows);
+ m_pDesignView->setNoneVisbleRow(_nRows);
}
// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 9ff9b6133430..6b10e23a4340 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -2,7 +2,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
@@ -65,13 +65,13 @@ using namespace ::com::sun::star::accessibility;
const String g_strOne = String::CreateFromAscii("1");
const String g_strZero = String::CreateFromAscii("0");
-#define DEFAULT_QUERY_COLS 20
-#define DEFAULT_SIZE GetTextWidth(g_strZero) * 30
-#define CHECKBOX_SIZE 10
-#define HANDLE_ID 0
-#define HANDLE_COLUMN_WITDH 70
+#define DEFAULT_QUERY_COLS 20
+#define DEFAULT_SIZE GetTextWidth(g_strZero) * 30
+#define CHECKBOX_SIZE 10
+#define HANDLE_ID 0
+#define HANDLE_COLUMN_WITDH 70
-#define SQL_ISRULEOR2(pParseNode, e1,e2) ((pParseNode)->isRule() && (\
+#define SQL_ISRULEOR2(pParseNode, e1,e2) ((pParseNode)->isRule() && (\
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e1) || \
(pParseNode)->getRuleID() == OSQLParser::RuleID(OSQLParseNode::e2)))
@@ -86,8 +86,8 @@ namespace
{
String sName = _sFieldName;
xub_StrLen nTokenCount = sName.GetTokenCount('.');
- if ( (nTokenCount == 2 && sName.GetToken(1,'.').GetChar(0) == '*' )
- || (nTokenCount == 3 && sName.GetToken(2,'.').GetChar(0) == '*' ) )
+ if ( (nTokenCount == 2 && sName.GetToken(1,'.').GetChar(0) == '*' )
+ || (nTokenCount == 3 && sName.GetToken(2,'.').GetChar(0) == '*' ) )
{
bAsterix = sal_True;
}
@@ -116,7 +116,7 @@ namespace
DBG_NAME(OSelectionBrowseBox)
//------------------------------------------------------------------------------
OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent )
- :EditBrowseBox( pParent,EBBF_NOROWPICTURE, WB_3DLOOK, BROWSER_COLUMNSELECTION | BROWSER_KEEPSELECTION | BROWSER_HIDESELECT |
+ :EditBrowseBox( pParent,EBBF_NOROWPICTURE, WB_3DLOOK, BROWSER_COLUMNSELECTION | BROWSER_KEEPSELECTION | BROWSER_HIDESELECT |
BROWSER_HIDECURSOR | BROWSER_HLINESFULL | BROWSER_VLINESFULL )
,m_aFunctionStrings(ModuleRes(STR_QUERY_FUNCTIONS))
,m_nVisibleCount(0)
@@ -130,18 +130,18 @@ OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent )
DBG_CTOR(OSelectionBrowseBox,NULL);
SetHelpId(HID_CTL_QRYDGNCRIT);
- m_nMode = BROWSER_COLUMNSELECTION | BROWSER_HIDESELECT
- | BROWSER_KEEPSELECTION | BROWSER_HIDECURSOR
- | BROWSER_HLINESFULL | BROWSER_VLINESFULL
- | BROWSER_HEADERBAR_NEW ;
+ m_nMode = BROWSER_COLUMNSELECTION | BROWSER_HIDESELECT
+ | BROWSER_KEEPSELECTION | BROWSER_HIDECURSOR
+ | BROWSER_HLINESFULL | BROWSER_VLINESFULL
+ | BROWSER_HEADERBAR_NEW ;
- m_pTextCell = new Edit(&GetDataWindow(), 0);
- // m_pTextCell->EnableSpecialCheck(sal_False);
- m_pVisibleCell = new CheckBoxControl(&GetDataWindow());
- m_pTableCell = new ListBoxControl(&GetDataWindow()); m_pTableCell->SetDropDownLineCount( 20 );
- m_pFieldCell = new ComboBoxControl(&GetDataWindow()); m_pFieldCell->SetDropDownLineCount( 20 );
- m_pOrderCell = new ListBoxControl(&GetDataWindow());
- m_pFunctionCell = new ListBoxControl(&GetDataWindow()); m_pFunctionCell->SetDropDownLineCount( 20 );
+ m_pTextCell = new Edit(&GetDataWindow(), 0);
+ // m_pTextCell->EnableSpecialCheck(sal_False);
+ m_pVisibleCell = new CheckBoxControl(&GetDataWindow());
+ m_pTableCell = new ListBoxControl(&GetDataWindow()); m_pTableCell->SetDropDownLineCount( 20 );
+ m_pFieldCell = new ComboBoxControl(&GetDataWindow()); m_pFieldCell->SetDropDownLineCount( 20 );
+ m_pOrderCell = new ListBoxControl(&GetDataWindow());
+ m_pFunctionCell = new ListBoxControl(&GetDataWindow()); m_pFunctionCell->SetDropDownLineCount( 20 );
m_pVisibleCell->SetHelpId(HID_QRYDGN_ROW_VISIBLE);
m_pTableCell->SetHelpId(HID_QRYDGN_ROW_TABLE);
@@ -153,8 +153,8 @@ OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent )
// TriState der ::com::sun::star::form::CheckBox abschalten
m_pVisibleCell->GetBox().EnableTriState( sal_False );
-// m_pEmptyEntry = new OTableFieldDesc();
-// m_pEmptyEntry->SetColWidth(DEFAULT_SIZE);
+// m_pEmptyEntry = new OTableFieldDesc();
+// m_pEmptyEntry->SetColWidth(DEFAULT_SIZE);
Font aTitleFont = OutputDevice::GetDefaultFont( DEFAULTFONT_SANS_UNICODE,Window::GetSettings().GetLanguage(),DEFAULTFONT_FLAGS_ONLYONE);
aTitleFont.SetSize(Size(0, 6));
@@ -180,7 +180,7 @@ OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent )
OSelectionBrowseBox::~OSelectionBrowseBox()
{
DBG_DTOR(OSelectionBrowseBox,NULL);
-
+
delete m_pTextCell;
delete m_pVisibleCell;
delete m_pFieldCell;
@@ -208,23 +208,23 @@ void OSelectionBrowseBox::initialize()
,IParseContext::KEY_FUSION
,IParseContext::KEY_INTERSECTION
};
-
+
String sGroup = m_aFunctionStrings.GetToken(m_aFunctionStrings.GetTokenCount() - 1);
m_aFunctionStrings = m_aFunctionStrings.GetToken(0);
-
+
for (size_t i = 0; i < SAL_N_ELEMENTS(eFunctions); ++i)
{
m_aFunctionStrings += String(RTL_CONSTASCII_USTRINGPARAM(";"));
m_aFunctionStrings += String(ByteString(rContext.getIntlKeywordAscii(eFunctions[i])),RTL_TEXTENCODING_UTF8);
-
+
} // for (sal_Int32 i = 0; i < SAL_N_ELEMENTS(eFunctions) ; ++i)
m_aFunctionStrings += String(RTL_CONSTASCII_USTRINGPARAM(";"));
m_aFunctionStrings += sGroup;
-
+
// Diese Funktionen stehen nur unter CORE zur Verfügung
if ( lcl_SupportsCoreSQLGrammar(xConnection) )
{
- xub_StrLen nCount = m_aFunctionStrings.GetTokenCount();
+ xub_StrLen nCount = m_aFunctionStrings.GetTokenCount();
for (xub_StrLen nIdx = 0; nIdx < nCount; nIdx++)
m_pFunctionCell->InsertEntry(m_aFunctionStrings.GetToken(nIdx));
}
@@ -273,7 +273,7 @@ namespace
public:
OSelectionBrwBoxHeader(OSelectionBrowseBox* pParent);
};
- OSelectionBrwBoxHeader::OSelectionBrwBoxHeader(OSelectionBrowseBox* pParent)
+ OSelectionBrwBoxHeader::OSelectionBrwBoxHeader(OSelectionBrowseBox* pParent)
: ::svt::EditBrowserHeader(pParent,WB_BUTTONSTYLE|WB_DRAG)
,m_pBrowseBox(pParent)
{
@@ -334,7 +334,7 @@ void OSelectionBrowseBox::ColumnMoved( USHORT nColId,BOOL _bCreateUndo )
OTabFieldMovedUndoAct* pUndoAct = new OTabFieldMovedUndoAct(this);
pUndoAct->SetColumnPosition( nOldPos + 1);
pUndoAct->SetTabFieldDescr(pOldEntry);
-
+
getDesignView()->getController().addUndoActionAndInvalidate(pUndoAct);
} // if ( !m_bInUndoMode && _bCreateUndo )
}
@@ -355,8 +355,8 @@ void OSelectionBrowseBox::Init()
SetHeaderBar(pNewHeaderBar);
SetMode(m_nMode);
-
- Font aFont( GetDataWindow().GetFont() );
+
+ Font aFont( GetDataWindow().GetFont() );
aFont.SetWeight( WEIGHT_NORMAL );
GetDataWindow().SetFont( aFont );
@@ -384,9 +384,9 @@ void OSelectionBrowseBox::Init()
{
Reference< XDatabaseMetaData > xMetaData = xConnection->getMetaData();
m_nMaxColumns = xMetaData.is() ? xMetaData->getMaxColumnsInSelect() : 0;
-
+
}
- else
+ else
m_nMaxColumns = 0;
}
catch(const SQLException&)
@@ -405,7 +405,7 @@ void OSelectionBrowseBox::PreFill()
if (GetCurRow() != 0)
GoToRow(0);
-
+
static_cast< OQueryController& >( getDesignView()->getController() ).clearFields();
DeactivateCell();
@@ -419,7 +419,7 @@ void OSelectionBrowseBox::ClearAll()
{
DBG_CHKTHIS(OSelectionBrowseBox,NULL);
SetUpdateMode(sal_False);
-
+
OTableFields::reverse_iterator aIter = getFields().rbegin();
for ( ;aIter != getFields().rend(); ++aIter )
{
@@ -514,7 +514,7 @@ void OSelectionBrowseBox::InitController(CellControllerRef& /*rController*/, lon
aField.AppendAscii(".*");
}
m_pFieldCell->SetText(aField);
- } break;
+ } break;
case BROW_TABLE_ROW:
{
m_pTableCell->Clear();
@@ -537,7 +537,7 @@ void OSelectionBrowseBox::InitController(CellControllerRef& /*rController*/, lon
m_pTableCell->SelectEntry(String(ModuleRes(STR_QUERY_NOTABLE)));
}
}
- } break;
+ } break;
case BROW_VIS_ROW:
{
m_pVisibleCell->GetBox().Check(pEntry->IsVisible());
@@ -557,7 +557,7 @@ void OSelectionBrowseBox::InitController(CellControllerRef& /*rController*/, lon
OQueryDesignView* paDView = getDesignView();
InfoBox(paDView, aMessage).Execute();
}
- } break;
+ } break;
case BROW_ORDER_ROW:
m_pOrderCell->SelectEntryPos(
sal::static_int_cast< USHORT >(pEntry->GetOrderDir()));
@@ -571,7 +571,7 @@ void OSelectionBrowseBox::InitController(CellControllerRef& /*rController*/, lon
break;
default:
{
- sal_uInt16 nIdx = sal_uInt16(nCellIndex - BROW_CRIT1_ROW);
+ sal_uInt16 nIdx = sal_uInt16(nCellIndex - BROW_CRIT1_ROW);
setTextCellContext(pEntry,pEntry->GetCriteria( nIdx ),HID_QRYDGN_ROW_CRIT);
}
}
@@ -624,7 +624,7 @@ sal_Bool OSelectionBrowseBox::fillColumnRef(const ::rtl::OUString& _sColumnName,
sal_Bool bError = sal_False;
::comphelper::UStringMixEqual bCase(_xMetaData->supportsMixedCaseQuotedIdentifiers());
// check if the table name is the same
- if ( _sTableRange.getLength() && (bCase(_pEntry->GetTable(),_sTableRange) || bCase(_pEntry->GetAlias(),_sTableRange)) )
+ if ( _sTableRange.getLength() && (bCase(_pEntry->GetTable(),_sTableRange) || bCase(_pEntry->GetAlias(),_sTableRange)) )
{ // a table was already inserted and the tables contains that column name
if ( !_pEntry->GetTabWindow() )
@@ -681,7 +681,7 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
clearEntryFunctionField(_sFieldName,_pEntry,_bListAction,_pEntry->GetColumnId());
return bError;
}
-
+
Reference<XConnection> xConnection( rController.getConnection() );
Reference< XDatabaseMetaData > xMetaData;
if ( xConnection.is() )
@@ -713,7 +713,7 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
sSql += ::dbtools::quoteName( xMetaData->getIdentifierQuoteString(), _sFieldName );
else
sSql += _sFieldName;
-
+
if ( _pEntry->isAggreateFunction() )
{
DBG_ASSERT(_pEntry->GetFunction().getLength(),"Functionname darf hier nicht leer sein! ;-(");
@@ -752,8 +752,8 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
{
_pEntry->SetField(_sFieldName);
clearEntryFunctionField(_sFieldName,_pEntry,_bListAction,_pEntry->GetColumnId());
- } // travel through the select column parse node
- else
+ } // travel through the select column parse node
+ else
{
::comphelper::UStringMixEqual bCase(xMetaData->supportsMixedCaseQuotedIdentifiers());
@@ -791,7 +791,7 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
}
::connectivity::OSQLParseNode* pColumnRef = pChild->getChild(0);
- if (
+ if (
pColumnRef->count() == 3 &&
SQL_ISPUNCTUATION(pColumnRef->getChild(0),"(") &&
SQL_ISPUNCTUATION(pColumnRef->getChild(2),")")
@@ -851,24 +851,24 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
}
else
OSL_ENSURE(0,"Unsupported function inserted!");
-
+
}
else
{
// so we first clear the function field
clearEntryFunctionField(_sFieldName,aSelEntry,_bListAction,nColumnId);
::rtl::OUString sFunction;
- pColumnRef->parseNodeToStr( sFunction,
+ pColumnRef->parseNodeToStr( sFunction,
xConnection,
&rController.getParser().getContext(),
sal_True,
sal_True); // quote is to true because we need quoted elements inside the function
getDesignView()->fillFunctionInfo(pColumnRef,sFunction,aSelEntry);
-
+
if( SQL_ISRULEOR2(pColumnRef,position_exp,extract_exp) ||
SQL_ISRULEOR2(pColumnRef,fold,char_substring_fct) ||
- SQL_ISRULEOR2(pColumnRef,length_exp,char_value_fct) )
+ SQL_ISRULEOR2(pColumnRef,length_exp,char_value_fct) )
// a calculation has been found ( can be calc and function )
{
// now parse the whole statement
@@ -882,7 +882,7 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
aSelEntry->SetFunctionType(nNewFunctionType);
aSelEntry->SetField(sParameters);
}
- else
+ else
{
aSelEntry->SetFieldAlias(sColumnAlias);
if ( SQL_ISRULE(pColumnRef,set_fct_spec) )
@@ -898,11 +898,11 @@ sal_Bool OSelectionBrowseBox::saveField(const String& _sFieldName,OTableFieldDes
aSelEntry->SetFunctionType(FKT_NUMERIC | FKT_OTHER);
}
}
-
+
aSelEntry->SetAlias(::rtl::OUString());
notifyTableFieldChanged(sOldAlias,aSelEntry->GetAlias(),_bListAction, nColumnId);
}
-
+
}
if ( i > 0 && !InsertField(aSelEntry,BROWSER_INVALIDID,sal_True,sal_False).is() ) // may we have to append more than one field
{ // the field could not be isnerted
@@ -928,8 +928,8 @@ sal_Bool OSelectionBrowseBox::SaveModified()
pEntry = getEntry(nCurrentColumnPos - 1);
sal_Bool bWasEmpty = pEntry.is() ? pEntry->IsEmpty() : sal_False;
- sal_Bool bError = sal_False;
- sal_Bool bListAction = sal_False;
+ sal_Bool bError = sal_False;
+ sal_Bool bListAction = sal_False;
if (pEntry.is() && Controller().Is() && Controller()->IsModified())
{
@@ -943,9 +943,9 @@ sal_Bool OSelectionBrowseBox::SaveModified()
{
sal_Bool bOldValue = m_pVisibleCell->GetBox().GetSavedValue() != STATE_NOCHECK;
strOldCellContents = bOldValue ? g_strOne : g_strZero;
- sNewValue = !bOldValue ? g_strOne : g_strZero;
+ sNewValue = !bOldValue ? g_strOne : g_strZero;
}
- if((m_bOrderByUnRelated || pEntry->GetOrderDir() == ORDER_NONE) &&
+ if((m_bOrderByUnRelated || pEntry->GetOrderDir() == ORDER_NONE) &&
(m_bGroupByUnRelated || !pEntry->IsGroupBy()))
{
pEntry->SetVisible(m_pVisibleCell->GetBox().IsChecked());
@@ -968,7 +968,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
pNewEntry->SetColumnId( pEntry->GetColumnId() );
::std::replace(getFields().begin(),getFields().end(),pEntry,pNewEntry);
sal_uInt16 nCol = GetCurColumnId();
- for (int i = 0; i < m_nVisibleCount; i++) // Spalte neu zeichnen
+ for (int i = 0; i < m_nVisibleCount; i++) // Spalte neu zeichnen
RowModified(i,nCol);
}
else
@@ -1021,7 +1021,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
if ( m_pTableCell->GetSelectEntryPos() != 0 )
{
pEntry->SetAlias(aAliasName);
- // we have to set the table name as well as the table window
+ // we have to set the table name as well as the table window
OJoinTableView::OTableWindowMap* pTabWinList = getDesignView()->getTableView()->GetTabWinMap();
if (pTabWinList)
{
@@ -1044,8 +1044,8 @@ sal_Bool OSelectionBrowseBox::SaveModified()
pEntry->SetTabWindow(NULL);
}
sNewValue = pEntry->GetAlias();
-
- } break;
+
+ } break;
case BROW_ORDER_ROW:
{
@@ -1061,7 +1061,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
RowModified(GetBrowseRow(BROW_VIS_ROW), GetCurColumnId());
}
sNewValue = String::CreateFromInt32((sal_uInt16)pEntry->GetOrderDir());
- } break;
+ } break;
case BROW_COLUMNALIAS_ROW:
strOldCellContents = pEntry->GetFieldAlias();
@@ -1073,14 +1073,14 @@ sal_Bool OSelectionBrowseBox::SaveModified()
strOldCellContents = pEntry->GetFunction();
sal_uInt16 nPos = m_pFunctionCell->GetSelectEntryPos();
// Diese Funktionen stehen nur unter CORE zur Verfügung
- String sFunctionName = m_pFunctionCell->GetEntry(nPos);
- String sGroupFunctionName = m_aFunctionStrings.GetToken(m_aFunctionStrings.GetTokenCount()-1);
+ String sFunctionName = m_pFunctionCell->GetEntry(nPos);
+ String sGroupFunctionName = m_aFunctionStrings.GetToken(m_aFunctionStrings.GetTokenCount()-1);
sal_Bool bGroupBy = sal_False;
if ( sGroupFunctionName.Equals(sFunctionName) ) // check if the function name is GROUP
{
bGroupBy = sal_True;
-
- if ( !m_bGroupByUnRelated && !pEntry->IsVisible() )
+
+ if ( !m_bGroupByUnRelated && !pEntry->IsVisible() )
{
// we have to change the visblie flag, so we must append also an undo action
pEntry->SetVisible(sal_True);
@@ -1103,9 +1103,9 @@ sal_Bool OSelectionBrowseBox::SaveModified()
pEntry->SetFunction(String());
pEntry->SetFunctionType(pEntry->GetFunctionType() & ~FKT_AGGREGATE );
}
-
+
pEntry->SetGroupBy(bGroupBy);
-
+
sNewValue = sFunctionName;
}
break;
@@ -1115,7 +1115,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
if(!xConnection.is())
break;
- sal_uInt16 nIdx = sal_uInt16(nRow - BROW_CRIT1_ROW);
+ sal_uInt16 nIdx = sal_uInt16(nRow - BROW_CRIT1_ROW);
String aText = m_pTextCell->GetText();
aText.EraseLeadingChars();
@@ -1125,12 +1125,12 @@ sal_Bool OSelectionBrowseBox::SaveModified()
::rtl::OUString aErrorMsg;
Reference<XPropertySet> xColumn;
OSQLParseNode* pParseNode = getDesignView()->getPredicateTreeFromEntry(pEntry,aText,aErrorMsg,xColumn);
-
+
if (pParseNode)
{
pParseNode->parseNodeToPredicateStr(aCrit,
xConnection,
- static_cast<OQueryController&>(getDesignView()->getController()).getNumberFormatter(),
+ static_cast<OQueryController&>(getDesignView()->getController()).getNumberFormatter(),
xColumn,
getDesignView()->getLocale(),
static_cast<sal_Char>(getDesignView()->getDecimalSeparator().toChar()),
@@ -1138,7 +1138,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
delete pParseNode;
}
else
- {
+ {
if(xColumn.is())
{
sal_Int32 nType = 0;
@@ -1161,16 +1161,16 @@ sal_Bool OSelectionBrowseBox::SaveModified()
;
}
::connectivity::OSQLParser& rParser = static_cast<OQueryController&>(getDesignView()->getController()).getParser();
- pParseNode = rParser.predicateTree(aErrorMsg,
- aText,
- static_cast<OQueryController&>(getDesignView()->getController()).getNumberFormatter(),
+ pParseNode = rParser.predicateTree(aErrorMsg,
+ aText,
+ static_cast<OQueryController&>(getDesignView()->getController()).getNumberFormatter(),
xColumn);
if (pParseNode)
{
- pParseNode->parseNodeToPredicateStr(aCrit,
+ pParseNode->parseNodeToPredicateStr(aCrit,
xConnection,
- static_cast<OQueryController&>(getDesignView()->getController()).getNumberFormatter(),
- xColumn,
+ static_cast<OQueryController&>(getDesignView()->getController()).getNumberFormatter(),
+ xColumn,
getDesignView()->getLocale(),
static_cast<sal_Char>(getDesignView()->getDecimalSeparator().toChar()),
&(static_cast<OQueryController&>(getDesignView()->getController()).getParser().getContext()));
@@ -1194,7 +1194,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
bError = sal_True;
}
}
- // }
+ // }
}
strOldCellContents = pEntry->GetCriteria(nIdx);
pEntry->SetCriteria(nIdx, aCrit);
@@ -1219,7 +1219,7 @@ sal_Bool OSelectionBrowseBox::SaveModified()
{
// und noch die Undo-Action fuer das Ganze
appendUndoAction(strOldCellContents,sNewValue,nRow);
-
+
}
}
@@ -1284,7 +1284,7 @@ void OSelectionBrowseBox::PaintStatusCell(OutputDevice& rDev, const Rectangle& r
DBG_CHKTHIS(OSelectionBrowseBox,NULL);
Rectangle aRect(rRect);
aRect.TopLeft().Y() -= 2;
- String aLabel(ModuleRes(STR_QUERY_HANDLETEXT));
+ String aLabel(ModuleRes(STR_QUERY_HANDLETEXT));
// ab BROW_CRIT2_ROW werden alle Zeilen mit "oder" angegeben
xub_StrLen nToken = (xub_StrLen) (m_nSeekRow >= GetBrowseRow(BROW_CRIT2_ROW))
@@ -1338,7 +1338,7 @@ void OSelectionBrowseBox::RemoveField(sal_uInt16 nColumnId )
OSL_ENSURE(getFields().size() > sal_uInt16(nPos-1),"ID is to great!");
OTableFieldDescRef pDesc = getEntry((sal_uInt32)(nPos - 1)) ;
- pDesc->SetColWidth( (sal_uInt16)GetColumnWidth(nColumnId) ); // hat er sich vorher leider nicht gemerkt
+ pDesc->SetColWidth( (sal_uInt16)GetColumnWidth(nColumnId) ); // hat er sich vorher leider nicht gemerkt
// UndoAction erzeugen
if ( !m_bInUndoMode )
@@ -1410,7 +1410,7 @@ void OSelectionBrowseBox::KeyInput( const KeyEvent& rEvt )
DBG_CHKTHIS(OSelectionBrowseBox,NULL);
if (IsColumnSelected(GetCurColumnId()))
{
- if (rEvt.GetKeyCode().GetCode() == KEY_DELETE && // Delete rows
+ if (rEvt.GetKeyCode().GetCode() == KEY_DELETE && // Delete rows
!rEvt.GetKeyCode().IsShift() &&
!rEvt.GetKeyCode().IsMod1())
{
@@ -1427,7 +1427,7 @@ sal_Int8 OSelectionBrowseBox::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
{
DBG_CHKTHIS(OSelectionBrowseBox,NULL);
sal_Int8 nDropAction = DND_ACTION_NONE;
- if ( rEvt.GetRow() >= -1 )
+ if ( rEvt.GetRow() >= -1 )
{
if ( IsEditing() )
{
@@ -1478,7 +1478,7 @@ OTableFieldDescRef OSelectionBrowseBox::AppendNewCol( sal_uInt16 nCnt)
getFields().push_back(pEmptyEntry);
USHORT nColumnId = sal::static_int_cast< USHORT >(getFields().size());
pEmptyEntry->SetColumnId( nColumnId );
-
+
InsertDataColumn( nColumnId , String(), DEFAULT_SIZE, HIB_STDSTYLE, HEADERBAR_APPEND);
}
@@ -1545,7 +1545,7 @@ Rectangle OSelectionBrowseBox::GetInvalidRect( sal_uInt16 nColId )
//////////////////////////////////////////////////////////////////////
// Dann wird die linke Seite angepasst
- Rectangle aFieldRect(GetCellRect( 0, nColId )); // used instead of GetFieldRectPixel
+ Rectangle aFieldRect(GetCellRect( 0, nColId )); // used instead of GetFieldRectPixel
aInvalidRect.Left() = aFieldRect.Left();
return aInvalidRect;
@@ -1567,9 +1567,9 @@ void OSelectionBrowseBox::InsertColumn(OTableFieldDescRef pEntry, USHORT& _nColu
// remember the column id of the current positon
USHORT nColumnId = GetColumnId(_nColumnPostion);
// Wenn zu klein oder zu gross, auf Ende der Liste setzen
- if ((_nColumnPostion == BROWSER_INVALIDID) || (_nColumnPostion >= getFields().size())) // Anhaengen des Feldes
+ if ((_nColumnPostion == BROWSER_INVALIDID) || (_nColumnPostion >= getFields().size())) // Anhaengen des Feldes
{
- if (FindFirstFreeCol(_nColumnPostion) == NULL) // keine freie Column mehr
+ if (FindFirstFreeCol(_nColumnPostion) == NULL) // keine freie Column mehr
{
AppendNewCol(1);
_nColumnPostion = sal::static_int_cast< USHORT >(
@@ -1581,7 +1581,7 @@ void OSelectionBrowseBox::InsertColumn(OTableFieldDescRef pEntry, USHORT& _nColu
pEntry->SetColumnId( nColumnId );
getFields()[ _nColumnPostion - 1] = pEntry;
}
-
+
// check if the column ids are identical, if not we have to move
if ( pEntry->GetColumnId() != nColumnId )
{
@@ -1731,7 +1731,7 @@ void OSelectionBrowseBox::AddGroupBy( const OTableFieldDescRef& rInfo , sal_uInt
const Reference<XDatabaseMetaData> xMeta = xConnection->getMetaData();
const ::comphelper::UStringMixEqual bCase(xMeta.is() && xMeta->supportsMixedCaseQuotedIdentifiers());
//sal_Bool bAppend = sal_False;
-
+
OTableFields& rFields = getFields();
OTableFields::iterator aIter = rFields.begin();
OTableFields::iterator aEnd = rFields.end();
@@ -1740,11 +1740,11 @@ void OSelectionBrowseBox::AddGroupBy( const OTableFieldDescRef& rInfo , sal_uInt
pEntry = *aIter;
OSL_ENSURE(pEntry.is(),"OTableFieldDescRef was null!");
- const ::rtl::OUString aField = pEntry->GetField();
- const ::rtl::OUString aAlias = pEntry->GetAlias();
+ const ::rtl::OUString aField = pEntry->GetField();
+ const ::rtl::OUString aAlias = pEntry->GetAlias();
- if (bCase(aField,rInfo->GetField()) &&
- bCase(aAlias,rInfo->GetAlias()) &&
+ if (bCase(aField,rInfo->GetField()) &&
+ bCase(aAlias,rInfo->GetAlias()) &&
pEntry->GetFunctionType() == rInfo->GetFunctionType() &&
pEntry->GetFunction() == rInfo->GetFunction())
{
@@ -1764,7 +1764,7 @@ void OSelectionBrowseBox::AddGroupBy( const OTableFieldDescRef& rInfo , sal_uInt
break;
}
}
-
+
}
}
@@ -1820,20 +1820,20 @@ void OSelectionBrowseBox::AddCondition( const OTableFieldDescRef& rInfo, const S
for(;aIter != aEnd;++aIter)
{
OTableFieldDescRef pEntry = *aIter;
- const ::rtl::OUString aField = pEntry->GetField();
- const ::rtl::OUString aAlias = pEntry->GetAlias();
+ const ::rtl::OUString aField = pEntry->GetField();
+ const ::rtl::OUString aAlias = pEntry->GetAlias();
- if (bCase(aField,rInfo->GetField()) &&
- bCase(aAlias,rInfo->GetAlias()) &&
+ if (bCase(aField,rInfo->GetField()) &&
+ bCase(aAlias,rInfo->GetAlias()) &&
pEntry->GetFunctionType() == rInfo->GetFunctionType() &&
- pEntry->GetFunction() == rInfo->GetFunction() &&
+ pEntry->GetFunction() == rInfo->GetFunction() &&
pEntry->IsGroupBy() == rInfo->IsGroupBy() )
{
if ( pEntry->isNumericOrAggreateFunction() && rInfo->IsGroupBy() )
pEntry->SetGroupBy(sal_False);
else
{
-// pEntry->SetGroupBy(rInfo->IsGroupBy());
+// pEntry->SetGroupBy(rInfo->IsGroupBy());
if(!m_bGroupByUnRelated && pEntry->IsGroupBy())
pEntry->SetVisible(sal_True);
}
@@ -1914,10 +1914,10 @@ void OSelectionBrowseBox::AddOrder( const OTableFieldDescRef& rInfo, const EOrde
for(;aIter != aEnd;++aIter)
{
pEntry = *aIter;
- ::rtl::OUString aField = pEntry->GetField();
- ::rtl::OUString aAlias = pEntry->GetAlias();
+ ::rtl::OUString aField = pEntry->GetField();
+ ::rtl::OUString aAlias = pEntry->GetAlias();
- if (bCase(aField,rInfo->GetField()) &&
+ if (bCase(aField,rInfo->GetField()) &&
bCase(aAlias,rInfo->GetAlias()))
{
sal_uInt32 nPos = aIter - rFields.begin();
@@ -1972,12 +1972,12 @@ void OSelectionBrowseBox::CellModified()
{
case BROW_VIS_ROW:
{
- OTableFieldDescRef pEntry = getEntry(GetColumnPos(GetCurColumnId()) - 1);
+ OTableFieldDescRef pEntry = getEntry(GetColumnPos(GetCurColumnId()) - 1);
sal_uInt16 nIdx = m_pOrderCell->GetSelectEntryPos();
- if(!m_bOrderByUnRelated && nIdx > 0 &&
- nIdx != sal_uInt16(-1) &&
- !pEntry->IsEmpty() &&
+ if(!m_bOrderByUnRelated && nIdx > 0 &&
+ nIdx != sal_uInt16(-1) &&
+ !pEntry->IsEmpty() &&
pEntry->GetOrderDir() != ORDER_NONE)
{
m_pVisibleCell->GetBox().Check();
@@ -2008,7 +2008,7 @@ Size OSelectionBrowseBox::CalcOptimalSize( const Size& _rAvailable )
Size aReturn( _rAvailable.Width(), GetTitleHeight() );
aReturn.Height() += ( m_nVisibleCount ? m_nVisibleCount : 15 ) * GetDataRowHeight();
- aReturn.Height() += 40; // just some space
+ aReturn.Height() += 40; // just some space
return aReturn;
}
@@ -2025,7 +2025,7 @@ void OSelectionBrowseBox::Command(const CommandEvent& rEvt)
if (!rEvt.IsMouseEvent())
{
- if ( 1 == GetSelectColumnCount() )
+ if ( 1 == GetSelectColumnCount() )
{
sal_uInt16 nSelId = GetColumnId(
sal::static_int_cast< USHORT >(
@@ -2233,7 +2233,7 @@ String OSelectionBrowseBox::GetCellText(long nRow, sal_uInt16 nColId) const
case BROW_FIELD_ROW:
{
String aField = pEntry->GetField();
- if (aField.GetChar(0) == '*') // * durch alias.* ersetzen
+ if (aField.GetChar(0) == '*') // * durch alias.* ersetzen
{
aField = pEntry->GetAlias();
if(aField.Len())
@@ -2241,7 +2241,7 @@ String OSelectionBrowseBox::GetCellText(long nRow, sal_uInt16 nColId) const
aField += '*';
}
aText = aField;
- } break;
+ } break;
case BROW_ORDER_ROW:
if (pEntry->GetOrderDir() != ORDER_NONE)
aText = String(ModuleRes(STR_QUERY_SORTTEXT) ).GetToken(sal::static_int_cast< USHORT >(pEntry->GetOrderDir()));
@@ -2339,7 +2339,7 @@ sal_Bool OSelectionBrowseBox::GetFunctionName(sal_uInt32 _nFunctionTokenId,Strin
String OSelectionBrowseBox::GetCellContents(sal_Int32 nCellIndex, USHORT nColId)
{
DBG_CHKTHIS(OSelectionBrowseBox,NULL);
- // DBG_ASSERT(nCellIndex < (GetRowCount()-1),"CellIndex ist zu gross");
+ // DBG_ASSERT(nCellIndex < (GetRowCount()-1),"CellIndex ist zu gross");
if ( GetCurColumnId() == nColId && !m_bInUndoMode )
SaveModified();
@@ -2375,7 +2375,7 @@ void OSelectionBrowseBox::SetCellContents(sal_Int32 nRow, USHORT nColId, const S
OTableFieldDescRef pEntry = getEntry(nPos - 1);
DBG_ASSERT(pEntry != NULL, "OSelectionBrowseBox::SetCellContents : invalid column id, prepare for GPF ... ");
-
+
switch (nRow)
{
case BROW_VIS_ROW:
@@ -2391,7 +2391,7 @@ void OSelectionBrowseBox::SetCellContents(sal_Int32 nRow, USHORT nColId, const S
{
sal_uInt16 nIdx = (sal_uInt16)strNewText.ToInt32();
pEntry->SetOrderDir(EOrderDir(nIdx));
- } break;
+ } break;
case BROW_COLUMNALIAS_ROW:
pEntry->SetFieldAlias(strNewText);
break;
@@ -2406,8 +2406,8 @@ void OSelectionBrowseBox::SetCellContents(sal_Int32 nRow, USHORT nColId, const S
pEntry->SetFunctionType(nFunctionType);
if ( pEntry->IsGroupBy() && !sGroupFunctionName.EqualsIgnoreCaseAscii(strNewText) )
pEntry->SetGroupBy(sal_False);
-
-
+
+
if ( sGroupFunctionName.EqualsIgnoreCaseAscii(strNewText) )
pEntry->SetGroupBy(sal_True);
else if ( strNewText.Len() )
@@ -2415,7 +2415,7 @@ void OSelectionBrowseBox::SetCellContents(sal_Int32 nRow, USHORT nColId, const S
nFunctionType |= FKT_AGGREGATE;
pEntry->SetFunctionType(nFunctionType);
}
- } break;
+ } break;
default:
pEntry->SetCriteria(sal_uInt16(nRow - BROW_CRIT1_ROW), strNewText);
}
@@ -2632,7 +2632,7 @@ void OSelectionBrowseBox::stopTimer()
{
m_bStopTimer = sal_True;
if (m_timerInvalidate.IsActive())
- m_timerInvalidate.Stop();
+ m_timerInvalidate.Stop();
}
// -----------------------------------------------------------------------------
void OSelectionBrowseBox::startTimer()
@@ -2661,7 +2661,7 @@ void OSelectionBrowseBox::setTextCellContext(const OTableFieldDescRef& _rEntry,c
m_pTextCell->ClearModifyFlag();
if (!m_pTextCell->HasFocus())
m_pTextCell->GrabFocus();
-
+
enableControl(_rEntry,m_pTextCell);
if (m_pTextCell->GetHelpId() != _nHelpId)
@@ -2712,7 +2712,7 @@ void OSelectionBrowseBox::DeactivateCell(sal_Bool _bUpdate)
// -----------------------------------------------------------------------------
::rtl::OUString OSelectionBrowseBox::GetRowDescription( sal_Int32 _nRow ) const
{
- String aLabel(ModuleRes(STR_QUERY_HANDLETEXT));
+ String aLabel(ModuleRes(STR_QUERY_HANDLETEXT));
// ab BROW_CRIT2_ROW werden alle Zeilen mit "oder" angegeben
xub_StrLen nToken = (xub_StrLen) (_nRow >= GetBrowseRow(BROW_CRIT2_ROW))
@@ -2721,7 +2721,7 @@ void OSelectionBrowseBox::DeactivateCell(sal_Bool _bUpdate)
return ::rtl::OUString(aLabel.GetToken(nToken));
}
// -----------------------------------------------------------------------------
-::rtl::OUString OSelectionBrowseBox::GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eObjType,sal_Int32 _nPosition) const
+::rtl::OUString OSelectionBrowseBox::GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eObjType,sal_Int32 _nPosition) const
{
::rtl::OUString sRetText;
switch( _eObjType )
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx
index 4ecb2e8e0245..5fa263b85f13 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.hxx
@@ -2,7 +2,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
@@ -42,151 +42,151 @@ namespace connectivity
}
namespace dbaui
-{
+{
//==================================================================
-#define SIZ_NONE 0
-#define SIZ_TOP 1
-#define SIZ_BOTTOM 2
-#define SIZ_LEFT 4
-#define SIZ_RIGHT 8
-
-#define BROW_FIELD_ROW 0
-#define BROW_COLUMNALIAS_ROW 1
-#define BROW_TABLE_ROW 2
-#define BROW_ORDER_ROW 3
-#define BROW_VIS_ROW 4
-#define BROW_FUNCTION_ROW 5
-#define BROW_CRIT1_ROW 6
-#define BROW_CRIT2_ROW 7
-#define BROW_CRIT3_ROW 8
-#define BROW_CRIT4_ROW 9
-#define BROW_CRIT5_ROW 10
-#define BROW_CRIT6_ROW 11
-#define BROW_ROW_CNT 12
+#define SIZ_NONE 0
+#define SIZ_TOP 1
+#define SIZ_BOTTOM 2
+#define SIZ_LEFT 4
+#define SIZ_RIGHT 8
+
+#define BROW_FIELD_ROW 0
+#define BROW_COLUMNALIAS_ROW 1
+#define BROW_TABLE_ROW 2
+#define BROW_ORDER_ROW 3
+#define BROW_VIS_ROW 4
+#define BROW_FUNCTION_ROW 5
+#define BROW_CRIT1_ROW 6
+#define BROW_CRIT2_ROW 7
+#define BROW_CRIT3_ROW 8
+#define BROW_CRIT4_ROW 9
+#define BROW_CRIT5_ROW 10
+#define BROW_CRIT6_ROW 11
+#define BROW_ROW_CNT 12
//==================================================================
class OQueryDesignView;
class OSelectionBrowseBox : public ::svt::EditBrowseBox
{
friend class OQueryDesignView;
- ::std::vector<bool> m_bVisibleRow; // an Pos steht die RowId
- Timer m_timerInvalidate;
-
- long m_nSeekRow;
- BrowserMode m_nMode; // Merken des BrowseModes
- Edit* m_pTextCell;
- ::svt::CheckBoxControl* m_pVisibleCell;
- ::svt::ComboBoxControl* m_pFieldCell;
- ::svt::ListBoxControl* m_pFunctionCell;
- ::svt::ListBoxControl* m_pTableCell;
- ::svt::ListBoxControl* m_pOrderCell;
-
- OTableFieldDescRef m_pEmptyEntry; // default entry in the list may reference more than once
-
- sal_Int32 m_nMaxColumns; // maximale Anzahl der Spalten in einem Select-Statement
-
- String m_aFunctionStrings;
- sal_uInt16 m_nVisibleCount; // Anzahl der max sichtbaren Zeilen
- sal_Bool m_bOrderByUnRelated;
- sal_Bool m_bGroupByUnRelated;
- sal_Bool m_bStopTimer;
- sal_Bool m_bWasEditing;
- sal_Bool m_bDisableErrorBox;
- sal_Bool m_bInUndoMode;
+ ::std::vector<bool> m_bVisibleRow; // an Pos steht die RowId
+ Timer m_timerInvalidate;
+
+ long m_nSeekRow;
+ BrowserMode m_nMode; // Merken des BrowseModes
+ Edit* m_pTextCell;
+ ::svt::CheckBoxControl* m_pVisibleCell;
+ ::svt::ComboBoxControl* m_pFieldCell;
+ ::svt::ListBoxControl* m_pFunctionCell;
+ ::svt::ListBoxControl* m_pTableCell;
+ ::svt::ListBoxControl* m_pOrderCell;
+
+ OTableFieldDescRef m_pEmptyEntry; // default entry in the list may reference more than once
+
+ sal_Int32 m_nMaxColumns; // maximale Anzahl der Spalten in einem Select-Statement
+
+ String m_aFunctionStrings;
+ sal_uInt16 m_nVisibleCount; // Anzahl der max sichtbaren Zeilen
+ sal_Bool m_bOrderByUnRelated;
+ sal_Bool m_bGroupByUnRelated;
+ sal_Bool m_bStopTimer;
+ sal_Bool m_bWasEditing;
+ sal_Bool m_bDisableErrorBox;
+ sal_Bool m_bInUndoMode;
DECL_LINK(OnInvalidateTimer, void*);
- public: OSelectionBrowseBox( Window* pParent );
+ public: OSelectionBrowseBox( Window* pParent );
~OSelectionBrowseBox();
- void initialize();
- OTableFieldDescRef InsertField( const OJoinExchangeData& jxdSource, USHORT _nColumnPostion = BROWSER_INVALIDID, sal_Bool bVis=sal_True, sal_Bool bActivate=sal_True );
- OTableFieldDescRef InsertField( const OTableFieldDescRef& rInfo, USHORT _nColumnPostion = BROWSER_INVALIDID, sal_Bool bVis=sal_True, sal_Bool bActivate=sal_True );
- void InsertColumn( OTableFieldDescRef pEntry, USHORT& _nColumnPostion );
- void RemoveColumn( USHORT _nColumnId );
- void DeleteFields( const String& rAliasName );
+ void initialize();
+ OTableFieldDescRef InsertField( const OJoinExchangeData& jxdSource, USHORT _nColumnPostion = BROWSER_INVALIDID, sal_Bool bVis=sal_True, sal_Bool bActivate=sal_True );
+ OTableFieldDescRef InsertField( const OTableFieldDescRef& rInfo, USHORT _nColumnPostion = BROWSER_INVALIDID, sal_Bool bVis=sal_True, sal_Bool bActivate=sal_True );
+ void InsertColumn( OTableFieldDescRef pEntry, USHORT& _nColumnPostion );
+ void RemoveColumn( USHORT _nColumnId );
+ void DeleteFields( const String& rAliasName );
bool HasFieldByAliasName(const ::rtl::OUString& rFieldName, OTableFieldDescRef& rInfo) const;
// AddGroupBy:: F"ugt ein Feld mit Funktion == Grupierung. Falls das Feld schon vorhanden ist und ein Aggregate Funktion
// benutzt, wird das Flag nicht gesetzt
- void AddGroupBy( const OTableFieldDescRef& rInfo,sal_uInt32 _nCurrentPos);
- void AddCondition( const OTableFieldDescRef& rInfo,
+ void AddGroupBy( const OTableFieldDescRef& rInfo,sal_uInt32 _nCurrentPos);
+ void AddCondition( const OTableFieldDescRef& rInfo,
const String& rValue,
const sal_uInt16 nLevel,
bool _bAddOrOnOneLine );
- void DuplicateConditionLevel( const sal_uInt16 nLevel);
- void AddOrder(const OTableFieldDescRef& rInfo, const EOrderDir eDir, sal_uInt32 _nCurrentPos);
- void ClearAll();
- OTableFieldDescRef AppendNewCol( sal_uInt16 nCnt=1 );
- sal_Bool Save();
- OQueryDesignView* getDesignView();
- OQueryDesignView* getDesignView() const;
- sal_uInt16 FieldsCount();
-
- void SetColWidth(sal_uInt16 nColId, long lNewWidth);
+ void DuplicateConditionLevel( const sal_uInt16 nLevel);
+ void AddOrder(const OTableFieldDescRef& rInfo, const EOrderDir eDir, sal_uInt32 _nCurrentPos);
+ void ClearAll();
+ OTableFieldDescRef AppendNewCol( sal_uInt16 nCnt=1 );
+ sal_Bool Save();
+ OQueryDesignView* getDesignView();
+ OQueryDesignView* getDesignView() const;
+ sal_uInt16 FieldsCount();
+
+ void SetColWidth(sal_uInt16 nColId, long lNewWidth);
// beachtet im Gegensatz zum SetColumnWidth der Basisklasse auch eine eventuell aktive Zelle in dieser Spalte
- String GetCellContents(sal_Int32 nCellIndex, USHORT nColId);
- void SetCellContents(sal_Int32 nCellIndex, USHORT nColId, const String& strNewText);
+ String GetCellContents(sal_Int32 nCellIndex, USHORT nColId);
+ void SetCellContents(sal_Int32 nCellIndex, USHORT nColId, const String& strNewText);
// Zelleninhalt (als String formatiert) setzen/liefern
- sal_Int32 GetNoneVisibleRows() const;
- void SetNoneVisbleRow(long nRows);
- sal_Bool IsRowVisible(sal_uInt16 _nWhich) const;
- void SetRowVisible(sal_uInt16 _nWhich, sal_Bool _bVis);
+ sal_Int32 GetNoneVisibleRows() const;
+ void SetNoneVisbleRow(long nRows);
+ sal_Bool IsRowVisible(sal_uInt16 _nWhich) const;
+ void SetRowVisible(sal_uInt16 _nWhich, sal_Bool _bVis);
- void SetReadOnly(sal_Bool bRO);
+ void SetReadOnly(sal_Bool bRO);
// calculate an optimal size. Basically, this takes into account the number of visible rows.
- Size CalcOptimalSize( const Size& _rAvailable );
+ Size CalcOptimalSize( const Size& _rAvailable );
// can the current content be cut
- sal_Bool isPasteAllowed();
- sal_Bool isCutAllowed();
- sal_Bool isCopyAllowed();
- void cut();
- void paste();
- void copy();
-
- virtual void GetFocus();
- virtual void DeactivateCell(sal_Bool bUpdate = sal_True);
- virtual void ColumnMoved( USHORT nColId ) { ColumnMoved(nColId,TRUE); }
- void ColumnMoved( USHORT nColId,BOOL _bCreateUndo);
-
- void Fill();
- void PreFill();
-
+ sal_Bool isPasteAllowed();
+ sal_Bool isCutAllowed();
+ sal_Bool isCopyAllowed();
+ void cut();
+ void paste();
+ void copy();
+
+ virtual void GetFocus();
+ virtual void DeactivateCell(sal_Bool bUpdate = sal_True);
+ virtual void ColumnMoved( USHORT nColId ) { ColumnMoved(nColId,TRUE); }
+ void ColumnMoved( USHORT nColId,BOOL _bCreateUndo);
+
+ void Fill();
+ void PreFill();
+
/** Disables the generation of undo actions
*/
- inline void EnterUndoMode() { m_bInUndoMode = sal_True; }
+ inline void EnterUndoMode() { m_bInUndoMode = sal_True; }
/** Enables the generation of undo actions
*/
- inline void LeaveUndoMode() { m_bInUndoMode = sal_False; }
+ inline void LeaveUndoMode() { m_bInUndoMode = sal_False; }
/** GetCellText returns the text at the given position
- @param _nRow
+ @param _nRow
the number of the row
- @param _nColId
+ @param _nColId
the ID of the column
@return
the text out of the cell
*/
- virtual String GetCellText(long _nRow, USHORT _nColId) const;
+ virtual String GetCellText(long _nRow, USHORT _nColId) const;
/** returns the description of the row.
- @param _nRow
+ @param _nRow
The row number.
- @return
- The header text of the specified row.
+ @return
+ The header text of the specified row.
*/
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
- /** return the name of the specified object.
- @param eObjType
+ /** return the name of the specified object.
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
- @return
- The name of the specified object.
+ @return
+ The name of the specified object.
*/
- virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition = -1) const;
+ virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition = -1) const;
// IAccessibleTableProvider
/** Creates the accessible object of a data table cell.
@@ -194,102 +194,102 @@ namespace dbaui
@param nColumnId The column ID of the cell.
@return The XAccessible interface of the specified cell. */
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessibleCell( sal_Int32 nRow, sal_uInt16 nColumnId );
-
+
protected:
- virtual sal_Bool SeekRow( long nRow );
+ virtual sal_Bool SeekRow( long nRow );
- virtual void PaintStatusCell(OutputDevice& rDev, const Rectangle& rRect) const;
- virtual void PaintCell(OutputDevice& rDev, const Rectangle& rRect,
+ virtual void PaintStatusCell(OutputDevice& rDev, const Rectangle& rRect) const;
+ virtual void PaintCell(OutputDevice& rDev, const Rectangle& rRect,
sal_uInt16 nColumnId ) const;
- virtual sal_Int8 AcceptDrop( const BrowserAcceptDropEvent& rEvt );
- virtual sal_Int8 ExecuteDrop( const BrowserExecuteDropEvent& rEvt );
- virtual void MouseButtonDown( const BrowserMouseEvent& rEvt );
- virtual void MouseButtonUp( const BrowserMouseEvent& rEvt );
- virtual void KeyInput( const KeyEvent& rEvt );
- virtual void Command(const CommandEvent& rEvt);
- virtual void ArrangeControls(sal_uInt16& nX, sal_uInt16 nY);
-
- virtual ::svt::CellController* GetController(long nRow, sal_uInt16 nCol);
- virtual void InitController(::svt::CellControllerRef& rController, long nRow, sal_uInt16 nCol);
- virtual void CellModified();
- virtual sal_Bool SaveModified();
- virtual void Init();
- virtual sal_uInt32 GetTotalCellWidth(long nRow, sal_uInt16 nColId) const;
- virtual void ColumnResized( sal_uInt16 nColId );
-
- virtual sal_uInt32 GetTotalCellWidth(long nRow, sal_uInt16 nColId);
-
- virtual sal_uInt16 GetDefaultColumnWidth(const String& rName) const;
+ virtual sal_Int8 AcceptDrop( const BrowserAcceptDropEvent& rEvt );
+ virtual sal_Int8 ExecuteDrop( const BrowserExecuteDropEvent& rEvt );
+ virtual void MouseButtonDown( const BrowserMouseEvent& rEvt );
+ virtual void MouseButtonUp( const BrowserMouseEvent& rEvt );
+ virtual void KeyInput( const KeyEvent& rEvt );
+ virtual void Command(const CommandEvent& rEvt);
+ virtual void ArrangeControls(sal_uInt16& nX, sal_uInt16 nY);
+
+ virtual ::svt::CellController* GetController(long nRow, sal_uInt16 nCol);
+ virtual void InitController(::svt::CellControllerRef& rController, long nRow, sal_uInt16 nCol);
+ virtual void CellModified();
+ virtual sal_Bool SaveModified();
+ virtual void Init();
+ virtual sal_uInt32 GetTotalCellWidth(long nRow, sal_uInt16 nColId) const;
+ virtual void ColumnResized( sal_uInt16 nColId );
+
+ virtual sal_uInt32 GetTotalCellWidth(long nRow, sal_uInt16 nColId);
+
+ virtual sal_uInt16 GetDefaultColumnWidth(const String& rName) const;
// if you want to have an own header ...
- virtual BrowserHeader* imp_CreateHeaderBar(BrowseBox* pParent);
+ virtual BrowserHeader* imp_CreateHeaderBar(BrowseBox* pParent);
- void stopTimer();
- void startTimer();
+ void stopTimer();
+ void startTimer();
private:
- OTableFieldDescRef FindFirstFreeCol(USHORT& _rColumnPosition);
+ OTableFieldDescRef FindFirstFreeCol(USHORT& _rColumnPosition);
// rCol enthaelt die Nummer (in pOTableFieldDescList) der ersten Spalte, die von sich sagt, dass sie leer ist
// wenn es keine solche gibt, ist rCol undefiniert und der Rueckgabewert NULL
- void CheckFreeColumns(USHORT& _rColumnPosition);
+ void CheckFreeColumns(USHORT& _rColumnPosition);
// testet, ob es noch freie Spalten gibt, wenn nicht, wird ein neuer Packen angefuegt
// rCol enthaelt die Nummer der ersten freien Spalte (in pOTableFieldDescList)
- void RemoveField( sal_uInt16 nId );
- Rectangle GetInvalidRect( sal_uInt16 nColId );
- long GetRealRow(long nRow) const;
- long GetBrowseRow(long nRowId) const;
- sal_Bool GetFunctionName(sal_uInt32 _nFunctionTokenId,String& rFkt);
- void appendUndoAction(const String& _rOldValue,const String& _rNewValue,sal_Int32 _nRow,sal_Bool& _bListAction);
- void appendUndoAction(const String& _rOldValue,const String& _rNewValue,sal_Int32 _nRow);
- OTableFields& getFields() const;
- void enableControl(const OTableFieldDescRef& _rEntry,Window* _pControl);
- void setTextCellContext(const OTableFieldDescRef& _rEntry,const String& _sText,ULONG _nHelpId);
- void invalidateUndoRedo();
+ void RemoveField( sal_uInt16 nId );
+ Rectangle GetInvalidRect( sal_uInt16 nColId );
+ long GetRealRow(long nRow) const;
+ long GetBrowseRow(long nRowId) const;
+ sal_Bool GetFunctionName(sal_uInt32 _nFunctionTokenId,String& rFkt);
+ void appendUndoAction(const String& _rOldValue,const String& _rNewValue,sal_Int32 _nRow,sal_Bool& _bListAction);
+ void appendUndoAction(const String& _rOldValue,const String& _rNewValue,sal_Int32 _nRow);
+ OTableFields& getFields() const;
+ void enableControl(const OTableFieldDescRef& _rEntry,Window* _pControl);
+ void setTextCellContext(const OTableFieldDescRef& _rEntry,const String& _sText,ULONG _nHelpId);
+ void invalidateUndoRedo();
OTableFieldDescRef getEntry(OTableFields::size_type _nPos);
- void adjustSelectionMode( sal_Bool _bClickedOntoHeader, sal_Bool _bClickedOntoHandleCol );
+ void adjustSelectionMode( sal_Bool _bClickedOntoHeader, sal_Bool _bClickedOntoHandleCol );
/** save the filed change in save modified
- @param _sFieldName
+ @param _sFieldName
The field name inserted by the user.
- @param _pEntry
+ @param _pEntry
The entry which will contain the nescessary entries.
- @param _bListAction
+ @param _bListAction
Will be set to <TRUE/> when we are in a list action otherwise <FALSE/>
@return
<TRUE/> if an error occured otherwise <FALSE/>
*/
- sal_Bool saveField(const String& _sFieldName,OTableFieldDescRef& _pEntry,sal_Bool& _bListAction);
+ sal_Bool saveField(const String& _sFieldName,OTableFieldDescRef& _pEntry,sal_Bool& _bListAction);
/** sets the table window at the _pEntry
- @param _pEntry
+ @param _pEntry
The entry where the window should be set.
- @param _sTableName
+ @param _sTableName
The table name to search for.
- @return
+ @return
<TRUE/> if the table name was set otherwise <FALSE/>
*/
- sal_Bool fillEntryTable(OTableFieldDescRef& _pEntry,const ::rtl::OUString& _sTableName);
+ sal_Bool fillEntryTable(OTableFieldDescRef& _pEntry,const ::rtl::OUString& _sTableName);
/** uses the parse node to fill all information into the field
- @param _pColumnRef
+ @param _pColumnRef
The parse node used to fill the info into the field.
- @param _xMetaData
+ @param _xMetaData
Use to parse the node to a string.
- @param _pEntry
+ @param _pEntry
The entry which will contain the nescessary entries.
- @param _bListAction
+ @param _bListAction
Will be set to <TRUE/> when we are in a list action otherwise <FALSE/>
@return
<TRUE/> if an error occured otherwise <FALSE/>
*/
- sal_Bool fillColumnRef( const ::connectivity::OSQLParseNode* _pColumnRef,
+ sal_Bool fillColumnRef( const ::connectivity::OSQLParseNode* _pColumnRef,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection,
OTableFieldDescRef& _pEntry,
sal_Bool& _bListAction);
- sal_Bool fillColumnRef( const ::rtl::OUString& _sColumnName,
+ sal_Bool fillColumnRef( const ::rtl::OUString& _sColumnName,
const ::rtl::OUString& _sTableRange,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& _xMetaData,
OTableFieldDescRef& _pEntry,
@@ -297,41 +297,41 @@ namespace dbaui
/** append an undo action for the table field
- @param _sOldAlias
+ @param _sOldAlias
The old table alias.
- @param _sAlias
+ @param _sAlias
The new alias name.
- @param _bListAction
+ @param _bListAction
Will be set to <TRUE/> when we are in a list action otherwise <FALSE/>
*/
- void notifyTableFieldChanged(const String& _sOldAlias,const String& _sAlias,sal_Bool& _bListAction,USHORT _nColumnId);
+ void notifyTableFieldChanged(const String& _sOldAlias,const String& _sAlias,sal_Bool& _bListAction,USHORT _nColumnId);
/** append an undo action for the function field
- @param _sOldFunctionName
+ @param _sOldFunctionName
The old value.
- @param _sFunctionName
+ @param _sFunctionName
The new function name.
- @param _bListAction
+ @param _bListAction
Will be set to <TRUE/> when we are in a list action otherwise <FALSE/>
*/
- void notifyFunctionFieldChanged(const String& _sOldFunctionName,const String& _sFunctionName,sal_Bool& _bListAction,USHORT _nColumnId);
+ void notifyFunctionFieldChanged(const String& _sOldFunctionName,const String& _sFunctionName,sal_Bool& _bListAction,USHORT _nColumnId);
/** clears the function fields of the submitted entry if it doesn't match the SQL standard and append an undo action.
E.q. AGGREGATE functions are only valid when the field name isn't an asterix
- @param _sFieldName
+ @param _sFieldName
The field name.
- @param _pEntry
+ @param _pEntry
The entry to be cleared
- @param _bListAction
+ @param _bListAction
When <TRUE/> an list action will be created.
*/
- void clearEntryFunctionField(const String& _sFieldName,OTableFieldDescRef& _pEntry,sal_Bool& _bListAction,USHORT _nColumnId);
+ void clearEntryFunctionField(const String& _sFieldName,OTableFieldDescRef& _pEntry,sal_Bool& _bListAction,USHORT _nColumnId);
/** remove or insert the necessary function types
- @param _pEntry
+ @param _pEntry
The currently edited entry.
*/
- void setFunctionCell(OTableFieldDescRef& _pEntry);
+ void setFunctionCell(OTableFieldDescRef& _pEntry);
private:
using ::svt::EditBrowseBox::AcceptDrop;
diff --git a/dbaccess/source/ui/querydesign/TableConnection.cxx b/dbaccess/source/ui/querydesign/TableConnection.cxx
index 964b54d00f25..8909fad0fd76 100644
--- a/dbaccess/source/ui/querydesign/TableConnection.cxx
+++ b/dbaccess/source/ui/querydesign/TableConnection.cxx
@@ -2,7 +2,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
@@ -181,7 +181,7 @@ namespace dbaui
//------------------------------------------------------------------------
BOOL OTableConnection::CheckHit( const Point& rMousePos ) const
- {
+ {
//////////////////////////////////////////////////////////////////////
// check if the point hit our line
::std::vector<OConnectionLine*>::const_iterator aIter = ::std::find_if(m_vConnLine.begin(),
diff --git a/dbaccess/source/ui/querydesign/TableConnectionData.cxx b/dbaccess/source/ui/querydesign/TableConnectionData.cxx
index f097c35eb6f1..27d4f7300c8f 100644
--- a/dbaccess/source/ui/querydesign/TableConnectionData.cxx
+++ b/dbaccess/source/ui/querydesign/TableConnectionData.cxx
@@ -2,7 +2,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
@@ -83,7 +83,7 @@ OTableConnectionData::~OTableConnectionData()
DBG_DTOR(OTableConnectionData,NULL);
// LineDataList loeschen
OConnectionLineDataVec().swap(m_vConnLineData);
- //ResetConnLines(FALSE);
+ //ResetConnLines(FALSE);
}
//------------------------------------------------------------------------
@@ -101,7 +101,7 @@ OTableConnectionData& OTableConnectionData::operator=( const OTableConnectionDat
// und kopieren
OConnectionLineDataVec* pLineData = const_cast<OTableConnectionData*>(&rConnData)->GetConnLineDataList();
-
+
OConnectionLineDataVec::const_iterator aIter = pLineData->begin();
OConnectionLineDataVec::const_iterator aEnd = pLineData->end();
for(;aIter != aEnd;++aIter)
@@ -168,9 +168,9 @@ OConnectionLineDataRef OTableConnectionData::CreateLineDataObj( const OConnectio
return new OConnectionLineData( rConnLineData );
}
// -----------------------------------------------------------------------------
-OTableConnectionData* OTableConnectionData::NewInstance() const
-{
- return new OTableConnectionData();
+OTableConnectionData* OTableConnectionData::NewInstance() const
+{
+ return new OTableConnectionData();
}
// -----------------------------------------------------------------------------
void OTableConnectionData::normalizeLines()
diff --git a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
index 8edf83464b96..c318eb88c61d 100644
--- a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
+++ b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
@@ -2,7 +2,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
@@ -77,7 +77,7 @@ OTableFieldDesc::OTableFieldDesc(const ::rtl::OUString& rT, const ::rtl::OUStrin
,m_bVisible(sal_False)
{
DBG_CTOR(OTableFieldDesc,NULL);
- SetField( rF ); SetTable( rT );
+ SetField( rF ); SetTable( rT );
}
//------------------------------------------------------------------------------
@@ -93,10 +93,10 @@ OTableFieldDesc& OTableFieldDesc::operator=( const OTableFieldDesc& rRS )
m_aCriteria = rRS.GetCriteria();
m_aTableName = rRS.GetTable();
- m_aAliasName = rRS.GetAlias(); // table range
- m_aFieldName = rRS.GetField(); // column
- m_aFieldAlias = rRS.GetFieldAlias(); // column alias
- m_aFunctionName = rRS.GetFunction(); // Funktionsname
+ m_aAliasName = rRS.GetAlias(); // table range
+ m_aFieldName = rRS.GetField(); // column
+ m_aFieldAlias = rRS.GetFieldAlias(); // column alias
+ m_aFunctionName = rRS.GetFunction(); // Funktionsname
m_pTabWindow = rRS.GetTabWindow();
m_eDataType = rRS.GetDataType();
m_eFunctionType = rRS.GetFunctionType();
@@ -115,14 +115,14 @@ sal_Bool OTableFieldDesc::operator==( const OTableFieldDesc& rDesc )
{
DBG_CHKTHIS(OTableFieldDesc,NULL);
- return ( m_eOrderDir != rDesc.GetOrderDir() ||
- m_eDataType != rDesc.GetDataType() ||
- m_aAliasName != rDesc.GetAlias() ||
- m_aFunctionName != rDesc.GetFunction() ||
- m_aFieldName != rDesc.GetField() ||
- m_aTableName != rDesc.GetTable() ||
- m_bGroupBy != rDesc.IsGroupBy() ||
- m_aCriteria != rDesc.GetCriteria() ||
+ return ( m_eOrderDir != rDesc.GetOrderDir() ||
+ m_eDataType != rDesc.GetDataType() ||
+ m_aAliasName != rDesc.GetAlias() ||
+ m_aFunctionName != rDesc.GetFunction() ||
+ m_aFieldName != rDesc.GetField() ||
+ m_aTableName != rDesc.GetTable() ||
+ m_bGroupBy != rDesc.IsGroupBy() ||
+ m_aCriteria != rDesc.GetCriteria() ||
m_bVisible != rDesc.IsVisible() );
}
diff --git a/dbaccess/source/ui/querydesign/TableFieldInfo.cxx b/dbaccess/source/ui/querydesign/TableFieldInfo.cxx
index 7ef432c32bd8..d86ab904c7d2 100644
--- a/dbaccess/source/ui/querydesign/TableFieldInfo.cxx
+++ b/dbaccess/source/ui/querydesign/TableFieldInfo.cxx
@@ -2,7 +2,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
diff --git a/dbaccess/source/ui/querydesign/TableFieldInfo.hxx b/dbaccess/source/ui/querydesign/TableFieldInfo.hxx
index 090d71735665..e3191777f7f7 100644
--- a/dbaccess/source/ui/querydesign/TableFieldInfo.hxx
+++ b/dbaccess/source/ui/querydesign/TableFieldInfo.hxx
@@ -2,7 +2,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
@@ -36,17 +36,17 @@ namespace dbaui
class OTableFieldInfo
{
private:
- ETableFieldType m_eFieldType;
- sal_Int32 m_eDataType;
+ ETableFieldType m_eFieldType;
+ sal_Int32 m_eDataType;
public:
OTableFieldInfo();
~OTableFieldInfo();
- inline ETableFieldType GetKeyType() const { return m_eFieldType; }
- inline void SetKey(ETableFieldType bKey=TAB_NORMAL_FIELD) { m_eFieldType = bKey; }
- inline sal_Int32 GetDataType() const { return m_eDataType; }
- inline void SetDataType(sal_Int32 eTyp) { m_eDataType = eTyp; }
+ inline ETableFieldType GetKeyType() const { return m_eFieldType; }
+ inline void SetKey(ETableFieldType bKey=TAB_NORMAL_FIELD) { m_eFieldType = bKey; }
+ inline sal_Int32 GetDataType() const { return m_eDataType; }
+ inline void SetDataType(sal_Int32 eTyp) { m_eDataType = eTyp; }
};
}
#endif // DBAUI_TABLEFIELDINFO_HXX
diff --git a/dbaccess/source/ui/querydesign/TableWindow.cxx b/dbaccess/source/ui/querydesign/TableWindow.cxx
index 1c0dd80e93f8..3e44c65f5685 100644
--- a/dbaccess/source/ui/querydesign/TableWindow.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindow.cxx
@@ -2,7 +2,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
@@ -67,12 +67,12 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::accessibility;
-#define TABWIN_SIZING_AREA 4
-#define LISTBOX_SCROLLING_AREA 6
-#define SCROLLING_TIMESPAN 500
+#define TABWIN_SIZING_AREA 4
+#define LISTBOX_SCROLLING_AREA 6
+#define SCROLLING_TIMESPAN 500
-#define TABWIN_WIDTH_MIN 90
-#define TABWIN_HEIGHT_MIN 80
+#define TABWIN_WIDTH_MIN 90
+#define TABWIN_HEIGHT_MIN 80
//========================================================================
// class OTableWindow
@@ -124,7 +124,7 @@ OTableWindow::~OTableWindow()
} // if (m_pListBox)
if ( m_pContainerListener.is() )
m_pContainerListener->dispose();
-
+
m_pAccessible = NULL;
}
// -----------------------------------------------------------------------------
@@ -399,7 +399,7 @@ Rectangle OTableWindow::getSizingRect(const Point& _rPos,const Size& _rOutputSiz
// -----------------------------------------------------------------------------
void OTableWindow::setSizingFlag(const Point& _rPos)
{
- Size aOutSize = GetOutputSizePixel();
+ Size aOutSize = GetOutputSizePixel();
//////////////////////////////////////////////////////////////////////
// Flags anpassen, wenn Mauszeiger in sizingArea
m_nSizingFlags = SIZING_NONE;
@@ -425,9 +425,9 @@ void OTableWindow::MouseMove( const MouseEvent& rEvt )
if (pCont->getDesignView()->getController().isReadOnly())
return;
- Point aPos = rEvt.GetPosPixel();
+ Point aPos = rEvt.GetPosPixel();
setSizingFlag(aPos);
- Pointer aPointer;
+ Pointer aPointer;
//////////////////////////////////////////////////////////////////////
@@ -477,7 +477,7 @@ void OTableWindow::Resize()
{
//////////////////////////////////////////////////////////////////////
// Das Fenster darf nicht verschwinden, deshalb min. Groesse setzen
- Size aOutSize = GetOutputSizePixel();
+ Size aOutSize = GetOutputSizePixel();
aOutSize = Size(CalcZoom(aOutSize.Width()),CalcZoom(aOutSize.Height()));
long nTitleHeight = CalcZoom( GetTextHeight() )+ CalcZoom( 4 );
@@ -657,7 +657,7 @@ long OTableWindow::PreNotify(NotifyEvent& rNEvt)
if ( getDesignView()->getController().isReadOnly() )
break;
- const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
+ const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
const KeyCode& rCode = pKeyEvent->GetKeyCode();
if ( rCode.IsMod1() )
{
@@ -737,40 +737,40 @@ long OTableWindow::PreNotify(NotifyEvent& rNEvt)
}
else
{
- m_nMoveCount = 0; // reset our movement count
- m_nMoveIncrement = 1;
+ m_nMoveCount = 0; // reset our movement count
+ m_nMoveIncrement = 1;
}
}
else
{
- m_nMoveCount = 0; // reset our movement count
- m_nMoveIncrement = 1;
+ m_nMoveCount = 0; // reset our movement count
+ m_nMoveIncrement = 1;
}
}
resetSizingFlag();
}
else
{
- m_nMoveCount = 0; // reset our movement count
- m_nMoveIncrement = 1;
+ m_nMoveCount = 0; // reset our movement count
+ m_nMoveIncrement = 1;
}
}
else
{
- m_nMoveCount = 0; // reset our movement count
- m_nMoveIncrement = 1;
+ m_nMoveCount = 0; // reset our movement count
+ m_nMoveIncrement = 1;
}
}
break;
case EVENT_KEYUP:
{
- const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
+ const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
const KeyCode& rCode = pKeyEvent->GetKeyCode();
USHORT nKeyCode = rCode.GetCode();
if ( rCode.IsMod2() && nKeyCode != KEY_UP && nKeyCode != KEY_DOWN && nKeyCode != KEY_LEFT && nKeyCode != KEY_RIGHT )
{
- m_nMoveCount = 0; // reset our movement count
- m_nMoveIncrement = 1;
+ m_nMoveCount = 0; // reset our movement count
+ m_nMoveIncrement = 1;
}
}
break;
diff --git a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
index aad8a07fa4cc..71a044fa24e1 100644
--- a/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowAccess.cxx
@@ -2,7 +2,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
@@ -49,11 +49,11 @@ namespace dbaui
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
- // using namespace ::com::sun::star::awt;
+ // using namespace ::com::sun::star::awt;
using namespace ::com::sun::star;
OTableWindowAccess::OTableWindowAccess(OTableWindow* _pTable)
- :VCLXAccessibleComponent(_pTable->GetComponentInterface().is() ? _pTable->GetWindowPeer() : NULL)
+ :VCLXAccessibleComponent(_pTable->GetComponentInterface().is() ? _pTable->GetWindowPeer() : NULL)
,m_pTable(_pTable)
{
}
@@ -208,7 +208,7 @@ namespace dbaui
}
}
return xReturn;
- }
+ }
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL OTableWindowAccess::getRelationCount( ) throw (RuntimeException)
@@ -238,8 +238,8 @@ namespace dbaui
sal_Bool SAL_CALL OTableWindowAccess::containsRelation( sal_Int16 aRelationType ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
- return AccessibleRelationType::CONTROLLER_FOR == aRelationType
- && m_pTable && m_pTable->getTableView()->ExistsAConn(m_pTable);
+ return AccessibleRelationType::CONTROLLER_FOR == aRelationType
+ && m_pTable && m_pTable->getTableView()->ExistsAConn(m_pTable);
}
// -----------------------------------------------------------------------------
AccessibleRelation SAL_CALL OTableWindowAccess::getRelationByType( sal_Int16 aRelationType ) throw (RuntimeException)
@@ -249,14 +249,14 @@ namespace dbaui
{
OJoinTableView* pView = m_pTable->getTableView();
const ::std::vector<OTableConnection*>* pConnectionList = pView->getTableConnections();
-
+
::std::vector<OTableConnection*>::const_iterator aIter = pView->getTableConnections(m_pTable);
::std::vector<OTableConnection*>::const_iterator aEnd = pConnectionList->end();
::std::vector< Reference<XInterface> > aRelations;
aRelations.reserve(5); // just guessing
for (; aIter != aEnd ; ++aIter )
aRelations.push_back(getParentChild(aIter - pConnectionList->begin()));
-
+
Reference<XInterface> *pRelations = aRelations.empty() ? 0 : &aRelations[0];
Sequence< Reference<XInterface> > aSeq(pRelations, aRelations.size());
return AccessibleRelation(AccessibleRelationType::CONTROLLER_FOR,aSeq);
diff --git a/dbaccess/source/ui/querydesign/TableWindowData.cxx b/dbaccess/source/ui/querydesign/TableWindowData.cxx
index 6a9d63372a88..41457eaa3a54 100644
--- a/dbaccess/source/ui/querydesign/TableWindowData.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowData.cxx
@@ -2,7 +2,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
@@ -99,7 +99,7 @@ void OTableWindowData::_disposing( const ::com::sun::star::lang::EventObject& /*
// it doesn't matter which one was disposed
m_xColumns.clear();
m_xKeys.clear();
- m_xTable.clear();
+ m_xTable.clear();
}
// -----------------------------------------------------------------------------
bool OTableWindowData::init(const Reference< XConnection >& _xConnection,bool _bAllowQueries)
diff --git a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx
index 936148c5ed93..e6f8965d9828 100644
--- a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx
@@ -2,7 +2,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
@@ -44,9 +44,9 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::datatransfer;
-OJoinExchangeData::OJoinExchangeData(OTableWindowListBox* pBox)
+OJoinExchangeData::OJoinExchangeData(OTableWindowListBox* pBox)
: pListBox(pBox)
- , pEntry(pBox->FirstSelected())
+ , pEntry(pBox->FirstSelected())
{ }
const ULONG SCROLLING_TIMESPAN = 500;
@@ -158,15 +158,15 @@ long OTableWindowListBox::PreNotify(NotifyEvent& rNEvt)
{
case EVENT_KEYINPUT:
{
- const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
+ const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
const KeyCode& rCode = pKeyEvent->GetKeyCode();
-
+
if (rCode.GetCode() != KEY_RETURN)
{
if(m_pTabWin)
{
bHandled = m_pTabWin->HandleKeyInput(*pKeyEvent);
- // bHandled = TRUE;
+ // bHandled = TRUE;
}
break;
}
@@ -196,7 +196,7 @@ IMPL_LINK( OTableWindowListBox, ScrollUpHdl, SvTreeListBox*, /*pBox*/ )
ScrollOutputArea( -1 );
pEntry = GetEntry( m_aMousePos );
Select( pEntry, TRUE );
-// m_aScrollTimer.Start();
+// m_aScrollTimer.Start();
}
return 0;
@@ -214,7 +214,7 @@ IMPL_LINK( OTableWindowListBox, ScrollDownHdl, SvTreeListBox*, /*pBox*/ )
ScrollOutputArea( 1 );
pEntry = GetEntry( m_aMousePos );
Select( pEntry, TRUE );
-// m_aScrollTimer.Start();
+// m_aScrollTimer.Start();
}
return 0;
@@ -245,9 +245,9 @@ sal_Int8 OTableWindowListBox::AcceptDrop( const AcceptDropEvent& _rEvt )
// check the format
if ( !OJoinExchObj::isFormatAvailable(GetDataFlavorExVector(),SOT_FORMATSTR_ID_SBA_TABID) // this means that the first entry is to be draged
&& OJoinExchObj::isFormatAvailable(GetDataFlavorExVector(),SOT_FORMATSTR_ID_SBA_JOIN) )
- { // don't drop into the window if it's the drag source itself
-
+ { // don't drop into the window if it's the drag source itself
+
// remove the selection if the dragging operation is leaving the window
if (_rEvt.mbLeaving)
SelectAll(FALSE);
@@ -335,9 +335,9 @@ sal_Int8 OTableWindowListBox::ExecuteDrop( const ExecuteDropEvent& _rEvt )
{
TransferableDataHelper aDropped(_rEvt.maDropEvent.Transferable);
if ( OJoinExchObj::isFormatAvailable(aDropped.GetDataFlavorExVector()))
- { // don't drop into the window if it's the drag source itself
- m_aDropInfo.aSource = OJoinExchangeData(this);
- m_aDropInfo.aDest = OJoinExchObj::GetSourceDescription(_rEvt.maDropEvent.Transferable);
+ { // don't drop into the window if it's the drag source itself
+ m_aDropInfo.aSource = OJoinExchangeData(this);
+ m_aDropInfo.aDest = OJoinExchObj::GetSourceDescription(_rEvt.maDropEvent.Transferable);
if (m_nDropEvent)
Application::RemoveUserEvent(m_nDropEvent);
@@ -373,7 +373,7 @@ void OTableWindowListBox::GetFocus()
else
ShowFocusRect(FirstSelected());
}
- SvTreeListBox::GetFocus();
+ SvTreeListBox::GetFocus();
}
//------------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
index 48e9865dd1ce..55b141b85e79 100644
--- a/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
+++ b/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
@@ -2,7 +2,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
@@ -72,7 +72,7 @@ OTableWindowTitle::OTableWindowTitle( OTableWindow* pParent ) :
OTableWindowTitle::~OTableWindowTitle()
{
DBG_DTOR(OTableWindowTitle,NULL);
- m_pTabWin = NULL;
+ m_pTabWin = NULL;
}
//------------------------------------------------------------------------------
@@ -131,10 +131,10 @@ void OTableWindowTitle::Command( const CommandEvent& rEvt )
//------------------------------------------------------------------------------
//void OTableWindowTitle::Paint( const Rectangle& rRect )
//{
-// //////////////////////////////////////////////////////////////////////
-// // Ausgabe des Textes in der Titelzeile
-// Rectangle aWinRect( Point(0,0), GetSizePixel() );
-// DrawText( aWinRect, GetText(), TEXT_DRAW_CENTER|TEXT_DRAW_VCENTER|TEXT_DRAW_ENDELLIPSIS );
+// //////////////////////////////////////////////////////////////////////
+// // Ausgabe des Textes in der Titelzeile
+// Rectangle aWinRect( Point(0,0), GetSizePixel() );
+// DrawText( aWinRect, GetText(), TEXT_DRAW_CENTER|TEXT_DRAW_VCENTER|TEXT_DRAW_ENDELLIPSIS );
//}
//------------------------------------------------------------------------------
@@ -149,7 +149,7 @@ void OTableWindowTitle::MouseButtonDown( const MouseEvent& rEvt )
{
if( rEvt.IsLeft() )
{
- if( rEvt.GetClicks() == 2)
+ if( rEvt.GetClicks() == 2)
{
Size aSize(GetTextWidth(GetText()) + 20,
m_pTabWin->GetSizePixel().Height() - m_pTabWin->GetListBox()->GetSizePixel().Height());
diff --git a/dbaccess/source/ui/querydesign/query.src b/dbaccess/source/ui/querydesign/query.src
index d8a2162e1d14..3dd1180d8704 100644
--- a/dbaccess/source/ui/querydesign/query.src
+++ b/dbaccess/source/ui/querydesign/query.src
@@ -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
diff --git a/dbaccess/source/ui/querydesign/querycontainerwindow.cxx b/dbaccess/source/ui/querydesign/querycontainerwindow.cxx
index 56343b778e0a..1744e0602f36 100644
--- a/dbaccess/source/ui/querydesign/querycontainerwindow.cxx
+++ b/dbaccess/source/ui/querydesign/querycontainerwindow.cxx
@@ -2,7 +2,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
@@ -56,14 +56,14 @@ namespace dbaui
//= OQueryContainerWindow
//=====================================================================
DBG_NAME(OQueryContainerWindow)
- OQueryContainerWindow::OQueryContainerWindow(Window* pParent, OQueryController& _rController,const Reference< XMultiServiceFactory >& _rFactory)
+ OQueryContainerWindow::OQueryContainerWindow(Window* pParent, OQueryController& _rController,const Reference< XMultiServiceFactory >& _rFactory)
:ODataView( pParent, _rController, _rFactory )
,m_pViewSwitch(NULL)
,m_pBeamer(NULL)
{
DBG_CTOR(OQueryContainerWindow,NULL);
m_pViewSwitch = new OQueryViewSwitch( this, _rController, _rFactory );
-
+
m_pSplitter = new Splitter(this,WB_VSCROLL);
m_pSplitter->Hide();
m_pSplitter->SetSplitHdl( LINK( this, OQueryContainerWindow, SplitHdl ) );
@@ -72,7 +72,7 @@ namespace dbaui
// -----------------------------------------------------------------------------
OQueryContainerWindow::~OQueryContainerWindow()
{
- DBG_DTOR(OQueryContainerWindow,NULL);
+ DBG_DTOR(OQueryContainerWindow,NULL);
{
::std::auto_ptr<OQueryViewSwitch> aTemp(m_pViewSwitch);
m_pViewSwitch = NULL;
@@ -86,7 +86,7 @@ namespace dbaui
m_xBeamer = NULL;
if(xCloseable.is())
xCloseable->close(sal_False); // false - holds the owner ship of this frame
- // m_xBeamer->setComponent(NULL,NULL);
+ // m_xBeamer->setComponent(NULL,NULL);
}
{
::std::auto_ptr<Window> aTemp(m_pSplitter);
@@ -113,8 +113,8 @@ namespace dbaui
if ( m_pBeamer && m_pBeamer->IsVisible() )
{
// calc pos and size of the splitter
- Point aSplitPos = m_pSplitter->GetPosPixel();
- Size aSplitSize = m_pSplitter->GetOutputSizePixel();
+ Point aSplitPos = m_pSplitter->GetPosPixel();
+ Size aSplitSize = m_pSplitter->GetOutputSizePixel();
aSplitSize.Width() = aPlayground.GetWidth();
if ( aSplitPos.Y() <= aPlayground.Top() )
@@ -125,7 +125,7 @@ namespace dbaui
// set pos and size of the splitter
m_pSplitter->SetPosSizePixel( aSplitPos, aSplitSize );
- m_pSplitter->SetDragRectPixel( aPlayground );
+ m_pSplitter->SetDragRectPixel( aPlayground );
// set pos and size of the beamer
Size aBeamerSize( aPlayground.GetWidth(), aSplitPos.Y() );
@@ -218,7 +218,7 @@ namespace dbaui
{
const ::rtl::OUString aLayoutManager( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ));
Reference < XPropertySet > xLMPropSet(xPropSet->getPropertyValue( aLayoutManager ),UNO_QUERY);
-
+
if ( xLMPropSet.is() )
{
const ::rtl::OUString aAutomaticToolbars( RTL_CONSTASCII_USTRINGPARAM( "AutomaticToolbars" ));
@@ -239,7 +239,7 @@ namespace dbaui
Size aSize = GetOutputSizePixel();
Size aBeamer(aSize.Width(),sal_Int32(aSize.Height()*0.33));
- const long nFrameHeight = LogicToPixel( Size( 0, 3 ), MAP_APPFONT ).Height();
+ const long nFrameHeight = LogicToPixel( Size( 0, 3 ), MAP_APPFONT ).Height();
Point aPos(0,aBeamer.Height()+nFrameHeight);
m_pBeamer->SetPosSizePixel(Point(0,0),aBeamer);
@@ -253,13 +253,13 @@ namespace dbaui
m_pSplitter->Show();
Resize();
- }
+ }
}
// -----------------------------------------------------------------------------
//.........................................................................
-} // namespace dbaui
+} // namespace dbaui
//.........................................................................
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index 82122c97aed1..66afd048ca76 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -2,7 +2,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
@@ -188,7 +188,7 @@ namespace dbaui
case SQL_NODE_COMPARISON:
{rString+= ::rtl::OUString::createFromAscii("SQL_COMPARISON:");
- rString += _pNode->getTokenValue(); // haenge Nodevalue an
+ rString += _pNode->getTokenValue(); // haenge Nodevalue an
// und beginne neu Zeile
break;}
@@ -217,12 +217,12 @@ namespace dbaui
case SQL_NODE_PUNCTUATION:
{rString += ::rtl::OUString::createFromAscii("SQL_PUNCTUATION:");
- rString += _pNode->getTokenValue(); // haenge Nodevalue an
+ rString += _pNode->getTokenValue(); // haenge Nodevalue an
break;}
case SQL_NODE_AMMSC:
{rString += ::rtl::OUString::createFromAscii("SQL_AMMSC:");
- rString += _pNode->getTokenValue(); // haenge Nodevalue an
+ rString += _pNode->getTokenValue(); // haenge Nodevalue an
break;}
@@ -694,7 +694,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
if(m_bGraphicalDesign)
InvalidateFeature(ID_BROWSER_ADDTABLE);
}
- // InvalidateFeature(ID_BROWSER_QUERY_EXECUTE);
+ // InvalidateFeature(ID_BROWSER_QUERY_EXECUTE);
break;
case SID_QUERY_VIEW_FUNCTIONS:
case SID_QUERY_VIEW_TABLES:
@@ -734,15 +734,15 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
break;
case ID_QUERY_ZOOM_IN:
{
-// m_aZoom *= Fraction(1,10);
-// static_cast<OQueryViewSwitch*>(getView())->zoomTableView(m_aZoom);
+// m_aZoom *= Fraction(1,10);
+// static_cast<OQueryViewSwitch*>(getView())->zoomTableView(m_aZoom);
}
break;
case ID_QUERY_ZOOM_OUT:
{
-// if(m_aZoom != Fraction(1,1))
-// m_aZoom /= Fraction(1,10);
-// static_cast<OQueryViewSwitch*>(getView())->zoomTableView(m_aZoom);
+// if(m_aZoom != Fraction(1,1))
+// m_aZoom /= Fraction(1,10);
+// static_cast<OQueryViewSwitch*>(getView())->zoomTableView(m_aZoom);
}
break;
#if OSL_DEBUG_LEVEL > 1
@@ -783,7 +783,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
::rtl::OUString sTemp;
pNode->parseNodeToStr(sTemp,getConnection());
getContainer()->setStatement(sTemp);
-
+
}
}
@@ -961,7 +961,7 @@ void OQueryController::impl_initialize()
// °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
if ( !ensureConnected( sal_False ) )
- { // we have no connection so what else should we do
+ { // we have no connection so what else should we do
m_bGraphicalDesign = sal_False;
if ( editingView() )
{
@@ -979,7 +979,7 @@ void OQueryController::impl_initialize()
xViews = xViewsSup->getViews();
if ( !xViews.is() )
- { // we can't create views so we ask if the user wants to create a query instead
+ { // we can't create views so we ask if the user wants to create a query instead
m_nCommandType = CommandType::QUERY;
sal_Bool bClose = sal_False;
{
@@ -1037,7 +1037,7 @@ void OQueryController::impl_initialize()
impl_showAutoSQLViewError( aError.get() );
}
}
-
+
getUndoMgr()->Clear();
if ( ( m_bGraphicalDesign )
@@ -1165,7 +1165,7 @@ void SAL_CALL OQueryController::disposing( const EventObject& Source ) throw(Run
if ( getContainer() && Source.Source.is() )
{
if ( Source.Source == m_aCurrentFrame.getFrame() )
- { // our frame is beeing disposed -> close the preview window (if we have one)
+ { // our frame is beeing disposed -> close the preview window (if we have one)
Reference< XFrame > xPreviewFrame( getContainer()->getPreviewFrame() );
::comphelper::disposeComponent( xPreviewFrame );
}
@@ -1402,8 +1402,8 @@ sal_Bool OQueryController::askForNewName(const Reference<XNameAccess>& _xElement
m_sName = aDlg.getName();
if ( editingView() )
{
- m_sUpdateCatalogName = aDlg.getCatalog();
- m_sUpdateSchemaName = aDlg.getSchema();
+ m_sUpdateCatalogName = aDlg.getCatalog();
+ m_sUpdateSchemaName = aDlg.getSchema();
}
}
}
@@ -1560,7 +1560,7 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs)
setModified( sal_False );
bSuccess = true;
-
+
}
catch( const SQLException& )
{
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index f7348dd25294..ca02d527d836 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -2,7 +2,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
@@ -48,12 +48,12 @@ using namespace ::com::sun::star::sdbc;
namespace dbaui
{
-class OJoinControl : public Window
+class OJoinControl : public Window
{
public:
- FixedLine aFL_Join;
- FixedText aFT_Title;
- ListBox aLB_JoinType;
+ FixedLine aFL_Join;
+ FixedText aFT_Title;
+ ListBox aLB_JoinType;
CheckBox m_aCBNatural;
OJoinControl(Window* _pParent,const ResId& _rResId);
@@ -73,7 +73,7 @@ OJoinControl::OJoinControl(Window* _pParent,const ResId& _rResId)
DBG_NAME(DlgQryJoin)
DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
const TTableConnectionData::value_type& _pData,
- OJoinTableView::OTableWindowMap* _pTableMap,
+ OJoinTableView::OTableWindowMap* _pTableMap,
const Reference< XConnection >& _xConnection,
BOOL _bAllowTableSelect)
:ModalDialog( pParent, ModuleRes(DLG_QRY_JOIN) )
@@ -104,7 +104,7 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
m_pJoinControl->Show();
m_pJoinControl->m_aCBNatural.Check(static_cast<OQueryTableConnectionData*>(m_pConnData.get())->isNatural());
m_pTableControl->Show();
-
+
if( _bAllowTableSelect )
{
m_pTableControl->Init( m_pConnData );
@@ -166,7 +166,7 @@ DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
m_pTableControl->NotifyCellChange();
m_pTableControl->enableRelation(!static_cast<OQueryTableConnectionData*>(m_pConnData.get())->isNatural() && eJoinType != CROSS_JOIN );
- }
+ }
FreeResource();
}
@@ -176,7 +176,7 @@ DlgQryJoin::~DlgQryJoin()
{
DBG_DTOR(DlgQryJoin,NULL);
delete m_pJoinControl;
- delete m_pTableControl;
+ delete m_pTableControl;
}
// -----------------------------------------------------------------------------
IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
@@ -184,14 +184,14 @@ IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
DBG_CHKTHIS(DlgQryJoin,NULL);
if (m_pJoinControl->aLB_JoinType.GetSelectEntryPos() == m_pJoinControl->aLB_JoinType.GetSavedValue() )
return 1;
-
+
m_pJoinControl->aLB_JoinType.SaveValue();
aML_HelpText.SetText(String());
m_pTableControl->enableRelation(true);
- String sFirstWinName = m_pConnData->getReferencingTable()->GetWinName();
- String sSecondWinName = m_pConnData->getReferencedTable()->GetWinName();
+ String sFirstWinName = m_pConnData->getReferencingTable()->GetWinName();
+ String sSecondWinName = m_pConnData->getReferencedTable()->GetWinName();
const EJoinType eOldJoinType = eJoinType;
USHORT nResId = 0;
const USHORT nPos = m_pJoinControl->aLB_JoinType.GetSelectEntryPos();
@@ -203,7 +203,7 @@ IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
case ID_INNER_JOIN:
nResId = STR_QUERY_INNER_JOIN;
bAddHint = sal_False;
- eJoinType = INNER_JOIN;
+ eJoinType = INNER_JOIN;
break;
case ID_LEFT_JOIN:
nResId = STR_QUERY_LEFTRIGHT_JOIN;
@@ -226,7 +226,7 @@ IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
{
nResId = STR_QUERY_CROSS_JOIN;
eJoinType = CROSS_JOIN;
-
+
m_pConnData->ResetConnLines();
m_pTableControl->lateInit();
m_pJoinControl->m_aCBNatural.Check(FALSE);
@@ -272,7 +272,7 @@ IMPL_LINK( DlgQryJoin, LBChangeHdl, ListBox*, /*pListBox*/ )
IMPL_LINK( DlgQryJoin, OKClickHdl, Button*, /*pButton*/ )
{
DBG_CHKTHIS(DlgQryJoin,NULL);
-
+
m_pConnData->Update();
m_pOrigConnData->CopyFrom( *m_pConnData );
@@ -295,12 +295,12 @@ IMPL_LINK( DlgQryJoin, NaturalToggleHdl, CheckBox*, /*pButton*/ )
Reference<XNameAccess> xReferencedTableColumns(m_pConnData->getReferencedTable()->getColumns());
Sequence< ::rtl::OUString> aSeq = m_pConnData->getReferencingTable()->getColumns()->getElementNames();
const ::rtl::OUString* pIter = aSeq.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
+ const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
for(;pIter != pEnd;++pIter)
{
if ( xReferencedTableColumns->hasByName(*pIter) )
m_pConnData->AppendConnLine(*pIter,*pIter);
- }
+ }
}
catch( const Exception& )
{
@@ -309,7 +309,7 @@ IMPL_LINK( DlgQryJoin, NaturalToggleHdl, CheckBox*, /*pButton*/ )
m_pTableControl->NotifyCellChange();
m_pTableControl->Invalidate();
}
-
+
return 1;
}
// -----------------------------------------------------------------------------
@@ -367,7 +367,7 @@ void DlgQryJoin::setJoinType(EJoinType _eNewJoinType)
break;
}
}
-
+
LBChangeHdl(&m_pJoinControl->aLB_JoinType);
}
// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/querydesign/querydlg.hrc b/dbaccess/source/ui/querydesign/querydlg.hrc
index 0112fe1ffa56..f5acfd0d5266 100644
--- a/dbaccess/source/ui/querydesign/querydlg.hrc
+++ b/dbaccess/source/ui/querydesign/querydlg.hrc
@@ -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
@@ -33,18 +33,18 @@
#endif
#define FL_JOIN 1
-#define FT_LISTBOXTITLE 2
+#define FT_LISTBOXTITLE 2
-#define LB_JOINTYPE 1
+#define LB_JOINTYPE 1
-#define GB_FIELDS 1
+#define GB_FIELDS 1
#define CB_NATURAL 1
-#define PB_OK 1
-#define PB_CANCEL 2
-#define PB_HELP 3
-#define ML_HELPTEXT 4
+#define PB_OK 1
+#define PB_CANCEL 2
+#define PB_HELP 3
+#define ML_HELPTEXT 4
#define WND_JOIN_CONTROL 1
#define WND_CONTROL 2
diff --git a/dbaccess/source/ui/querydesign/querydlg.hxx b/dbaccess/source/ui/querydesign/querydlg.hxx
index 2e0b331fb13e..f18fde0309d7 100644
--- a/dbaccess/source/ui/querydesign/querydlg.hxx
+++ b/dbaccess/source/ui/querydesign/querydlg.hxx
@@ -2,7 +2,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
@@ -46,23 +46,23 @@ namespace dbaui
class OTableListBoxControl;
class OQueryTableView;
class OJoinControl;
- class DlgQryJoin : public ModalDialog
+ class DlgQryJoin : public ModalDialog
,public IRelationControlInterface
{
protected:
- FixedText aML_HelpText;
- OKButton aPB_OK;
- CancelButton aPB_CANCEL;
- HelpButton aPB_HELP;
+ FixedText aML_HelpText;
+ OKButton aPB_OK;
+ CancelButton aPB_CANCEL;
+ HelpButton aPB_HELP;
OJoinControl* m_pJoinControl;
- OTableListBoxControl* m_pTableControl;
- OJoinTableView::OTableWindowMap* m_pTableMap;
+ OTableListBoxControl* m_pTableControl;
+ OJoinTableView::OTableWindowMap* m_pTableMap;
OQueryTableView* m_pTableView;
- EJoinType eJoinType;
- TTableConnectionData::value_type m_pConnData; // enth"alt linke und rechte Tabelle
- TTableConnectionData::value_type m_pOrigConnData;
+ EJoinType eJoinType;
+ TTableConnectionData::value_type m_pConnData; // enth"alt linke und rechte Tabelle
+ TTableConnectionData::value_type m_pOrigConnData;
::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
@@ -71,13 +71,13 @@ namespace dbaui
DECL_LINK( NaturalToggleHdl, CheckBox* );
/** setJoinType enables and set the new join type
- @param _eNewJoinType the new jointype
+ @param _eNewJoinType the new jointype
*/
void setJoinType(EJoinType _eNewJoinType);
public:
- DlgQryJoin( OQueryTableView * pParent,
+ DlgQryJoin( OQueryTableView * pParent,
const TTableConnectionData::value_type& pData,
- OJoinTableView::OTableWindowMap* _pTableMap,
+ OJoinTableView::OTableWindowMap* _pTableMap,
const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,
BOOL _bAllowTableSelect);
virtual ~DlgQryJoin();
@@ -89,14 +89,14 @@ namespace dbaui
virtual TTableConnectionData::value_type getConnectionData() const;
/** setValid set the valid inside, can be used for OK buttons
- @param _bValid true when the using control allows an update
+ @param _bValid true when the using control allows an update
*/
virtual void setValid(sal_Bool _bValid);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > getConnection() { return m_xConnection; }
/** notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists
- @param _pConnectionData the connection which exists between the new tables
+ @param _pConnectionData the connection which exists between the new tables
*/
virtual void notifyConnectionChange();
};
diff --git a/dbaccess/source/ui/querydesign/querydlg.src b/dbaccess/source/ui/querydesign/querydlg.src
index 687df3159186..30bc059c412a 100644
--- a/dbaccess/source/ui/querydesign/querydlg.src
+++ b/dbaccess/source/ui/querydesign/querydlg.src
@@ -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
@@ -69,8 +69,8 @@ ModalDialog DLG_QRY_JOIN
Size = MAP_APPFONT ( 90 , 60 ) ;
HelpId = HID_DLG_QRY_JOINTYPE ;
- DropDown = TRUE;
- DDExtraWidth = TRUE;
+ DropDown = TRUE;
+ DDExtraWidth = TRUE;
StringList [ en-US ] =
{
< "Inner join" ; ID_INNER_JOIN; > ;
@@ -137,7 +137,7 @@ ModalDialog DLG_QRY_JOIN
Size = MAP_APPFONT ( 179 , 49 ) ;
UniqueId = HID_DLG_QRY_HELPTEXT ;
SVLook = TRUE;
- WordBreak = TRUE;
+ WordBreak = TRUE;
};
OKButton PB_OK
diff --git a/dbaccess/source/ui/querydesign/queryview.cxx b/dbaccess/source/ui/querydesign/queryview.cxx
index dea455795484..ea7c76ba32a7 100644
--- a/dbaccess/source/ui/querydesign/queryview.cxx
+++ b/dbaccess/source/ui/querydesign/queryview.cxx
@@ -2,7 +2,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