diff options
Diffstat (limited to 'sc/source/ui/view/viewfun5.cxx')
-rw-r--r-- | sc/source/ui/view/viewfun5.cxx | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx index dc4e96bbbf34..1ea0761c61a1 100644 --- a/sc/source/ui/view/viewfun5.cxx +++ b/sc/source/ui/view/viewfun5.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 @@ -60,7 +60,7 @@ #include <comphelper/processfactory.hxx> #include <sot/formats.hxx> -#define SOT_FORMATSTR_ID_STARCALC_CURRENT SOT_FORMATSTR_ID_STARCALC_50 +#define SOT_FORMATSTR_ID_STARCALC_CURRENT SOT_FORMATSTR_ID_STARCALC_50 #include "viewfunc.hxx" #include "docsh.hxx" @@ -71,7 +71,7 @@ #include "sc.hrc" #include "filter.hxx" #include "scextopt.hxx" -#include "tabvwsh.hxx" // wegen GetViewFrame +#include "tabvwsh.hxx" // wegen GetViewFrame #include "compiler.hxx" #include "asciiopt.hxx" @@ -92,17 +92,17 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, ScDocument* pDoc = GetViewData()->GetDocument(); pDoc->SetPastingDrawFromOtherDoc( TRUE ); - Point aPos; // inserting position (1/100 mm) + Point aPos; // inserting position (1/100 mm) if (pLogicPos) aPos = *pLogicPos; else { - // inserting position isn't needed for text formats + // inserting position isn't needed for text formats BOOL bIsTextFormat = ( ScImportExport::IsFormatSupported( nFormatId ) || nFormatId == FORMAT_RTF ); if ( !bIsTextFormat ) { - // Window MapMode isn't drawing MapMode if DrawingLayer hasn't been created yet + // Window MapMode isn't drawing MapMode if DrawingLayer hasn't been created yet SCTAB nTab = GetViewData()->GetTabNo(); long nXT = 0; @@ -119,7 +119,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, BOOL bRet = FALSE; // - // handle individual formats + // handle individual formats // if ( nFormatId == SOT_FORMATSTR_ID_EMBED_SOURCE || @@ -153,7 +153,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, nSrcTab = 0; ScMarkData aSrcMark; - aSrcMark.SelectOneTable( nSrcTab ); // for CopyToClip + aSrcMark.SelectOneTable( nSrcTab ); // for CopyToClip ScDocument* pClipDoc = new ScDocument( SCDOCMODE_CLIP ); SCCOL nFirstCol, nLastCol; @@ -299,7 +299,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, //TODO/LATER: if format is not available, create picture } } - else if ( nFormatId == SOT_FORMATSTR_ID_LINK ) // LINK is also in ScImportExport + else if ( nFormatId == SOT_FORMATSTR_ID_LINK ) // LINK is also in ScImportExport { bRet = PasteDDE( rxTransferable ); } @@ -307,7 +307,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, { if ( nFormatId == SOT_FORMAT_RTF && aDataHelper.HasFormat( SOT_FORMATSTR_ID_EDITENGINE ) ) { - // use EditView's PasteSpecial / Drop + // use EditView's PasteSpecial / Drop PasteRTF( nPosX, nPosY, rxTransferable ); bRet = TRUE; } @@ -372,7 +372,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, } else if (nFormatId == SOT_FORMATSTR_ID_SBA_DATAEXCHANGE) { - // import of database data into table + // import of database data into table String sDataDesc; if ( aDataHelper.GetString( nFormatId, sDataDesc ) ) @@ -382,10 +382,10 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, ScDocShell* pDocSh = GetViewData()->GetDocShell(); SCTAB nTab = GetViewData()->GetTabNo(); - ClickCursor(nPosX, nPosY, FALSE); // set cursor position + ClickCursor(nPosX, nPosY, FALSE); // set cursor position - // Creation of database area "Import1" isn't here, but in the DocShell - // slot execute, so it can be added to the undo action + // Creation of database area "Import1" isn't here, but in the DocShell + // slot execute, so it can be added to the undo action ScDBData* pDBData = pDocSh->GetDBData( ScRange(nPosX,nPosY,nTab), SC_DB_OLD, SC_DBSEL_KEEP ); String sTarget; @@ -411,7 +411,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, pCursorItem.reset(new SfxUsrAnyItem(FN_PARAM_3, aDesc[::svx::daCursor])); } - // asynchronous, to avoid doing the whole import in drop handler + // asynchronous, to avoid doing the whole import in drop handler SfxDispatcher& rDisp = GetViewData()->GetDispatcher(); rDisp.Execute(SID_SBA_IMPORT, SFX_CALLMODE_ASYNCHRON, &aDataDesc, &aTarget, &aAreaNew, pCursorItem.get(), (void*)0 ); @@ -421,7 +421,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, } else if (nFormatId == SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE) { - // insert database field control + // insert database field control if ( ::svx::OColumnTransferable::canExtractColumnDescriptor( aDataHelper.GetDataFlavorExVector(), CTF_COLUMN_DESCRIPTOR | CTF_CONTROL_EXCHANGE ) ) { @@ -491,7 +491,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, SotStorageStreamRef xStm; if( aDataHelper.GetSotStorageStream( SOT_FORMATSTR_ID_DRAWING, xStm ) ) { - MakeDrawLayer(); // before loading model, so 3D factory has been created + MakeDrawLayer(); // before loading model, so 3D factory has been created SvtPathOptions aPathOpt; String aPath = aPathOpt.GetPalettePath(); @@ -523,10 +523,10 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, pObject = aIter.Next(); } - nObjCount += pPage->GetObjCount(); // #105888# count group object only once + nObjCount += pPage->GetObjCount(); // #105888# count group object only once } - PasteDraw( aPos, pModel, (nObjCount > 1) ); // grouped if more than 1 object + PasteDraw( aPos, pModel, (nObjCount > 1) ); // grouped if more than 1 object delete pModel; aDragShellRef->DoClose(); bRet = TRUE; @@ -534,17 +534,17 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, } else if ( (nFormatId == SOT_FORMATSTR_ID_BIFF_5) || (nFormatId == SOT_FORMATSTR_ID_BIFF_8) ) { - // do excel import into a clipboard document + // do excel import into a clipboard document //TODO/MBA: testing uno::Reference < io::XInputStream > xStm; if( aDataHelper.GetInputStream( nFormatId, xStm ) ) { #if 0 - SotStorage aDest( "d:\\test.xls" ); // to see the file + SotStorage aDest( "d:\\test.xls" ); // to see the file pStor->CopyTo( &aDest ); #endif ScDocument* pInsDoc = new ScDocument( SCDOCMODE_CLIP ); - SCTAB nSrcTab = 0; // Biff5 in clipboard: always sheet 0 + SCTAB nSrcTab = 0; // Biff5 in clipboard: always sheet 0 pInsDoc->ResetClip( pDoc, nSrcTab ); SfxMedium aMed; @@ -566,7 +566,7 @@ BOOL ScViewFunc::PasteDataFormat( ULONG nFormatId, } else { - DBG_ERROR("no dimension"); //! possible? + DBG_ERROR("no dimension"); //! possible? SCCOL nFirstCol, nLastCol; SCROW nFirstRow, nLastRow; if ( pInsDoc->GetDataStart( nSrcTab, nFirstCol, nFirstRow ) ) @@ -657,8 +657,8 @@ BOOL ScViewFunc::PasteDDE( const uno::Reference<datatransfer::XTransferable>& rx { TransferableDataHelper aDataHelper( rxTransferable ); - // get link data from transferable before string data, - // so the source knows it will be used for a link + // get link data from transferable before string data, + // so the source knows it will be used for a link uno::Sequence<sal_Int8> aSequence; if ( !aDataHelper.GetSequence( SOT_FORMATSTR_ID_LINK, aSequence ) ) @@ -667,7 +667,7 @@ BOOL ScViewFunc::PasteDDE( const uno::Reference<datatransfer::XTransferable>& rx return FALSE; } - // check size (only if string is available in transferable) + // check size (only if string is available in transferable) USHORT nCols = 1; USHORT nRows = 1; @@ -676,7 +676,7 @@ BOOL ScViewFunc::PasteDDE( const uno::Reference<datatransfer::XTransferable>& rx String aDataStr; if ( aDataHelper.GetString( SOT_FORMAT_STRING, aDataStr ) ) { - // get size from string the same way as in ScDdeLink::DataChanged + // get size from string the same way as in ScDdeLink::DataChanged aDataStr.ConvertLineEnd(LINEEND_LF); xub_StrLen nLen = aDataStr.Len(); @@ -693,7 +693,7 @@ BOOL ScViewFunc::PasteDDE( const uno::Reference<datatransfer::XTransferable>& rx } } - // create formula + // create formula long nSeqLen = aSequence.getLength(); sal_Char* pData = (sal_Char*)aSequence.getConstArray(); @@ -727,7 +727,7 @@ BOOL ScViewFunc::PasteDDE( const uno::Reference<datatransfer::XTransferable>& rx aFormula += aQuote; aFormula += ScCompiler::GetNativeSymbol( ocClose); - // mark range + // mark range SCTAB nTab = GetViewData()->GetTabNo(); SCCOL nCurX = GetViewData()->GetCurX(); @@ -738,7 +738,7 @@ BOOL ScViewFunc::PasteDDE( const uno::Reference<datatransfer::XTransferable>& rx MarkCursor( nCurX+static_cast<SCCOL>(nCols)-1, nCurY+static_cast<SCROW>(nRows)-1, nTab ); ShowAllCursors(); - // enter formula + // enter formula EnterMatrix( aFormula ); CursorPosChanged(); |