LibreOffice Module sc (master) 1
|
#include <sfx2/docfile.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/sfxsids.hrc>
#include <sot/storage.hxx>
#include <sot/exchange.hxx>
#include <svl/intitem.hxx>
#include <filter/msfilter/classids.hxx>
#include <tools/globname.hxx>
#include <com/sun/star/document/UpdateDocMode.hpp>
#include <com/sun/star/packages/XPackageEncryption.hpp>
#include <com/sun/star/ucb/ContentCreationException.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <unotools/streamwrap.hxx>
#include <unotools/defaultencoding.hxx>
#include <unotools/wincodepage.hxx>
#include <osl/diagnose.h>
#include <filter.hxx>
#include <document.hxx>
#include <xistream.hxx>
#include <xltools.hxx>
#include <docoptio.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/processfactory.hxx>
#include <docsh.hxx>
#include <scerrors.hxx>
#include <imp_op.hxx>
#include <excimp8.hxx>
#include <exp_op.hxx>
#include <scdll.hxx>
#include <memory>
Go to the source code of this file.
Functions | |
static void | lcl_getListOfStreams (SotStorage *pStorage, comphelper::SequenceAsHashMap &aStreamsData, std::u16string_view sPrefix) |
static tools::SvRef< SotStorage > | lcl_DRMDecrypt (const SfxMedium &rMedium, const tools::SvRef< SotStorage > &rStorage, std::shared_ptr< SvStream > &rNewStorageStrm) |
static ErrCode | lcl_ExportExcelBiff (SfxMedium &rMedium, ScDocument *pDocument, SvStream *pMedStrm, bool bBiff8, rtl_TextEncoding eNach) |
SAL_DLLPUBLIC_EXPORT bool | TestImportCalcRTF (SvStream &rStream) |
SAL_DLLPUBLIC_EXPORT bool | TestImportXLS (SvStream &rStream) |
SAL_DLLPUBLIC_EXPORT bool | TestImportDIF (SvStream &rStream) |
|
static |
Definition at line 84 of file excel.cxx.
References aArguments, tools::SvRef< typename T >::get(), comphelper::SequenceAsHashMap::getAsConstNamedValueList(), SfxMedium::GetItemSet(), comphelper::getProcessComponentContext(), tools::SvRef< typename T >::is(), lcl_getListOfStreams(), SfxItemSet::Put(), and u.
Referenced by ScFormatFilterPluginImpl::ScImportExcel().
|
static |
Definition at line 254 of file excel.cxx.
References aArguments, SfxItemSet::ClearItem(), ERRCODE_IO_CANTWRITE, ERRCODE_IO_GENERAL, EXC_BIFF5, EXC_BIFF8, EXC_STREAM_BOOK, EXC_STREAM_WORKBOOK, tools::SvRef< typename T >::get(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), comphelper::getProcessComponentContext(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), SfxUnoAnyItem::GetValue(), idx, tools::SvRef< typename T >::is(), MSO_EXCEL5_CLASSID, ScfTools::OpenStorageStreamWrite(), SfxItemSet::Put(), SotExchange::RegisterFormatName(), SCERR_IMPORT_OPEN, SCERR_IMPORT_UNKNOWN_BIFF, SCWARN_EXPORT_MAXROW, SCWARN_IMPORT_RANGE_OVERFLOW, SvStream::Seek(), and ExportBiff5::Write().
Referenced by ScFormatFilterPluginImpl::ScExportExcel5().
|
static |
Definition at line 55 of file excel.cxx.
References SotStorage::FillInfoList(), tools::SvRef< typename T >::get(), tools::SvRef< typename T >::is(), lcl_getListOfStreams(), SotStorage::OpenSotStorage(), SotStorage::OpenSotStream(), and sPrefix.
Referenced by lcl_DRMDecrypt(), and lcl_getListOfStreams().
SAL_DLLPUBLIC_EXPORT bool TestImportCalcRTF | ( | SvStream & | rStream | ) |
Definition at line 419 of file excel.cxx.
References aDocument, ERRCODE_NONE, ScFormatFilter::Get(), ScDLL::Init(), ScFormatFilterPlugin::ScImportRTF(), and ScDocOptions::SetLookUpColRowNames().
SAL_DLLPUBLIC_EXPORT bool TestImportDIF | ( | SvStream & | rStream | ) |
Definition at line 485 of file excel.cxx.
References aDocument, ERRCODE_NONE, ScFormatFilter::Get(), ScDLL::Init(), ScFormatFilterPlugin::ScImportDif(), and ScDocOptions::SetLookUpColRowNames().
SAL_DLLPUBLIC_EXPORT bool TestImportXLS | ( | SvStream & | rStream | ) |
Definition at line 445 of file excel.cxx.
References tools::SvRef< typename T >::clear(), EIF_AUTO, ScDocument::EnableExecuteLink(), ERRCODE_NONE, ScFormatFilter::Get(), tools::SvRef< typename T >::get(), ScDocument::GetDocOptions(), SfxMedium::GetItemSet(), ScDLL::Init(), ScDocument::InitDrawLayer(), ScDocument::MakeTable(), SfxItemSet::Put(), ScFormatFilterPlugin::ScImportExcel(), ScDocument::SetDocOptions(), ScDocument::SetInsertingFromOtherDoc(), and ScDocOptions::SetLookUpColRowNames().