Lines Matching refs:nRow

286     long nRow(GetCurRow());  in SetReadOnly()  local
304 ActivateCell( nRow, nCol ); in SetReadOnly()
411 sal_Bool OTableEditorCtrl::SetDataPtr( long nRow ) in SetDataPtr() argument
414 if(nRow == -1) in SetDataPtr()
417 OSL_ENSURE((xub_StrLen)nRow < m_pRowList->size(),"Row is greater than size!"); in SetDataPtr()
418 if(nRow >= (long)m_pRowList->size()) in SetDataPtr()
420 pActRow = (*m_pRowList)[nRow]; in SetDataPtr()
451 CellController* OTableEditorCtrl::GetController(long nRow, sal_uInt16 nColumnId) in GetController() argument
464 SetDataPtr( nRow ); in GetController()
493 void OTableEditorCtrl::InitController(CellControllerRef&, long nRow, sal_uInt16 nColumnId) in InitController() argument
496 SeekRow( nRow == -1 ? GetCurRow() : nRow); in InitController()
545 EditBrowseBox::RowStatus OTableEditorCtrl::GetRowStatus(long nRow) const in GetRowStatus()
548 ( (OTableEditorCtrl*)this )->SetDataPtr( nRow ); in GetRowStatus()
551 if (nRow >= 0 && nRow == m_nDataPos) in GetRowStatus()
581 void OTableEditorCtrl::DisplayData(long nRow, sal_Bool bGrabFocus) in DisplayData() argument
584 SetDataPtr(nRow); in DisplayData()
592 InitController(aTemp, nRow, FIELD_NAME); in DisplayData()
593 InitController(aTemp, nRow, FIELD_TYPE); in DisplayData()
594 InitController(aTemp, nRow, COLUMN_DESCRIPTION); in DisplayData()
595 InitController(aTemp, nRow, HELP_TEXT); in DisplayData()
597 GoToRow(nRow); in DisplayData()
599 GetView()->GetDescWin()->DisplayData(GetFieldDescr(nRow)); in DisplayData()
601 RowModified(nRow); in DisplayData()
605 ActivateCell(nRow, GetCurColumnId(), bGrabFocus); in DisplayData()
650 sal_Bool OTableEditorCtrl::SaveData(long nRow, sal_uInt16 nColId) in SaveData() argument
655 SetDataPtr( nRow == -1 ? GetCurRow() : nRow); in SaveData()
674 …GetUndoManager().AddUndoAction(new OTableEditorTypeSelUndoAct(this, nRow, FIELD_TYPE, pActFieldDes… in SaveData()
828 void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId ) in CellModified() argument
834 if(nRow == -1) in CellModified()
835 nRow = GetCurRow(); in CellModified()
836 SetDataPtr( nRow ); in CellModified()
866 …GetUndoManager().AddUndoAction( new OTableEditorTypeSelUndoAct(this, nRow, nColId+1, TOTypeInfoSP(… in CellModified()
870 GetUndoManager().AddUndoAction( new OTableDesignCellUndoAct(this, nRow, nColId) ); in CellModified()
877 SaveData(nRow,nColId); in CellModified()
880 RowModified(nRow); in CellModified()
992 void OTableEditorCtrl::InsertRows( long nRow ) in InsertRows() argument
1008 long nInsertRow = nRow; in InsertRows()
1037 RowInserted( nRow,vInsertedUndoRedoRows.size(),sal_True ); in InsertRows()
1042 GetUndoManager().AddUndoAction( new OTableEditorInsUndoAct(this, nRow,vInsertedUndoRedoRows) ); in InsertRows()
1092 void OTableEditorCtrl::InsertNewRows( long nRow ) in InsertNewRows() argument
1101 GetUndoManager().AddUndoAction( new OTableEditorInsNewUndoAct(this, nRow, nInsertRows) ); in InsertNewRows()
1104 for( long i=nRow; i<(nRow+nInsertRows); i++ ) in InsertNewRows()
1106 RowInserted( nRow, nInsertRows, sal_True ); in InsertNewRows()
1113 String OTableEditorCtrl::GetControlText( long nRow, sal_uInt16 nColId ) in GetControlText() argument
1120 GoToRow( nRow ); in GetControlText()
1126 return GetCellText(nRow,nColId); in GetControlText()
1136 void OTableEditorCtrl::SetControlText( long nRow, sal_uInt16 nColId, const String& rText ) in SetControlText() argument
1143 GoToRow( nRow ); in SetControlText()
1149 RowModified(nRow,nColId); in SetControlText()
1160 void OTableEditorCtrl::SetCellData( long nRow, sal_uInt16 nColId, const TOTypeInfoSP& _pTypeInfo ) in SetCellData() argument
1165 if( nRow == -1 ) in SetCellData()
1166 nRow = GetCurRow(); in SetCellData()
1167 OFieldDescription* pFieldDescr = GetFieldDescr( nRow ); in SetCellData()
1181 SetControlText(nRow,nColId,_pTypeInfo.get() ? _pTypeInfo->aUIName : ::rtl::OUString()); in SetCellData()
1184 void OTableEditorCtrl::SetCellData( long nRow, sal_uInt16 nColId, const ::com::sun::star::uno::Any&… in SetCellData() argument
1189 if( nRow == -1 ) in SetCellData()
1190 nRow = GetCurRow(); in SetCellData()
1191 OFieldDescription* pFieldDescr = GetFieldDescr( nRow ); in SetCellData()
1265 SetControlText(nRow,nColId,sValue); in SetCellData()
1269 Any OTableEditorCtrl::GetCellData( long nRow, sal_uInt16 nColId ) in GetCellData() argument
1272 OFieldDescription* pFieldDescr = GetFieldDescr( nRow ); in GetCellData()
1278 if( nRow==-1 ) in GetCellData()
1279 nRow = GetCurRow(); in GetCellData()
1280 SetDataPtr( nRow ); in GetCellData()
1342 String OTableEditorCtrl::GetCellText( long nRow, sal_uInt16 nColId ) const in GetCellText() argument
1346 const_cast< OTableEditorCtrl* >( this )->GetCellData( nRow, nColId ) >>= sCellText; in GetCellText()
1351 sal_uInt32 OTableEditorCtrl::GetTotalCellWidth(long nRow, sal_uInt16 nColId) in GetTotalCellWidth() argument
1354 return GetTextWidth(GetCellText(nRow, nColId)) + 2 * GetTextWidth('0'); in GetTotalCellWidth()
1358 OFieldDescription* OTableEditorCtrl::GetFieldDescr( long nRow ) in GetFieldDescr() argument
1363 if( (nRow<0) || (sal::static_int_cast< unsigned long >(nRow)>=nListCount) ) in GetFieldDescr()
1368 ::boost::shared_ptr<OTableRow> pRow = (*m_pRowList)[ nRow ]; in GetFieldDescr()
1375 sal_Bool OTableEditorCtrl::IsCutAllowed( long nRow ) in IsCutAllowed() argument
1395 bIsCutAllowed = IsCopyAllowed(nRow); in IsCutAllowed()
1561 sal_Bool OTableEditorCtrl::IsInsertNewAllowed( long nRow ) in IsInsertNewAllowed() argument
1570 SetDataPtr(nRow); in IsInsertNewAllowed()
1667 long nRow = GetRowAtYPosPixel(aMenuPos.Y()); in Command() local
1671 if ( nRow < 0 && nColId != BROWSER_INVALIDID ) in Command()
1694 aContextMenu.EnableItem( SID_CUT, IsCutAllowed(nRow) ); in Command()
1695 aContextMenu.EnableItem( SID_COPY, IsCopyAllowed(nRow) ); in Command()
1696 aContextMenu.EnableItem( SID_PASTE, IsPasteAllowed(nRow) ); in Command()
1697 aContextMenu.EnableItem( SID_DELETE, IsDeleteAllowed(nRow) ); in Command()
1698 … aContextMenu.EnableItem( SID_TABLEDESIGN_TABED_PRIMARYKEY, IsPrimaryKeyAllowed(nRow) ); in Command()
1699 aContextMenu.EnableItem( SID_TABLEDESIGN_INSERTROWS, IsInsertNewAllowed(nRow) ); in Command()
1850 for(sal_Int32 nRow = 0;aIter != aEnd;++aIter,++nRow) in SetPrimaryKey() local
1853 if( pFieldDescr && (*aIter)->IsPrimaryKey() && (!bSet || !IsRowSelected(nRow)) ) in SetPrimaryKey()
1855 AdjustFieldDescription(pFieldDescr,aDeletedPrimKeys,nRow,bSet,sal_False); in SetPrimaryKey()
1901 for(sal_Int32 nRow=0;aIter != aEnd;++aIter,++nRow) in IsPrimaryKey() local
1903 if( IsRowSelected(nRow) && !(*aIter)->IsPrimaryKey() ) in IsPrimaryKey()
1920 long nRow(GetCurRow()); in SwitchType() local
1921 OFieldDescription* pActFieldDescr = GetFieldDescr( nRow ); in SwitchType()
1927 if ( nRow < 0 || nRow > static_cast<long>(m_pRowList->size()) ) in SwitchType()
1931 ::boost::shared_ptr<OTableRow> pRow = (*m_pRowList)[nRow]; in SwitchType()
1979 long nRow(GetCurRow()); in DeactivateCell() local
1981 pDescrWin->SetReadOnly(bReadOnly || !SetDataPtr(nRow) || GetActRow()->IsReadOnly()); in DeactivateCell()