LibreOffice Module desktop (master) 1
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
dp_misc Namespace Reference

Namespaces

namespace  Dependencies
 Dependency handling.
 

Classes

class  DescriptionInfoset
 Access to the content of an XML description element. More...
 
class  PersistentMap
 
class  ProgressLevel
 
struct  SimpleLicenseAttributes
 
struct  StrTitle
 
struct  UpdateInfo
 

Typedefs

typedef std::unordered_map< OString, OString > t_string2string_map
 
typedef std::map< OUString, UpdateInfoUpdateInfoMap
 

Enumerations

enum  UPDATE_SOURCE {
  UPDATE_SOURCE_NONE ,
  UPDATE_SOURCE_SHARED ,
  UPDATE_SOURCE_BUNDLED ,
  UPDATE_SOURCE_ONLINE
}
 
enum  Order {
  LESS ,
  EQUAL ,
  GREATER
}
 

Functions

static OString encodeString (const OString &rStr)
 
static OString decodeString (const char *pEncChars, int nLen)
 
void xml_parse (Reference< xml::sax::XDocumentHandler > const &xDocHandler, ::ucbhelper::Content &ucb_content, Reference< XComponentContext > const &xContext)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC DescriptionInfoset getDescriptionInfoset (std::u16string_view sExtensionFolderURL)
 creates a DescriptionInfoset object. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateIdentifier (::std::optional< OUString > const &optional, std::u16string_view fileName)
 Generates an identifier from an optional identifier. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getIdentifier (css::uno::Reference< css::deployment::XPackage > const &package)
 Gets the identifier of a package. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateLegacyIdentifier (std::u16string_view fileName)
 Generates a legacy identifier based on a file name. More...
 
