LibreOffice Module desktop (master) 1
Classes | Functions
unopkg Namespace Reference

Classes

struct  LockFileException
 
struct  OptionInfo
 

Functions

Reference< XCommandEnvironment > createCmdEnv (Reference< XComponentContext > const &xContext, bool option_force_overwrite, bool option_verbose, bool option_suppress_license)
 
OUString toString (OptionInfo const *info)
 
OptionInfo const * getOptionInfo (OptionInfo const *list, OUString const &opt)
 
bool isOption (OptionInfo const *option_info, sal_uInt32 *pIndex)
 
bool isBootstrapVariable (sal_uInt32 *pIndex)
 checks if an argument is a bootstrap variable. More...
 
bool readArgument (OUString *pValue, OptionInfo const *option_info, sal_uInt32 *pIndex)
 
OUString const & getExecutableDir ()
 
OUString const & getProcessWorkingDir ()
 
OUString makeAbsoluteFileUrl (OUString const &sys_path, OUString const &base_url)
 
static void printf_unaccepted_licenses (Reference< deployment::XPackage > const &ext)
 
void printf_packages (std::vector< Reference< deployment::XPackage > > const &allExtensions, std::vector< bool > const &vecUnaccepted, Reference< XCommandEnvironment > const &xCmdEnv, sal_Int32 level)
 
static OUString getLockFilePath ()
 returns the path to the lock file used by unopkg. More...
 
Reference< XComponentContext > getUNO (bool verbose, bool bGui, const OUString &sTempDir, Reference< XComponentContext > &out_localContext)
 
bool readOption (bool *flag, OptionInfo const *option_info, sal_uInt32 *pIndex)
 
css::uno::Reference< css::ucb::XCommandEnvironment > createCmdEnv (css::uno::Reference< css::uno::XComponentContext > const &xContext, bool option_force_overwrite, bool option_verbose, bool option_suppressLicense)
 
void printf_packages (std::vector< css::uno::Reference< css::deployment::XPackage > > const &allExtensions, std::vector< bool > const &vecUnaccepted, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, sal_Int32 level=0)
 
css::uno::Reference< css::uno::XComponentContext > getUNO (bool verbose, bool bGui, const OUString &sTempDir, css::uno::Reference< css::uno::XComponentContext > &out_LocalComponentContext)
 

Function Documentation

◆ createCmdEnv() [1/2]

css::uno::Reference< css::ucb::XCommandEnvironment > unopkg::createCmdEnv ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
bool  option_force_overwrite,
bool  option_verbose,
bool  option_suppressLicense 
)

◆ createCmdEnv() [2/2]

Reference< XCommandEnvironment > unopkg::createCmdEnv ( Reference< XComponentContext > const &  xContext,
bool  option_force_overwrite,
bool  option_verbose,
bool  option_suppress_license 
)

Definition at line 376 of file unopkg_cmdenv.cxx.

References xContext.

Referenced by unopkg_main().

◆ getExecutableDir()

OUString const & unopkg::getExecutableDir ( )

Definition at line 158 of file unopkg_misc.cxx.

◆ getLockFilePath()

static OUString unopkg::getLockFilePath ( )
static

returns the path to the lock file used by unopkg.

Returns
the path. An empty string signifies an error.

Definition at line 386 of file unopkg_misc.cxx.

References SAL_CONFIGFILE.

Referenced by getUNO().

◆ getOptionInfo()

OptionInfo const * unopkg::getOptionInfo ( OptionInfo const *  list,
OUString const &  opt 
)

Definition at line 70 of file unopkg_misc.cxx.

References unopkg::OptionInfo::m_name, unopkg::OptionInfo::m_name_length, and SAL_WARN.

Referenced by unopkg_main().

◆ getProcessWorkingDir()

OUString const & unopkg::getProcessWorkingDir ( )

Definition at line 173 of file unopkg_misc.cxx.

References utl::Bootstrap::getProcessWorkingDir().

Referenced by unopkg_main().

◆ getUNO() [1/2]

css::uno::Reference< css::uno::XComponentContext > unopkg::getUNO ( bool  verbose,
bool  bGui,
const OUString &  sTempDir,
css::uno::Reference< css::uno::XComponentContext > &  out_LocalComponentContext 
)

◆ getUNO() [2/2]

Reference< XComponentContext > unopkg::getUNO ( bool  verbose,
bool  bGui,
const OUString &  sTempDir,
Reference< XComponentContext > &  out_localContext 
)

◆ isBootstrapVariable()

bool unopkg::isBootstrapVariable ( sal_uInt32 *  pIndex)

checks if an argument is a bootstrap variable.

These start with -env:. For example -env:UNO_JAVA_JFW_USER_DATA=file:///d:/user

Definition at line 123 of file unopkg_misc.cxx.

Referenced by unopkg_main().

◆ isOption()

bool unopkg::isOption ( OptionInfo const *  option_info,
sal_uInt32 *  pIndex 
)

◆ makeAbsoluteFileUrl()

OUString unopkg::makeAbsoluteFileUrl ( OUString const &  sys_path,
OUString const &  base_url 
)

Definition at line 186 of file unopkg_misc.cxx.

References abs().

Referenced by unopkg_main().

◆ printf_packages() [1/2]

void unopkg::printf_packages ( std::vector< css::uno::Reference< css::deployment::XPackage > > const &  allExtensions,
std::vector< bool > const &  vecUnaccepted,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv,
sal_Int32  level = 0 
)

◆ printf_packages() [2/2]

void unopkg::printf_packages ( std::vector< Reference< deployment::XPackage > > const &  allExtensions,
std::vector< bool > const &  vecUnaccepted,
Reference< XCommandEnvironment > const &  xCmdEnv,
sal_Int32  level 
)

Definition at line 298 of file unopkg_misc.cxx.

References index, printf_unaccepted_licenses(), u, and dp_misc::writeConsole().

Referenced by unopkg_main().

◆ printf_unaccepted_licenses()

static void unopkg::printf_unaccepted_licenses ( Reference< deployment::XPackage > const &  ext)
static

Definition at line 287 of file unopkg_misc.cxx.

References dp_misc::getIdentifier(), u, and dp_misc::writeConsole().

Referenced by printf_packages().

◆ readArgument()

bool unopkg::readArgument ( OUString *  pValue,
OptionInfo const *  option_info,
sal_uInt32 *  pIndex 
)

Definition at line 138 of file unopkg_misc.cxx.

References isOption(), and dp_misc::TRACE().

Referenced by unopkg_main().

◆ readOption()

bool unopkg::readOption ( bool *  flag,
OptionInfo const *  option_info,
sal_uInt32 *  pIndex 
)
inline

Definition at line 66 of file unopkg_shared.h.

References isOption().

Referenced by unopkg_main().

◆ toString()

OUString unopkg::toString ( OptionInfo const *  info)