Lines Matching refs:nIndex

2223         for ( sal_uLong nIndex = 0; nIndex < nRangeCount; ++nIndex )  in NotifyChanges()  local
2227 ScRange aRange( *rRanges.GetObject( nIndex ) ); in NotifyChanges()
2237 util::ElementChange& rChange = aEvent.Changes[ static_cast< sal_Int32 >( nIndex ) ]; in NotifyChanges()
2275 for ( sal_uLong nIndex = 0; nIndex < nRangeCount; ++nIndex ) in NotifyChanges() local
2277 ScRange aRange( *rRanges.GetObject( nIndex ) ); in NotifyChanges()
2379 uno::Reference<drawing::XDrawPage> ScDrawPagesObj::GetObjectByIndex_Impl(sal_Int32 nIndex) const in GetObjectByIndex_Impl()
2385 if ( pDrawLayer && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2387 SdrPage* pPage = pDrawLayer->GetPage((sal_uInt16)nIndex); in GetObjectByIndex_Impl()
2443 uno::Any SAL_CALL ScDrawPagesObj::getByIndex( sal_Int32 nIndex ) in getByIndex() argument
2448 uno::Reference<drawing::XDrawPage> xPage(GetObjectByIndex_Impl(nIndex)); in getByIndex()
2495 ScTableSheetObj* ScTableSheetsObj::GetObjectByIndex_Impl(sal_Int32 nIndex) const in GetObjectByIndex_Impl()
2497 if ( pDocShell && nIndex >= 0 && nIndex < pDocShell->GetDocument()->GetTableCount() ) in GetObjectByIndex_Impl()
2498 return new ScTableSheetObj( pDocShell, static_cast<SCTAB>(nIndex) ); in GetObjectByIndex_Impl()
2507 SCTAB nIndex; in GetObjectByName_Impl() local
2509 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in GetObjectByName_Impl()
2510 return new ScTableSheetObj( pDocShell, nIndex ); in GetObjectByName_Impl()
2690 SCTAB nIndex; in removeByName() local
2692 if ( pDocShell->GetDocument()->GetTable( aString, nIndex ) ) in removeByName()
2695 bDone = aFunc.DeleteTable( nIndex, sal_True, sal_True ); in removeByName()
2746 for( sal_Int32 nIndex = 0; nIndex < nCount; nIndex++ ) in getCellRangesByName() local
2748 const ScRange* pRange = aRangeList.GetObject( nIndex ); in getCellRangesByName()
2750 xRet[nIndex] = new ScCellRangeObj(pDocShell, *pRange); in getCellRangesByName()
2780 uno::Any SAL_CALL ScTableSheetsObj::getByIndex( sal_Int32 nIndex ) in getByIndex() argument
2785 uno::Reference<sheet::XSpreadsheet> xSheet(GetObjectByIndex_Impl(nIndex)); in getByIndex()
2847 SCTAB nIndex; in hasByName() local
2848 if ( pDocShell->GetDocument()->GetTable( String(aName), nIndex ) ) in hasByName()
2888 ScTableColumnObj* ScTableColumnsObj::GetObjectByIndex_Impl(sal_Int32 nIndex) const in GetObjectByIndex_Impl()
2890 SCCOL nCol = static_cast<SCCOL>(nIndex) + nStartCol; in GetObjectByIndex_Impl()
2925 void SAL_CALL ScTableColumnsObj::removeByIndex( sal_Int32 nIndex, sal_Int32 nCount ) in removeByIndex() argument
2931 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartCol+nIndex+nCount-1 <= nEndCol ) in removeByIndex()
2934 ScRange aRange( (SCCOL)(nStartCol+nIndex), 0, nTab, in removeByIndex()
2935 (SCCOL)(nStartCol+nIndex+nCount-1), MAXROW, nTab ); in removeByIndex()
2959 uno::Any SAL_CALL ScTableColumnsObj::getByIndex( sal_Int32 nIndex ) in getByIndex() argument
2964 uno::Reference<table::XCellRange> xColumn(GetObjectByIndex_Impl(nIndex)); in getByIndex()
3165 ScTableRowObj* ScTableRowsObj::GetObjectByIndex_Impl(sal_Int32 nIndex) const in GetObjectByIndex_Impl()
3167 SCROW nRow = static_cast<SCROW>(nIndex) + nStartRow; in GetObjectByIndex_Impl()
3191 void SAL_CALL ScTableRowsObj::removeByIndex( sal_Int32 nIndex, sal_Int32 nCount ) in removeByIndex() argument
3197 if ( pDocShell && nCount > 0 && nIndex >= 0 && nStartRow+nIndex+nCount-1 <= nEndRow ) in removeByIndex()
3200 ScRange aRange( 0, (SCROW)(nStartRow+nIndex), nTab, in removeByIndex()
3201 MAXCOL, (SCROW)(nStartRow+nIndex+nCount-1), nTab ); in removeByIndex()
3225 uno::Any SAL_CALL ScTableRowsObj::getByIndex( sal_Int32 nIndex ) in getByIndex() argument
3230 uno::Reference<table::XCellRange> xRow(GetObjectByIndex_Impl(nIndex)); in getByIndex()
3492 bool ScAnnotationsObj::GetAddressByIndex_Impl( sal_Int32 nIndex, ScAddress& rPos ) const in GetAddressByIndex_Impl() argument
3503 if (nFound == nIndex) in GetAddressByIndex_Impl()
3515 ScAnnotationObj* ScAnnotationsObj::GetObjectByIndex_Impl( sal_Int32 nIndex ) const in GetObjectByIndex_Impl()
3520 if ( GetAddressByIndex_Impl( nIndex, aPos ) ) in GetObjectByIndex_Impl()
3543 void SAL_CALL ScAnnotationsObj::removeByIndex( sal_Int32 nIndex ) throw(uno::RuntimeException) in removeByIndex() argument
3549 if ( GetAddressByIndex_Impl( nIndex, aPos ) ) in removeByIndex()
3588 uno::Any SAL_CALL ScAnnotationsObj::getByIndex( sal_Int32 nIndex ) in getByIndex() argument
3593 uno::Reference<sheet::XSheetAnnotation> xAnnotation(GetObjectByIndex_Impl(nIndex)); in getByIndex()
3668 ScTableSheetObj* ScScenariosObj::GetObjectByIndex_Impl(sal_Int32 nIndex) in GetObjectByIndex_Impl() argument
3671 if ( pDocShell && nIndex >= 0 && nIndex < nCount ) in GetObjectByIndex_Impl()
3672 return new ScTableSheetObj( pDocShell, nTab+static_cast<SCTAB>(nIndex)+1 ); in GetObjectByIndex_Impl()
3679 SCTAB nIndex; in GetObjectByName_Impl() local
3680 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in GetObjectByName_Impl()
3681 return new ScTableSheetObj( pDocShell, nTab+nIndex+1 ); in GetObjectByName_Impl()
3725 SCTAB nIndex; in removeByName() local
3726 if ( pDocShell && GetScenarioIndex_Impl( aName, nIndex ) ) in removeByName()
3729 aFunc.DeleteTable( nTab+nIndex+1, sal_True, sal_True ); in removeByName()
3765 uno::Any SAL_CALL ScScenariosObj::getByIndex( sal_Int32 nIndex ) in getByIndex() argument
3770 uno::Reference<sheet::XScenario> xScen(GetObjectByIndex_Impl(nIndex)); in getByIndex()
3827 SCTAB nIndex; in hasByName() local
3828 return GetScenarioIndex_Impl( aName, nIndex ); in hasByName()