void progressUpdate (OUString const &status, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool interactContinuation (css::uno::Any const &request, css::uno::Type const &continuation, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool *pcont, bool *pabort)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString const & getPlatformString ()
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool platform_fits (std::u16string_view platform_string)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool hasValidPlatform (css::uno::Sequence< OUString > const &platformStrings)
 determines if the current platform corresponds to one of the platform strings. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC const LanguageTaggetOfficeLanguageTag ()
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool create_ucb_content (::ucbhelper::Content *ucb_content, OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool throw_exc=true)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool create_folder (::ucbhelper::Content *ucb_content, OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool throw_exc=true)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool erase_path (OUString const &url, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv, bool throw_exc=true)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC std::vector< sal_Int8readFile (::ucbhelper::Content &ucb_content)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool readLine (OUString *res, std::u16string_view startingWith, ::ucbhelper::Content &ucb_content, rtl_TextEncoding textenc)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool readProperties (std::vector< std::pair< OUString, OUString > > &out_result, ::ucbhelper::Content &ucb_content)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getExtensionDefaultUpdateURL ()
 returns the default update URL (for the update information) which is used when an extension does not provide its own URL. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UPDATE_SOURCE isUpdateUserExtension (bool bReadOnlyShared, OUString const &userVersion, OUString const &sharedVersion, OUString const &bundledVersion, std::u16string_view onlineVersion)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UPDATE_SOURCE isUpdateSharedExtension (bool bReadOnlyShared, OUString const &sharedVersion, OUString const &bundledVersion, std::u16string_view onlineVersion)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::deployment::XPackage > getExtensionWithHighestVersion (css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > const &seqExtensionsWithSameId)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UpdateInfoMap getOnlineUpdateInfos (css::uno::Reference< css::uno::XComponentContext > const &xContext, css::uno::Reference< css::deployment::XExtensionManager > const &xExtMgr, css::uno::Reference< css::deployment::XUpdateInformationProvider > const &updateInformation, std::vector< css::uno::Reference< css::deployment::XPackage > > const *extensionList, std::vector< std::pair< css::uno::Reference< css::deployment::XPackage >, css::uno::Any > > &out_errors)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getHighestVersion (OUString const &sharedVersion, OUString const &bundledVersion, OUString const &onlineVersion)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC Order compareVersions (std::u16string_view version1, std::u16string_view version2)
 
void xml_parse (css::uno::Reference< css::xml::sax::XDocumentHandler > const &xDocHandler, ::ucbhelper::Content &ucb_content, css::uno::Reference< css::uno::XComponentContext > const &xContext)
 
bool interactContinuation (Any const &request, Type const &continuation, Reference< XCommandEnvironment > const &xCmdEnv, bool *pcont, bool *pabort)
 
OUString makeURL (std::u16string_view baseURL, OUString const &relPath)
 appends a relative path to a url. More...
 
OUString makeURLAppendSysPathSegment (std::u16string_view baseURL, OUString const &relPath)
 appends a relative path to a url. More...
 
OUString expandUnoRcTerm (OUString const &term_)
 
OUString makeRcTerm (OUString const &url)
 
OUString expandUnoRcUrl (OUString const &url)
 
bool office_is_running ()
 
oslProcess raiseProcess (OUString const &appURL, Sequence< OUString > const &args)
 
OUString generateRandomPipeId ()
 
Reference< XInterfaceresolveUnoURL (OUString const &connectString, Reference< XComponentContext > const &xLocalContext, AbortChannel const *abortChannel)
 
static void writeConsoleWithStream (std::u16string_view sText, FILE *stream)
 
void writeConsole (std::u16string_view sText)
 writes the argument string to the console. More...
 
void writeConsoleError (std::u16string_view sText)
 writes the argument to the console using the error stream. More...
 
OUString readConsole ()
 reads from the console. More...
 
void TRACE (OUString const &sText)
 print the text to the console in a debug build. More...
 
void syncRepositories (bool force, Reference< ucb::XCommandEnvironment > const &xCmdEnv)
 
void disposeBridges (Reference< css::uno::XComponentContext > const &ctx)
 
bool create_ucb_content (::ucbhelper::Content *ret_ucbContent, OUString const &url, Reference< XCommandEnvironment > const &xCmdEnv, bool throw_exc)
 
bool create_folder (::ucbhelper::Content *ret_ucb_content, OUString const &url_, Reference< XCommandEnvironment > const &xCmdEnv, bool throw_exc)
 
bool erase_path (OUString const &url, Reference< XCommandEnvironment > const &xCmdEnv, bool throw_exc)
 
Reference< deployment::XPackage > getExtensionWithHighestVersion (Sequence< Reference< deployment::XPackage > > const &seqExt)
 
UpdateInfoMap getOnlineUpdateInfos (Reference< uno::XComponentContext > const &xContext, Reference< deployment::XExtensionManager > const &xExtMgr, Reference< deployment::XUpdateInformationProvider > const &updateInformation, std::vector< Reference< deployment::XPackage > > const *extensionList, std::vector< std::pair< Reference< deployment::XPackage >, uno::Any > > &out_errors)
 
void try_dispose (css::uno::Reference< css::uno::XInterface > const &x)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::uno::XInterface > resolveUnoURL (OUString const &connectString, css::uno::Reference< css::uno::XComponentContext > const &xLocalContext, AbortChannel const *abortChannel=nullptr)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC oslProcess raiseProcess (OUString const &appURL, css::uno::Sequence< OUString > const &args)
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void syncRepositories (bool force, css::uno::Reference< css::ucb::XCommandEnvironment > const &xCmdEnv)
 registers or revokes shared or bundled extensions which have been recently added or removed. More...
 
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void disposeBridges (css::uno::Reference< css::uno::XComponentContext > const &ctx)
 workaround: for some reason the bridge threads which communicate with the uno.exe process are not released on time More...
 

Variables

const char PmapMagic [4] = {'P','m','p','1'}
 
const char CR = 0x0d
 
const char LF = 0x0a
 

Typedef Documentation

◆ t_string2string_map

typedef std::unordered_map<OString, OString> dp_misc::t_string2string_map

Definition at line 28 of file dp_persmap.h.

◆ UpdateInfoMap

Definition at line 100 of file dp_update.hxx.

Enumeration Type Documentation

◆ Order

Enumerator
LESS 
EQUAL 
GREATER 

Definition at line 30 of file dp_version.hxx.

◆ UPDATE_SOURCE

Enumerator
UPDATE_SOURCE_NONE 
UPDATE_SOURCE_SHARED 
UPDATE_SOURCE_BUNDLED 
UPDATE_SOURCE_ONLINE 

Definition at line 42 of file dp_update.hxx.

Function Documentation

◆ compareVersions()

dp_misc::Order dp_misc::compareVersions ( std::u16string_view  version1,
std::u16string_view  version2 
)

Definition at line 42 of file dp_version.cxx.

References GREATER, and LESS.

Referenced by getExtensionWithHighestVersion().

◆ create_folder() [1/2]

bool dp_misc::create_folder ( ::ucbhelper::Content ret_ucb_content,
OUString const &  url_,
Reference< XCommandEnvironment > const &  xCmdEnv,
bool  throw_exc 
)

◆ create_folder() [2/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::create_folder ( ::ucbhelper::Content ucb_content,
OUString const &  url,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv,
bool  throw_exc = true 
)

◆ create_ucb_content() [1/2]

bool dp_misc::create_ucb_content ( ::ucbhelper::Content ret_ucbContent,
OUString const &  url,
Reference< XCommandEnvironment > const &  xCmdEnv,
bool  throw_exc 
)

◆ create_ucb_content() [2/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::create_ucb_content ( ::ucbhelper::Content ucb_content,
OUString const &  url,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv,
bool  throw_exc = true 
)

◆ decodeString()

static OString dp_misc::decodeString ( const char *  pEncChars,
int  nLen 
)
static

Definition at line 109 of file dp_persmap.cxx.

References i, and pChar.

Referenced by dp_misc::PersistentMap::readAll().

◆ disposeBridges() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::disposeBridges ( css::uno::Reference< css::uno::XComponentContext > const &  ctx)

workaround: for some reason the bridge threads which communicate with the uno.exe process are not released on time

◆ disposeBridges() [2/2]

void dp_misc::disposeBridges ( Reference< css::uno::XComponentContext > const &  ctx)

Definition at line 533 of file dp_misc.cxx.

References comp, dp_registry::backend::bundle::create(), and ctx.

Referenced by unopkg_main().

◆ encodeString()

static OString dp_misc::encodeString ( const OString &  rStr)
static

Definition at line 72 of file dp_persmap.cxx.

References i, and pChar.

Referenced by dp_misc::PersistentMap::flush().

◆ erase_path() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::erase_path ( OUString const &  url,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv,
bool  throw_exc = true 
)

◆ erase_path() [2/2]

bool dp_misc::erase_path ( OUString const &  url,
Reference< XCommandEnvironment > const &  xCmdEnv,
bool  throw_exc 
)

Definition at line 163 of file dp_ucb.cxx.

References Any, create_ucb_content(), Exception, and ucbhelper::Content::executeCommand().

◆ expandUnoRcTerm()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::expandUnoRcTerm ( OUString const &  term_)

Definition at line 293 of file dp_misc.cxx.

◆ expandUnoRcUrl()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::expandUnoRcUrl ( OUString const &  url)

◆ generateIdentifier()

OUString dp_misc::generateIdentifier ( ::std::optional< OUString > const &  optional,
std::u16string_view  fileName 
)

Generates an identifier from an optional identifier.

Parameters
optionalan optional identifier
fileNamea file name
Returns
the given optional identifier if present, otherwise a legacy identifier based on the given file name

Definition at line 34 of file dp_identifier.cxx.

References generateLegacyIdentifier().

◆ generateLegacyIdentifier()

OUString dp_misc::generateLegacyIdentifier ( std::u16string_view  fileName)

Generates a legacy identifier based on a file name.

Parameters
fileNamea file name
Returns
a legacy identifier based on the given file name

Definition at line 50 of file dp_identifier.cxx.

Referenced by generateIdentifier(), dp_manager::ActivePackages::getEntries(), and getIdentifier().

◆ generateRandomPipeId()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::generateRandomPipeId ( )

Definition at line 413 of file dp_misc.cxx.

◆ getDescriptionInfoset()

DescriptionInfoset dp_misc::getDescriptionInfoset ( std::u16string_view  sExtensionFolderURL)

◆ getExtensionDefaultUpdateURL()

OUString dp_misc::getExtensionDefaultUpdateURL ( )

returns the default update URL (for the update information) which is used when an extension does not provide its own URL.

Definition at line 222 of file dp_update.cxx.

References SAL_CONFIGFILE.

◆ getExtensionWithHighestVersion() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::deployment::XPackage > dp_misc::getExtensionWithHighestVersion ( css::uno::Sequence< css::uno::Reference< css::deployment::XPackage > > const &  seqExtensionsWithSameId)

◆ getExtensionWithHighestVersion() [2/2]

Reference< deployment::XPackage > dp_misc::getExtensionWithHighestVersion ( Sequence< Reference< deployment::XPackage > > const &  seqExt)

Definition at line 307 of file dp_update.cxx.

References compareVersions(), GREATER, and i.

◆ getHighestVersion()

OUString dp_misc::getHighestVersion ( OUString const &  sharedVersion,
OUString const &  bundledVersion,
OUString const &  onlineVersion 
)

Definition at line 390 of file dp_update.cxx.

References index.

◆ getIdentifier()

OUString dp_misc::getIdentifier ( css::uno::Reference< css::deployment::XPackage > const &  package)

◆ getOfficeLanguageTag()

const LanguageTag & dp_misc::getOfficeLanguageTag ( )

◆ getOnlineUpdateInfos() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC UpdateInfoMap dp_misc::getOnlineUpdateInfos ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
css::uno::Reference< css::deployment::XExtensionManager > const &  xExtMgr,
css::uno::Reference< css::deployment::XUpdateInformationProvider > const &  updateInformation,
std::vector< css::uno::Reference< css::deployment::XPackage > > const *  extensionList,
std::vector< std::pair< css::uno::Reference< css::deployment::XPackage >, css::uno::Any > > &  out_errors 
)

◆ getOnlineUpdateInfos() [2/2]

UpdateInfoMap dp_misc::getOnlineUpdateInfos ( Reference< uno::XComponentContext > const &  xContext,
Reference< deployment::XExtensionManager > const &  xExtMgr,
Reference< deployment::XUpdateInformationProvider > const &  updateInformation,
std::vector< Reference< deployment::XPackage > > const *  extensionList,
std::vector< std::pair< Reference< deployment::XPackage >, uno::Any > > &  out_errors 
)

Definition at line 340 of file dp_update.cxx.

References getExtensionWithHighestVersion(), getIdentifier(), pos, and xContext.

◆ getPlatformString()

OUString const & dp_misc::getPlatformString ( )

Definition at line 162 of file dp_platform.cxx.

◆ hasValidPlatform()

bool dp_misc::hasValidPlatform ( css::uno::Sequence< OUString > const &  platformStrings)

determines if the current platform corresponds to one of the platform strings.

Definition at line 187 of file dp_platform.cxx.

◆ interactContinuation() [1/2]

bool dp_misc::interactContinuation ( Any const &  request,
Type const &  continuation,
Reference< XCommandEnvironment > const &  xCmdEnv,
bool *  pcont,
bool *  pabort 
)

Definition at line 93 of file dp_interact.cxx.

References isAssignableFrom().

◆ interactContinuation() [2/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::interactContinuation ( css::uno::Any const &  request,
css::uno::Type const &  continuation,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv,
bool *  pcont,
bool *  pabort 
)
Returns
true if ia handler is present and any selection has been chosen

Referenced by dp_manager::ExtensionManager::checkInstall(), and dp_manager::ExtensionManager::checkUpdate().

◆ isUpdateSharedExtension()

UPDATE_SOURCE dp_misc::isUpdateSharedExtension ( bool  bReadOnlyShared,
OUString const &  sharedVersion,
OUString const &  bundledVersion,
std::u16string_view  onlineVersion 
)

◆ isUpdateUserExtension()

UPDATE_SOURCE dp_misc::isUpdateUserExtension ( bool  bReadOnlyShared,
OUString const &  userVersion,
OUString const &  sharedVersion,
OUString const &  bundledVersion,
std::u16string_view  onlineVersion 
)

◆ makeRcTerm()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::makeRcTerm ( OUString const &  url)

Definition at line 300 of file dp_misc.cxx.

◆ makeURL()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::makeURL ( std::u16string_view  baseURL,
OUString const &  relPath 
)

◆ makeURLAppendSysPathSegment()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::makeURLAppendSysPathSegment ( std::u16string_view  baseURL,
OUString const &  relPath 
)

◆ office_is_running()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC bool dp_misc::office_is_running ( )

◆ platform_fits()

bool dp_misc::platform_fits ( std::u16string_view  platform_string)

Definition at line 167 of file dp_platform.cxx.

References o3tl::equalsIgnoreAsciiCase(), o3tl::getToken(), index, and o3tl::trim().

◆ progressUpdate()

void dp_misc::progressUpdate ( OUString const &  status,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)
inline

Definition at line 33 of file dp_interact.h.

Referenced by dp_manager::PackageManagerImpl::addPackage().

◆ raiseProcess() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC oslProcess dp_misc::raiseProcess ( OUString const &  appURL,
css::uno::Sequence< OUString > const &  args 
)

◆ raiseProcess() [2/2]

oslProcess dp_misc::raiseProcess ( OUString const &  appURL,
Sequence< OUString > const &  args 
)

Definition at line 377 of file dp_misc.cxx.

References args.

◆ readConsole()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString dp_misc::readConsole ( )

reads from the console.

It uses fgets to read char values and converts them to OUString using osl_getThreadTextEncoding as target encoding. The returned string has a maximum size of 1024 and does NOT include leading and trailing white space(applied OUString::trim())

Definition at line 476 of file dp_misc.cxx.

References value.

◆ readFile()

std::vector< sal_Int8 > dp_misc::readFile ( ::ucbhelper::Content ucb_content)

◆ readLine()

bool dp_misc::readLine ( OUString *  res,
std::u16string_view  startingWith,
::ucbhelper::Content ucb_content,
rtl_TextEncoding  textenc 
)

Definition at line 200 of file dp_ucb.cxx.

References CR, LF, pos, readFile(), and start.

◆ readProperties()

bool dp_misc::readProperties ( std::vector< std::pair< OUString, OUString > > &  out_result,
::ucbhelper::Content ucb_content 
)

Definition at line 256 of file dp_ucb.cxx.

References CR, LF, name, pos, readFile(), start, and value.

◆ resolveUnoURL() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC css::uno::Reference< css::uno::XInterface > dp_misc::resolveUnoURL ( OUString const &  connectString,
css::uno::Reference< css::uno::XComponentContext > const &  xLocalContext,
AbortChannel const *  abortChannel = nullptr 
)

◆ resolveUnoURL() [2/2]

Reference< XInterface > dp_misc::resolveUnoURL ( OUString const &  connectString,
Reference< XComponentContext > const &  xLocalContext,
AbortChannel const *  abortChannel 
)

Definition at line 432 of file dp_misc.cxx.

References dp_registry::backend::bundle::create(), and i.

◆ syncRepositories() [1/2]

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::syncRepositories ( bool  force,
css::uno::Reference< css::ucb::XCommandEnvironment > const &  xCmdEnv 
)

registers or revokes shared or bundled extensions which have been recently added or removed.

◆ syncRepositories() [2/2]

void dp_misc::syncRepositories ( bool  force,
Reference< ucb::XCommandEnvironment > const &  xCmdEnv 
)

◆ TRACE()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::TRACE ( OUString const &  sText)

print the text to the console in a debug build.

The argument is forwarded to writeConsole. The function does not add new line. The code is only executed if OSL_DEBUG_LEVEL > 1

Definition at line 489 of file dp_misc.cxx.

References SAL_INFO.

Referenced by dp_gui::UpdateDialog::createNotifyJob(), dp_registry::backend::sfwk::ParcelDescDocHandler::endElement(), dp_gui::UpdateCommandEnv::handle(), unopkg::isOption(), unopkg::readArgument(), and dp_registry::backend::sfwk::ParcelDescDocHandler::startElement().

◆ try_dispose()

void dp_misc::try_dispose ( css::uno::Reference< css::uno::XInterface > const &  x)
inline

◆ writeConsole()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::writeConsole ( std::u16string_view  sText)

writes the argument string to the console.

It converts the UTF16 string to an ANSI string using osl_getThreadTextEncoding() as target encoding.

Definition at line 466 of file dp_misc.cxx.

References writeConsoleWithStream().

Referenced by unopkg::printf_packages(), unopkg::printf_unaccepted_licenses(), and unopkg_main().

◆ writeConsoleError()

DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void dp_misc::writeConsoleError ( std::u16string_view  sText)

writes the argument to the console using the error stream.

Otherwise the same as writeConsole.

Definition at line 471 of file dp_misc.cxx.

References writeConsoleWithStream().

Referenced by unopkg_main().

◆ writeConsoleWithStream()

static void dp_misc::writeConsoleWithStream ( std::u16string_view  sText,
FILE *  stream 
)
static

Definition at line 459 of file dp_misc.cxx.

References OUStringToOString(), and stream.

Referenced by writeConsole(), and writeConsoleError().

◆ xml_parse() [1/2]

void dp_misc::xml_parse ( css::uno::Reference< css::xml::sax::XDocumentHandler > const &  xDocHandler,
::ucbhelper::Content ucb_content,
css::uno::Reference< css::uno::XComponentContext > const &  xContext 
)

◆ xml_parse() [2/2]

void dp_misc::xml_parse ( Reference< xml::sax::XDocumentHandler > const &  xDocHandler,
::ucbhelper::Content ucb_content,
Reference< XComponentContext > const &  xContext 
)

Variable Documentation

◆ CR

const char dp_misc::CR = 0x0d

Definition at line 34 of file dp_misc.h.

Referenced by readLine(), and readProperties().

◆ LF

const char dp_misc::LF = 0x0a

Definition at line 35 of file dp_misc.h.

Referenced by IMPL_LINK_NOARG(), readLine(), and readProperties().

◆ PmapMagic

const char dp_misc::PmapMagic[4] = {'P','m','p','1'}