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 shared, bool bGui, 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 shared, bool bGui, css::uno::Reference< css::uno::XComponentContext > &out_LocalComponentContext)
 

Function Documentation

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 
)
Reference< XCommandEnvironment > unopkg::createCmdEnv ( Reference< XComponentContext > const &  xContext,
bool  option_force_overwrite,
bool  option_verbose,
bool  option_suppress_license 
)

Definition at line 377 of file unopkg_cmdenv.cxx.

Referenced by unopkg_main().

OUString const & unopkg::getExecutableDir ( )

Definition at line 182 of file unopkg_misc.cxx.

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 399 of file unopkg_misc.cxx.

References SAL_CONFIGFILE.

Referenced by getUNO().

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

Definition at line 72 of file unopkg_misc.cxx.

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

Referenced by unopkg_main().

OUString const & unopkg::getProcessWorkingDir ( )

Definition at line 188 of file unopkg_misc.cxx.

Referenced by unopkg_main().

css::uno::Reference<css::uno::XComponentContext> unopkg::getUNO ( bool  verbose,
bool  shared,
bool  bGui,
css::uno::Reference< css::uno::XComponentContext > &  out_LocalComponentContext 
)
Reference<XComponentContext> unopkg::getUNO ( bool  verbose,
bool  shared,
bool  bGui,
Reference< XComponentContext > &  out_localContext 
)
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 125 of file unopkg_misc.cxx.

Referenced by unopkg_main().

bool unopkg::isOption ( OptionInfo const *  option_info,
sal_uInt32 *  pIndex 
)
OUString unopkg::makeAbsoluteFileUrl ( OUString const &  sys_path,
OUString const &  base_url 
)

Definition at line 194 of file unopkg_misc.cxx.

Referenced by unopkg_main().

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 
)
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 305 of file unopkg_misc.cxx.

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

Referenced by unopkg_main().

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

Definition at line 294 of file unopkg_misc.cxx.

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

Referenced by printf_packages().

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

Definition at line 140 of file unopkg_misc.cxx.

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

Referenced by unopkg_main().

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().

OUString unopkg::toString ( OptionInfo const *  info)