LibreOffice Module sc (master) 1
|
#include <xmlwrap.hxx>
Public Member Functions | |
ScXMLImportWrapper (ScDocShell &rDocSh, SfxMedium *pM, css::uno::Reference< css::embed::XStorage > xStor) | |
bool | Import (ImportFlags nMode, ErrCode &rError) |
bool | Export (bool bStylesOnly) |
const sc::ImportPostProcessData & | GetImportPostProcessData () const |
Private Member Functions | |
css::uno::Reference< css::task::XStatusIndicator > | GetStatusIndicator () const |
ErrCode | ImportFromComponent (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, css::xml::sax::InputSource &aParserInput, const OUString &sComponentName, const OUString &sDocName, const css::uno::Sequence< css::uno::Any > &aArgs, bool bMustBeSuccessful) |
bool | ExportToComponent (const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::xml::sax::XWriter > &xWriter, const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor, const OUString &sName, const OUString &sMediaType, const OUString &sComponentName, const css::uno::Sequence< css::uno::Any > &aArgs, std::unique_ptr< ScMySharedData > &pSharedData) |
Private Attributes | |
sc::ImportPostProcessData | maPostProcessData |
ScDocShell & | mrDocShell |
ScDocument & | rDoc |
SfxMedium * | pMedium |
css::uno::Reference< css::embed::XStorage > | xStorage |
Definition at line 57 of file xmlwrap.hxx.
ScXMLImportWrapper::ScXMLImportWrapper | ( | ScDocShell & | rDocSh, |
SfxMedium * | pM, | ||
css::uno::Reference< css::embed::XStorage > | xStor | ||
) |
Definition at line 83 of file xmlwrap.cxx.
bool ScXMLImportWrapper::Export | ( | bool | bStylesOnly | ) |
property map for export info set
Definition at line 715 of file xmlwrap.cxx.
References aName, Any, SvXMLEmbeddedObjectHelper::Create(), SvXMLGraphicHelper::Create(), ScDocument::CreateAllNoteCaptions(), ExportToComponent(), xmloff::FixZOrder(), comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), SfxMedium::GetBaseURL(), SfxObjectShell::GetCreateMode(), ScDocument::GetDocumentShell(), ScDocument::GetDrawLayer(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetModel(), SfxMedium::GetName(), SfxMedium::GetOutputStorage(), comphelper::getProcessComponentContext(), GetStatusIndicator(), CntUnencodedStringItem::GetValue(), SotStorage::GetVersion(), i, comphelper::InitPropertySequence(), SdrModel::isLocked(), SdrModel::IsUndoEnabled(), O3TL_UNREACHABLE, ODFVER_010_TEXT, ODFVER_011_TEXT, pMedium, rDoc, SAL_INFO, SC_LAYER_BACK(), SC_LAYER_CONTROLS(), SC_LAYER_FRONT(), SC_LAYER_HIDDEN(), SC_LAYER_INTERN(), ScResId(), SdrModel::setLock(), SOFFICE_FILEFORMAT_60, xModel, and xStorage.
Referenced by ScDocShell::SaveXML().
|
private |
Definition at line 604 of file xmlwrap.cxx.
References ScDocument::GetDocumentShell(), SvXMLExport::getExportFlags(), SfxMedium::GetOutputStorage(), SfxObjectShell::GetStorage(), ScDocument::GetTableCount(), ScSheetSaveData::IsInSupportedSave(), lcl_HasValidStream(), pMedium, rDoc, ScXMLExport::ReleaseSharedData(), ScXMLExport::SetSharedData(), ScXMLExport::SetSourceStream(), ScDocument::SetStreamValid(), sMediaType, sName, xModel, xStorage, and xStream.
Referenced by Export().
|
inline |
Definition at line 91 of file xmlwrap.hxx.
References maPostProcessData.
Referenced by ScDocShell::LoadXML().
|
private |
Definition at line 92 of file xmlwrap.cxx.
References SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxUnoAnyItem::GetValue(), and pMedium.
bool ScXMLImportWrapper::Import | ( | ImportFlags | nMode, |
ErrCode & | rError | ||
) |
property map for export info set
bStylesOnly ? bDocRetval : bStylesRetval;
Definition at line 282 of file xmlwrap.cxx.
References aName, Any, Content, SvXMLEmbeddedObjectHelper::Create(), SvXMLGraphicHelper::Create(), ERRCODE_NONE, comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), SfxMedium::GetBaseURL(), SfxObjectShell::GetCreateMode(), SfxMedium::GetInteractionHandler(), SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), ScDocShell::GetModel(), SfxMedium::GetName(), comphelper::getProcessComponentContext(), GetStatusIndicator(), SfxMedium::GetStorage(), CntUnencodedStringItem::GetValue(), SotStorage::GetVersion(), ImportFromComponent(), Metadata, mrDocShell, pMedium, rDoc, SAL_INFO, SAL_INFO_IF, SC_UNO_ODS_IMPORT_STYLES, SC_UNO_ODS_LOCK_SOLAR_MUTEX, SCERR_IMPORT_UNKNOWN, SCWARN_IMPORT_COLUMN_OVERFLOW, SCWARN_IMPORT_FEATURES_LOST, SCWARN_IMPORT_RANGE_OVERFLOW, SCWARN_IMPORT_ROW_OVERFLOW, SCWARN_IMPORT_SHEET_OVERFLOW, XMLCodeNameProvider::set(), Settings, SOFFICE_FILEFORMAT_60, Styles, SvxResId(), xModel, and xStorage.
Referenced by ScDocShell::LoadXML().
|
private |
Definition at line 104 of file xmlwrap.cxx.
References ERRCODE_IO_BROKENPACKAGE, ERRCODE_NONE, ERRCODE_SFX_WRONGPASSWORD, ex, exceptionToString(), cppu::getCaughtException(), ScDocument::GetRangeOverflowType(), SfxMedium::GetStorage(), ScDocument::HasRangeOverflow(), maPostProcessData, pMedium, rDoc, SAL_WARN, SAL_WARN_IF, SCERR_IMPORT_FILE_ROWCOL, SCERR_IMPORT_FORMAT, SCERR_IMPORT_FORMAT_ROWCOL, SCERR_IMPORT_OPEN, SCERR_IMPORT_UNKNOWN, SCWARN_IMPORT_FILE_ROWCOL, ScXMLImport::SetPostProcessData(), ScDocument::SetRangeOverflowType(), sStream, TOOLS_WARN_EXCEPTION, xModel, and xStorage.
Referenced by Import().
|
private |
Definition at line 59 of file xmlwrap.hxx.
Referenced by GetImportPostProcessData(), and ImportFromComponent().
|
private |
Definition at line 61 of file xmlwrap.hxx.
Referenced by Import().
|
private |
Definition at line 63 of file xmlwrap.hxx.
Referenced by Export(), ExportToComponent(), GetStatusIndicator(), Import(), ImportFromComponent(), and ScXMLImportWrapper().
|
private |
Definition at line 62 of file xmlwrap.hxx.
Referenced by Export(), ExportToComponent(), Import(), and ImportFromComponent().
|
private |
Definition at line 64 of file xmlwrap.hxx.
Referenced by Export(), ExportToComponent(), Import(), ImportFromComponent(), and ScXMLImportWrapper().