Lines Matching refs:nRow
288 long nRow(GetCurRow()); in SetReadOnly() local
306 ActivateCell( nRow, nCol ); in SetReadOnly()
413 sal_Bool OTableEditorCtrl::SetDataPtr( long nRow ) in SetDataPtr() argument
416 if(nRow == -1) in SetDataPtr()
419 OSL_ENSURE((xub_StrLen)nRow < m_pRowList->size(),"Row is greater than size!"); in SetDataPtr()
420 if(nRow >= (long)m_pRowList->size()) in SetDataPtr()
422 pActRow = (*m_pRowList)[nRow]; in SetDataPtr()
453 CellController* OTableEditorCtrl::GetController(long nRow, sal_uInt16 nColumnId) in GetController() argument
466 SetDataPtr( nRow ); in GetController()
495 void OTableEditorCtrl::InitController(CellControllerRef&, long nRow, sal_uInt16 nColumnId) in InitController() argument
498 SeekRow( nRow == -1 ? GetCurRow() : nRow); in InitController()
547 EditBrowseBox::RowStatus OTableEditorCtrl::GetRowStatus(long nRow) const in GetRowStatus()
550 ( (OTableEditorCtrl*)this )->SetDataPtr( nRow ); in GetRowStatus()
553 if (nRow >= 0 && nRow == m_nDataPos) in GetRowStatus()
583 void OTableEditorCtrl::DisplayData(long nRow, sal_Bool bGrabFocus) in DisplayData() argument
586 SetDataPtr(nRow); in DisplayData()
594 InitController(aTemp, nRow, FIELD_NAME); in DisplayData()
595 InitController(aTemp, nRow, FIELD_TYPE); in DisplayData()
596 InitController(aTemp, nRow, COLUMN_DESCRIPTION); in DisplayData()
597 InitController(aTemp, nRow, HELP_TEXT); in DisplayData()
599 GoToRow(nRow); in DisplayData()
601 GetView()->GetDescWin()->DisplayData(GetFieldDescr(nRow)); in DisplayData()
603 RowModified(nRow); in DisplayData()
607 ActivateCell(nRow, GetCurColumnId(), bGrabFocus); in DisplayData()
652 sal_Bool OTableEditorCtrl::SaveData(long nRow, sal_uInt16 nColId) in SaveData() argument
657 SetDataPtr( nRow == -1 ? GetCurRow() : nRow); in SaveData()
676 …GetUndoManager().AddUndoAction(new OTableEditorTypeSelUndoAct(this, nRow, FIELD_TYPE, pActFieldDes… in SaveData()
830 void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId ) in CellModified() argument
836 if(nRow == -1) in CellModified()
837 nRow = GetCurRow(); in CellModified()
838 SetDataPtr( nRow ); in CellModified()
868 …GetUndoManager().AddUndoAction( new OTableEditorTypeSelUndoAct(this, nRow, nColId+1, TOTypeInfoSP(… in CellModified()
872 GetUndoManager().AddUndoAction( new OTableDesignCellUndoAct(this, nRow, nColId) ); in CellModified()
879 SaveData(nRow,nColId); in CellModified()
882 RowModified(nRow); in CellModified()
994 void OTableEditorCtrl::InsertRows( long nRow ) in InsertRows() argument
1010 long nInsertRow = nRow; in InsertRows()
1039 RowInserted( nRow,vInsertedUndoRedoRows.size(),sal_True ); in InsertRows()
1044 GetUndoManager().AddUndoAction( new OTableEditorInsUndoAct(this, nRow,vInsertedUndoRedoRows) ); in InsertRows()
1095 void OTableEditorCtrl::InsertNewRows( long nRow ) in InsertNewRows() argument
1104 GetUndoManager().AddUndoAction( new OTableEditorInsNewUndoAct(this, nRow, nInsertRows) ); in InsertNewRows()
1107 for( long i=nRow; i<(nRow+nInsertRows); i++ ) in InsertNewRows()
1109 RowInserted( nRow, nInsertRows, sal_True ); in InsertNewRows()
1116 String OTableEditorCtrl::GetControlText( long nRow, sal_uInt16 nColId ) in GetControlText() argument
1123 GoToRow( nRow ); in GetControlText()
1129 return GetCellText(nRow,nColId); in GetControlText()
1139 void OTableEditorCtrl::SetControlText( long nRow, sal_uInt16 nColId, const String& rText ) in SetControlText() argument
1146 GoToRow( nRow ); in SetControlText()
1152 RowModified(nRow,nColId); in SetControlText()
1163 void OTableEditorCtrl::SetCellData( long nRow, sal_uInt16 nColId, const TOTypeInfoSP& _pTypeInfo ) in SetCellData() argument
1168 if( nRow == -1 ) in SetCellData()
1169 nRow = GetCurRow(); in SetCellData()
1170 OFieldDescription* pFieldDescr = GetFieldDescr( nRow ); in SetCellData()
1184 SetControlText(nRow,nColId,_pTypeInfo.get() ? _pTypeInfo->aUIName : ::rtl::OUString()); in SetCellData()
1187 void OTableEditorCtrl::SetCellData( long nRow, sal_uInt16 nColId, const ::com::sun::star::uno::Any&… in SetCellData() argument
1192 if( nRow == -1 ) in SetCellData()
1193 nRow = GetCurRow(); in SetCellData()
1194 OFieldDescription* pFieldDescr = GetFieldDescr( nRow ); in SetCellData()
1268 SetControlText(nRow,nColId,sValue); in SetCellData()
1272 Any OTableEditorCtrl::GetCellData( long nRow, sal_uInt16 nColId ) in GetCellData() argument
1275 OFieldDescription* pFieldDescr = GetFieldDescr( nRow ); in GetCellData()
1281 if( nRow==-1 ) in GetCellData()
1282 nRow = GetCurRow(); in GetCellData()
1283 SetDataPtr( nRow ); in GetCellData()
1345 String OTableEditorCtrl::GetCellText( long nRow, sal_uInt16 nColId ) const in GetCellText() argument
1349 const_cast< OTableEditorCtrl* >( this )->GetCellData( nRow, nColId ) >>= sCellText; in GetCellText()
1354 sal_uInt32 OTableEditorCtrl::GetTotalCellWidth(long nRow, sal_uInt16 nColId) in GetTotalCellWidth() argument
1357 return GetTextWidth(GetCellText(nRow, nColId)) + 2 * GetTextWidth('0'); in GetTotalCellWidth()
1361 OFieldDescription* OTableEditorCtrl::GetFieldDescr( long nRow ) in GetFieldDescr() argument
1366 if( (nRow<0) || (sal::static_int_cast< unsigned long >(nRow)>=nListCount) ) in GetFieldDescr()
1371 ::boost::shared_ptr<OTableRow> pRow = (*m_pRowList)[ nRow ]; in GetFieldDescr()
1378 sal_Bool OTableEditorCtrl::IsCutAllowed( long nRow ) in IsCutAllowed() argument
1398 bIsCutAllowed = IsCopyAllowed(nRow); in IsCutAllowed()
1564 sal_Bool OTableEditorCtrl::IsInsertNewAllowed( long nRow ) in IsInsertNewAllowed() argument
1573 SetDataPtr(nRow); in IsInsertNewAllowed()
1670 long nRow = GetRowAtYPosPixel(aMenuPos.Y()); in Command() local
1674 if ( nRow < 0 && nColId != BROWSER_INVALIDID ) in Command()
1697 aContextMenu.EnableItem( SID_CUT, IsCutAllowed(nRow) ); in Command()
1698 aContextMenu.EnableItem( SID_COPY, IsCopyAllowed(nRow) ); in Command()
1699 aContextMenu.EnableItem( SID_PASTE, IsPasteAllowed(nRow) ); in Command()
1700 aContextMenu.EnableItem( SID_DELETE, IsDeleteAllowed(nRow) ); in Command()
1701 aContextMenu.EnableItem( SID_TABLEDESIGN_TABED_PRIMARYKEY, IsPrimaryKeyAllowed(nRow) ); in Command()
1702 aContextMenu.EnableItem( SID_TABLEDESIGN_INSERTROWS, IsInsertNewAllowed(nRow) ); in Command()
1853 for(sal_Int32 nRow = 0;aIter != aEnd;++aIter,++nRow) in SetPrimaryKey() local
1856 if( pFieldDescr && (*aIter)->IsPrimaryKey() && (!bSet || !IsRowSelected(nRow)) ) in SetPrimaryKey()
1858 AdjustFieldDescription(pFieldDescr,aDeletedPrimKeys,nRow,bSet,sal_False); in SetPrimaryKey()
1904 for(sal_Int32 nRow=0;aIter != aEnd;++aIter,++nRow) in IsPrimaryKey() local
1906 if( IsRowSelected(nRow) && !(*aIter)->IsPrimaryKey() ) in IsPrimaryKey()
1923 long nRow(GetCurRow()); in SwitchType() local
1924 OFieldDescription* pActFieldDescr = GetFieldDescr( nRow ); in SwitchType()
1930 if ( nRow < 0 || nRow > static_cast<long>(m_pRowList->size()) ) in SwitchType()
1934 ::boost::shared_ptr<OTableRow> pRow = (*m_pRowList)[nRow]; in SwitchType()
1982 long nRow(GetCurRow()); in DeactivateCell() local
1984 pDescrWin->SetReadOnly(bReadOnly || !SetDataPtr(nRow) || GetActRow()->IsReadOnly()); in DeactivateCell()