summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx4
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx8
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescriptions.cxx50
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx96
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.hxx82
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx242
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignControl.cxx8
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignHelpBar.cxx4
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignView.cxx32
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.cxx8
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldControl.hxx28
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx72
-rw-r--r--dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx18
-rw-r--r--dbaccess/source/ui/tabledesign/TableRow.cxx16
-rw-r--r--dbaccess/source/ui/tabledesign/TableRowExchange.cxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableUndo.cxx12
-rw-r--r--dbaccess/source/ui/tabledesign/TableUndo.hxx58
-rw-r--r--dbaccess/source/ui/tabledesign/table.src14
18 files changed, 377 insertions, 377 deletions
diff --git a/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx b/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx
index 22756f48a909..05384fdd44c7 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescGenWin.cxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescGenWin.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
@@ -112,7 +112,7 @@ OTableEditorCtrl* OFieldDescGenWin::GetEditorCtrl()
//------------------------------------------------------------------------------
//short OFieldDescGenWin::GetFormatCategory(OFieldDescription* pFieldDescr)
//{
-// return m_pFieldControl->GetFormatCategory(pFieldDescr);
+// return m_pFieldControl->GetFormatCategory(pFieldDescr);
//}
//------------------------------------------------------------------------------
void OFieldDescGenWin::SaveData( OFieldDescription* pFieldDescr )
diff --git a/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx b/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx
index 87cbbe9fb928..366fd36fb666 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescGenWin.hxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescGenWin.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,7 +42,7 @@ namespace dbaui
,public IClipboardTest
{
- OTableFieldControl *m_pFieldControl;
+ OTableFieldControl *m_pFieldControl;
protected:
virtual void Resize();
@@ -62,7 +62,7 @@ namespace dbaui
#if OSL_DEBUG_LEVEL > 0
OTableEditorCtrl* GetEditorCtrl();
#endif
- // short GetFormatCategory(OFieldDescription* pFieldDescr);
+ // short GetFormatCategory(OFieldDescription* pFieldDescr);
// liefert zum am Feld eingestellten Format einen der CAT_xxx-Werte (CAT_NUMBER, CAT_DATE ...)
String BoolStringPersistent(const String& rUIString) const;
@@ -78,7 +78,7 @@ namespace dbaui
virtual void cut();
virtual void paste();
- inline OTableFieldControl* getFieldControl() const { return m_pFieldControl; }
+ inline OTableFieldControl* getFieldControl() const { return m_pFieldControl; }
};
}
#endif // DBAUI_TABLEFIELDDESCGENPAGE_HXX
diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
index 0f7ef63d5d94..f4cf44643ac7 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.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,10 +39,10 @@
#include "UITools.hxx"
#include <com/sun/star/util/NumberFormat.hpp>
-#define DEFAULT_VARCHAR_PRECSION 50
-#define DEFAULT_OTHER_PRECSION 16
-#define DEFAULT_NUMERIC_PRECSION 5
-#define DEFAULT_NUMERIC_SCALE 0
+#define DEFAULT_VARCHAR_PRECSION 50
+#define DEFAULT_OTHER_PRECSION 16
+#define DEFAULT_NUMERIC_PRECSION 5
+#define DEFAULT_NUMERIC_SCALE 0
using namespace dbaui;
@@ -235,7 +235,7 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,sal_Bool _bF
nPrec = GetPrecision();
break;
}
-
+
if ( _pType->nPrecision )
SetPrecision(::std::min<sal_Int32>(nPrec ? nPrec : DEFAULT_NUMERIC_PRECSION,_pType->nPrecision));
if ( _pType->nMaximumScale )
@@ -487,7 +487,7 @@ void OFieldDescription::SetCurrency(sal_Bool _bIsCurrency)
}
// -----------------------------------------------------------------------------
-::rtl::OUString OFieldDescription::GetName() const
+::rtl::OUString OFieldDescription::GetName() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_NAME) )
return ::comphelper::getString(m_xDest->getPropertyValue(PROPERTY_NAME));
@@ -495,7 +495,7 @@ void OFieldDescription::SetCurrency(sal_Bool _bIsCurrency)
return m_sName;
}
// -----------------------------------------------------------------------------
-::rtl::OUString OFieldDescription::GetDescription() const
+::rtl::OUString OFieldDescription::GetDescription() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_DESCRIPTION) )
return ::comphelper::getString(m_xDest->getPropertyValue(PROPERTY_DESCRIPTION));
@@ -503,7 +503,7 @@ void OFieldDescription::SetCurrency(sal_Bool _bIsCurrency)
return m_sDescription;
}
// -----------------------------------------------------------------------------
-::rtl::OUString OFieldDescription::GetHelpText() const
+::rtl::OUString OFieldDescription::GetHelpText() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_HELPTEXT) )
return ::comphelper::getString(m_xDest->getPropertyValue(PROPERTY_HELPTEXT));
@@ -511,7 +511,7 @@ void OFieldDescription::SetCurrency(sal_Bool _bIsCurrency)
return m_sHelpText;
}
// -----------------------------------------------------------------------------
-::com::sun::star::uno::Any OFieldDescription::GetControlDefault() const
+::com::sun::star::uno::Any OFieldDescription::GetControlDefault() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_CONTROLDEFAULT) )
return m_xDest->getPropertyValue(PROPERTY_CONTROLDEFAULT);
@@ -519,7 +519,7 @@ void OFieldDescription::SetCurrency(sal_Bool _bIsCurrency)
return m_aControlDefault;
}
// -----------------------------------------------------------------------------
-::rtl::OUString OFieldDescription::GetAutoIncrementValue() const
+::rtl::OUString OFieldDescription::GetAutoIncrementValue() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_AUTOINCREMENTCREATION) )
return ::comphelper::getString(m_xDest->getPropertyValue(PROPERTY_AUTOINCREMENTCREATION));
@@ -527,7 +527,7 @@ void OFieldDescription::SetCurrency(sal_Bool _bIsCurrency)
return m_sAutoIncrementValue;
}
// -----------------------------------------------------------------------------
-sal_Int32 OFieldDescription::GetType() const
+sal_Int32 OFieldDescription::GetType() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_TYPE) )
return ::comphelper::getINT32(m_xDest->getPropertyValue(PROPERTY_TYPE));
@@ -535,7 +535,7 @@ sal_Int32 OFieldDescription::GetType() const
return m_pType.get() ? m_pType->nType : m_nType;
}
// -----------------------------------------------------------------------------
-::rtl::OUString OFieldDescription::GetTypeName() const
+::rtl::OUString OFieldDescription::GetTypeName() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_TYPENAME) )
return ::comphelper::getString(m_xDest->getPropertyValue(PROPERTY_TYPENAME));
@@ -543,7 +543,7 @@ sal_Int32 OFieldDescription::GetType() const
return m_pType.get() ? m_pType->aTypeName : m_sTypeName;
}
// -----------------------------------------------------------------------------
-sal_Int32 OFieldDescription::GetPrecision() const
+sal_Int32 OFieldDescription::GetPrecision() const
{
sal_Int32 nPrec = m_nPrecision;
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_PRECISION) )
@@ -563,11 +563,11 @@ sal_Int32 OFieldDescription::GetPrecision() const
break;
} // switch ( pTypeInfo->nType )
}
-
+
return nPrec;
}
// -----------------------------------------------------------------------------
-sal_Int32 OFieldDescription::GetScale() const
+sal_Int32 OFieldDescription::GetScale() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_SCALE) )
return ::comphelper::getINT32(m_xDest->getPropertyValue(PROPERTY_SCALE));
@@ -575,7 +575,7 @@ sal_Int32 OFieldDescription::GetScale() const
return m_nScale;
}
// -----------------------------------------------------------------------------
-sal_Int32 OFieldDescription::GetIsNullable() const
+sal_Int32 OFieldDescription::GetIsNullable() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_ISNULLABLE) )
return ::comphelper::getINT32(m_xDest->getPropertyValue(PROPERTY_ISNULLABLE));
@@ -583,7 +583,7 @@ sal_Int32 OFieldDescription::GetIsNullable() const
return m_nIsNullable;
}
// -----------------------------------------------------------------------------
-sal_Int32 OFieldDescription::GetFormatKey() const
+sal_Int32 OFieldDescription::GetFormatKey() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_FORMATKEY) )
return ::comphelper::getINT32(m_xDest->getPropertyValue(PROPERTY_FORMATKEY));
@@ -591,7 +591,7 @@ sal_Int32 OFieldDescription::GetFormatKey() const
return m_nFormatKey;
}
// -----------------------------------------------------------------------------
-SvxCellHorJustify OFieldDescription::GetHorJustify() const
+SvxCellHorJustify OFieldDescription::GetHorJustify() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_ALIGN) )
return ::dbaui::mapTextJustify(::comphelper::getINT32(m_xDest->getPropertyValue(PROPERTY_ALIGN)));
@@ -599,12 +599,12 @@ SvxCellHorJustify OFieldDescription::GetHorJustify() const
return m_eHorJustify;
}
// -----------------------------------------------------------------------------
-TOTypeInfoSP OFieldDescription::getTypeInfo() const
+TOTypeInfoSP OFieldDescription::getTypeInfo() const
{
return m_pType;
}
// -----------------------------------------------------------------------------
-TOTypeInfoSP OFieldDescription::getSpecialTypeInfo() const
+TOTypeInfoSP OFieldDescription::getSpecialTypeInfo() const
{
TOTypeInfoSP pSpecialType( new OTypeInfo() );
*pSpecialType = *m_pType;
@@ -613,7 +613,7 @@ TOTypeInfoSP OFieldDescription::getSpecialTypeInfo() const
return pSpecialType;
}
// -----------------------------------------------------------------------------
-sal_Bool OFieldDescription::IsAutoIncrement() const
+sal_Bool OFieldDescription::IsAutoIncrement() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_ISAUTOINCREMENT) )
return ::cppu::any2bool(m_xDest->getPropertyValue(PROPERTY_ISAUTOINCREMENT));
@@ -621,17 +621,17 @@ sal_Bool OFieldDescription::IsAutoIncrement() const
return m_bIsAutoIncrement;
}
// -----------------------------------------------------------------------------
-sal_Bool OFieldDescription::IsPrimaryKey() const
+sal_Bool OFieldDescription::IsPrimaryKey() const
{
return m_bIsPrimaryKey;
}
// -----------------------------------------------------------------------------
-sal_Bool OFieldDescription::IsCurrency() const
+sal_Bool OFieldDescription::IsCurrency() const
{
return m_bIsCurrency;
}
// -----------------------------------------------------------------------------
-sal_Bool OFieldDescription::IsNullable() const
+sal_Bool OFieldDescription::IsNullable() const
{
if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_ISNULLABLE) )
return ::comphelper::getINT32(m_xDest->getPropertyValue(PROPERTY_ISNULLABLE)) == ::com::sun::star::sdbc::ColumnValue::NULLABLE;
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 06bd03125f51..86c5dc6cf035 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.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
@@ -76,29 +76,29 @@ namespace dbaui
}
//==============================================================================
-// TYPEINIT1(OTableEditorCtrl, DBView);
+// TYPEINIT1(OTableEditorCtrl, DBView);
DBG_NAME(OTableEditorCtrl)
//==============================================================================
-#define HANDLE_ID 0
+#define HANDLE_ID 0
// default Spaltenbreiten
-#define FIELDNAME_WIDTH 100
-#define FIELDTYPE_WIDTH 150
-#define FIELDDESCR_WIDTH 300
+#define FIELDNAME_WIDTH 100
+#define FIELDTYPE_WIDTH 150
+#define FIELDDESCR_WIDTH 300
// Maximale Eingabelaenge im Beschreibungsfeld
-#define MAX_DESCR_LEN 256
+#define MAX_DESCR_LEN 256
-#define CONTROL_SPACING_X 18 // 6
-#define CONTROL_SPACING_Y 5
-#define CONTROL_HEIGHT 20
-#define CONTROL_WIDTH_1 140 // 100
-#define CONTROL_WIDTH_2 100 // 60
-#define CONTROL_WIDTH_3 250
-#define CONTROL_WIDTH_4 (CONTROL_WIDTH_3 - CONTROL_HEIGHT - 5)
+#define CONTROL_SPACING_X 18 // 6
+#define CONTROL_SPACING_Y 5
+#define CONTROL_HEIGHT 20
+#define CONTROL_WIDTH_1 140 // 100
+#define CONTROL_WIDTH_2 100 // 60
+#define CONTROL_WIDTH_3 250
+#define CONTROL_WIDTH_4 (CONTROL_WIDTH_3 - CONTROL_HEIGHT - 5)
//==================================================================
@@ -242,13 +242,13 @@ void OTableEditorCtrl::SetReadOnly( sal_Bool bRead )
//////////////////////////////////////////////////////////////////////
// ::com::sun::star::beans::Property Controls disablen
-// if (pDescrWin)
-// pDescrWin->SetReadOnly(bReadOnly || !SetDataPtr(nRow) || GetActRow()->IsReadOnly());
+// if (pDescrWin)
+// pDescrWin->SetReadOnly(bReadOnly || !SetDataPtr(nRow) || GetActRow()->IsReadOnly());
//////////////////////////////////////////////////////////////////////
// Cursor des Browsers anpassen
BrowserMode nMode(BROWSER_COLUMNSELECTION | BROWSER_MULTISELECTION | BROWSER_KEEPSELECTION |
- BROWSER_HLINESFULL | BROWSER_VLINESFULL|BROWSER_AUTOSIZE_LASTCOL);
+ BROWSER_HLINESFULL | BROWSER_VLINESFULL|BROWSER_AUTOSIZE_LASTCOL);
if( !bReadOnly )
nMode |= BROWSER_HIDECURSOR;
SetMode(nMode);
@@ -274,7 +274,7 @@ void OTableEditorCtrl::InitCellController()
nMaxTextLen = ((xub_StrLen)xMetaData.is() ? static_cast<xub_StrLen>(xMetaData->getMaxColumnNameLength()) : 0);
if( nMaxTextLen == 0 )
- nMaxTextLen = EDIT_NOLIMIT;
+ nMaxTextLen = EDIT_NOLIMIT;
sExtraNameChars = xMetaData.is() ? xMetaData->getExtraNameCharacters() : ::rtl::OUString();
}
@@ -402,8 +402,8 @@ void OTableEditorCtrl::PaintCell(OutputDevice& rDev, const Rectangle& rRect,
if (rDev.IsClipRegion())
rDev.SetClipRegion();
-// rDev.DrawText(rRect.TopLeft(), aText);
-// rDev.SetClipRegion( );
+// rDev.DrawText(rRect.TopLeft(), aText);
+// rDev.SetClipRegion( );
}
//------------------------------------------------------------------------------
@@ -413,8 +413,8 @@ CellController* OTableEditorCtrl::GetController(long nRow, sal_uInt16 nColumnId)
//////////////////////////////////////////////////////////////////////
// Wenn EditorCtrl ReadOnly ist, darf nicht editiert werden
Reference<XPropertySet> xTable = GetView()->getController().getTable();
- if (IsReadOnly() || ( xTable.is() &&
- xTable->getPropertySetInfo()->hasPropertyByName(PROPERTY_TYPE) &&
+ if (IsReadOnly() || ( xTable.is() &&
+ xTable->getPropertySetInfo()->hasPropertyByName(PROPERTY_TYPE) &&
::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == ::rtl::OUString::createFromAscii("VIEW")))
return NULL;
@@ -436,12 +436,12 @@ CellController* OTableEditorCtrl::GetController(long nRow, sal_uInt16 nColumnId)
case HELP_TEXT:
if (pActFieldDescr && (pActFieldDescr->GetName().getLength() != 0))
return new EditCellController( pHelpTextCell );
- else
+ else
return NULL;
case COLUMN_DESCRIPTION:
if (pActFieldDescr && (pActFieldDescr->GetName().getLength() != 0))
return new EditCellController( pDescrCell );
- else
+ else
return NULL;
default:
return NULL;
@@ -474,7 +474,7 @@ void OTableEditorCtrl::InitController(CellControllerRef&, long nRow, sal_uInt16
pTypeCell->Clear();
if( !pActFieldDescr )
break;
-
+
const OTypeInfoMap* pTypeInfo = GetView()->getController().getTypeInfo();
OTypeInfoMap::const_iterator aIter = pTypeInfo->begin();
OTypeInfoMap::const_iterator aEnd = pTypeInfo->end();
@@ -660,7 +660,7 @@ sal_Bool OTableEditorCtrl::SaveData(long nRow, sal_uInt16 nColId)
pHelpTextCell->SetText(String());
pHelpTextCell->ClearModifyFlag();
}
- else
+ else
pActFieldDescr->SetHelpText( pHelpTextCell->GetText() );
break;
}
@@ -832,7 +832,7 @@ void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId )
GetUndoManager()->AddUndoAction(new OTableEditorTypeSelUndoAct(this, GetCurRow(), nColId, GetFieldDescr(GetCurRow())->getTypeInfo()));
resetType();
}
-
+
SaveData(nRow,nColId);
// SaveData could create a undo action as well
GetUndoManager()->LeaveListAction();
@@ -840,7 +840,7 @@ void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId )
CellControllerRef xController(Controller());
if(xController.Is())
xController->SetModified();
-
+
//////////////////////////////////////////////////////////////////////
// Das ModifyFlag setzen
GetView()->getController().setModified( sal_True );
@@ -1011,7 +1011,7 @@ void OTableEditorCtrl::DeleteRows()
//////////////////////////////////////////////////////////////////////
// Undo-Action erzeugen
GetUndoManager()->AddUndoAction( new OTableEditorDelUndoAct(this) );
-
+
//////////////////////////////////////////////////////////////////////
// Alle markierten Zeilen loeschen
@@ -1151,7 +1151,7 @@ void OTableEditorCtrl::SetCellData( long nRow, sal_uInt16 nColId, const ::com::s
OFieldDescription* pFieldDescr = GetFieldDescr( nRow );
if( !pFieldDescr && nColId != FIELD_TYPE)
return;
-
+
String sValue;
//////////////////////////////////////////////////////////////////////
// Einzelne Felder setzen
@@ -1191,7 +1191,7 @@ void OTableEditorCtrl::SetCellData( long nRow, sal_uInt16 nColId, const ::com::s
break;
case FIELD_PROPERTY_NUMTYPE:
- // pFieldDescr->SetNumType( _rNewData );
+ // pFieldDescr->SetNumType( _rNewData );
OSL_ENSURE(sal_False, "OTableEditorCtrl::SetCellData: invalid column!");
break;
@@ -1276,7 +1276,7 @@ Any OTableEditorCtrl::GetCellData( long nRow, sal_uInt16 nColId )
case FIELD_PROPERTY_NUMTYPE:
OSL_ENSURE(sal_False, "OTableEditorCtrl::GetCellData: invalid column!");
- // return pFieldDescr->GetNumType();
+ // return pFieldDescr->GetNumType();
case FIELD_PROPERTY_AUTOINC:
sValue = pFieldDescr->IsAutoIncrement() ? strYes : strNo;
@@ -1335,7 +1335,7 @@ OFieldDescription* OTableEditorCtrl::GetFieldDescr( long nRow )
sal_Bool OTableEditorCtrl::IsCutAllowed( long nRow )
{
DBG_CHKTHIS(OTableEditorCtrl,NULL);
- sal_Bool bIsCutAllowed = (GetView()->getController().isAddAllowed() && GetView()->getController().isDropAllowed()) ||
+ sal_Bool bIsCutAllowed = (GetView()->getController().isAddAllowed() && GetView()->getController().isDropAllowed()) ||
GetView()->getController().isAlterAllowed();
if(bIsCutAllowed)
@@ -1357,14 +1357,14 @@ sal_Bool OTableEditorCtrl::IsCutAllowed( long nRow )
default:
bIsCutAllowed = sal_False;
break;
- }
+ }
}
-// Reference<XPropertySet> xTable = GetView()->getController().getTable();
-// if( !IsCopyAllowed(nRow) || (xTable.is() && ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == ::rtl::OUString::createFromAscii("VIEW")))
-// return sal_False;
+// Reference<XPropertySet> xTable = GetView()->getController().getTable();
+// if( !IsCopyAllowed(nRow) || (xTable.is() && ::comphelper::getString(xTable->getPropertyValue(PROPERTY_TYPE)) == ::rtl::OUString::createFromAscii("VIEW")))
+// return sal_False;
- // return bCutAllowed && IsDeleteAllowed( nRow );
+ // return bCutAllowed && IsDeleteAllowed( nRow );
return bIsCutAllowed;
}
@@ -1400,7 +1400,7 @@ sal_Bool OTableEditorCtrl::IsCopyAllowed( long /*nRow*/ )
bIsCopyAllowed = sal_True;
}
-
+
return bIsCopyAllowed;
}
@@ -1597,7 +1597,7 @@ void OTableEditorCtrl::Command(const CommandEvent& rEvt)
Point aMenuPos( rEvt.GetMousePosPixel() );
if (!rEvt.IsMouseEvent())
{
- if ( 1 == GetSelectColumnCount() )
+ if ( 1 == GetSelectColumnCount() )
{
sal_uInt16 nSelId = GetColumnId(
sal::static_int_cast< USHORT >(
@@ -1606,7 +1606,7 @@ void OTableEditorCtrl::Command(const CommandEvent& rEvt)
aMenuPos = aColRect.TopCenter();
}
- else if ( GetSelectRowCount() > 0 )
+ else if ( GetSelectRowCount() > 0 )
{
::Rectangle aColRect( GetFieldRectPixel( FirstSelectedRow(), HANDLE_ID, sal_True ) );
@@ -1629,9 +1629,9 @@ void OTableEditorCtrl::Command(const CommandEvent& rEvt)
if ( HANDLE_ID != nColId )
{
if ( nRow < 0 && nColId != BROWSER_INVALIDID )
- { // hit the header
+ { // hit the header
if ( 3 != nColId )
- { // 3 would mean the last column, and this last column is auto-sized
+ { // 3 would mean the last column, and this last column is auto-sized
if ( !IsColumnSelected( nColId ) )
SelectColumnId( nColId );
@@ -1724,16 +1724,16 @@ IMPL_LINK( OTableEditorCtrl, DelayedPaste, void*, /*EMPTYTAG*/ )
nPastePosition = GetSelectRowCount() ? FirstSelectedRow() : GetCurRow();
if (!IsInsertNewAllowed(nPastePosition))
- { // kein Einfuegen erlaubt, sondern nur anhaengen, also testen, ob hinter der PastePosition noch
+ { // kein Einfuegen erlaubt, sondern nur anhaengen, also testen, ob hinter der PastePosition noch
// belegte Zeilen erscheinen
- sal_Int32 nFreeFromPos; // ab da nur freie Zeilen
+ sal_Int32 nFreeFromPos; // ab da nur freie Zeilen
::std::vector< ::boost::shared_ptr<OTableRow> >::reverse_iterator aIter = m_pRowList->rbegin();
for(nFreeFromPos = m_pRowList->size();
aIter != m_pRowList->rend() && (!(*aIter) || !(*aIter)->GetActFieldDescr() || !(*aIter)->GetActFieldDescr()->GetName().getLength());
--nFreeFromPos, ++aIter)
;
- if (nPastePosition < nFreeFromPos) // es gibt mindestens eine belegte hinter PastePosition -> ganz nach hinten
+ if (nPastePosition < nFreeFromPos) // es gibt mindestens eine belegte hinter PastePosition -> ganz nach hinten
nPastePosition = nFreeFromPos;
}
@@ -1768,7 +1768,7 @@ IMPL_LINK( OTableEditorCtrl, DelayedInsNewRows, void*, /*EMPTYTAG*/ )
return 0;
}
// -----------------------------------------------------------------------------
-void OTableEditorCtrl::AdjustFieldDescription(OFieldDescription* _pFieldDesc,
+void OTableEditorCtrl::AdjustFieldDescription(OFieldDescription* _pFieldDesc,
MultiSelection& _rMultiSel,
sal_Int32 _nPos,
sal_Bool _bSet,
@@ -1954,7 +1954,7 @@ long OTableEditorCtrl::PreNotify( NotifyEvent& rNEvt )
else
m_eChildFocus = ROW;
}
-
+
return OTableRowView::PreNotify(rNEvt);
}
// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.hxx b/dbaccess/source/ui/tabledesign/TEditControl.hxx
index 1d154ee5be0d..69d611c4ddad 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.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
@@ -52,25 +52,25 @@ namespace dbaui
NONE
};
- ::std::vector< ::boost::shared_ptr<OTableRow> > m_aUndoList;
- ::std::vector< ::boost::shared_ptr<OTableRow> >* m_pRowList;
-
- OSQLNameEdit* pNameCell;
- ::svt::ListBoxControl* pTypeCell;
- Edit* pHelpTextCell;
- Edit* pDescrCell;
- OTableFieldDescWin* pDescrWin; // properties of one column
+ ::std::vector< ::boost::shared_ptr<OTableRow> > m_aUndoList;
+ ::std::vector< ::boost::shared_ptr<OTableRow> >* m_pRowList;
+ OSQLNameEdit* pNameCell;
+ ::svt::ListBoxControl* pTypeCell;
+ Edit* pHelpTextCell;
+ Edit* pDescrCell;
+ OTableFieldDescWin* pDescrWin; // properties of one column
+
::boost::shared_ptr<OTableRow> pActRow;
- ULONG nIndexEvent;
- ULONG nCutEvent;
- ULONG nPasteEvent;
- ULONG nDeleteEvent;
- ULONG nInsNewRowsEvent;
- ULONG nInvalidateTypeEvent;
- ULONG nEntryNotFoundEvent;
- ChildFocusState m_eChildFocus;
+ ULONG nIndexEvent;
+ ULONG nCutEvent;
+ ULONG nPasteEvent;
+ ULONG nDeleteEvent;
+ ULONG nInsNewRowsEvent;
+ ULONG nInvalidateTypeEvent;
+ ULONG nEntryNotFoundEvent;
+ ChildFocusState m_eChildFocus;
long nOldDataPos;
@@ -81,7 +81,7 @@ namespace dbaui
class ClipboardInvalidator
{
private:
- AutoTimer m_aInvalidateTimer;
+ AutoTimer m_aInvalidateTimer;
OTableEditorCtrl* m_pOwner;
public:
@@ -93,7 +93,7 @@ namespace dbaui
};
friend class OTableEditorCtrl::ClipboardInvalidator;
- ClipboardInvalidator m_aInvalidate;
+ ClipboardInvalidator m_aInvalidate;
protected:
virtual void Command( const CommandEvent& rEvt );
@@ -108,7 +108,7 @@ namespace dbaui
virtual void InitController(::svt::CellControllerRef& rController, long nRow, USHORT nCol);
virtual void CellModified();
- virtual BOOL SaveModified(); // wird aufgerufen vor einem Zellenwechsel
+ virtual BOOL SaveModified(); // wird aufgerufen vor einem Zellenwechsel
// return FALSE, verhindert Zellenwechsel
virtual void Undo();
virtual void Redo();
@@ -124,26 +124,26 @@ namespace dbaui
virtual sal_Bool IsInsertNewAllowed( long nRow );
virtual sal_Bool IsDeleteAllowed( long nRow );
- void ClearModified();
+ void ClearModified();
- void SetPrimaryKey( BOOL bSet );
- BOOL IsPrimaryKey();
+ void SetPrimaryKey( BOOL bSet );
+ BOOL IsPrimaryKey();
DECL_LINK(ControlPreNotifyHdl, NotifyEvent*);
public:
- // TYPEINFO();
+ // TYPEINFO();
OTableEditorCtrl(Window* pParentWin);
- virtual ~OTableEditorCtrl();
- virtual BOOL CursorMoving(long nNewRow, USHORT nNewCol);
- virtual void UpdateAll();
+ virtual ~OTableEditorCtrl();
+ virtual BOOL CursorMoving(long nNewRow, USHORT nNewCol);
+ virtual void UpdateAll();
SfxUndoManager* GetUndoManager() const;
+
+ void SetDescrWin( OTableFieldDescWin* pWin ){ pDescrWin = pWin; if (pDescrWin && pActRow) pDescrWin->DisplayData(pActRow->GetActFieldDescr()); }
+ BOOL SaveCurRow();
+ void SwitchType( const TOTypeInfoSP& _pType );
- void SetDescrWin( OTableFieldDescWin* pWin ){ pDescrWin = pWin; if (pDescrWin && pActRow) pDescrWin->DisplayData(pActRow->GetActFieldDescr()); }
- BOOL SaveCurRow();
- void SwitchType( const TOTypeInfoSP& _pType );
-
- void DisplayData( long nRow, BOOL bGrabFocus = TRUE );
+ void DisplayData( long nRow, BOOL bGrabFocus = TRUE );
// erzwingt das Anzeigen der genannten Zeile (selbst wenn es eigentlich schon die aktuelle ist)
virtual void SetCellData( long nRow, sal_uInt16 nColId, const TOTypeInfoSP& _pTypeInfo );
@@ -158,7 +158,7 @@ namespace dbaui
::boost::shared_ptr<OTableRow> GetActRow(){ return pActRow; }
void CellModified( long nRow, sal_uInt16 nColId );
- void SetReadOnly( BOOL bRead=TRUE );
+ void SetReadOnly( BOOL bRead=TRUE );
virtual void Init();
virtual void DeactivateCell(sal_Bool bUpdate = sal_True);
@@ -170,7 +170,7 @@ namespace dbaui
OFieldDescription* GetFieldDescr( long nRow );
// window overloads
- virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
// IClipboardTest
virtual sal_Bool isCutAllowed() { return IsCutAllowed(); }
@@ -194,16 +194,16 @@ namespace dbaui
INT32 HasFieldName( const String& rFieldName );
String GenerateName( const String& rName );
BOOL SetDataPtr( long nRow );
-
+
BOOL SaveData(long nRow, USHORT nColumnId);
/** AdjustFieldDescription set the needed values for the description
- @param _pFieldDesc the field description where to set the values
- @param _rMultiSel contains the postions which changed for undo/redo
- @param _nPos the current position
- @param _bSet should a key be set
- @param _bPrimaryKey which value should the pkey have
+ @param _pFieldDesc the field description where to set the values
+ @param _rMultiSel contains the postions which changed for undo/redo
+ @param _nPos the current position
+ @param _bSet should a key be set
+ @param _bPrimaryKey which value should the pkey have
*/
- void AdjustFieldDescription( OFieldDescription* _pFieldDesc,
+ void AdjustFieldDescription( OFieldDescription* _pFieldDesc,
MultiSelection& _rMultiSel,
sal_Int32 _nPos,
sal_Bool _bSet,
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index 3336906c21aa..702d2c677b02 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.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
@@ -36,7 +36,7 @@
#include "TableRow.hxx"
#include "TypeInfo.hxx"
#include "UITools.hxx"
-#include "browserids.hxx"
+#include "browserids.hxx"
#include "dbu_reghelper.hxx"
#include "dbu_tbl.hrc"
#include "dbustrings.hrc"
@@ -110,7 +110,7 @@ using namespace ::dbaui;
using namespace ::comphelper;
// Anzahl Spalten beim Neuanlegen
-#define NEWCOLS 128
+#define NEWCOLS 128
namespace
{
@@ -127,7 +127,7 @@ namespace
//------------------------------------------------------------------------------
struct OTableRowCompare : public ::std::binary_function< ::boost::shared_ptr<OTableRow> , ::rtl::OUString, bool>
{
- bool operator() (const ::boost::shared_ptr<OTableRow> lhs, const ::rtl::OUString& rhs) const
+ bool operator() (const ::boost::shared_ptr<OTableRow> lhs, const ::rtl::OUString& rhs) const
{
OFieldDescription* pField = lhs->GetActFieldDescr();
return pField && pField->GetName() == rhs;
@@ -245,7 +245,7 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const
aReturn.bEnabled = aIter != m_vRowList.end();
}
break;
-
+
case ID_BROWSER_CUT:
aReturn.bEnabled = isEditable() && m_aCurrentFrame.isActive() && getView() && static_cast<OTableDesignView*>(getView())->isCutAllowed();
break;
@@ -257,10 +257,10 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const
break;
case SID_INDEXDESIGN:
aReturn.bEnabled =
- ( ( ((!m_bNew && impl_isModified()) || impl_isModified())
- || Reference< XIndexesSupplier >(m_xTable, UNO_QUERY).is()
+ ( ( ((!m_bNew && impl_isModified()) || impl_isModified())
+ || Reference< XIndexesSupplier >(m_xTable, UNO_QUERY).is()
)
- && isConnected()
+ && isConnected()
);
if ( aReturn.bEnabled )
{
@@ -360,7 +360,7 @@ sal_Bool OTableController::doSaveDoc(sal_Bool _bSaveAs)
m_sName = aDlg.getName();
sCatalog = aDlg.getCatalog();
- sSchema = aDlg.getSchema();
+ sSchema = aDlg.getSchema();
}
// did we get a name
@@ -414,10 +414,10 @@ sal_Bool OTableController::doSaveDoc(sal_Bool _bSaveAs)
assignTable();
if(!m_xTable.is()) // correct name and try again
- {
+ {
// it can be that someone inserted new data for us
m_sName = ::dbtools::composeTableName( getConnection()->getMetaData(), xTable, ::dbtools::eInDataManipulation, false, false, false );
- assignTable();
+ assignTable();
}
// now check if our datasource has set a tablefilter and if append the new table name to it
::dbaui::appendToFilter(getConnection(),m_sName,getORB(),getView()); // we are not interessted in the return value
@@ -436,17 +436,17 @@ sal_Bool OTableController::doSaveDoc(sal_Bool _bSaveAs)
}
reSyncRows();
}
- catch(const SQLContext& e)
- {
- aInfo = SQLExceptionInfo(e);
+ catch(const SQLContext& e)
+ {
+ aInfo = SQLExceptionInfo(e);
}
catch(const SQLWarning& e)
- {
- aInfo = SQLExceptionInfo(e);
+ {
+ aInfo = SQLExceptionInfo(e);
}
catch(const SQLException& e)
- {
- aInfo = SQLExceptionInfo(e);
+ {
+ aInfo = SQLExceptionInfo(e);
}
catch(const ElementExistException& )
{
@@ -475,7 +475,7 @@ sal_Bool OTableController::doSaveDoc(sal_Bool _bSaveAs)
stopTableListening();
m_xTable = NULL;
}
- // reload(); // a error occured so we have to reload
+ // reload(); // a error occured so we have to reload
}
return ! (aInfo.isValid() || bError);
}
@@ -496,8 +496,8 @@ void OTableController::doEditIndexes()
OSL_ENSURE(!m_bNew && !isModified(), "OTableController::doEditIndexes: what the hell did doSaveDoc do?");
}
- Reference< XNameAccess > xIndexes; // will be the keys of the table
- Sequence< ::rtl::OUString > aFieldNames; // will be the column names of the table
+ Reference< XNameAccess > xIndexes; // will be the keys of the table
+ Sequence< ::rtl::OUString > aFieldNames; // will be the column names of the table
try
{
// get the keys
@@ -555,10 +555,10 @@ void OTableController::impl_initialize()
{
DBG_UNHANDLED_EXCEPTION();
}
-
+
try
{
- ::dbaui::fillTypeInfo(getConnection(),m_sTypeNames,m_aTypeInfo,m_aTypeInfoIndex); // fill the needed type information
+ ::dbaui::fillTypeInfo(getConnection(),m_sTypeNames,m_aTypeInfo,m_aTypeInfoIndex); // fill the needed type information
}
catch(const SQLException&)
{
@@ -567,10 +567,10 @@ void OTableController::impl_initialize()
}
try
{
- loadData(); // fill the column information form the table
- getView()->initialize(); // show the windows and fill with our informations
- getUndoMgr()->Clear(); // clear all undo redo things
- setModified(sal_False); // and we are not modified yet
+ loadData(); // fill the column information form the table
+ getView()->initialize(); // show the windows and fill with our informations
+ getUndoMgr()->Clear(); // clear all undo redo things
+ setModified(sal_False); // and we are not modified yet
}
catch( const Exception& )
{
@@ -582,8 +582,8 @@ sal_Bool OTableController::Construct(Window* pParent)
{
setView( * new OTableDesignView( pParent, getORB(), *this ) );
OTableController_BASE::Construct(pParent);
-// m_pView->Construct();
-// m_pView->Show();
+// m_pView->Construct();
+// m_pView->Show();
return sal_True;
}
// -----------------------------------------------------------------------------
@@ -681,10 +681,10 @@ void OTableController::impl_onModifyChanged()
void SAL_CALL OTableController::disposing( const EventObject& _rSource ) throw(RuntimeException)
{
if ( _rSource.Source == m_xTable )
- { // some deleted our table so we have a new one
+ { // some deleted our table so we have a new one
stopTableListening();
- m_xTable = NULL;
- m_bNew = sal_True;
+ m_xTable = NULL;
+ m_bNew = sal_True;
setModified(sal_True);
}
else
@@ -716,18 +716,18 @@ void OTableController::losingConnection( )
xComponent->removeEventListener(xEvtL);
}
stopTableListening();
- m_xTable = NULL;
+ m_xTable = NULL;
assignTable();
if(!m_xTable.is())
{
- m_bNew = sal_True;
+ m_bNew = sal_True;
setModified(sal_True);
}
InvalidateAll();
}
// -----------------------------------------------------------------------------
-TOTypeInfoSP OTableController::getTypeInfoByType(sal_Int32 _nDataType) const
-{
+TOTypeInfoSP OTableController::getTypeInfoByType(sal_Int32 _nDataType) const
+{
return queryTypeInfoByType(_nDataType,m_aTypeInfo);
}
// -----------------------------------------------------------------------------
@@ -754,7 +754,7 @@ void OTableController::appendColumns(Reference<XColumnsSupplier>& _rxColSup,sal_
OFieldDescription* pField = (*aIter)->GetActFieldDescr();
if ( !pField || (!_bNew && (*aIter)->IsReadOnly() && !_bKeyColumns) )
continue;
-
+
Reference<XPropertySet> xColumn;
if(pField->IsPrimaryKey() || !_bKeyColumns)
xColumn = xColumnFactory->createDataDescriptor();
@@ -778,7 +778,7 @@ void OTableController::appendColumns(Reference<XColumnsSupplier>& _rxColSup,sal_
{
OSL_ENSURE(sal_False, "OTableController::appendColumns: invalid field name!");
}
-
+
}
}
}
@@ -854,47 +854,47 @@ void OTableController::loadData()
// Bei Drop darf keine Zeile editierbar sein.
// Bei Add duerfen nur die leeren Zeilen editierbar sein.
// Bei Add und Drop koennen alle Zeilen editiert werden.
- // sal_Bool bReadOldRow = xMetaData->supportsAlterTableWithAddColumn() && xMetaData->supportsAlterTableWithDropColumn();
+ // sal_Bool bReadOldRow = xMetaData->supportsAlterTableWithAddColumn() && xMetaData->supportsAlterTableWithDropColumn();
sal_Bool bIsAlterAllowed = isAlterAllowed();
Sequence< ::rtl::OUString> aColumns = xColumns->getElementNames();
- const ::rtl::OUString* pIter = aColumns.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aColumns.getLength();
+ const ::rtl::OUString* pIter = aColumns.getConstArray();
+ const ::rtl::OUString* pEnd = pIter + aColumns.getLength();
for(;pIter != pEnd;++pIter)
{
Reference<XPropertySet> xColumn;
xColumns->getByName(*pIter) >>= xColumn;
- sal_Int32 nType = 0;
- sal_Int32 nScale = 0;
- sal_Int32 nPrecision = 0;
- sal_Int32 nNullable = 0;
- sal_Int32 nFormatKey = 0;
- sal_Int32 nAlign = 0;
+ sal_Int32 nType = 0;
+ sal_Int32 nScale = 0;
+ sal_Int32 nPrecision = 0;
+ sal_Int32 nNullable = 0;
+ sal_Int32 nFormatKey = 0;
+ sal_Int32 nAlign = 0;
sal_Bool bIsAutoIncrement = false, bIsCurrency = false;
::rtl::OUString sName,sDescription,sTypeName,sHelpText;
Any aControlDefault;
// get the properties from the column
- xColumn->getPropertyValue(PROPERTY_NAME) >>= sName;
- xColumn->getPropertyValue(PROPERTY_TYPENAME) >>= sTypeName;
- xColumn->getPropertyValue(PROPERTY_ISNULLABLE) >>= nNullable;
- xColumn->getPropertyValue(PROPERTY_ISAUTOINCREMENT) >>= bIsAutoIncrement;
- xColumn->getPropertyValue(PROPERTY_ISCURRENCY) >>= bIsCurrency;
- xColumn->getPropertyValue(PROPERTY_TYPE) >>= nType;
- xColumn->getPropertyValue(PROPERTY_SCALE) >>= nScale;
- xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision;
- xColumn->getPropertyValue(PROPERTY_DESCRIPTION) >>= sDescription;
+ xColumn->getPropertyValue(PROPERTY_NAME) >>= sName;
+ xColumn->getPropertyValue(PROPERTY_TYPENAME) >>= sTypeName;
+ xColumn->getPropertyValue(PROPERTY_ISNULLABLE) >>= nNullable;
+ xColumn->getPropertyValue(PROPERTY_ISAUTOINCREMENT) >>= bIsAutoIncrement;
+ xColumn->getPropertyValue(PROPERTY_ISCURRENCY) >>= bIsCurrency;
+ xColumn->getPropertyValue(PROPERTY_TYPE) >>= nType;
+ xColumn->getPropertyValue(PROPERTY_SCALE) >>= nScale;
+ xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision;
+ xColumn->getPropertyValue(PROPERTY_DESCRIPTION) >>= sDescription;
if(xColumn->getPropertySetInfo()->hasPropertyByName(PROPERTY_HELPTEXT))
- xColumn->getPropertyValue(PROPERTY_HELPTEXT) >>= sHelpText;
-
+ xColumn->getPropertyValue(PROPERTY_HELPTEXT) >>= sHelpText;
+
if(xColumn->getPropertySetInfo()->hasPropertyByName(PROPERTY_CONTROLDEFAULT))
aControlDefault = xColumn->getPropertyValue(PROPERTY_CONTROLDEFAULT);
if(xColumn->getPropertySetInfo()->hasPropertyByName(PROPERTY_FORMATKEY))
- xColumn->getPropertyValue(PROPERTY_FORMATKEY) >>= nFormatKey;
+ xColumn->getPropertyValue(PROPERTY_FORMATKEY) >>= nFormatKey;
if(xColumn->getPropertySetInfo()->hasPropertyByName(PROPERTY_ALIGN))
- xColumn->getPropertyValue(PROPERTY_ALIGN) >>= nAlign;
+ xColumn->getPropertyValue(PROPERTY_ALIGN) >>= nAlign;
pTabEdRow.reset(new OTableRow());
pTabEdRow->SetReadOnly(!bIsAlterAllowed);
@@ -912,7 +912,7 @@ void OTableController::loadData()
{
pActFieldDescr->SetName(sName);
pActFieldDescr->SetFormatKey(nFormatKey);
- // pActFieldDescr->SetPrimaryKey(pPrimary->GetValue());
+ // pActFieldDescr->SetPrimaryKey(pPrimary->GetValue());
pActFieldDescr->SetDescription(sDescription);
pActFieldDescr->SetHelpText(sHelpText);
pActFieldDescr->SetAutoIncrement(bIsAutoIncrement);
@@ -929,12 +929,12 @@ void OTableController::loadData()
m_vRowList.push_back( pTabEdRow);
}
// fill the primary key information
- Reference<XNameAccess> xKeyColumns = getKeyColumns();
+ Reference<XNameAccess> xKeyColumns = getKeyColumns();
if(xKeyColumns.is())
{
Sequence< ::rtl::OUString> aKeyColumns = xKeyColumns->getElementNames();
- const ::rtl::OUString* pKeyBegin = aKeyColumns.getConstArray();
- const ::rtl::OUString* pKeyEnd = pKeyBegin + aKeyColumns.getLength();
+ const ::rtl::OUString* pKeyBegin = aKeyColumns.getConstArray();
+ const ::rtl::OUString* pKeyEnd = pKeyBegin + aKeyColumns.getLength();
for(;pKeyBegin != pKeyEnd;++pKeyBegin)
{
@@ -951,7 +951,7 @@ void OTableController::loadData()
}
}
}
-
+
//////////////////////////////////////////////////////////////////////
// Leere Zeilen fuellen
@@ -1053,11 +1053,11 @@ void OTableController::alterColumns()
OSL_ENSURE(xColumns.is(),"No columns");
if ( !xColumns.is() )
return;
- Reference<XAlterTable> xAlter(m_xTable,UNO_QUERY); // can be null
+ Reference<XAlterTable> xAlter(m_xTable,UNO_QUERY); // can be null
sal_Int32 nColumnCount = xIdxColumns->getCount();
- Reference<XDrop> xDrop(xColumns,UNO_QUERY); // can be null
- Reference<XAppend> xAppend(xColumns,UNO_QUERY); // can be null
+ Reference<XDrop> xDrop(xColumns,UNO_QUERY); // can be null
+ Reference<XAppend> xAppend(xColumns,UNO_QUERY); // can be null
Reference<XDataDescriptorFactory> xColumnFactory(xColumns,UNO_QUERY); // can be null
sal_Bool bReload = sal_False; // refresh the data
@@ -1081,24 +1081,24 @@ void OTableController::alterColumns()
aColumns[pField->GetName()] = sal_True;
continue;
}
-
+
Reference<XPropertySet> xColumn;
if ( xColumns->hasByName(pField->GetName()) )
{
aColumns[pField->GetName()] = sal_True;
xColumns->getByName(pField->GetName()) >>= xColumn;
OSL_ENSURE(xColumn.is(),"Column is null!");
-
+
sal_Int32 nType=0,nPrecision=0,nScale=0,nNullable=0;
sal_Bool bAutoIncrement = false;
::rtl::OUString sTypeName,sDescription;
- xColumn->getPropertyValue(PROPERTY_TYPE) >>= nType;
- xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision;
- xColumn->getPropertyValue(PROPERTY_SCALE) >>= nScale;
- xColumn->getPropertyValue(PROPERTY_ISNULLABLE) >>= nNullable;
+ xColumn->getPropertyValue(PROPERTY_TYPE) >>= nType;
+ xColumn->getPropertyValue(PROPERTY_PRECISION) >>= nPrecision;
+ xColumn->getPropertyValue(PROPERTY_SCALE) >>= nScale;
+ xColumn->getPropertyValue(PROPERTY_ISNULLABLE) >>= nNullable;
xColumn->getPropertyValue(PROPERTY_ISAUTOINCREMENT) >>= bAutoIncrement;
- xColumn->getPropertyValue(PROPERTY_DESCRIPTION) >>= sDescription;
+ xColumn->getPropertyValue(PROPERTY_DESCRIPTION) >>= sDescription;
try { xColumn->getPropertyValue(PROPERTY_TYPENAME) >>= sTypeName; }
catch( const Exception& )
@@ -1110,15 +1110,15 @@ void OTableController::alterColumns()
// Normally, sdbcx::Column objects are expected to have a TypeName property
}
- // xColumn->getPropertyValue(PROPERTY_ISCURRENCY,::cppu::bool2any(pField->IsCurrency()));
+ // xColumn->getPropertyValue(PROPERTY_ISCURRENCY,::cppu::bool2any(pField->IsCurrency()));
// check if something changed
- if((nType != pField->GetType() ||
+ if((nType != pField->GetType() ||
sTypeName != pField->GetTypeName() ||
- (nPrecision != pField->GetPrecision() && nPrecision ) ||
- nScale != pField->GetScale() ||
- nNullable != pField->GetIsNullable() ||
- sDescription != pField->GetDescription() ||
- bAutoIncrement != pField->IsAutoIncrement())&&
+ (nPrecision != pField->GetPrecision() && nPrecision ) ||
+ nScale != pField->GetScale() ||
+ nNullable != pField->GetIsNullable() ||
+ sDescription != pField->GetDescription() ||
+ bAutoIncrement != pField->IsAutoIncrement())&&
xColumnFactory.is())
{
Reference<XPropertySet> xNewColumn;
@@ -1167,8 +1167,8 @@ void OTableController::alterColumns()
xColumns->getByName(pField->GetName()) >>= xColumn;
bReload = sal_True;
}
-
-
+
+
}
else if(xColumnFactory.is() && xAlter.is() && nPos < nColumnCount)
{ // we can't find the column so we could try it with the index before we drop and append a new column
@@ -1179,7 +1179,7 @@ void OTableController::alterColumns()
::dbaui::setColumnProperties(xNewColumn,pField);
xAlter->alterColumnByIndex(nPos,xNewColumn);
if(xColumns->hasByName(pField->GetName()))
- { // ask for the append by name
+ { // ask for the append by name
aColumns[pField->GetName()] = sal_True;
xColumns->getByName(pField->GetName()) >>= xColumn;
if(xColumn.is())
@@ -1217,7 +1217,7 @@ void OTableController::alterColumns()
} // for(sal_Int32 nPos = 0;aIter != aEnd;++aIter,++nPos)
// alter column settings
aIter = m_vRowList.begin();
-
+
// first look for columns where something other than the name changed
for(nPos = 0;aIter != aEnd;++aIter,++nPos)
{
@@ -1230,7 +1230,7 @@ void OTableController::alterColumns()
aColumns[pField->GetName()] = sal_True;
continue;
}
-
+
Reference<XPropertySet> xColumn;
if ( xColumns->hasByName(pField->GetName()) )
{
@@ -1238,7 +1238,7 @@ void OTableController::alterColumns()
Reference<XPropertySetInfo> xInfo = xColumn->getPropertySetInfo();
if ( xInfo->hasPropertyByName(PROPERTY_HELPTEXT) )
xColumn->setPropertyValue(PROPERTY_HELPTEXT,makeAny(pField->GetHelpText()));
-
+
if(xInfo->hasPropertyByName(PROPERTY_CONTROLDEFAULT))
xColumn->setPropertyValue(PROPERTY_CONTROLDEFAULT,pField->GetControlDefault());
if(xInfo->hasPropertyByName(PROPERTY_FORMATKEY))
@@ -1248,7 +1248,7 @@ void OTableController::alterColumns()
} // if ( xColumns->hasByName(pField->GetName()) )
}
// second drop all columns which could be found by name
- Reference<XNameAccess> xKeyColumns = getKeyColumns();
+ Reference<XNameAccess> xKeyColumns = getKeyColumns();
// now we have to look for the columns who could be deleted
if ( xDrop.is() )
{
@@ -1315,7 +1315,7 @@ void OTableController::alterColumns()
::dbaui::setColumnProperties(xColumn,pField);
xAppend->appendByDescriptor(xColumn);
if(xColumns->hasByName(pField->GetName()))
- { // ask for the append by name
+ { // ask for the append by name
aColumns[pField->GetName()] = sal_True;
xColumns->getByName(pField->GetName()) >>= xColumn;
if(xColumn.is())
@@ -1329,7 +1329,7 @@ void OTableController::alterColumns()
}
}
-
+
// check if we have to do something with the primary key
sal_Bool bNeedDropKey = sal_False;
sal_Bool bNeedAppendKey = sal_False;
@@ -1342,25 +1342,25 @@ void OTableController::alterColumns()
OFieldDescription* pField = (*aIter)->GetActFieldDescr();
if ( !pField )
continue;
-
- if ( pField->IsPrimaryKey()
- && !xKeyColumns->hasByName( pField->GetName() )
+
+ if ( pField->IsPrimaryKey()
+ && !xKeyColumns->hasByName( pField->GetName() )
)
- { // new primary key column inserted which isn't already in the columns selection
+ { // new primary key column inserted which isn't already in the columns selection
bNeedDropKey = bNeedAppendKey = sal_True;
break;
}
- else if ( !pField->IsPrimaryKey()
- && xKeyColumns->hasByName( pField->GetName() )
+ else if ( !pField->IsPrimaryKey()
+ && xKeyColumns->hasByName( pField->GetName() )
)
- { // found a column which currently is in the primary key, but is marked not to be anymore
+ { // found a column which currently is in the primary key, but is marked not to be anymore
bNeedDropKey = bNeedAppendKey = sal_True;
break;
}
}
}
else
- { // no primary key available so we check if we should create one
+ { // no primary key available so we check if we should create one
bNeedAppendKey = sal_True;
}
@@ -1406,17 +1406,17 @@ void OTableController::dropPrimaryKey()
}
}
}
- catch(const SQLContext& e)
- {
- aInfo = SQLExceptionInfo(e);
+ catch(const SQLContext& e)
+ {
+ aInfo = SQLExceptionInfo(e);
}
catch(const SQLWarning& e)
- {
- aInfo = SQLExceptionInfo(e);
+ {
+ aInfo = SQLExceptionInfo(e);
}
catch(const SQLException& e)
- {
- aInfo = SQLExceptionInfo(e);
+ {
+ aInfo = SQLExceptionInfo(e);
}
catch( const Exception& )
{
@@ -1426,7 +1426,7 @@ void OTableController::dropPrimaryKey()
showError(aInfo);
}
// -----------------------------------------------------------------------------
-void OTableController::assignTable()
+void OTableController::assignTable()
{
::rtl::OUString sComposedName;
// get the table
@@ -1440,7 +1440,7 @@ void OTableController::assignTable()
OSL_ENSURE(xNameAccess.is(),"no nameaccess for the queries!");
Reference<XPropertySet> xProp;
- if(xNameAccess->hasByName(m_sName) && ::cppu::extractInterface(xProp,xNameAccess->getByName(m_sName)) && xProp.is())
+ if(xNameAccess->hasByName(m_sName) && ::cppu::extractInterface(xProp,xNameAccess->getByName(m_sName)) && xProp.is())
{
m_xTable = xProp;
startTableListening();
@@ -1456,7 +1456,7 @@ void OTableController::assignTable()
// be notified when the table is in disposing
InvalidateAll();
}
- }
+ }
}
//updateTitle();
}
@@ -1506,8 +1506,8 @@ sal_Bool OTableController::isAlterAllowed() const
// -----------------------------------------------------------------------------
void OTableController::reSyncRows()
{
- sal_Bool bAlterAllowed = isAlterAllowed();
- sal_Bool bAddAllowed = isAddAllowed();
+ sal_Bool bAlterAllowed = isAlterAllowed();
+ sal_Bool bAddAllowed = isAddAllowed();
::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aIter = m_vRowList.begin();
::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aEnd = m_vRowList.end();
for(;aIter != aEnd;++aIter)
@@ -1518,12 +1518,12 @@ void OTableController::reSyncRows()
(*aIter)->SetReadOnly(!bAlterAllowed);
else
(*aIter)->SetReadOnly(!bAddAllowed);
-
+
}
- static_cast<OTableDesignView*>(getView())->reSync(); // show the windows and fill with our informations
+ static_cast<OTableDesignView*>(getView())->reSync(); // show the windows and fill with our informations
- getUndoMgr()->Clear(); // clear all undo redo things
- setModified(sal_False); // and we are not modified yet
+ getUndoMgr()->Clear(); // clear all undo redo things
+ setModified(sal_False); // and we are not modified yet
}
// -----------------------------------------------------------------------------
::rtl::OUString OTableController::createUniqueName(const ::rtl::OUString& _rName)
@@ -1551,7 +1551,7 @@ void OTableController::reSyncRows()
{
::rtl::OUString sTitle;
try
- {
+ {
// get the table
if ( m_sName.getLength() && getConnection().is() )
{
@@ -1576,10 +1576,10 @@ void OTableController::reSyncRows()
// -----------------------------------------------------------------------------
void OTableController::reload()
{
- loadData(); // fill the column information form the table
- static_cast<OTableDesignView*>(getView())->reSync(); // show the windows and fill with our informations
- getUndoMgr()->Clear(); // clear all undo redo things
- setModified(sal_False); // and we are not modified yet
+ loadData(); // fill the column information form the table
+ static_cast<OTableDesignView*>(getView())->reSync(); // show the windows and fill with our informations
+ getUndoMgr()->Clear(); // clear all undo redo things
+ setModified(sal_False); // and we are not modified yet
static_cast<OTableDesignView*>(getView())->Invalidate();
}
// -----------------------------------------------------------------------------
@@ -1602,7 +1602,7 @@ sal_Int32 OTableController::getFirstEmptyRowPosition()
::boost::shared_ptr<OTableRow> pTabEdRow(new OTableRow());
pTabEdRow->SetReadOnly(bReadRow);
nRet = m_vRowList.size();
- m_vRowList.push_back( pTabEdRow);
+ m_vRowList.push_back( pTabEdRow);
}
return nRet;
}
diff --git a/dbaccess/source/ui/tabledesign/TableDesignControl.cxx b/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
index 97de4f457d62..826f65c032b2 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignControl.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,8 +75,8 @@ void OTableRowView::Init()
{
EditBrowseBox::Init();
-// SetMapMode( MapMode(MAP_TWIP) );
-// GetDataWindow().SetMapMode( GetMapMode() );
+// SetMapMode( MapMode(MAP_TWIP) );
+// GetDataWindow().SetMapMode( GetMapMode() );
Font aFont( GetDataWindow().GetFont() );
aFont.SetWeight( WEIGHT_NORMAL );
@@ -103,7 +103,7 @@ void OTableRowView::KeyInput( const KeyEvent& rEvt )
{
if (IsDeleteAllowed(0))
{
- if (rEvt.GetKeyCode().GetCode() == KEY_DELETE && // Delete rows
+ if (rEvt.GetKeyCode().GetCode() == KEY_DELETE && // Delete rows
!rEvt.GetKeyCode().IsShift() &&
!rEvt.GetKeyCode().IsMod1())
{
diff --git a/dbaccess/source/ui/tabledesign/TableDesignHelpBar.cxx b/dbaccess/source/ui/tabledesign/TableDesignHelpBar.cxx
index 7279c1ec1fca..8b44d4e8fe13 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignHelpBar.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignHelpBar.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
@@ -34,7 +34,7 @@
#include "dbaccess_helpid.hrc"
#include <memory>
using namespace dbaui;
-#define STANDARD_MARGIN 6
+#define STANDARD_MARGIN 6
//==================================================================
// class OTableDesignHelpBar
//==================================================================
diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
index 66b5d8c621f3..e42d31b59595 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignView.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,7 +62,7 @@ OTableBorderWindow::OTableBorderWindow(Window* pParent) : Window(pParent,WB_BORD
ImplInitSettings( sal_True, sal_True, sal_True );
//////////////////////////////////////////////////////////////////////
// Childs erzeugen
- m_pEditorCtrl = new OTableEditorCtrl( this);
+ m_pEditorCtrl = new OTableEditorCtrl( this);
m_pFieldDescWin = new OTableFieldDescWin( this );
m_pFieldDescWin->SetHelpId(HID_TAB_DESIGN_DESCWIN);
@@ -80,7 +80,7 @@ OTableBorderWindow::~OTableBorderWindow()
{
//////////////////////////////////////////////////////////////////////
// Childs zerstoeren
- // ::dbaui::notifySystemWindow(this,m_pFieldDescWin,::comphelper::mem_fun(&TaskPaneList::RemoveWindow));
+ // ::dbaui::notifySystemWindow(this,m_pFieldDescWin,::comphelper::mem_fun(&TaskPaneList::RemoveWindow));
m_pEditorCtrl->Hide();
m_pFieldDescWin->Hide();
@@ -103,9 +103,9 @@ void OTableBorderWindow::Resize()
//////////////////////////////////////////////////////////////////////
// Abmessungen parent window
Size aOutputSize( GetOutputSize() );
- long nOutputWidth = aOutputSize.Width();
- long nOutputHeight = aOutputSize.Height();
- long nSplitPos = m_aHorzSplitter.GetSplitPosPixel();
+ long nOutputWidth = aOutputSize.Width();
+ long nOutputHeight = aOutputSize.Height();
+ long nSplitPos = m_aHorzSplitter.GetSplitPosPixel();
//////////////////////////////////////////////////////////////////////
// Verschiebebereich Splitter mittleres Drittel des Outputs
@@ -124,7 +124,7 @@ void OTableBorderWindow::Resize()
// Fenster setzen
m_pEditorCtrl->SetPosSizePixel( Point(0, 0), Size(nOutputWidth , nSplitPos) );
- m_pFieldDescWin->SetPosSizePixel( Point(0, nSplitPos+nSplitterHeight),
+ m_pFieldDescWin->SetPosSizePixel( Point(0, nSplitPos+nSplitterHeight),
Size(nOutputWidth, nOutputHeight-nSplitPos-nSplitterHeight) );
}
//------------------------------------------------------------------------------
@@ -148,7 +148,7 @@ void OTableBorderWindow::ImplInitSettings( sal_Bool bFont, sal_Bool bForeground,
if ( IsControlFont() )
aFont.Merge( GetControlFont() );
SetPointFont( aFont );
-// Set/*Zoomed*/PointFont( aFont );
+// Set/*Zoomed*/PointFont( aFont );
}
if ( bFont || bForeground )
@@ -213,7 +213,7 @@ OTableDesignView::OTableDesignView( Window* pParent,
}
m_pWin = new OTableBorderWindow(this);
- m_pWin->Show();
+ m_pWin->Show();
}
//------------------------------------------------------------------------------
@@ -234,10 +234,10 @@ void OTableDesignView::initialize()
GetEditorCtrl()->Init();
GetDescWin()->Init();
// first call after the editctrl has been set
-
+
GetEditorCtrl()->Show();
GetDescWin()->Show();
-
+
GetEditorCtrl()->DisplayData(0);
}
//------------------------------------------------------------------------------
@@ -290,7 +290,7 @@ long OTableDesignView::PreNotify( NotifyEvent& rNEvt )
m_eChildFocus = NONE;
break;
}
-
+
return bHandled ? 1L : ODataView::PreNotify(rNEvt);
}
// -----------------------------------------------------------------------------
@@ -302,7 +302,7 @@ IClipboardTest* OTableDesignView::getActiveChild() const
case DESCRIPTION:
pTest = GetDescWin();
break;
- case EDITOR:
+ case EDITOR:
pTest = GetEditorCtrl();
break;
case NONE:
@@ -332,21 +332,21 @@ sal_Bool OTableDesignView::isPasteAllowed()
void OTableDesignView::copy()
{
IClipboardTest* pTest = getActiveChild();
- if ( pTest )
+ if ( pTest )
pTest->copy();
}
// -----------------------------------------------------------------------------
void OTableDesignView::cut()
{
IClipboardTest* pTest = getActiveChild();
- if ( pTest )
+ if ( pTest )
pTest->cut();
}
// -----------------------------------------------------------------------------
void OTableDesignView::paste()
{
IClipboardTest* pTest = getActiveChild();
- if ( pTest )
+ if ( pTest )
pTest->paste();
}
// -----------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx b/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
index 14ef3955eebe..8c3492ef7699 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.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
@@ -45,7 +45,7 @@ using namespace ::com::sun::star::util;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::sdbc;
using namespace dbaui;
-OTableFieldControl::OTableFieldControl( Window* pParent, OTableDesignHelpBar* pHelpBar) :OFieldDescControl(pParent,pHelpBar)
+OTableFieldControl::OTableFieldControl( Window* pParent, OTableDesignHelpBar* pHelpBar) :OFieldDescControl(pParent,pHelpBar)
{
}
//------------------------------------------------------------------
@@ -122,7 +122,7 @@ void OTableFieldControl::SetModified(BOOL bModified)
return xCon->getMetaData();
}
// -----------------------------------------------------------------------------
-Reference< XNumberFormatter > OTableFieldControl::GetFormatter() const
+Reference< XNumberFormatter > OTableFieldControl::GetFormatter() const
{
return GetCtrl()->GetView()->getController().getNumberFormatter();
}
@@ -132,7 +132,7 @@ TOTypeInfoSP OTableFieldControl::getTypeInfo(sal_Int32 _nPos)
return GetCtrl()->GetView()->getController().getTypeInfo(_nPos);
}
// -----------------------------------------------------------------------------
-const OTypeInfoMap* OTableFieldControl::getTypeInfo() const
+const OTypeInfoMap* OTableFieldControl::getTypeInfo() const
{
return const_cast<OTableFieldControl*>(this)->GetCtrl()->GetView()->getController().getTypeInfo();
}
diff --git a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx b/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
index a45d2928889c..d34d77a5fa8b 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldControl.hxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldControl.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,22 +39,22 @@ namespace dbaui
//==================================================================
class OTableFieldControl : public OFieldDescControl
{
- OTableEditorCtrl* GetCtrl() const;
+ OTableEditorCtrl* GetCtrl() const;
protected:
- virtual void ActivateAggregate( EControlType eType );
- virtual void DeactivateAggregate( EControlType eType );
+ virtual void ActivateAggregate( EControlType eType );
+ virtual void DeactivateAggregate( EControlType eType );
// Sind von den abgeleiteten Klassen zu impl.
- virtual void CellModified(long nRow, USHORT nColId );
- virtual BOOL IsReadOnly();
- virtual void SetModified(BOOL bModified);
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > GetFormatter() const;
-
- virtual ::com::sun::star::lang::Locale GetLocale() const;
+ virtual void CellModified(long nRow, USHORT nColId );
+ virtual BOOL IsReadOnly();
+ virtual void SetModified(BOOL bModified);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > GetFormatter() const;
+
+ virtual ::com::sun::star::lang::Locale GetLocale() const;
- virtual TOTypeInfoSP getTypeInfo(sal_Int32 _nPos);
- virtual const OTypeInfoMap* getTypeInfo() const;
- virtual sal_Bool isAutoIncrementValueEnabled() const;
- virtual ::rtl::OUString getAutoIncrementValue() const;
+ virtual TOTypeInfoSP getTypeInfo(sal_Int32 _nPos);
+ virtual const OTypeInfoMap* getTypeInfo() const;
+ virtual sal_Bool isAutoIncrementValueEnabled() const;
+ virtual ::rtl::OUString getAutoIncrementValue() const;
public:
OTableFieldControl( Window* pParent, OTableDesignHelpBar* pHelpBar);
diff --git a/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx b/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx
index c6e810353794..d5dab9793443 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldDescWin.cxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldDescWin.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
@@ -40,21 +40,21 @@
#include "moduledbu.hxx"
#include <memory>
-#define STANDARD_MARGIN 6
-#define DETAILS_HEADER_HEIGHT 25
-#define CONTROL_SPACING_X 18 // 6
-#define CONTROL_SPACING_Y 5
-#define CONTROL_HEIGHT 20
-#define CONTROL_WIDTH_1 140 // 100
-#define CONTROL_WIDTH_2 100 // 60
-#define CONTROL_WIDTH_3 250
-#define CONTROL_WIDTH_4 (CONTROL_WIDTH_3 - CONTROL_HEIGHT - 5)
-#define DETAILS_OPT_PAGE_WIDTH (CONTROL_WIDTH_1 + CONTROL_SPACING_X + CONTROL_WIDTH_4 + 50)
-#define DETAILS_OPT_PAGE_HEIGHT ((CONTROL_HEIGHT + CONTROL_SPACING_Y) * 5)
-#define DETAILS_MIN_HELP_WIDTH 100
-#define DETAILS_OPT_HELP_WIDTH 200
-#define DETAILS_MIN_HELP_HEIGHT 50
-#define DETAILS_OPT_HELP_HEIGHT 100
+#define STANDARD_MARGIN 6
+#define DETAILS_HEADER_HEIGHT 25
+#define CONTROL_SPACING_X 18 // 6
+#define CONTROL_SPACING_Y 5
+#define CONTROL_HEIGHT 20
+#define CONTROL_WIDTH_1 140 // 100
+#define CONTROL_WIDTH_2 100 // 60
+#define CONTROL_WIDTH_3 250
+#define CONTROL_WIDTH_4 (CONTROL_WIDTH_3 - CONTROL_HEIGHT - 5)
+#define DETAILS_OPT_PAGE_WIDTH (CONTROL_WIDTH_1 + CONTROL_SPACING_X + CONTROL_WIDTH_4 + 50)
+#define DETAILS_OPT_PAGE_HEIGHT ((CONTROL_HEIGHT + CONTROL_SPACING_Y) * 5)
+#define DETAILS_MIN_HELP_WIDTH 100
+#define DETAILS_OPT_HELP_WIDTH 200
+#define DETAILS_MIN_HELP_HEIGHT 50
+#define DETAILS_OPT_HELP_HEIGHT 100
using namespace dbaui;
@@ -69,7 +69,7 @@ OTableFieldDescWin::OTableFieldDescWin( Window* pParent)
DBG_CTOR(OTableFieldDescWin,NULL);
//////////////////////////////////////////////////////////////////////
// Header
- m_pHeader = new FixedText( this, WB_CENTER | WB_INFO ); // | WB_3DLOOK
+ m_pHeader = new FixedText( this, WB_CENTER | WB_INFO ); // | WB_3DLOOK
m_pHeader->SetText( String(ModuleRes(STR_TAB_PROPERTIES)) );
m_pHeader->Show();
@@ -173,11 +173,11 @@ void OTableFieldDescWin::Resize()
// passen beide nebeneinander (Rand + Page + Rand + Help) ?
if (STANDARD_MARGIN + DETAILS_OPT_PAGE_WIDTH + STANDARD_MARGIN + DETAILS_MIN_HELP_WIDTH <= nOutputWidth)
- { // ja -> dann ist die Frage, ob man der Hilfe ihre Optimal-Breite geben kann
+ { // ja -> dann ist die Frage, ob man der Hilfe ihre Optimal-Breite geben kann
nHelpWidth = DETAILS_OPT_HELP_WIDTH;
nPageWidth = nOutputWidth - nHelpWidth - STANDARD_MARGIN - STANDARD_MARGIN;
if (nPageWidth < DETAILS_OPT_PAGE_WIDTH)
- { // dann doch lieber die Hilfe von ihrer optimalen in Richtung auf die minimale Groesse
+ { // dann doch lieber die Hilfe von ihrer optimalen in Richtung auf die minimale Groesse
long nTransfer = DETAILS_OPT_PAGE_WIDTH - nPageWidth;
nPageWidth += nTransfer;
nHelpWidth -= nTransfer;
@@ -189,26 +189,26 @@ void OTableFieldDescWin::Resize()
nPageHeight = nOutputHeight - STANDARD_MARGIN - DETAILS_HEADER_HEIGHT - STANDARD_MARGIN;
}
else
- { // nebeneinander geht nicht, also untereinander (Rand + Header + Page + Help)
+ { // nebeneinander geht nicht, also untereinander (Rand + Header + Page + Help)
if (STANDARD_MARGIN + DETAILS_HEADER_HEIGHT + DETAILS_OPT_PAGE_HEIGHT + DETAILS_MIN_HELP_HEIGHT <= nOutputHeight)
- { // es reicht zumindest, um beide untereinander (Page optimal, Help minimal) unterzubringen
+ { // es reicht zumindest, um beide untereinander (Page optimal, Help minimal) unterzubringen
nHelpHeight = DETAILS_OPT_HELP_HEIGHT;
nPageHeight = nOutputHeight - nHelpHeight - DETAILS_HEADER_HEIGHT - STANDARD_MARGIN;
if (nPageHeight < DETAILS_OPT_PAGE_HEIGHT)
- { // wie oben : Page optimal, Hilfe soviel wie eben bleibt (das ist groesser/gleich ihrem Minimum)
+ { // wie oben : Page optimal, Hilfe soviel wie eben bleibt (das ist groesser/gleich ihrem Minimum)
long nTransfer = DETAILS_OPT_PAGE_HEIGHT - nPageHeight;
nPageHeight += nTransfer;
nHelpHeight -= nTransfer;
}
nHelpY = nOutputHeight - nHelpHeight;
// und ueber die ganze Breite
- nHelpX = 0; // ohne Margin, da das HelpCtrl einen eigenen hat
- nHelpWidth = nOutputWidth; // dito
+ nHelpX = 0; // ohne Margin, da das HelpCtrl einen eigenen hat
+ nHelpWidth = nOutputWidth; // dito
nPageWidth = nOutputWidth - STANDARD_MARGIN - STANDARD_MARGIN;
}
else
- { // dummerweise reicht es nicht mal, um Page optimal und Help minimal zu zeigen
- nHelpX = nHelpY = nHelpWidth = nHelpHeight = 0; // -> kein Help-Fenster
+ { // dummerweise reicht es nicht mal, um Page optimal und Help minimal zu zeigen
+ nHelpX = nHelpY = nHelpWidth = nHelpHeight = 0; // -> kein Help-Fenster
nPageWidth = nOutputWidth - STANDARD_MARGIN - STANDARD_MARGIN;
nPageHeight = nOutputHeight - STANDARD_MARGIN - DETAILS_HEADER_HEIGHT - STANDARD_MARGIN;
}
@@ -216,20 +216,20 @@ void OTableFieldDescWin::Resize()
m_pHeader->SetPosSizePixel( Point(0, STANDARD_MARGIN), Size(nOutputWidth, 15) );
- getGenPage()->SetPosSizePixel(Point ( STANDARD_MARGIN,
+ getGenPage()->SetPosSizePixel(Point ( STANDARD_MARGIN,
STANDARD_MARGIN + DETAILS_HEADER_HEIGHT
),
- Size ( nPageWidth,
+ Size ( nPageWidth,
nPageHeight
)
);
if (nHelpHeight)
{
m_pHelpBar->Show();
- m_pHelpBar->SetPosSizePixel(Point ( nHelpX,
+ m_pHelpBar->SetPosSizePixel(Point ( nHelpX,
nHelpY
),
- Size ( nHelpWidth,
+ Size ( nHelpWidth,
nHelpHeight
)
);
@@ -249,7 +249,7 @@ IClipboardTest* OTableFieldDescWin::getActiveChild() const
case DESCRIPTION:
pTest = getGenPage();
break;
- default:
+ default:
pTest = getHelpBar();
break;
}
@@ -290,15 +290,15 @@ void OTableFieldDescWin::paste()
}
// -----------------------------------------------------------------------------
void OTableFieldDescWin::GetFocus()
-{
+{
if ( getGenPage() )
- getGenPage()->GetFocus();
+ getGenPage()->GetFocus();
}
// -----------------------------------------------------------------------------
void OTableFieldDescWin::LoseFocus()
-{
+{
if ( getGenPage() )
- getGenPage()->LoseFocus();
+ getGenPage()->LoseFocus();
}
// -----------------------------------------------------------------------------
long OTableFieldDescWin::PreNotify( NotifyEvent& rNEvt )
@@ -313,7 +313,7 @@ long OTableFieldDescWin::PreNotify( NotifyEvent& rNEvt )
m_eChildFocus = HELP;
break;
}
-
+
return bHandled ? 1L : TabPage::PreNotify(rNEvt);
}
diff --git a/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx b/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx
index aa2a05482211..0ecd0de11032 100644
--- a/dbaccess/source/ui/tabledesign/TableFieldDescWin.hxx
+++ b/dbaccess/source/ui/tabledesign/TableFieldDescWin.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
@@ -51,10 +51,10 @@ namespace dbaui
NONE
};
private:
- OTableDesignHelpBar* m_pHelpBar;
- OFieldDescGenWin* m_pGenPage;
- FixedText* m_pHeader;
- ChildFocusState m_eChildFocus;
+ OTableDesignHelpBar* m_pHelpBar;
+ OFieldDescGenWin* m_pGenPage;
+ FixedText* m_pHeader;
+ ChildFocusState m_eChildFocus;
IClipboardTest* getActiveChild() const;
@@ -82,11 +82,11 @@ namespace dbaui
String GetControlText( USHORT nControlId )
{ return m_pGenPage->GetControlText(nControlId); }
- // short GetFormatCategory(OFieldDescription* pFieldDescr) { return m_pGenPage ? m_pGenPage->GetFormatCategory(pFieldDescr) : -1; }
+ // short GetFormatCategory(OFieldDescription* pFieldDescr) { return m_pGenPage ? m_pGenPage->GetFormatCategory(pFieldDescr) : -1; }
// liefert zum am Feld eingestellten Format einen der CAT_xxx-Werte (CAT_NUMBER, CAT_DATE ...)
- String BoolStringPersistent(const String& rUIString) const { return m_pGenPage->BoolStringPersistent(rUIString); }
- String BoolStringUI(const String& rPersistentString) const { return m_pGenPage->BoolStringUI(rPersistentString); }
+ String BoolStringPersistent(const String& rUIString) const { return m_pGenPage->BoolStringPersistent(rUIString); }
+ String BoolStringUI(const String& rPersistentString) const { return m_pGenPage->BoolStringUI(rPersistentString); }
// IClipboardTest
virtual sal_Bool isCutAllowed();
@@ -99,7 +99,7 @@ namespace dbaui
virtual void paste();
inline OFieldDescGenWin* getGenPage() const { return m_pGenPage; }
- inline OTableDesignHelpBar* getHelpBar() const { return m_pHelpBar; }
+ inline OTableDesignHelpBar* getHelpBar() const { return m_pHelpBar; }
};
}
diff --git a/dbaccess/source/ui/tabledesign/TableRow.cxx b/dbaccess/source/ui/tabledesign/TableRow.cxx
index 84c5f293a125..568e7c39f94e 100644
--- a/dbaccess/source/ui/tabledesign/TableRow.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRow.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,14 +44,14 @@ using namespace ::com::sun::star::beans;
//========================================================================
DBG_NAME(OTableRow)
//------------------------------------------------------------------------------
-OTableRow::OTableRow()
+OTableRow::OTableRow()
:m_pActFieldDescr( NULL )
,m_nPos( -1 )
,m_bReadOnly( false )
,m_bOwnsDescriptions(false)
{
DBG_CTOR(OTableRow,NULL);
-}
+}
//------------------------------------------------------------------------------
OTableRow::OTableRow(const Reference< XPropertySet >& xAffectedCol)
:m_pActFieldDescr( NULL )
@@ -84,7 +84,7 @@ OTableRow::~OTableRow()
{
DBG_DTOR(OTableRow,NULL);
if(m_bOwnsDescriptions)
- delete m_pActFieldDescr;
+ delete m_pActFieldDescr;
}
//------------------------------------------------------------------------------
@@ -140,7 +140,7 @@ namespace dbaui
_rStr << sal_Int32(1);
_rStr << nValue;
}
- else
+ else
{
_rStr << sal_Int32(2);
_rStr.WriteByteString(::comphelper::getString(aValue));
@@ -168,13 +168,13 @@ namespace dbaui
sal_Int32 nValue = 0;
_rStr >> nValue;
if ( nValue )
- {
+ {
OFieldDescription* pFieldDesc = new OFieldDescription();
_rRow.m_pActFieldDescr = pFieldDesc;
String sValue;
_rStr.ReadByteString(sValue);
pFieldDesc->SetName(sValue);
-
+
_rStr.ReadByteString(sValue);
pFieldDesc->SetDescription(sValue);
_rStr.ReadByteString(sValue);
@@ -199,7 +199,7 @@ namespace dbaui
pFieldDesc->SetControlDefault(aControlDefault);
-
+
_rStr >> nValue;
pFieldDesc->SetTypeValue(nValue);
diff --git a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
index 516fcaf0fac4..6eabff95fc9e 100644
--- a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRowExchange.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/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx
index 5d7e1da08c81..98bb3157a3df 100644
--- a/dbaccess/source/ui/tabledesign/TableUndo.cxx
+++ b/dbaccess/source/ui/tabledesign/TableUndo.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
@@ -241,7 +241,7 @@ OTableEditorDelUndoAct::OTableEditorDelUndoAct( OTableEditorCtrl* pOwner) :
OTableEditorDelUndoAct::~OTableEditorDelUndoAct()
{
DBG_DTOR(OTableEditorDelUndoAct,NULL);
- m_aDeletedRows.clear();
+ m_aDeletedRows.clear();
}
//-------------------------------------------------------------------------
@@ -252,7 +252,7 @@ void OTableEditorDelUndoAct::Undo()
ULONG nPos;
::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aIter = m_aDeletedRows.begin();
::std::vector< ::boost::shared_ptr<OTableRow> >::iterator aEnd = m_aDeletedRows.end();
-
+
::boost::shared_ptr<OTableRow> pNewOrigRow;
::std::vector< ::boost::shared_ptr<OTableRow> >* pOriginalRows = pTabEdCtrl->GetRowList();
@@ -294,9 +294,9 @@ void OTableEditorDelUndoAct::Redo()
// class OTableEditorInsUndoAct
//==============================================================================
DBG_NAME(OTableEditorInsUndoAct);
-OTableEditorInsUndoAct::OTableEditorInsUndoAct( OTableEditorCtrl* pOwner,
+OTableEditorInsUndoAct::OTableEditorInsUndoAct( OTableEditorCtrl* pOwner,
long nInsertPosition ,
- const ::std::vector< ::boost::shared_ptr<OTableRow> >& _vInsertedRows)
+ const ::std::vector< ::boost::shared_ptr<OTableRow> >& _vInsertedRows)
:OTableEditorUndoAct( pOwner,STR_TABED_UNDO_ROWINSERTED )
,m_vInsertedRows(_vInsertedRows)
,m_nInsPos( nInsertPosition )
@@ -308,7 +308,7 @@ OTableEditorInsUndoAct::OTableEditorInsUndoAct( OTableEditorCtrl* pOwner,
OTableEditorInsUndoAct::~OTableEditorInsUndoAct()
{
DBG_DTOR(OTableEditorInsUndoAct,NULL);
- m_vInsertedRows.clear();
+ m_vInsertedRows.clear();
}
//-------------------------------------------------------------------------
diff --git a/dbaccess/source/ui/tabledesign/TableUndo.hxx b/dbaccess/source/ui/tabledesign/TableUndo.hxx
index ff744b2f0d57..5f096d87ae92 100644
--- a/dbaccess/source/ui/tabledesign/TableUndo.hxx
+++ b/dbaccess/source/ui/tabledesign/TableUndo.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,8 +46,8 @@ namespace dbaui
protected:
OTableRowView* m_pTabDgnCtrl;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
OTableDesignUndoAct( OTableRowView* pOwner ,USHORT nCommentID);
@@ -72,13 +72,13 @@ namespace dbaui
class OTableDesignCellUndoAct : public OTableDesignUndoAct
{
protected:
- USHORT m_nCol;
- long m_nRow;
- ::com::sun::star::uno::Any m_sOldText;
- ::com::sun::star::uno::Any m_sNewText;
+ USHORT m_nCol;
+ long m_nRow;
+ ::com::sun::star::uno::Any m_sOldText;
+ ::com::sun::star::uno::Any m_sNewText;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
OTableDesignCellUndoAct( OTableRowView* pOwner, long nRowID, USHORT nColumn );
@@ -90,13 +90,13 @@ namespace dbaui
class OTableEditorTypeSelUndoAct : public OTableEditorUndoAct
{
protected:
- USHORT m_nCol;
- long m_nRow;
- TOTypeInfoSP m_pOldType;
- TOTypeInfoSP m_pNewType;
+ USHORT m_nCol;
+ long m_nRow;
+ TOTypeInfoSP m_pOldType;
+ TOTypeInfoSP m_pNewType;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
OTableEditorTypeSelUndoAct( OTableEditorCtrl* pOwner, long nRowID, USHORT nColumn, const TOTypeInfoSP& _pOldType );
@@ -107,10 +107,10 @@ namespace dbaui
class OTableEditorDelUndoAct : public OTableEditorUndoAct
{
protected:
- ::std::vector< ::boost::shared_ptr<OTableRow> > m_aDeletedRows;
+ ::std::vector< ::boost::shared_ptr<OTableRow> > m_aDeletedRows;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
OTableEditorDelUndoAct( OTableEditorCtrl* pOwner );
@@ -121,14 +121,14 @@ namespace dbaui
class OTableEditorInsUndoAct : public OTableEditorUndoAct
{
protected:
- ::std::vector< ::boost::shared_ptr<OTableRow> > m_vInsertedRows;
- long m_nInsPos;
+ ::std::vector< ::boost::shared_ptr<OTableRow> > m_vInsertedRows;
+ long m_nInsPos;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
- OTableEditorInsUndoAct( OTableEditorCtrl* pOwner,
+ OTableEditorInsUndoAct( OTableEditorCtrl* pOwner,
long nInsertPosition,
const ::std::vector< ::boost::shared_ptr<OTableRow> >& _vInsertedRows);
virtual ~OTableEditorInsUndoAct();
@@ -141,8 +141,8 @@ namespace dbaui
long m_nInsPos;
long m_nInsRows;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
OTableEditorInsNewUndoAct( OTableEditorCtrl* pOwner, long nInsertPosition, long nInsertedRows );
@@ -153,13 +153,13 @@ namespace dbaui
class OPrimKeyUndoAct : public OTableEditorUndoAct
{
protected:
- MultiSelection m_aDelKeys,
+ MultiSelection m_aDelKeys,
m_aInsKeys;
- BOOL m_bActPrimKeySet;
+ BOOL m_bActPrimKeySet;
OTableEditorCtrl* m_pEditorCtrl;
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
public:
TYPEINFO();
OPrimKeyUndoAct( OTableEditorCtrl* pOwner, MultiSelection aDeletedKeys, MultiSelection aInsertedKeys );
diff --git a/dbaccess/source/ui/tabledesign/table.src b/dbaccess/source/ui/tabledesign/table.src
index e2a73292ec8d..974dd5602d40 100644
--- a/dbaccess/source/ui/tabledesign/table.src
+++ b/dbaccess/source/ui/tabledesign/table.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
@@ -44,12 +44,12 @@
#include "toolbox.hrc"
#endif
-#define MN_EDIT 20
-#define MN_VIEW 21
-#define MN_EXTRA 22
-#define MN_INDEX 23
-#define MN_WIN 30
-#define MN_HELP 31
+#define MN_EDIT 20
+#define MN_VIEW 21
+#define MN_EXTRA 22
+#define MN_INDEX 23
+#define MN_WIN 30
+#define MN_HELP 31
String STR_TABLEDESIGN_DBFIELDTYPES
{