Lines Matching refs:pDocShell

1009 void ScHelperFunctions::ApplyBorder( ScDocShell* pDocShell, const ScRangeList& rRanges,  in ApplyBorder()  argument
1012 ScDocument* pDoc = pDocShell->GetDocument(); in ApplyBorder()
1043 pDocShell->GetUndoManager()->AddUndoAction( in ApplyBorder()
1044 new ScUndoBorder( pDocShell, rRanges, pUndoDoc, rOuter, rInner ) ); in ApplyBorder()
1048 pDocShell->PostPaint( *rRanges.GetObject(i), PAINT_GRID, SC_PF_LINES | SC_PF_TESTMERGE ); in ApplyBorder()
1050 pDocShell->SetDocumentModified(); in ApplyBorder()
1356 pDocShell( NULL ), in ScCellRangesBase()
1374 pDocShell( pDocSh ), in ScCellRangesBase()
1392 if (pDocShell) // Null if created with createInstance in ScCellRangesBase()
1394 ScDocument* pDoc = pDocShell->GetDocument(); in ScCellRangesBase()
1402 pDocShell( pDocSh ), in ScCellRangesBase()
1417 if (pDocShell) // Null if created with createInstance in ScCellRangesBase()
1419 ScDocument* pDoc = pDocShell->GetDocument(); in ScCellRangesBase()
1430 if (pDocShell) in ~ScCellRangesBase()
1431 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScCellRangesBase()
1466 if ( !pCurrentFlat && pDocShell ) in GetCurrentAttrsFlat()
1468 ScDocument* pDoc = pDocShell->GetDocument(); in GetCurrentAttrsFlat()
1478 if ( !pCurrentDeep && pDocShell ) in GetCurrentAttrsDeep()
1480 ScDocument* pDoc = pDocShell->GetDocument(); in GetCurrentAttrsDeep()
1518 ScDocument* pDoc = pDocShell->GetDocument(); in Notify()
1558 pDocShell = NULL; // invalid in Notify()
1580 if ( bGotDataChangedHint && pDocShell ) in Notify()
1595 ScDocument* pDoc = pDocShell->GetDocument(); in Notify()
1635 ScDocument* pDoc = pDocShell->GetDocument(); in RefChanged()
1647 if (pDocShell) in GetDocument()
1648 return pDocShell->GetDocument(); in GetDocument()
1655 if ( !pDocShell && pDocSh ) in InitInsertRange()
1657 pDocShell = pDocSh; in InitInsertRange()
1664 pDocShell->GetDocument()->AddUnoObject(*this); in InitInsertRange()
1778 pDocShell->PostPaint( *aRanges.GetObject(i), nPart ); in PaintRanges_Impl()
1795 ScDocument* pDoc = pDocShell->GetDocument(); in computeFunction()
1814 ScDocFunc aFunc(*pDocShell); in clearContents()
1898 const ScStyleSheet* pStyle = pDocShell->GetDocument()->GetSelectionStyle(*GetMarkData()); in GetOnePropertyState()
1948 if ( pDocShell ) in setPropertyToDefault()
1958 ScDocFunc aFunc(*pDocShell); in setPropertyToDefault()
1985 ScDocFunc aFunc(*pDocShell); in setPropertyToDefault()
2001 if ( pDocShell ) in getPropertyDefault()
2003 ScDocument* pDoc = pDocShell->GetDocument(); in getPropertyDefault()
2224 if ( !pDocShell || aRanges.Count() == 0 ) in setPropertyValue()
2244 ScDocument* pDoc = pDocShell->GetDocument(); in SetOnePropertyValue()
2245 ScDocFunc aFunc(*pDocShell); in SetOnePropertyValue()
2284 ScDocFunc aFunc(*pDocShell); in SetOnePropertyValue()
2297 ScHelperFunctions::ApplyBorder( pDocShell, aRanges, aOuter, aInner ); //! docfunc in SetOnePropertyValue()
2312 ScDocument* pDoc = pDocShell->GetDocument(); in SetOnePropertyValue()
2323 ScDocFunc aFunc(*pDocShell); in SetOnePropertyValue()
2343 ScDocument* pDoc = pDocShell->GetDocument(); in SetOnePropertyValue()
2355 ScDocFunc aFunc(*pDocShell); in SetOnePropertyValue()
2375 if ( !pDocShell || aRanges.Count() == 0 ) in getPropertyValue()
2403 ScDocument* pDoc = pDocShell->GetDocument(); in GetOnePropertyValue()
2442 const ScStyleSheet* pStyle = pDocShell->GetDocument()->GetSelectionStyle(*GetMarkData()); in GetOnePropertyValue()
2458 ScDocument* pDoc = pDocShell->GetDocument(); in GetOnePropertyValue()
2477 ScDocument* pDoc = pDocShell->GetDocument(); in GetOnePropertyValue()
2497 ScDocument* pDoc = pDocShell->GetDocument(); in GetOnePropertyValue()
2519 aRanges.Format(sRet, SCR_ABS_3D, pDocShell->GetDocument()); in GetOnePropertyValue()
2582 if ( pDocShell && nCount ) in setPropertyValues()
2614 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValues()
2655 ScDocFunc aFunc(*pDocShell); in setPropertyValues()
2705 if ( pDocShell && pHint && pHint->ISA( SfxSimpleHint ) && in IMPL_LINK()
2729 if ( pDocShell && nCount ) in setPropertyValuesTolerant()
2764 ScDocument* pDoc = pDocShell->GetDocument(); in setPropertyValuesTolerant()
2830 ScDocFunc aFunc(*pDocShell); in setPropertyValuesTolerant()
2918 if ( pDocShell && aRanges.Count() ) // leer = nichts zu tun in decrementIndent()
2920 ScDocFunc aFunc(*pDocShell); in decrementIndent()
2931 if ( pDocShell && aRanges.Count() ) // leer = nichts zu tun in incrementIndent()
2933 ScDocFunc aFunc(*pDocShell); in incrementIndent()
2945 if ( pDocShell && aRanges.Count() ) in CreateMemChart_Impl()
2962 if (!pDocShell->GetDocument()->GetDataStart( nTab, nStartX, nStartY )) in CreateMemChart_Impl()
2970 if (!pDocShell->GetDocument()->GetTableArea( nTab, nEndX, nEndY )) in CreateMemChart_Impl()
2982 ScChartArray aArr( pDocShell->GetDocument(), xChartRanges, String() ); in CreateMemChart_Impl()
3062 if ( pDocShell && xChartRanges.Is() ) in setData()
3064 ScDocument* pDoc = pDocShell->GetDocument(); in setData()
3096 pDocShell->SetDocumentModified(); in setData()
3136 if ( pDocShell && xChartRanges.Is() ) in setRowDescriptions()
3138 ScDocument* pDoc = pDocShell->GetDocument(); in setRowDescriptions()
3163 pDocShell->SetDocumentModified(); in setRowDescriptions()
3204 if ( pDocShell && xChartRanges.Is() ) in setColumnDescriptions()
3206 ScDocument* pDoc = pDocShell->GetDocument(); in setColumnDescriptions()
3231 pDocShell->SetDocumentModified(); in setColumnDescriptions()
3248 if ( pDocShell ) in ForceChartListener_Impl()
3250 ScChartListenerCollection* pColl = pDocShell->GetDocument()->GetChartListenerCollection(); in ForceChartListener_Impl()
3292 if ( pDocShell && aRanges.Count() ) in addChartDataChangeEventListener()
3296 ScDocument* pDoc = pDocShell->GetDocument(); in addChartDataChangeEventListener()
3313 if ( pDocShell && aRanges.Count() ) in removeChartDataChangeEventListener()
3315 ScDocument* pDoc = pDocShell->GetDocument(); in removeChartDataChangeEventListener()
3351 ScDocument* pDoc = pDocShell->GetDocument(); in addModifyListener()
3399 if (pDocShell) in queryVisibleCells()
3406 ScDocument* pDoc = pDocShell->GetDocument(); in queryVisibleCells()
3429 return new ScCellRangesObj( pDocShell, aNewRanges ); in queryVisibleCells()
3439 if (pDocShell) in queryEmptyCells()
3441 ScDocument* pDoc = pDocShell->GetDocument(); in queryEmptyCells()
3470 return new ScCellRangesObj( pDocShell, aNewRanges ); // aNewRanges kann leer sein in queryEmptyCells()
3481 if (pDocShell) in queryContentCells()
3483 ScDocument* pDoc = pDocShell->GetDocument(); in queryContentCells()
3559 return new ScCellRangesObj( pDocShell, aNewRanges ); // aNewRanges kann leer sein in queryContentCells()
3570 if (pDocShell) in queryFormulaCells()
3572 ScDocument* pDoc = pDocShell->GetDocument(); in queryFormulaCells()
3620 return new ScCellRangesObj( pDocShell, aNewRanges ); // aNewRanges kann leer sein in queryFormulaCells()
3629 if (pDocShell) in QueryDifferences_Impl()
3633 ScDocument* pDoc = pDocShell->GetDocument(); in QueryDifferences_Impl()
3714 return new ScCellRangesObj( pDocShell, aNewRanges ); // aNewRanges kann leer sein in QueryDifferences_Impl()
3754 return new ScCellRangesObj( pDocShell, aNew ); // kann leer sein in queryIntersection()
3763 if ( pDocShell ) in queryPrecedents()
3765 ScDocument* pDoc = pDocShell->GetDocument(); in queryPrecedents()
3807 return new ScCellRangesObj( pDocShell, aNewRanges ); in queryPrecedents()
3817 if ( pDocShell ) in queryDependents()
3819 ScDocument* pDoc = pDocShell->GetDocument(); in queryDependents()
3870 return new ScCellRangesObj( pDocShell, aNewRanges ); in queryDependents()
3891 if ( pDocShell && xDesc.is() ) in findAll()
3899 ScDocument* pDoc = pDocShell->GetDocument(); in findAll()
3917 xRet.set(new ScCellRangesObj( pDocShell, aNewRanges )); in findAll()
3930 if ( pDocShell && xDesc.is() ) in Find_Impl()
3938 ScDocument* pDoc = pDocShell->GetDocument(); in Find_Impl()
3962 xRet.set((cppu::OWeakObject*) new ScCellObj( pDocShell, aFoundPos )); in Find_Impl()
3987 if ( pRangesImp && pRangesImp->GetDocShell() == pDocShell ) in findNext()
4014 if ( pDocShell && xDesc.is() ) in replaceAll()
4022 ScDocument* pDoc = pDocShell->GetDocument(); in replaceAll()
4031 sal_Bool bProtected = !pDocShell->IsEditable(); in replaceAll()
4067 pDocShell->GetUndoManager()->AddUndoAction( in replaceAll()
4068 new ScUndoReplace( pDocShell, *pUndoMark, nCol, nRow, nTab, in replaceAll()
4071 pDocShell->PostPaintGridAll(); in replaceAll()
4072 pDocShell->SetDocumentModified(); in replaceAll()
9184 pDocShell( pDocSh ), in ScCellsObj()
9187 pDocShell->GetDocument()->AddUnoObject(*this); in ScCellsObj()
9192 if (pDocShell) in ~ScCellsObj()
9193 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScCellsObj()
9201 aRanges.UpdateReference( rRef.GetMode(), pDocShell->GetDocument(), rRef.GetRange(), in Notify()
9207 pDocShell = NULL; // ungueltig geworden in Notify()
9217 if (pDocShell) in createEnumeration()
9218 return new ScCellsEnumeration( pDocShell, aRanges ); in createEnumeration()
9232 if ( pDocShell ) in hasElements()
9236 uno::Reference<container::XEnumeration> xEnum(new ScCellsEnumeration( pDocShell, aRanges )); in hasElements()
9245 pDocShell( pDocSh ), in ScCellsEnumeration()
9250 ScDocument* pDoc = pDocShell->GetDocument(); in ScCellsEnumeration()
9268 if (pDocShell) in CheckPos_Impl()
9271 ScDocument* pDoc = pDocShell->GetDocument(); in CheckPos_Impl()
9290 if (pDocShell) in ~ScCellsEnumeration()
9291 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScCellsEnumeration()
9308 sal_Bool bFound = pDocShell->GetDocument()->GetNextMarkedCell( nCol, nRow, nTab, *pMark ); in Advance_Impl()
9319 if (pDocShell) in Notify()
9322 aRanges.UpdateReference( rRef.GetMode(), pDocShell->GetDocument(), rRef.GetRange(), in Notify()
9332 aNew.UpdateReference( rRef.GetMode(), pDocShell->GetDocument(), rRef.GetRange(), in Notify()
9345 pDocShell = NULL; // ungueltig geworden in Notify()
9361 if (pDocShell && !bAtEnd) in nextElement()
9367 return uno::makeAny(uno::Reference<table::XCell>(new ScCellObj( pDocShell, aTempPos ))); in nextElement()
9377 pDocShell( pDocSh ), in ScCellFormatsObj()
9380 ScDocument* pDoc = pDocShell->GetDocument(); in ScCellFormatsObj()
9388 if (pDocShell) in ~ScCellFormatsObj()
9389 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScCellFormatsObj()
9401 pDocShell = NULL; // ungueltig geworden in Notify()
9410 if (pDocShell) in GetObjectByIndex_Impl()
9412 ScDocument* pDoc = pDocShell->GetDocument(); in GetObjectByIndex_Impl()
9427 pRet = new ScCellObj( pDocShell, aNext.aStart ); in GetObjectByIndex_Impl()
9429 pRet = new ScCellRangeObj( pDocShell, aNext ); in GetObjectByIndex_Impl()
9446 if (pDocShell) in getCount()
9448 ScDocument* pDoc = pDocShell->GetDocument(); in getCount()
9492 if (pDocShell) in createEnumeration()
9493 return new ScCellFormatsEnumeration( pDocShell, aTotalRange ); in createEnumeration()
9500 pDocShell( pDocSh ), in ScCellFormatsEnumeration()
9506 ScDocument* pDoc = pDocShell->GetDocument(); in ScCellFormatsEnumeration()
9520 if (pDocShell) in ~ScCellFormatsEnumeration()
9521 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScCellFormatsEnumeration()
9551 if (pDocShell && !bAtEnd) in NextObject_Impl()
9554 pRet = new ScCellObj( pDocShell, aNext.aStart ); in NextObject_Impl()
9556 pRet = new ScCellRangeObj( pDocShell, aNext ); in NextObject_Impl()
9573 pDocShell = NULL; // ungueltig geworden in Notify()
9597 if ( bAtEnd || !pDocShell ) in nextElement()
9608 pDocShell( pDocSh ), in ScUniqueCellFormatsObj()
9612 pDocShell->GetDocument()->AddUnoObject(*this); in ScUniqueCellFormatsObj()
9621 if (pDocShell) in ~ScUniqueCellFormatsObj()
9622 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScUniqueCellFormatsObj()
9635 pDocShell = NULL; // ungueltig geworden in Notify()
9789 if (pDocShell) in GetObjects_Impl()
9791 ScDocument* pDoc = pDocShell->GetDocument(); in GetObjects_Impl()
9847 …Any(uno::Reference<sheet::XSheetCellRangeContainer>(new ScCellRangesObj(pDocShell, aRangeLists[nIn… in getByIndex()
9871 if (pDocShell) in createEnumeration()
9872 return new ScUniqueCellFormatsEnumeration( pDocShell, aRangeLists ); in createEnumeration()
9880 pDocShell( pDocSh ), in ScUniqueCellFormatsEnumeration()
9883 pDocShell->GetDocument()->AddUnoObject(*this); in ScUniqueCellFormatsEnumeration()
9888 if (pDocShell) in ~ScUniqueCellFormatsEnumeration()
9889 pDocShell->GetDocument()->RemoveUnoObject(*this); in ~ScUniqueCellFormatsEnumeration()
9902 pDocShell = NULL; // ungueltig geworden in Notify()
9919 if ( !hasMoreElements() || !pDocShell ) in nextElement()
9924 …Any(uno::Reference<sheet::XSheetCellRangeContainer>(new ScCellRangesObj(pDocShell, aRangeLists[nCu… in nextElement()