LibreOffice Module filter (master) 1
|
#include <xmlfilterjar.hxx>
Public Member Functions | |
XMLFilterJarHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
bool | savePackage (const OUString &rPackageURL, const std::vector< filter_info_impl * > &rFilters) |
void | openPackage (const OUString &rPackageURL, std::vector< std::unique_ptr< filter_info_impl > > &rFilters) |
Private Member Functions | |
void | addFile (css::uno::Reference< css::uno::XInterface > const &xRootFolder, css::uno::Reference< css::lang::XSingleServiceFactory > const &xFactory, const OUString &rSourceFile) |
bool | copyFiles (const css::uno::Reference< css::container::XHierarchicalNameAccess > &xIfc, filter_info_impl *pFilter) |
Static Private Member Functions | |
static bool | copyFile (const css::uno::Reference< css::container::XHierarchicalNameAccess > &xIfc, OUString &rURL, std::u16string_view rTargetURL) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
OUString | sXSLTPath |
OUString | sTemplatePath |
OUString | sProgPath |
Definition at line 30 of file xmlfilterjar.hxx.
|
explicit |
Definition at line 65 of file xmlfilterjar.cxx.
References mxContext, sProgPath, sTemplatePath, SvtPathOptions::SubstituteVariable(), and sXSLTPath.
|
private |
css::uno::Exception |
Definition at line 117 of file xmlfilterjar.cxx.
References addFile_(), aName, aURL, URIHelper::SmartRel2Abs(), sProgPath, and xFactory.
Referenced by savePackage().
|
staticprivate |
Definition at line 300 of file xmlfilterjar.cxx.
References copyStreams(), createDirectory(), encodeZipUri(), Exception, comphelper::OStorageHelper::PathHasSegment(), URIHelper::SmartRel2Abs(), sVndSunStarPackage(), TOOLS_WARN_EXCEPTION, and u.
Referenced by copyFiles().
|
private |
Definition at line 287 of file xmlfilterjar.cxx.
References copyFile(), filter_info_impl::maExportXSLT, filter_info_impl::maImportTemplate, filter_info_impl::maImportXSLT, sTemplatePath, and sXSLTPath.
Referenced by openPackage().
void XMLFilterJarHelper::openPackage | ( | const OUString & | rPackageURL, |
std::vector< std::unique_ptr< filter_info_impl > > & | rFilters | ||
) |
Definition at line 226 of file xmlfilterjar.cxx.
References aArguments, Any, copyFiles(), TypeDetectionImporter::doImport(), Exception, mxContext, TOOLS_WARN_EXCEPTION, and ZIP_STORAGE_FORMAT_STRING.
Referenced by XMLFilterSettingsDialog::onOpen().
bool XMLFilterJarHelper::savePackage | ( | const OUString & | rPackageURL, |
const std::vector< filter_info_impl * > & | rFilters | ||
) |
Definition at line 141 of file xmlfilterjar.cxx.
References aArguments, addFile(), addFile_(), addFolder(), Any, TypeDetectionExporter::doExport(), Exception, utl::TempFileFast::GetStream(), mxContext, SvStream::Seek(), TOOLS_WARN_EXCEPTION, xFactory, and ZIP_STORAGE_FORMAT_STRING.
Referenced by XMLFilterSettingsDialog::onSave().
|
private |
Definition at line 45 of file xmlfilterjar.hxx.
Referenced by openPackage(), and savePackage().
|
private |
Definition at line 49 of file xmlfilterjar.hxx.
Referenced by addFile(), and XMLFilterJarHelper().
|
private |
Definition at line 48 of file xmlfilterjar.hxx.
Referenced by copyFiles(), and XMLFilterJarHelper().
|
private |
Definition at line 47 of file xmlfilterjar.hxx.
Referenced by copyFiles(), and XMLFilterJarHelper().