diff options
Diffstat (limited to 'sc/source/ui/view/viewfun4.cxx')
-rw-r--r-- | sc/source/ui/view/viewfun4.cxx | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx index 123464cd5fda..5b997d2e9ce4 100644 --- a/sc/source/ui/view/viewfun4.cxx +++ b/sc/source/ui/view/viewfun4.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -206,7 +206,7 @@ void ScViewFunc::DoRefConversion( BOOL bRecord ) aMarkRange = ScRange( GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() ); } - ScEditableTester aTester( pDoc, aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), + ScEditableTester aTester( pDoc, aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), aMarkRange.aEnd.Col(), aMarkRange.aEnd.Row(),rMark ); if (!aTester.IsEditable()) { @@ -225,7 +225,7 @@ void ScViewFunc::DoRefConversion( BOOL bRecord ) pUndoDoc->InitUndo( pDoc, nTab, nTab ); if ( rMark.GetSelectCount() > 1 ) - { + { for (SCTAB i=0; i<nTabCount; i++) if ( rMark.GetTableSelect(i) && i != nTab ) pUndoDoc->AddUndoTab( i, i ); @@ -263,8 +263,8 @@ void ScViewFunc::DoRefConversion( BOOL bRecord ) if (aFinder.GetFound()) { ScAddress aPos = ((ScFormulaCell*)pCell)->aPos; - String aNew = aFinder.GetText(); - ScCompiler aComp( pDoc, aPos); + String aNew = aFinder.GetText(); + ScCompiler aComp( pDoc, aPos); aComp.SetGrammar(pDoc->GetGrammar()); ScTokenArray* pArr = aComp.CompileString( aNew ); ScFormulaCell* pNewCell = new ScFormulaCell( pDoc, aPos, @@ -285,7 +285,7 @@ void ScViewFunc::DoRefConversion( BOOL bRecord ) pRedoDoc->InitUndo( pDoc, nTab, nTab ); if ( rMark.GetSelectCount() > 1 ) - { + { for (SCTAB i=0; i<nTabCount; i++) if ( rMark.GetTableSelect(i) && i != nTab ) pRedoDoc->AddUndoTab( i, i ); @@ -308,7 +308,7 @@ void ScViewFunc::DoRefConversion( BOOL bRecord ) if (!bOk) ErrorMessage(STR_ERR_NOREF); } -// Thesaurus - Undo ok +// Thesaurus - Undo ok void ScViewFunc::DoThesaurus( BOOL bRecord ) { SCCOL nCol; @@ -330,12 +330,12 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) BOOL bIsEditMode = GetViewData()->HasEditView(eWhich); if (bRecord && !pDoc->IsUndoEnabled()) bRecord = FALSE; - if (bIsEditMode) // Edit-Mode aktiv + if (bIsEditMode) // Edit-Mode aktiv { GetViewData()->GetEditView(eWhich, pEditView, nCol, nRow); pEditSel = new ESelection(pEditView->GetSelection()); SC_MOD()->InputEnterHandler(); - GetViewData()->GetBindings().Update(); // sonst kommt der Sfx durcheinander... + GetViewData()->GetBindings().Update(); // sonst kommt der Sfx durcheinander... } else { @@ -360,12 +360,12 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) com::sun::star::uno::Reference<com::sun::star::linguistic2::XSpellChecker1> xSpeller = LinguMgr::GetSpellChecker(); - //! if (...) // thesaurus not available - //! { - //! ErrorMessage(STR_EXPORT_ASCII_WARNING); - //! delete pEditSel; - //! return; - //! } + //! if (...) // thesaurus not available + //! { + //! ErrorMessage(STR_EXPORT_ASCII_WARNING); + //! delete pEditSel; + //! return; + //! } pThesaurusEngine = new ScEditEngineDefaulter( pDoc->GetEnginePool() ); pThesaurusEngine->SetEditTextObjectPool( pDoc->GetEditPool() ); @@ -373,7 +373,7 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) pThesaurusEngine->SetSpeller(xSpeller); MakeEditView(pThesaurusEngine, nCol, nRow ); const ScPatternAttr* pPattern = NULL; - SfxItemSet* pEditDefaults = new SfxItemSet(pThesaurusEngine->GetEmptyItemSet()); + SfxItemSet* pEditDefaults = new SfxItemSet(pThesaurusEngine->GetEmptyItemSet()); pPattern = pDoc->GetPattern(nCol, nRow, nTab); if (pPattern ) { @@ -409,12 +409,12 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) pThesaurusEngine->ClearModifyFlag(); - // language is now in EditEngine attributes -> no longer passed to StartThesaurus + // language is now in EditEngine attributes -> no longer passed to StartThesaurus eState = pEditView->StartThesaurus(); DBG_ASSERT(eState != EE_SPELL_NOSPELLER, "No SpellChecker"); - if (eState == EE_SPELL_ERRORFOUND) // sollte spaeter durch Wrapper geschehen! + if (eState == EE_SPELL_ERRORFOUND) // sollte spaeter durch Wrapper geschehen! { LanguageType eLnge = ScViewUtil::GetEffLanguage( pDoc, ScAddress( nCol, nRow, nTab ) ); SvtLanguageTable aLangTab; @@ -439,7 +439,7 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) pDoc->SetString(nCol, nRow, nTab, sNewString); } // erack! it's broadcasted -// pDoc->SetDirty(); +// pDoc->SetDirty(); pDocSh->SetDocumentModified(); if (bRecord) { @@ -458,7 +458,7 @@ void ScViewFunc::DoThesaurus( BOOL bRecord ) pDocSh->PostPaintGridAll(); } -//UNUSED2008-05 // Spelling Checker - Undo ok +//UNUSED2008-05 // Spelling Checker - Undo ok //UNUSED2008-05 void ScViewFunc::DoSpellingChecker( BOOL bRecord ) //UNUSED2008-05 { //UNUSED2008-05 DoSheetConversion( ScConversionParam( SC_CONVERSION_SPELLCHECK ), bRecord ); @@ -615,13 +615,13 @@ void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam, BOOL bR //UNUSED2008-05 String aErr = aLangTab.GetString((LanguageType) (ULONG) nLang); //UNUSED2008-05 ErrorHandler::HandleError(*new StringErrorInfo( //UNUSED2008-05 ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS, aErr) ); -//UNUSED2008-05 +//UNUSED2008-05 //UNUSED2008-05 return 0; //UNUSED2008-05 } //UNUSED2008-05 IMPL_LINK_INLINE_END( ScViewFunc, SpellError, void *, nLang ) // Pasten von FORMAT_FILE-Items -// wird nicht direkt aus Drop aufgerufen, sondern asynchron -> Dialoge sind erlaubt +// wird nicht direkt aus Drop aufgerufen, sondern asynchron -> Dialoge sind erlaubt BOOL ScViewFunc::PasteFile( const Point& rPos, const String& rFile, BOOL bLink ) { @@ -638,7 +638,7 @@ BOOL ScViewFunc::PasteFile( const Point& rPos, const String& rFile, BOOL bLink ) &aMediaURLItem, 0L ) ); } - if (!bLink) // bei bLink nur Grafik oder URL + if (!bLink) // bei bLink nur Grafik oder URL { // 1. Kann ich die Datei oeffnen? const SfxFilter* pFlt = NULL; @@ -674,7 +674,7 @@ BOOL ScViewFunc::PasteFile( const Point& rPos, const String& rFile, BOOL bLink ) Graphic aGraphic; GraphicFilter* pGraphicFilter = GraphicFilter::GetGraphicFilter(); -// GraphicProgress aGraphicProgress(&aGraphicFilter); +// GraphicProgress aGraphicProgress(&aGraphicFilter); if (!pGraphicFilter->ImportGraphic(aGraphic, aURL, GRFILTER_FORMAT_DONTKNOW, &nFilterFormat )) @@ -691,7 +691,7 @@ BOOL ScViewFunc::PasteFile( const Point& rPos, const String& rFile, BOOL bLink ) } } - if (bLink) // bei bLink alles, was nicht Grafik ist, als URL + if (bLink) // bei bLink alles, was nicht Grafik ist, als URL { Rectangle aRect( rPos, Size(0,0) ); ScRange aRange = GetViewData()->GetDocument()-> @@ -750,7 +750,7 @@ void ScViewFunc::InsertBookmark( const String& rDescription, const String& rURL, nPosX >= pViewData->GetEditStartCol() && nPosX <= pViewData->GetEditEndCol() && nPosY >= pViewData->GetEditStartRow() && nPosY <= pViewData->GetEditEndRow() ) { - // in die gerade editierte Zelle einfuegen + // in die gerade editierte Zelle einfuegen String aTargetFrame; if (pTarget) @@ -759,7 +759,7 @@ void ScViewFunc::InsertBookmark( const String& rDescription, const String& rURL, return; } - // in nicht editierte Zelle einfuegen + // in nicht editierte Zelle einfuegen ScDocument* pDoc = GetViewData()->GetDocument(); SCTAB nTab = GetViewData()->GetTabNo(); @@ -791,10 +791,10 @@ void ScViewFunc::InsertBookmark( const String& rDescription, const String& rURL, if ( bTryReplace && HasBookmarkAtCursor( NULL ) ) { - // if called from hyperlink slot and cell contains only a URL, - // replace old URL with new one + // if called from hyperlink slot and cell contains only a URL, + // replace old URL with new one - aInsSel = ESelection( 0, 0, 0, 1 ); // replace first character (field) + aInsSel = ESelection( 0, 0, 0, 1 ); // replace first character (field) } SvxURLField aField( rURL, rDescription, SVXURLFORMAT_APPDEFAULT ); |