diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 19:58:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-03 11:04:44 -0600 |
commit | 84862db95a5e22b9ef89baa2a8a5deeffefbdef6 (patch) | |
tree | 2682cf093a4a5d513bdedaee8298525c9b57ef6f /sc/source/ui/docshell/dbdocimp.cxx | |
parent | 7801c94bffdabe669601d23e86f2f2a41447902d (diff) |
Remove visual noise from sc
Conflicts:
sc/source/ui/inc/docfunc.hxx
Change-Id: I9314437ed3dd60e84d28c08ac0a2d1ed7bd1daf8
Reviewed-on: https://gerrit.libreoffice.org/8301
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r-- | sc/source/ui/docshell/dbdocimp.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index 41c045096300..3b8ee69953d0 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -192,9 +192,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, ScDocument* pImportDoc = new ScDocument( SCDOCMODE_UNDO ); pImportDoc->InitUndo( pDoc, nTab, nTab ); - // + // get data from database into import document - // + try { @@ -216,9 +216,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, OSL_ENSURE( xRowProp.is(), "can't get RowSet" ); if ( xRowProp.is() ) { - // + // set source parameters - // + sal_Int32 nType = rParam.bSql ? sdb::CommandType::COMMAND : ( (rParam.nType == ScDbQuery) ? sdb::CommandType::QUERY : @@ -251,9 +251,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, } if ( xRowSet.is() ) { - // + // get column descriptions - // + long nColCount = 0; uno::Reference<sdbc::XResultSetMetaData> xMeta; @@ -401,9 +401,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, OSL_FAIL("Unexpected exception in database"); } - // + // test for cell protection - // + sal_Bool bKeepFormat = !bAddrInsert && pDBData->IsKeepFmt(); sal_Bool bMoveCells = !bAddrInsert && pDBData->IsDoSize(); @@ -449,9 +449,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, } } - // + // copy data from import doc into real document - // + if ( bSuccess ) { @@ -489,9 +489,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, pImportDoc->ApplyPatternAreaTab( 0,0,MAXCOL,MAXROW, nTab, aPattern ); } - // + // copy old data for undo - // + SCCOL nUndoEndCol = std::max( nEndCol, rParam.nCol2 ); // rParam = old end SCROW nUndoEndRow = std::max( nEndRow, rParam.nRow2 ); @@ -529,9 +529,9 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, nCopyFlags, false, pUndoDoc ); } - // + // move new data - // + if (bMoveCells) { |