LibreOffice Module filter (master) 1
Functions
xmlfilterjar.cxx File Reference
#include <com/sun/star/io/XActiveDataControl.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XActiveDataSink.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/container/XChild.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <comphelper/oslfile2streamwrap.hxx>
#include <comphelper/storagehelper.hxx>
#include <osl/file.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/streamwrap.hxx>
#include <unotools/tempfile.hxx>
#include <svl/urihelper.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <rtl/uri.hxx>
#include "xmlfiltercommon.hxx"
#include "xmlfilterjar.hxx"
#include "typedetectionexport.hxx"
#include "typedetectionimport.hxx"
Include dependency graph for xmlfilterjar.cxx:

Go to the source code of this file.

Functions

constexpr OUStringLiteral sVndSunStarPackage (u"vnd.sun.star.Package:")
 
static OUString encodeZipUri (const OUString &rURI)
 
static Reference< XInterfaceaddFolder (Reference< XInterface > const &xRootFolder, Reference< XSingleServiceFactory > const &xFactory, const OUString &rName)
 
static void addFile_ (Reference< XInterface > const &xRootFolder, Reference< XSingleServiceFactory > const &xFactory, Reference< XInputStream > const &xInput, const OUString &aName)
 

Function Documentation

◆ addFile_()

static void addFile_ ( Reference< XInterface > const &  xRootFolder,
Reference< XSingleServiceFactory > const &  xFactory,
Reference< XInputStream > const &  xInput,
const OUString &  aName 
)
static
Exceptions
Exception

Definition at line 105 of file xmlfilterjar.cxx.

References aName, Any, encodeZipUri(), xFactory, and xSink.

Referenced by XMLFilterJarHelper::addFile(), and XMLFilterJarHelper::savePackage().

◆ addFolder()

static Reference< XInterface > addFolder ( Reference< XInterface > const &  xRootFolder,
Reference< XSingleServiceFactory > const &  xFactory,
const OUString &  rName 
)
static
Exceptions
Exception

Definition at line 83 of file xmlfilterjar.cxx.

References aName, Any, encodeZipUri(), and xFactory.

Referenced by XMLFilterJarHelper::savePackage().

◆ encodeZipUri()

static OUString encodeZipUri ( const OUString &  rURI)
static

Definition at line 77 of file xmlfilterjar.cxx.

Referenced by addFile_(), addFolder(), and XMLFilterJarHelper::copyFile().

◆ sVndSunStarPackage()

constexpr OUStringLiteral sVndSunStarPackage ( u"vnd.sun.star.Package:"  )
constexpr