Lines Matching refs:rPos

176 sal_Bool ScDocFunc::DetectiveAddPred(const ScAddress& rPos)  in DetectiveAddPred()  argument
184 SCCOL nCol = rPos.Col(); in DetectiveAddPred()
185 SCROW nRow = rPos.Row(); in DetectiveAddPred()
186 SCTAB nTab = rPos.Tab(); in DetectiveAddPred()
214 sal_Bool ScDocFunc::DetectiveDelPred(const ScAddress& rPos) in DetectiveDelPred() argument
225 SCCOL nCol = rPos.Col(); in DetectiveDelPred()
226 SCROW nRow = rPos.Row(); in DetectiveDelPred()
227 SCTAB nTab = rPos.Tab(); in DetectiveDelPred()
255 sal_Bool ScDocFunc::DetectiveAddSucc(const ScAddress& rPos) in DetectiveAddSucc() argument
264 SCCOL nCol = rPos.Col(); in DetectiveAddSucc()
265 SCROW nRow = rPos.Row(); in DetectiveAddSucc()
266 SCTAB nTab = rPos.Tab(); in DetectiveAddSucc()
294 sal_Bool ScDocFunc::DetectiveDelSucc(const ScAddress& rPos) in DetectiveDelSucc() argument
305 SCCOL nCol = rPos.Col(); in DetectiveDelSucc()
306 SCROW nRow = rPos.Row(); in DetectiveDelSucc()
307 SCTAB nTab = rPos.Tab(); in DetectiveDelSucc()
335 sal_Bool ScDocFunc::DetectiveAddError(const ScAddress& rPos) in DetectiveAddError() argument
344 SCCOL nCol = rPos.Col(); in DetectiveAddError()
345 SCROW nRow = rPos.Row(); in DetectiveAddError()
346 SCTAB nTab = rPos.Tab(); in DetectiveAddError()
729 sal_Bool ScDocFunc::SetNormalString( const ScAddress& rPos, const String& rText, sal_Bool bApi ) in SetNormalString() argument
735 ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in SetNormalString()
747 ScBaseCell* pDocCell = pDoc->GetCell( rPos ); in SetNormalString()
752 pTabs[0] = rPos.Tab(); in SetNormalString()
759 const ScPatternAttr* pPattern = pDoc->GetPattern( rPos.Col(),rPos.Row(),rPos.Tab() ); in SetNormalString()
770 pDoc->SetString( rPos.Col(), rPos.Row(), rPos.Tab(), rText ); in SetNormalString()
775 …tUndoManager()->AddUndoAction(new ScUndoEnterData( &rDocShell, rPos.Col(),rPos.Row(),rPos.Tab(), 1… in SetNormalString()
779 if ( bEditDeleted || pDoc->HasAttrib( ScRange(rPos), HASATTR_NEEDHEIGHT ) ) in SetNormalString()
780 AdjustRowHeight( ScRange(rPos) ); in SetNormalString()
782 rDocShell.PostPaintCell( rPos ); in SetNormalString()
787 NotifyInputHandler( rPos ); in SetNormalString()
792 sal_Bool ScDocFunc::PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, sal_Bool bApi ) in PutCell() argument
802 ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in PutCell()
813 ScBaseCell* pDocCell = pDoc->GetCell( rPos ); in PutCell()
816 pDoc->HasAttrib( ScRange(rPos), HASATTR_NEEDHEIGHT ) ); in PutCell()
818 ScBaseCell* pUndoCell = (bUndo && pDocCell) ? pDocCell->CloneWithoutNote( *pDoc, rPos ) : 0; in PutCell()
819 ScBaseCell* pRedoCell = (bUndo && pNewCell) ? pNewCell->CloneWithoutNote( *pDoc, rPos ) : 0; in PutCell()
821 pDoc->PutCell( rPos, pNewCell ); in PutCell()
827 new ScUndoPutCell( &rDocShell, rPos, pUndoCell, pRedoCell, bHeight ) ); in PutCell()
831 AdjustRowHeight( ScRange(rPos) ); in PutCell()
834 rDocShell.PostPaintCell( rPos ); in PutCell()
841 NotifyInputHandler( rPos ); in PutCell()
846 void ScDocFunc::NotifyInputHandler( const ScAddress& rPos ) in NotifyInputHandler() argument
852 if ( pInputHdl && pInputHdl->GetCursorPos() == rPos ) in NotifyInputHandler()
876 sal_Bool ScDocFunc::PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine, sal_Bool bInter… in PutData() argument
918 bRet = PutCell( rPos, in PutData()
945 bRet = SetNormalString( rPos, aText, bApi ); in PutData()
947 bRet = PutCell( rPos, new ScStringCell( aText ), bApi ); in PutData()
955 aPattern.DeleteUnchanged( pDoc->GetPattern( rPos.Col(), rPos.Row(), rPos.Tab() ) ); in PutData()
960 aMark.SelectTable( rPos.Tab(), sal_True ); in PutData()
961 aMark.SetMarkArea( ScRange( rPos ) ); in PutData()
980 ScBaseCell* ScDocFunc::InterpretEnglishString( const ScAddress& rPos, in InterpretEnglishString() argument
996 ScCompiler aComp( pDoc, rPos ); in InterpretEnglishString()
1000 pNewCell = new ScFormulaCell( pDoc, rPos, pCode, eGrammar, MM_NONE ); in InterpretEnglishString()
1032 sal_Bool ScDocFunc::SetCellText( const ScAddress& rPos, const String& rText, in SetCellText() argument
1051 pNewCell = InterpretEnglishString( rPos, rText, rFormulaNmsp, eGrammar ); in SetCellText()
1062 return PutCell( rPos, pNewCell, bApi ); in SetCellText()
1064 return SetNormalString( rPos, rText, bApi ); in SetCellText()
1069 bool ScDocFunc::ShowNote( const ScAddress& rPos, bool bShow ) in ShowNote() argument
1072 ScPostIt* pNote = rDoc.GetNote( rPos ); in ShowNote()
1076 pNote->ShowCaption( rPos, bShow ); in ShowNote()
1078 … rDocShell.GetUndoManager()->AddUndoAction( new ScUndoShowHideNote( rDocShell, rPos, bShow ) ); in ShowNote()
1080 if (rDoc.IsStreamValid(rPos.Tab())) in ShowNote()
1081 rDoc.SetStreamValid(rPos.Tab(), sal_False); in ShowNote()
1090 bool ScDocFunc::SetNoteText( const ScAddress& rPos, const String& rText, sal_Bool bApi ) in SetNoteText() argument
1095 ScEditableTester aTester( pDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in SetNoteText()
1106 …f( ScPostIt* pNote = (aNewText.Len() > 0) ? pDoc->GetOrCreateNote( rPos ) : pDoc->GetNote( rPos ) ) in SetNoteText()
1107 pNote->SetText( rPos, aNewText ); in SetNoteText()
1111 if (pDoc->IsStreamValid(rPos.Tab())) in SetNoteText()
1112 pDoc->SetStreamValid(rPos.Tab(), sal_False); in SetNoteText()
1114 rDocShell.PostPaintCell( rPos ); in SetNoteText()
1122 bool ScDocFunc::ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor,… in ReplaceNote() argument
1128 ScEditableTester aTester( &rDoc, rPos.Tab(), rPos.Col(),rPos.Row(), rPos.Col(),rPos.Row() ); in ReplaceNote()
1135 ScPostIt* pOldNote = rDoc.ReleaseNote( rPos ); in ReplaceNote()
1139 pOldNote->GetOrCreateCaption( rPos ); in ReplaceNote()
1153 … if( ScPostIt* pNewNote = ScNoteUtil::CreateNoteFromString( rDoc, rPos, rNoteText, false, true ) ) in ReplaceNote()
1163 …pUndoMgr->AddUndoAction( new ScUndoReplaceNote( rDocShell, rPos, aOldData, aNewData, pDrawLayer->G… in ReplaceNote()
1166 rDocShell.PostPaintCell( rPos ); in ReplaceNote()
1168 if (rDoc.IsStreamValid(rPos.Tab())) in ReplaceNote()
1169 rDoc.SetStreamValid(rPos.Tab(), sal_False); in ReplaceNote()
3285 sal_Bool ScDocFunc::InsertPageBreak( sal_Bool bColumn, const ScAddress& rPos, in InsertPageBreak() argument
3293 SCTAB nTab = rPos.Tab(); in InsertPageBreak()
3296 SCCOLROW nPos = bColumn ? static_cast<SCCOLROW>(rPos.Col()) : in InsertPageBreak()
3297 static_cast<SCCOLROW>(rPos.Row()); in InsertPageBreak()
3309 new ScUndoPageBreak( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, sal_True ) ); in InsertPageBreak()
3349 sal_Bool ScDocFunc::RemovePageBreak( sal_Bool bColumn, const ScAddress& rPos, in RemovePageBreak() argument
3357 SCTAB nTab = rPos.Tab(); in RemovePageBreak()
3360 SCCOLROW nPos = bColumn ? static_cast<SCCOLROW>(rPos.Col()) : in RemovePageBreak()
3361 static_cast<SCCOLROW>(rPos.Row()); in RemovePageBreak()
3374 new ScUndoPageBreak( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, sal_False ) ); in RemovePageBreak()