20#include <com/sun/star/uno/XComponentContext.hpp>
21#include <com/sun/star/ucb/XCommandEnvironment.hpp>
22#include <com/sun/star/deployment/XPackage.hpp>
23#include <osl/diagnose.h>
24#include <rtl/ustring.hxx>
29#define APP_NAME "unopkg"
55 OUString
const & opt );
62 OUString * pValue,
OptionInfo const * option_info,
63 sal_uInt32 * pIndex );
67 bool * flag,
OptionInfo const * option_info, sal_uInt32 * pIndex )
69 if (
isOption( option_info, pIndex )) {
70 OSL_ASSERT( flag !=
nullptr );
90 OUString
const & sys_path, OUString
const & base_url );
96 css::uno::Reference<css::uno::XComponentContext>
const &
xContext,
97 bool option_force_overwrite,
99 bool option_suppressLicense);
103 css::uno::Reference<css::deployment::XPackage> >
const & allExtensions,
104 std::vector<bool>
const & vecUnaccepted,
105 css::uno::Reference<css::ucb::XCommandEnvironment>
const & xCmdEnv,
106 sal_Int32 level = 0 );
111css::uno::Reference<css::uno::XComponentContext>
getUNO(
112 bool verbose,
bool bGui,
const OUString& sTempDir,
113 css::uno::Reference<css::uno::XComponentContext> & out_LocalComponentContext);
static uno::Reference< css::uno::XComponentContext > xContext
Reference< XCommandEnvironment > createCmdEnv(Reference< XComponentContext > const &xContext, bool option_force_overwrite, bool option_verbose, bool option_suppress_license)
Reference< XComponentContext > getUNO(bool verbose, bool bGui, const OUString &sTempDir, Reference< XComponentContext > &out_localContext)
OUString toString(OptionInfo const *info)
bool isOption(OptionInfo const *option_info, sal_uInt32 *pIndex)
bool readOption(bool *flag, OptionInfo const *option_info, sal_uInt32 *pIndex)
OUString const & getProcessWorkingDir()
bool readArgument(OUString *pValue, OptionInfo const *option_info, sal_uInt32 *pIndex)
OUString const & getExecutableDir()
void printf_packages(std::vector< Reference< deployment::XPackage > > const &allExtensions, std::vector< bool > const &vecUnaccepted, Reference< XCommandEnvironment > const &xCmdEnv, sal_Int32 level)
bool isBootstrapVariable(sal_uInt32 *pIndex)
checks if an argument is a bootstrap variable.
OptionInfo const * getOptionInfo(OptionInfo const *list, OUString const &opt)
OUString makeAbsoluteFileUrl(OUString const &sys_path, OUString const &base_url)
LockFileException(OUString sMessage)
sal_Unicode m_short_option