diff options
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 11 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 45 |
3 files changed, 2 insertions, 58 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 4ee20c186299..d4cff7090706 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -705,17 +705,6 @@ BOOL ScDocFunc::DeleteContents( const ScMarkData& rMark, USHORT nFlags, //! CellContentChanged(); //! ShowAllCursors(); -#if 0 - //! muss an der View bleiben !!!! - if ( nFlags & IDF_ATTRIB ) - { - if ( nFlags & IDF_CONTENTS ) - ForgetFormatArea(); - else - StartFormatArea(); // Attribute loeschen ist auch Attributierung - } -#endif - return TRUE; } diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index bc9681e2aaeb..6abc194aa105 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -2128,6 +2128,7 @@ void ScDocShell::Print( SfxProgress& rProgress, PrintDialog* pPrintDialog, } } +#if 0 if ( n+1 < nCollateCopies && (pPrinter->GetDuplexMode() == DUPLEX_SHORTEDGE || pPrinter->GetDuplexMode() == DUPLEX_LONGEDGE) && ( nPrinted % 2 ) == 1 ) @@ -2138,11 +2139,10 @@ void ScDocShell::Print( SfxProgress& rProgress, PrintDialog* pPrintDialog, // (same as in Writer ViewShell::Prt) // FIXME: needs to be adapted to XRenderable interface - #if 0 pPrinter->StartPage(); pPrinter->EndPage(); - #endif } +#endif } } diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index b3c202d4bc40..1e85d17bd741 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -295,51 +295,6 @@ void ScImportExport::EndPaste() ///////////////////////////////////////////////////////////////////////////// - -#if 0 -BOOL ScImportExport::ImportData( SvData& rData ) -{ - ULONG nFmt = rData.GetFormat(); - if ( nFmt == SOT_FORMATSTR_ID_HTML_SIMPLE ) - { - MSE40HTMLClipFormatObj aMSE40ClpObj; - if ( aMSE40ClpObj.GetData( rData ) ) - { - SvStream* pStream = aMSE40ClpObj.GetStream(); - return ImportStream( *pStream, nFmt ); - } - return FALSE; - } - else - { - void* pMem; - ULONG nSize = rData.GetMinMemorySize(); - rData.GetData( &pMem, TRANSFER_REFERENCE ); - if( nFmt == FORMAT_STRING - || nFmt == FORMAT_RTF - || nFmt == SOT_FORMATSTR_ID_SYLK - || nFmt == SOT_FORMATSTR_ID_HTML - || nFmt == SOT_FORMATSTR_ID_DIF ) - { - //! String? Unicode?? - - // Stringende ermitteln! - sal_Char* pBegin = (sal_Char*) pMem; - sal_Char* pEnd = (sal_Char*) pMem + nSize; - - nSize = 0; - while( pBegin != pEnd && *pBegin != '\0' ) - pBegin++, nSize++; - // #72909# MT says only STRING has to be zero-terminated - DBG_ASSERT( pBegin != pEnd || nFmt != FORMAT_STRING, "non zero-terminated String" ) - } - SvMemoryStream aStrm( pMem, nSize, STREAM_READ ); - return ImportStream( aStrm, nFmt ); - } -} - -#endif - BOOL ScImportExport::ImportData( const String& /* rMimeType */, const ::com::sun::star::uno::Any & /* rValue */ ) { |