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

Namespaces

 Automation
 
 detail
 
 DocumentInfo
 
 internal
 
 LibreOfficeKit
 
 log
 
 module
 
 OFOPXMLHelper
 
 ProfileRecording
 
 rng
 
 service_decl
 
 ServiceInfoHelper
 This class provides a basic helper for classes supporting the XServiceInfo Interface.
 
 string
 
 xml
 
 xmlsec
 

Classes

class  AbortContinuation
 
class  AccessibleEventNotifier
 
class  AnyEvent
 the very basic instance to hold a description of an event More...
 
class  AsyncEventNotifier
 This class is usable with rtl::Reference. More...
 
class  AsyncEventNotifierAutoJoin
 This is a hack (when proper joining is not possible), use of which should be avoided by good design. More...
 
class  AsyncEventNotifierBase
 a helper class for notifying events asynchronously More...
 
struct  AttachedObject_Impl
 
class  AttacherAllListener_Impl
 
struct  AttacherIndex_Impl
 
class  AttributeList
 
class  BackupFileHelper
 Helper class to backup/restore a single file. More...
 
class  Base64
 
class  ChainablePropertySet
 
class  ChainablePropertySetInfo
 
class  ChainablePropertySetInfo_Base
 
class  ComponentBase
 
struct  ComponentDescription
 
class  ComponentGuard
 
class  ComponentMethodGuard
 
class  ConfigurationChanges
 A batch of configuration changes that is committed as a whole. More...
 
struct  ConfigurationGroup
 A type-safe wrapper around a configuration group. More...
 
class  ConfigurationHelper
 
class  ConfigurationListener
 
class  ConfigurationListenerProperty
 Access to this class must be protected by the SolarMutex. More...
 
class  ConfigurationListenerPropertyBase
 
struct  ConfigurationLocalizedProperty
 A type-safe wrapper around a localized configuration property. More...
 
struct  ConfigurationProperty
 A type-safe wrapper around a (non-localized) configuration property. More...
 
struct  ConfigurationSet
 A type-safe wrapper around a configuration set. More...
 
class  DatePredicateLess
 
class  DateTimePredicateLess
 
class  DocPasswordHelper
 Helper that asks for a document password and checks its validity. More...
 
class  DocPasswordRequest
 Implements the task.XInteractionRequest interface for requesting a password string for a document. More...
 
class  EmbeddedObjectContainer
 
struct  EmbedImpl
 
class  EnumerableMap
 
class  EnumPredicateLess
 
struct  EqualProcessor
 
class  EventHolder
 AnyEvent derivee holding a foreign event instance. More...
 
class  EventLogger
 encapsulates a css::logging::XLogger More...
 
class  EventLogger_Impl
 
struct  EventNotifierImpl
 
class  FlagGuard
 
class  FlagRestorationGuard
 
struct  FlagRestorationGuard_Impl
 
class  GenericPropertySet
 
class  GraphicMimeTypeHelper
 
class  Hash
 
struct  HashImpl
 
class  IDocPasswordVerifier
 Base class for a password verifier used by the DocPasswordHelper class below. More...
 
class  IEmbeddedHelper
 Helper interface to give access to some common object which replace the SfxObjectShell. More...
 
class  IEventProcessor
 an event processor More...
 
class  IKeyPredicateLess
 
struct  IMPL_GenericPropertySet_MutexContainer
 
class  ImplEventAttacherManager
 
class  IndexAccessIterator
 an iterator that iterates through all elements, starting from an XIndexAccess (pre-order) More...
 
class  InterfacePredicateLess
 
class  IPropertyInfoService
 used as callback for an OPropertyArrayAggregationHelper More...
 
struct  LessPredicateAdapter
 
class  LifecycleProxy
 
struct  MapData
 
class  MapEnumeration
 
class  MapEnumerator
 
class  MasterPropertySet
 
class  MasterPropertySetInfo
 
class  MasterPropertySetInfo_Base
 
class  mem_fun1_t
 
class  MimeConfigurationHelper
 
struct  mutex_holder
 
class  NameContainer
 this is the base helper class for NameContainer that's also declared in this header. More...
 
class  NamedValueCollection
 a collection of named values, packed in various formats. More...
 
struct  NamedValueCollection_Impl
 
class  NoEnableJavaInteractionContext
 
class  NumberedCollection
 defines a collection of UNO components, where every component will get its own unique number. More...
 
class  OAccessibleComponentHelper
 a helper class for implementing an AccessibleContext which at the same time supports an XAccessibleComponent interface. More...
 
struct  OAccessibleComponentHelper_Base
 
class  OAccessibleContextHelper
 helper class for implementing an AccessibleContext More...
 
class  OAccessibleContextWrapper
 
class  OAccessibleContextWrapperHelper
 Helper for wrapping an XAccessibleContext by aggregating a proxy for it. More...
 
class  OAccessibleExtendedComponentHelper
 a helper class for implementing an AccessibleContext which at the same time supports an XAccessibleExtendedComponent interface. More...
 
class  OAccessibleImplementationAccess
 This is a helper class which allows accessing several aspects of the implementation of an AccessibleContext. More...
 
class  OAccessibleKeyBindingHelper
 a helper class for implementing an accessible keybinding More...
 
class  OAccessibleSelectionHelper
 a helper class for implementing an AccessibleSelection which at the same time supports an XAccessibleSelection interface. More...
 
class  OAccessibleTextHelper
 a helper class for implementing an AccessibleExtendedComponent which at the same time supports an XAccessibleText interface More...
 
class  OAccessibleWrapper
 a class which aggregates a proxy for an XAccessible, and wrapping the context returned by this XAccessible. More...
 
struct  OAccessibleWrapper_Base
 
class  OAggregationArrayUsageHelper
 an OPropertyArrayUsageHelper which will create an OPropertyArrayAggregationHelper More...
 
class  OAnyEnumeration
 provides a com.sun.star.container::XEnumeration for an outside set vector of Any's. More...
 
class  OAnyEnumeration_BASE
 
class  OAutoRegistration
 
class  OCommonAccessibleComponent
 base class encapsulating common functionality for the helper classes implementing the XAccessibleComponent respectively XAccessibleExtendendComponent More...
 
class  OCommonAccessibleSelection
 base class encapsulating common functionality for the helper classes implementing the XAccessibleSelection More...
 
class  OCommonAccessibleText
 base class encapsulating common functionality for the helper classes implementing the XAccessibleText More...
 
class  OComponentProxyAggregation
 
class  OComponentProxyAggregationHelper
 a helper class for aggregating a proxy to an XComponent More...
 
class  OContainerListener
 a non-UNO container listener More...
 
class  OContainerListenerAdapter
 
class  OContainerListenerAdapter_Base
 
class  OContextEntryGuard
 helper class for guarding the entry into OAccessibleContextHelper methods. More...
 
class  OContextHelper_Impl
 implementation class for OAccessibleContextHelper. More...
 
class  OEnumerationByIndex
 provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface More...
 
class  OEnumerationByName
 provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface More...
 
struct  OEnumerationLock
 
class  OEventListenerHelper
 
class  OExternalLockGuard
 
class  OfficeInstallationDirectories
 
class  OFOPXMLHelper_Impl
 
class  OIdPropertyArrayUsageHelper
 
struct  OIdPropertyArrayUsageHelperMutex
 
class  OInteraction
 template for instantiating concrete interaction handlersthe template argument must be an interface derived from XInteractionContinuation More...
 
class  OInteractionRequest
 implements an interaction request (com.sun.star.task::XInteractionRequest)at run time, you can freely add any interaction continuation objects More...
 
class  OInterfaceContainerHelper2
 A container of interfaces. More...
 
class  OInterfaceContainerHelper3
 A container of interfaces. More...
 
class  OInterfaceIteratorHelper2
 This is the iterator of an InterfaceContainerHelper. More...
 
class  OInterfaceIteratorHelper3
 This is the iterator of an InterfaceContainerHelper. More...
 
class  OListenerContainer
 abstract base class which manages a listener container, including THB's listener notification pattern which cares for removing listeners which throw a DisposedException upon notification More...
 
class  OListenerContainerBase
 is a specialization of OListenerContainer which saves you some additional type casts, by making the required listener and event types template arguments. More...
 
class  OModule
 
class  OModuleImpl
 implementation for <type>OModule</type>. More...
 
class  OMutexAndBroadcastHelper
 
class  OOfficeRestartManager
 
class  OPropertyArrayAggregationHelper
 
class  OPropertyArrayUsageHelper
 
struct  OPropertyArrayUsageHelperMutex
 
class  OPropertyBag
 
class  OPropertyChangeListener
 simple listener adapter for property sets More...
 
class  OPropertyChangeMultiplexer
 multiplexer for property changes More...
 
class  OPropertyContainer
 an OPropertySetHelper implementation which is just a simple container for properties represented by class members, usually in a derived class. More...
 
class  OPropertyContainerHelper
 helper class for managing property values, and implementing most of the X*Property* interfaces More...
 
class  OPropertySetAggregationHelper
 helper class for implementing the property-set-related interfaces for an object doin' aggregation supports at least XPropertySet and XMultiPropertySet More...
 
class  OPropertyStateContainer
 helper implementation for components which have properties with a default More...
 
class  OPropertyStateHelper
 helper class for implementing property states More...
 
class  OProxyAggregation
 helper class for aggregating a proxy for a foreign object More...
 
class  ORelease
 opposite of OGuard :) (a mutex is released within the constructor and acquired within the destructor) use only when you're sure the mutex is acquired ! More...
 
class  OSeekableInputWrapper
 
class  OSeekableInputWrapper_BASE
 
class  OSelectionChangeListener
 simple listener adapter for selections More...
 
class  OSelectionChangeMultiplexer
 multiplexer for selection changes More...
 
class  OSequenceOutputStream
 
class  OSequenceOutputStream_Base
 
class  OSimpleListenerContainer
 helper class for simple notification of the form LISTENER::METHOD( EVENT ) More...
 
class  OSLInputStreamWrapper
 
class  OSLOutputStreamWrapper
 
class  OStatefulPropertySet
 
class  OStorageHelper
 
class  OStreamSection
 implements handling for compatibly reading/writing data from/into an input/output stream. More...
 
class  OUStringBufferAppender
 output iterator that appends OUStrings into an OUStringBuffer. More...
 
class  OWeakEventListenerAdapter
 the most simple listener adapter: for XEventListeners at XComponents More...
 
class  OWeakListenerAdapter
 yet another base for weak listener adapters, this time with some type safety More...
 
class  OWeakListenerAdapterBase
 (the base for) an adapter which allows to add as listener to a foreign component, without being held hard. More...
 
class  OWeakTypeObject
 Base class to implement a UNO object supporting types and weak references, i.e. More...
 
class  OWrappedAccessibleChildrenManager
 manages wrapping XAccessible's to XAccessible's More...
 
class  PasswordContinuation
 
struct  ProcessableEvent
 
class  ProfileZone
 
class  PropertyBag
 provides a bag of properties associated with their values More...
 
struct  PropertyBag_Impl
 
struct  PropertyCompareByName
 
struct  PropertyData
 
struct  PropertyDescription
 
struct  PropertyInfo
 
struct  PropertyMapEntry
 
class  PropertyMapImpl
 
class  PropertySetHelper
 
class  PropertySetHelperImpl
 
class  PropertySetInfo
 this class implements a XPropertySetInfo that is initialized with arrays of PropertyMapEntry. More...
 
class  PropertySetInfo_BASE
 
class  RefCountedMutex
 
class  ScalarPredicateLess
 
class  ScopeGuard
 ScopeGuard to ease writing exception-safe code. More...
 
class  SequenceAsHashMap
 
class  SequenceInputStream
 
class  SharedMutex
 
class  SharedMutexBase
 sometimes, it's necessary to have an initialized ::osl::Mutex to pass to some ctor call of your base class. More...
 
class  SimpleFileAccessInteraction
 An interaction handler wrapper for simple file access. More...
 
class  SimplePasswordRequest
 
struct  SlaveData
 
class  SolarMutex
 SolarMutex, needed for VCL's Application::GetSolarMutex(). More...
 
class  StillReadWriteInteraction
 
class  StringCollationPredicateLess
 
class  StringPredicateLess
 
class  SynchronousDispatch
 a helper class for working with the dispatch interface replacing loadComponentFromURL More...
 
struct  TagAttribute
 
struct  theNotifiersMutex
 
class  ThreadPool
 A very basic thread-safe thread pool implementation. More...
 
struct  ThreadPoolStatic
 
class  ThreadTask
 
class  ThreadTaskTag
 
class  TimePredicateLess
 
class  TypePredicateLess
 
class  unique_disposing_ptr
 
class  unique_disposing_solar_mutex_reset_ptr
 
struct  UniquePtrValueLess
 by-value less functor for std::set<std::unique_ptr<T>> More...
 
class  UnoInterfaceToUniqueIdentifierMapper
 
class  UNOMemoryStream
 
struct  UnoTypeLess
 
class  UStringMixEqual
 
struct  UStringMixLess
 
class  WeakBag
 A bag of UNO weak references. More...
 

Typedefs

typedef ::std::map< OUString, css::uno::Reference< css::uno::XInterface > > IdMap_t
 
typedef std::unordered_map< OUString, uno::Reference< embed::XEmbeddedObject > > EmbeddedObjectContainerNameMap
 
typedef std::map< Any, Any, LessPredicateAdapterKeyedValues
 
typedef ::cppu::WeakAggComponentImplHelper3< XInitialization, XEnumerableMap, XServiceInfo > Map_IFace
 
typedef ::cppu::WeakImplHelper< XEnumeration > MapEnumeration_Base
 
typedef std::deque< ProcessableEventEventQueue
 
typedef std::vector< ComponentDescriptionComponentDescriptions
 
typedef std::unordered_map< OUString, Any > NamedValueRepository
 
typedef cppu::WeakImplHelper< css::util::XOfficeInstallationDirectories, css::lang::XServiceInfo > UnoImplBase
 
typedef std::map< sal_Int32, css::uno::Any > MapInt2Any
 
typedef std::set< css::uno::Type, UnoTypeLessTypeBag
 
typedef ::cppu::WeakAggImplHelper5< css::beans::XPropertyBag, css::util::XModifiable, css::lang::XServiceInfo, css::lang::XInitialization, css::container::XSet > OPropertyBag_Base
 
typedef ::comphelper::OPropertyStateHelper OPropertyBag_PBase
 
typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleExtendedComponent > OAccessibleExtendedComponentHelper_Base
 
typedef ::cppu::WeakAggComponentImplHelper2< css::accessibility::XAccessibleContext2, css::accessibility::XAccessibleEventBroadcaster > OAccessibleContextHelper_Base
 
typedef ::cppu::WeakImplHelper< css::accessibility::XAccessibleKeyBinding > OAccessibleKeyBindingHelper_Base
 
typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleSelection > OAccessibleSelectionHelper_Base
 
typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleText > OAccessibleTextHelper_Base
 
typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleEventListener > OAccessibleContextWrapperHelper_Base
 
typedef ::cppu::WeakComponentImplHelper< css::accessibility::XAccessibleEventBroadcaster, css::accessibility::XAccessibleContext > OAccessibleContextWrapper_CBase
 
typedef ::std::map< css::uno::Reference< css::accessibility::XAccessible >, css::uno::Reference< css::accessibility::XAccessible > > AccessibleMap
 
typedef ::cppu::WeakImplHelper< css::lang::XEventListener > OWrappedAccessibleChildrenManager_Base
 
typedef ::cppu::ImplHelper1< css::lang::XUnoTunnel > OAccImpl_Base
 
typedef ::rtl::Reference< AnyEventAnyEventRef
 
typedef cppu::WeakImplHelper< css::beans::XPropertySet, css::beans::XMultiPropertySet, css::lang::XServiceInfo > ChainablePropertySetBase
 
typedef css::uno::Reference< css::lang::XSingleComponentFactory >(* FactoryInstantiation) (::cppu::ComponentFactoryFunc _pFactoryFunc, OUString const &_rComponentName, css::uno::Sequence< OUString > const &_rServiceNames, rtl_ModuleCount *)
 factory declaration More...
 
typedef ORelease< ::osl::Mutex > MutexRelease
 
typedef std::map< sal_Int32,::cppu::IPropertyArrayHelper * > OIdPropertyArrayMap
 
typedef OInteraction< css::task::XInteractionApprove > OInteractionApprove
 
typedef OInteraction< css::task::XInteractionDisapprove > OInteractionDisapprove
 
typedef OInteraction< css::task::XInteractionAbort > OInteractionAbort
 
typedef OInteraction< css::task::XInteractionRetry > OInteractionRetry
 
typedef ::cppu::WeakImplHelper< css::task::XInteractionRequest > OInteractionRequest_Base
 
typedef ::boost::optional< OUString > OptionalString
 
typedef std::map< OUString, PropertyMapEntry const * > PropertyMap
 
typedef ::cppu::ImplHelper1< css::beans::XPropertyState > OPropertyStateContainer_TBase
 
using SequenceAsHashMapBase = std::unordered_map< OUString, css::uno::Any >
 Implements a stl hash map on top of some specialized sequence from type PropertyValue or NamedValue. More...
 
typedef OWeakListenerAdapter< css::lang::XComponent, css::lang::XEventListener > OWeakEventListenerAdapter_Base
 

Enumerations

enum  EnumerationType {
  eKeys,
  eValues,
  eBoth
}
 
enum  EConfigurationModes {
  EConfigurationModes::Standard = 0,
  EConfigurationModes::ReadOnly = 1,
  EConfigurationModes::AllLocales = 2
}
 specify all possible modes, which can be used to open a configuration access. More...
 
enum  DocPasswordVerifierResult {
  DocPasswordVerifierResult::OK,
  DocPasswordVerifierResult::WrongPassword,
  DocPasswordVerifierResult::Abort
}
 
enum  DocPasswordRequestType {
  DocPasswordRequestType::Standard,
  DocPasswordRequestType::MS
}
 Selects which UNO document password request type to use. More...
 
enum  HashType {
  HashType::MD5,
  HashType::SHA1,
  HashType::SHA256,
  HashType::SHA512
}
 

Functions

static void lcl_registerMapModificationListener (MapData &_mapData, MapEnumerator &_listener)
 
static void lcl_revokeMapModificationListener (MapData &_mapData, MapEnumerator &_listener)
 
static void lcl_notifyMapDataListeners_nothrow (const MapData &_mapData)
 
Reference< XEventAttacherManager > createEventAttacherManager (const Reference< XComponentContext > &rxContext)
 
OUString GetkeyBindingStrByXkeyBinding (const Sequence< KeyStroke > &keySet)
 
std::unique_ptr< IKeyPredicateLessgetStandardLessPredicate (Type const &i_type, Reference< XCollator > const &i_collator)
 
bool anyLess (css::uno::Any const &lhs, css::uno::Any const &rhs)
 Compare two Anys. More...
 
OUString anyToString (uno::Any const &value)
 
void JoinAsyncEventNotifiers ()
 
static void ThreeByteToFourByte (const sal_Int8 *pBuffer, const sal_Int32 nStart, const sal_Int32 nFullLen, sal_Char *aCharBuffer)
 
bool dispatchCommand (const OUString &rCommand, const uno::Reference< css::frame::XFrame > &rFrame, const css::uno::Sequence< css::beans::PropertyValue > &rArguments, const uno::Reference< css::frame::XDispatchResultListener > &rListener)
 
bool dispatchCommand (const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArguments, const uno::Reference< css::frame::XDispatchResultListener > &rListener)
 
static uno::Sequence< sal_Int8GeneratePBKDF2Hash (const OUString &aPassword, const uno::Sequence< sal_Int8 > &aSalt, sal_Int32 nCount, sal_Int32 nHashLength)
 
Sequence< OUString > getEventMethodsForType (const Type &type)
 
sal_Int16 getNumberFormatType (const css::uno::Reference< css::util::XNumberFormats > &xFormats, sal_Int32 nKey)
 returns the css::util::NumberFormat of the given key under the given formats More...
 
sal_Int16 getNumberFormatType (const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, sal_Int32 nKey)
 returns the css::util::NumberFormat of the given key under the given formatter More...
 
css::uno::Any getNumberFormatDecimals (const css::uno::Reference< css::util::XNumberFormats > &xFormats, sal_Int32 nKey)
 returns the decimals of the given numeric number formatunder the given formats More...
 
Any getNumberFormatProperty (const Reference< XNumberFormatter > &_rxFormatter, sal_Int32 _nKey, const OUString &_rPropertyName)
 
static void splitPath (std::vector< OUString > &rElems, const OUString &rPath)
 
static uno::Reference< embed::XStorage > LookupStorageAtPath (const uno::Reference< embed::XStorage > &xParentStorage, std::vector< OUString > &rElems, sal_uInt32 nOpenMode, LifecycleProxy const &rNastiness)
 
static bool isDebuggerAttached ()
 
sal_Int64 getINT64 (const Any &_rAny)
 
sal_Int32 getINT32 (const Any &_rAny)
 
sal_Int16 getINT16 (const Any &_rAny)
 
double getDouble (const Any &_rAny)
 
float getFloat (const Any &_rAny)
 
OUString getString (const Any &_rAny)
 
bool getBOOL (const Any &_rAny)
 
sal_Int32 getEnumAsINT32 (const Any &_rAny)
 
FontDescriptor getDefaultFont ()
 get a css::awt::FontDescriptor that is fully initialized with the XXX_DONTKNOW enum values (which isn't the case if you instantiate it via the default constructor) More...
 
bool isAssignableFrom (const Type &_rAssignable, const Type &_rFrom)
 
Type getSequenceElementType (const Type &_rSequenceType)
 
static OUString const g_aOfficeBrandDirMacro ("$(brandbaseurl)")
 
static OUString const g_aUserDirMacro ("$(userdataurl)")
 
void setProcessServiceFactory (const Reference< XMultiServiceFactory > &xSMgr)
 
Reference< XMultiServiceFactory > getProcessServiceFactory ()
 This function gets the process service factory. More...
 
Reference< XComponentContext > getComponentContext (Reference< XMultiServiceFactory > const &factory)
 
Reference< XComponentContext > getProcessComponentContext ()
 This function gets the process service factory's default component context. More...
 
void copyProperties (const Reference< XPropertySet > &_rxSource, const Reference< XPropertySet > &_rxDest)
 
bool hasProperty (const OUString &_rName, const Reference< XPropertySet > &_rxSet)
 
void RemoveProperty (Sequence< Property > &_rProps, const OUString &_rPropName)
 
void ModifyPropertyAttributes (Sequence< Property > &seqProps, const OUString &sPropName, sal_Int16 nAddAttrib, sal_Int16 nRemoveAttrib)
 
bool tryPropertyValue (Any &_rConvertedValue, Any &_rOldValue, const Any &_rValueToSet, const Any &_rCurrentValue, const Type &_rExpectedType)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, const css::awt::FontDescriptor &_rFont)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, css::awt::FontDescriptor &_rFont)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, bool &_rVal)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, bool _bVal)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, OUString &rStr)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, const OUString &rStr)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, sal_Int16 &_rValue)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, sal_Int16 _nValue)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, sal_uInt16 &_rValue)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, sal_uInt16 _nValue)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, sal_uInt32 &_rValue)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, sal_uInt32 _nValue)
 
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, sal_Int32 &_rValue)
 
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, sal_Int32 _nValue)
 
static void copyInputToOutput_Impl (const uno::Reference< io::XInputStream > &xIn, const uno::Reference< io::XOutputStream > &xOut)
 
static OUString const g_aRelListElement ("Relationships")
 
static OUString const g_aRelElement ("Relationship")
 
static OUString const g_aIDAttr ("Id")
 
static OUString const g_aTypeAttr ("Type")
 
static OUString const g_aTargetModeAttr ("TargetMode")
 
static OUString const g_aTargetAttr ("Target")
 
static OUString const g_aTypesElement ("Types")
 
static OUString const g_aDefaultElement ("Default")
 
static OUString const g_aOverrideElement ("Override")
 
static OUString const g_aExtensionAttr ("Extension")
 
static OUString const g_aPartNameAttr ("PartName")
 
static OUString const g_aContentTypeAttr ("ContentType")
 
COMPHELPER_DLLPUBLIC OUString GetkeyBindingStrByXkeyBinding (const css::uno::Sequence< css::awt::KeyStroke > &keySet)
 Helper function used for converting keybinding to string. More...
 
::std::unique_ptr< IKeyPredicateLess > COMPHELPER_DLLPUBLIC getStandardLessPredicate (css::uno::Type const &i_type, css::uno::Reference< css::i18n::XCollator > const &i_collator)
 creates a default IKeyPredicateLess instance for the given UNO type More...
 
COMPHELPER_DLLPUBLIC OUString anyToString (css::uno::Any const &value)
 Creates a STRING representation out of an ANY value. More...
 
void operator<< (css::uno::Reference< css::io::XObjectOutputStream > const &, sal_Bool)=delete
 
template<class ELEMENT >
const css::uno::Reference< css::io::XObjectInputStream > & operator>> (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream, css::uno::Sequence< ELEMENT > &_rSeq)
 
template<class ELEMENT >
const css::uno::Reference< css::io::XObjectOutputStream > & operator<< (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream, const css::uno::Sequence< ELEMENT > &_rSeq)
 
COMPHELPER_DLLPUBLIC bool dispatchCommand (const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArguments, const css::uno::Reference< css::frame::XDispatchResultListener > &rListener=css::uno::Reference< css::frame::XDispatchResultListener >())
 Dispatch the given UNO command in the active frame. More...
 
COMPHELPER_DLLPUBLIC bool dispatchCommand (const OUString &rCommand, const css::uno::Reference< css::frame::XFrame > &rFrame, const css::uno::Sequence< css::beans::PropertyValue > &rArguments, const css::uno::Reference< css::frame::XDispatchResultListener > &rListener=css::uno::Reference< css::frame::XDispatchResultListener >())
 
template<typename Type , typename Function = std::function<Type*()>, typename Guard = osl::MutexGuard, typename GuardCtor = osl::GetGlobalMutex>
static TypedoubleCheckedInit (std::atomic< Type * > &pointer, Function function, GuardCtor guardCtor=osl::GetGlobalMutex())
 Thread-safe singleton creation. More...
 
COMPHELPER_DLLPUBLIC css::uno::Reference< css::script::XEventAttacherManager > createEventAttacherManager (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
COMPHELPER_DLLPUBLIC css::uno::Sequence< OUString > getEventMethodsForType (const css::uno::Type &type)
 
COMPHELPER_DLLPUBLIC bool isFileUrl (OUString const &url)
 
COMPHELPER_DLLPUBLIC css::uno::Reference< css::beans::XPropertySetGenericPropertySet_CreateInstance (PropertySetInfo *pInfo)
 
COMPHELPER_DLLPUBLIC OUString getExpandedUri (css::uno::Reference< css::uno::XComponentContext > const &context, OUString const &uri)
 A helper function to expand vnd.sun.star.expand URLs. More...
 
template<typename T >
std::shared_ptr< T > make_shared_from_UNO (T *p)
 Makes a std::shared_ptr from a ref-counted UNO object pointer. More...
 
COMPHELPER_DLLPUBLIC css::uno::Reference< css::container::XNameContainer > NameContainer_createInstance (const css::uno::Type &aType)
 
template<typename T >
T * newArray_null (size_t const n) throw ()
 
COMPHELPER_DLLPUBLIC css::uno::Any getNumberFormatProperty (const css::uno::Reference< css::util::XNumberFormatter > &_rxFormatter, sal_Int32 _nKey, const OUString &_rPropertyName)
 retrieves the value of a given property for a given format key, relating to a given formatter More...
 
static comphelper::ThreadPoolrTPool (comphelper::ThreadPool::getSharedOptimalPool())
 
template<class RandItr , class Compare = std::less<>>
void parallelSort (const RandItr aBegin, const RandItr aEnd, Compare aComp=Compare())
 
COMPHELPER_DLLPUBLIC void setProcessServiceFactory (const css::uno::Reference< css::lang::XMultiServiceFactory > &xSMgr)
 This function set the process service factory. More...
 
COMPHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > getComponentContext (css::uno::Reference< css::lang::XMultiServiceFactory > const &factory)
 Obtains a component context from a service factory. More...
 
COMPHELPER_DLLPUBLIC void RemoveProperty (css::uno::Sequence< css::beans::Property > &seqProps, const OUString &_rPropName)
 remove the property with the given name from the given sequence More...
 
COMPHELPER_DLLPUBLIC void ModifyPropertyAttributes (css::uno::Sequence< css::beans::Property > &_rProps, const OUString &_sPropName, sal_Int16 _nAddAttrib, sal_Int16 _nRemoveAttrib)
 within the given property sequence, modify attributes of a special property More...
 
COMPHELPER_DLLPUBLIC bool hasProperty (const OUString &_rName, const css::uno::Reference< css::beans::XPropertySet > &_rxSet)
 check if the given set has the given property. More...
 
COMPHELPER_DLLPUBLIC void copyProperties (const css::uno::Reference< css::beans::XPropertySet > &_rxSource, const css::uno::Reference< css::beans::XPropertySet > &_rxDest)
 copy properties between property sets, in compliance with the property attributes of the target object More...
 
template<typename T >
bool tryPropertyValue (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, const css::uno::Any &_rValueToSet, const T &_rCurrentValue)
 helper for implementing cppu::OPropertySetHelper::convertFastPropertyValue More...
 
template<class ENUMTYPE >
std::enable_if< std::is_enum< ENUMTYPE >::value, bool >::type tryPropertyValueEnum (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, const css::uno::Any &_rValueToSet, const ENUMTYPE &_rCurrentValue)
 helper for implementing cppu::OPropertySetHelper::convertFastPropertyValue for enum values More...
 
COMPHELPER_DLLPUBLIC bool tryPropertyValue (css::uno::Any &_rConvertedValue, css::uno::Any &_rOldValue, const css::uno::Any &_rValueToSet, const css::uno::Any &_rCurrentValue, const css::uno::Type &_rExpectedType)
 helper for implementing cppu::OPropertySetHelper::convertFastPropertyValue More...
 
css::uno::Sequence< css::beans::PropertyValue > InitPropertySequence (::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
 Init list for property sequences. More...
 
css::uno::Sequence< css::uno::Any > InitAnyPropertySequence (::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit)
 Init list for property sequences that wrap the PropertyValues in Anys. More...
 
template<typename T >
css::beans::PropertyValue makePropertyValue (const OUString &rName, T &&rValue)
 Creates a beans::PropertyValue easily, i.e. More...
 
template<class T1 , class T2 >
sal_Int32 findValue (const css::uno::Sequence< T1 > &_rList, const T2 &_rValue)
 Search the given value within the given sequence, return the position of the first occurrence. More...
 
template<class T , class... Ss>
css::uno::Sequence< T > concatSequences (const css::uno::Sequence< T > &rS1, const Ss &...rSn)
 concat several sequences More...
 
template<typename T >
css::uno::Sequence< T > combineSequences (css::uno::Sequence< T > const &left, css::uno::Sequence< T > const &right)
 concat additional elements from right sequence to left sequence More...
 
template<class T >
void removeElementAt (css::uno::Sequence< T > &_rSeq, sal_Int32 _nPos)
 remove a specified element from a sequences More...
 
template<typename DstType , typename SrcType >
css::uno::Sequence< DstType > arrayToSequence (const SrcType *i_pArray, sal_Int32 nNum)
 Copy from a plain C/C++ array into a Sequence. More...
 
template<typename DstType , typename SrcType >
DstType * sequenceToArray (DstType *io_pArray, const css::uno::Sequence< SrcType > &i_Sequence)
 Copy from a Sequence into a plain C/C++ array. More...
 
template<typename DstElementType , typename SrcType >
css::uno::Sequence< DstElementType > containerToSequence (const SrcType &i_Container)
 Copy from a container into a Sequence. More...
 
template<typename SrcType >
css::uno::Sequence< typename SrcType::value_type > containerToSequence (const SrcType &i_Container)
 
template<typename ElementType , std::size_t SrcSize>
css::uno::Sequence< ElementTypecontainerToSequence (ElementType const (&i_Array)[SrcSize])
 
template<typename T >
css::uno::Sequence< T > containerToSequence (::std::vector< T > const &v)
 
template<typename DstType , typename SrcType >
DstType sequenceToContainer (const css::uno::Sequence< SrcType > &i_Sequence)
 Copy from a Sequence into a container. More...
 
template<typename DstType >
DstType sequenceToContainer (const css::uno::Sequence< typename DstType::value_type > &i_Sequence)
 
template<typename DstType , typename SrcType >
DstType & sequenceToContainer (DstType &o_Output, const css::uno::Sequence< SrcType > &i_Sequence)
 Copy from a Sequence into an existing container. More...
 
template<typename M >
css::uno::Sequence< typename M::key_type > mapKeysToSequence (M const &map)
 Copy (keys or values) from an associate container into a Sequence. More...
 
template<typename M >
css::uno::Sequence< typename M::mapped_type > mapValuesToSequence (M const &map)
 
template<class T >
T * getUnoTunnelImplementation (const css::uno::Reference< css::uno::XInterface > &xIface)
 
template<template< typename, typename... > class C, typename T , typename... Etc>
bool ContainerUniquePtrEquals (C< std::unique_ptr< T >, Etc... > const &lhs, C< std::unique_ptr< T >, Etc... > const &rhs)
 by-value implementation of std::foo<std::unique_ptr<T>>operator== More...
 
template<class Tp , class Arg >
mem_fun1_t< Tp, Arg > mem_fun (void(Tp::*f)(Arg))
 
template<typename ForwardIter , typename OutputIter , typename T >
OutputIter intersperse (ForwardIter start, ForwardIter end, OutputIter out, T const &separator)
 algorithm similar to std::copy, but inserts a separator between elements. More...
 
COMPHELPER_DLLPUBLIC bool isAssignableFrom (const css::uno::Type &_rAssignable, const css::uno::Type &_rFrom)
 returns sal_True if objects of the types given are "compatible" More...
 
template<class TYPE >
void disposeComponent (css::uno::Reference< TYPE > &_rxComp)
 ask the given object for an XComponent interface and dispose on it More...
 
COMPHELPER_DLLPUBLIC css::uno::Type getSequenceElementType (const css::uno::Type &_rSequenceType)
 examine a sequence for the com.sun.star.uno::Type of its elements. More...
 
COMPHELPER_DLLPUBLIC sal_Int64 getINT64 (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC sal_Int32 getINT32 (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC sal_Int16 getINT16 (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC double getDouble (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC float getFloat (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC OUString getString (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC bool getBOOL (const css::uno::Any &_rAny)
 
COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32 (const css::uno::Any &_rAny)
 
template<class iface >
bool query_aggregation (const css::uno::Reference< css::uno::XAggregation > &_rxAggregate, css::uno::Reference< iface > &_rxOut)
 ask for an iface of an aggregated object usage:
Reference<XFoo> xFoo;
if (query_aggregation(xAggregatedObject, xFoo))
... More...
 
template<typename... Args>
void unwrapArgs (const css::uno::Sequence< css::uno::Any > &seq, Args &...args)
 

Variables

static std::vector< std::weak_ptr< AsyncEventNotifierAutoJoin > > g_Notifiers
 
const sal_Char aBase64EncodeTable []
 
const sal_uInt8 aBase64DecodeTable []
 
static const char ERRMSG_INVALID_COMPONENT_PARAM [] = "NULL as component reference not allowed."
 
static const sal_Int32 HANDLE_INTERACTIVEIOEXCEPTION = 0
 Will handle com::sun::star::ucb::InteractiveIOException and derived classes. More...
 
static const sal_Int32 HANDLE_UNSUPPORTEDDATASINKEXCEPTION = 1
 Will handle com::sun::star::ucb::UnsupportedDataSinkException. More...
 
static const sal_Int32 HANDLE_INTERACTIVENETWORKEXCEPTION = 2
 Will handle com::sun::star::ucb::InteractiveNetworkException. More...
 
static const sal_Int32 HANDLE_CERTIFICATEREQUEST = 3
 Will handle com::sun::star::ucb::CertificateValidationRequest. More...
 
static const sal_Int32 HANDLE_AUTHENTICATIONREQUEST = 4
 Will handle com::sun::star::ucb::AuthenticationRequest. More...
 
static thread_local bool gbIsWorkerThread
 prevent waiting for a task from inside a task More...
 
const sal_Int32 nConstBufferSize = 32000
 
static const size_t nThreadCountGlobal = std::thread::hardware_concurrency()
 
static const bool bHyperThreadingActive = cpuid::hasHyperThreading()
 

Typedef Documentation

typedef ::std::map< css::uno::Reference< css::accessibility::XAccessible > , css::uno::Reference< css::accessibility::XAccessible > > comphelper::AccessibleMap

Definition at line 319 of file accessiblewrapper.hxx.

Definition at line 54 of file asyncnotification.hxx.

typedef cppu::WeakImplHelper< css::beans::XPropertySet, css::beans::XMultiPropertySet, css::lang::XServiceInfo > comphelper::ChainablePropertySetBase

Definition at line 66 of file ChainablePropertySet.hxx.

Definition at line 33 of file componentmodule.cxx.

typedef std::unordered_map<OUString, uno::Reference<embed::XEmbeddedObject> > comphelper::EmbeddedObjectContainerNameMap

Definition at line 56 of file embeddedobjectcontainer.cxx.

Definition at line 58 of file asyncnotification.cxx.

typedef css::uno::Reference< css::lang::XSingleComponentFactory >(* comphelper::FactoryInstantiation) (::cppu::ComponentFactoryFunc _pFactoryFunc, OUString const &_rComponentName, css::uno::Sequence< OUString > const &_rServiceNames, rtl_ModuleCount *)

factory declaration

Definition at line 40 of file componentmodule.hxx.

Definition at line 79 of file enumerablemap.cxx.

typedef ::cppu::WeakAggComponentImplHelper3< XInitialization , XEnumerableMap , XServiceInfo > comphelper::Map_IFace

Definition at line 142 of file enumerablemap.cxx.

typedef ::cppu::WeakImplHelper< XEnumeration > comphelper::MapEnumeration_Base

Definition at line 259 of file enumerablemap.cxx.

typedef std::map< sal_Int32, Any > comphelper::MapInt2Any

Definition at line 56 of file opropertybag.hxx.

typedef ORelease< ::osl::Mutex > comphelper::MutexRelease

Definition at line 47 of file guarding.hxx.

typedef std::unordered_map< OUString, Any > comphelper::NamedValueRepository

Definition at line 48 of file namedvaluecollection.cxx.

typedef ::cppu::WeakAggComponentImplHelper2< css::accessibility::XAccessibleContext2, css::accessibility::XAccessibleEventBroadcaster > comphelper::OAccessibleContextHelper_Base

Definition at line 39 of file accessiblecontexthelper.hxx.

typedef ::cppu::WeakComponentImplHelper< css::accessibility::XAccessibleEventBroadcaster , css::accessibility::XAccessibleContext > comphelper::OAccessibleContextWrapper_CBase

Definition at line 242 of file accessiblewrapper.hxx.

typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleEventListener > comphelper::OAccessibleContextWrapperHelper_Base

Definition at line 126 of file accessiblewrapper.hxx.

typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleExtendedComponent > comphelper::OAccessibleExtendedComponentHelper_Base

Definition at line 110 of file accessiblecomponenthelper.hxx.

typedef ::cppu::WeakImplHelper< css::accessibility::XAccessibleKeyBinding > comphelper::OAccessibleKeyBindingHelper_Base

Definition at line 40 of file accessiblekeybindinghelper.hxx.

typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleSelection > comphelper::OAccessibleSelectionHelper_Base

Definition at line 96 of file accessibleselectionhelper.hxx.

typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleText > comphelper::OAccessibleTextHelper_Base

Definition at line 115 of file accessibletexthelper.hxx.

typedef ::cppu::ImplHelper1< css::lang::XUnoTunnel > comphelper::OAccImpl_Base

Definition at line 32 of file accimplaccess.hxx.

Definition at line 39 of file IdPropArrayHelper.hxx.

typedef OInteraction< css::task::XInteractionAbort > comphelper::OInteractionAbort

Definition at line 79 of file interaction.hxx.

typedef OInteraction< css::task::XInteractionApprove > comphelper::OInteractionApprove

Definition at line 69 of file interaction.hxx.

typedef OInteraction< css::task::XInteractionDisapprove > comphelper::OInteractionDisapprove

Definition at line 74 of file interaction.hxx.

typedef ::cppu::WeakImplHelper< css::task::XInteractionRequest > comphelper::OInteractionRequest_Base

Definition at line 90 of file interaction.hxx.

typedef OInteraction< css::task::XInteractionRetry > comphelper::OInteractionRetry

Definition at line 84 of file interaction.hxx.

typedef ::cppu::WeakAggImplHelper5< css::beans::XPropertyBag , css::util::XModifiable , css::lang::XServiceInfo , css::lang::XInitialization , css::container::XSet > comphelper::OPropertyBag_Base

Definition at line 64 of file opropertybag.hxx.

Definition at line 65 of file opropertybag.hxx.

typedef ::cppu::ImplHelper1< css::beans::XPropertyState > comphelper::OPropertyStateContainer_TBase

Definition at line 37 of file propertystatecontainer.hxx.

Definition at line 67 of file logging.hxx.

typedef OWeakListenerAdapter< css::lang::XComponent , css::lang::XEventListener > comphelper::OWeakEventListenerAdapter_Base

Definition at line 132 of file weakeventlistener.hxx.

typedef ::cppu::WeakImplHelper< css::lang::XEventListener > comphelper::OWrappedAccessibleChildrenManager_Base

Definition at line 323 of file accessiblewrapper.hxx.

Definition at line 78 of file propertysetinfo.hxx.

using comphelper::SequenceAsHashMapBase = typedef std::unordered_map<OUString, css::uno::Any>

Implements a stl hash map on top of some specialized sequence from type PropertyValue or NamedValue.

That provides the possibility to modify such name sequences very easy ...

Definition at line 42 of file sequenceashashmap.hxx.

typedef std::set< css::uno::Type, UnoTypeLess > comphelper::TypeBag

Definition at line 57 of file opropertybag.hxx.

typedef cppu::WeakImplHelper< css::util::XOfficeInstallationDirectories, css::lang::XServiceInfo > comphelper::UnoImplBase

Definition at line 39 of file officeinstallationdirectories.hxx.

Enumeration Type Documentation

Selects which UNO document password request type to use.

Enumerator
Standard 
MS 

Uses the standard com.sun.star.task.DocumentPasswordRequest request.

Uses the com.sun.star.task.DocumentMSPasswordRequest request.

Definition at line 37 of file docpasswordrequest.hxx.

Enumerator
OK 
WrongPassword 
Abort 

Definition at line 34 of file docpasswordhelper.hxx.

specify all possible modes, which can be used to open a configuration access.

See also
openConfig()
readDirectKey()
writeDirectKey()
Enumerator
Standard 

opens configuration in read/write mode (without LAZY writing!)

ReadOnly 

configuration will be opened readonly

AllLocales 

all localized nodes will be interpreted as XInterface instead of interpreting it as atomic value nodes

Definition at line 40 of file configurationhelper.hxx.

Enumerator
eKeys 
eValues 
eBoth 

Definition at line 198 of file enumerablemap.cxx.

enum comphelper::HashType
strong
Enumerator
MD5 
SHA1 
SHA256 
SHA512 

Definition at line 24 of file hash.hxx.

Function Documentation

bool COMPHELPER_DLLPUBLIC comphelper::anyLess ( css::uno::Any const &  lhs,
css::uno::Any const &  rhs 
)

Compare two Anys.

Definition at line 229 of file anycompare.cxx.

References getStandardLessPredicate().

COMPHELPER_DLLPUBLIC OUString comphelper::anyToString ( css::uno::Any const &  value)

Creates a STRING representation out of an ANY value.

Parameters
valueANY value
Returns
STRING representation of given ANY value
OUString comphelper::anyToString ( uno::Any const &  value)

Definition at line 311 of file anytostring.cxx.

Referenced by comphelper::EnumerableMap::get().

template<typename DstType , typename SrcType >
css::uno::Sequence< DstType > comphelper::arrayToSequence ( const SrcType *  i_pArray,
sal_Int32  nNum 
)
inline

Copy from a plain C/C++ array into a Sequence.

Template parameter:
SrcType Array element type. Must be assignable to DstType
Template parameter:
DstType Sequence element type. Must be assignable from SrcType
Parameters
i_pArrayValid pointer to at least num elements of type SrcType
nNumNumber of array elements to copy
Returns
the resulting Sequence
Attention:
when copying from e.g. a double array to a Sequence<int>, no proper rounding will be performed, but the values will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation.

Definition at line 121 of file sequence.hxx.

References result.

template<typename T >
css::uno::Sequence<T> comphelper::combineSequences ( css::uno::Sequence< T > const &  left,
css::uno::Sequence< T > const &  right 
)
inline

concat additional elements from right sequence to left sequence

be aware that this takes time O(|left| * |right|)

Definition at line 61 of file sequence.hxx.

References i.

template<class T , class... Ss>
css::uno::Sequence<T> comphelper::concatSequences ( const css::uno::Sequence< T > &  rS1,
const Ss &...  rSn 
)
inline

concat several sequences

Definition at line 49 of file sequence.hxx.

template<typename DstElementType , typename SrcType >
css::uno::Sequence< DstElementType > comphelper::containerToSequence ( const SrcType &  i_Container)
inline

Copy from a container into a Sequence.

Template parameter:
SrcType Container type. This type must fulfill the STL container concept, in particular, the size(), begin() and end() methods must be available and have the usual semantics.
Template parameter:
DstType Sequence element type. Must be assignable from SrcType's elements
Parameters
i_ContainerReference to the input contain with elements of type SrcType
Returns
the generated Sequence
Attention:
this function always performs a copy. Furthermore, when copying from e.g. a vector<double> to a Sequence<int>, no proper rounding will be performed, but the values will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation.

Definition at line 182 of file sequence.hxx.

References result.

Referenced by comphelper::string::convertCommaSeparated(), comphelper::OStorageHelper::CreateGpgPackageEncryptionData(), comphelper::OInteractionRequest::getContinuations(), comphelper::OPropertyArrayAggregationHelper::getProperties(), comphelper::ProfileRecording::getRecordingAndClear(), comphelper::ImplEventAttacherManager::getScriptEvents(), comphelper::service_decl::ServiceDecl::getSupportedServiceNames(), and comphelper::ConfigurationHelper::openConfig().

template<typename SrcType >
css::uno::Sequence< typename SrcType::value_type > comphelper::containerToSequence ( const SrcType &  i_Container)
inline

Definition at line 191 of file sequence.hxx.

References result.

template<typename ElementType , std::size_t SrcSize>
css::uno::Sequence< ElementType > comphelper::containerToSequence ( ElementType const (&)  i_Array[SrcSize])
inline

Definition at line 200 of file sequence.hxx.

template<typename T >
css::uno::Sequence<T> comphelper::containerToSequence ( ::std::vector< T > const &  v)
inline

Definition at line 206 of file sequence.hxx.

template<template< typename, typename... > class C, typename T , typename... Etc>
bool comphelper::ContainerUniquePtrEquals ( C< std::unique_ptr< T >, Etc... > const &  lhs,
C< std::unique_ptr< T >, Etc... > const &  rhs 
)

by-value implementation of std::foo<std::unique_ptr<T>>operator==

Definition at line 79 of file stl_types.hxx.

static void comphelper::copyInputToOutput_Impl ( const uno::Reference< io::XInputStream > &  xIn,
const uno::Reference< io::XOutputStream > &  xOut 
)
static
void comphelper::copyProperties ( const Reference< XPropertySet > &  _rxSource,
const Reference< XPropertySet > &  _rxDest 
)

Definition at line 59 of file property.cxx.

References Any, Exception, cppu::getCaughtException(), Property, and SAL_WARN.

COMPHELPER_DLLPUBLIC void comphelper::copyProperties ( const css::uno::Reference< css::beans::XPropertySet > &  _rxSource,
const css::uno::Reference< css::beans::XPropertySet > &  _rxDest 
)

copy properties between property sets, in compliance with the property attributes of the target object

COMPHELPER_DLLPUBLIC css::uno::Reference< css::script::XEventAttacherManager > comphelper::createEventAttacherManager ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
Exceptions
css::uno::Exception
Reference< XEventAttacherManager > comphelper::createEventAttacherManager ( const Reference< XComponentContext > &  rxContext)

Definition at line 331 of file eventattachermgr.cxx.

COMPHELPER_DLLPUBLIC bool comphelper::dispatchCommand ( const OUString &  rCommand,
const css::uno::Sequence< css::beans::PropertyValue > &  rArguments,
const css::uno::Reference< css::frame::XDispatchResultListener > &  rListener = css::uno::Reference< css::frame::XDispatchResultListener >() 
)

Dispatch the given UNO command in the active frame.

Parameters
rCommandthe command to dispatch, like ".uno:Bold".
Returns
true on success.
COMPHELPER_DLLPUBLIC bool comphelper::dispatchCommand ( const OUString &  rCommand,
const css::uno::Reference< css::frame::XFrame > &  rFrame,
const css::uno::Sequence< css::beans::PropertyValue > &  rArguments,
const css::uno::Reference< css::frame::XDispatchResultListener > &  rListener = css::uno::Reference< css::frame::XDispatchResultListener >() 
)
bool comphelper::dispatchCommand ( const OUString &  rCommand,
const uno::Reference< css::frame::XFrame > &  rFrame,
const css::uno::Sequence< css::beans::PropertyValue > &  rArguments,
const uno::Reference< css::frame::XDispatchResultListener > &  rListener 
)

Definition at line 34 of file dispatchcommand.cxx.

References getProcessComponentContext().

bool comphelper::dispatchCommand ( const OUString &  rCommand,
const css::uno::Sequence< css::beans::PropertyValue > &  rArguments,
const uno::Reference< css::frame::XDispatchResultListener > &  rListener 
)

Definition at line 66 of file dispatchcommand.cxx.

References getProcessComponentContext(), and xFrame.

template<class TYPE >
void comphelper::disposeComponent ( css::uno::Reference< TYPE > &  _rxComp)

ask the given object for an XComponent interface and dispose on it

Definition at line 44 of file types.hxx.

template<typename Type , typename Function = std::function<Type*()>, typename Guard = osl::MutexGuard, typename GuardCtor = osl::GetGlobalMutex>
static Type* comphelper::doubleCheckedInit ( std::atomic< Type * > &  pointer,
Function  function,
GuardCtor  guardCtor = osl::GetGlobalMutex() 
)
inlinestatic

Thread-safe singleton creation.

It is normally sufficient to create singletons using static variables in a function. This function is only for use cases that have a more complex lifetime of the object, such as when the object may require specific cleanup or may be created more times (e.g. when there is a "singleton" per each instance of another object).

Definition at line 43 of file doublecheckedinit.hxx.

template<class T1 , class T2 >
sal_Int32 comphelper::findValue ( const css::uno::Sequence< T1 > &  _rList,
const T2 &  _rValue 
)
inline

Search the given value within the given sequence, return the position of the first occurrence.

Returns -1 if nothing found.

Definition at line 35 of file sequence.hxx.

References i.

static OUString const comphelper::g_aContentTypeAttr ( "ContentType"  )
static
static OUString const comphelper::g_aDefaultElement ( "Default"  )
static
static OUString const comphelper::g_aExtensionAttr ( "Extension"  )
static
static OUString const comphelper::g_aIDAttr ( "Id"  )
static
static OUString const comphelper::g_aOfficeBrandDirMacro ( "$(brandbaseurl)"  )
static
static OUString const comphelper::g_aOverrideElement ( "Override"  )
static
static OUString const comphelper::g_aPartNameAttr ( "PartName"  )
static
static OUString const comphelper::g_aRelElement ( "Relationship"  )
static
static OUString const comphelper::g_aRelListElement ( "Relationships"  )
static
static OUString const comphelper::g_aTargetAttr ( "Target"  )
static
static OUString const comphelper::g_aTargetModeAttr ( "TargetMode"  )
static
static OUString const comphelper::g_aTypeAttr ( "Type"  )
static
static OUString const comphelper::g_aTypesElement ( "Types"  )
static
static OUString const comphelper::g_aUserDirMacro ( "$(userdataurl)"  )
static
static uno::Sequence< sal_Int8 > comphelper::GeneratePBKDF2Hash ( const OUString &  aPassword,
const uno::Sequence< sal_Int8 > &  aSalt,
sal_Int32  nCount,
sal_Int32  nHashLength 
)
static
css::uno::Reference< css::beans::XPropertySet > comphelper::GenericPropertySet_CreateInstance ( comphelper::PropertySetInfo pInfo)
COMPHELPER_DLLPUBLIC bool comphelper::getBOOL ( const css::uno::Any &  _rAny)
bool comphelper::getBOOL ( const Any &  _rAny)

Definition at line 93 of file types.cxx.

References o3tl::tryAccess< bool >().

COMPHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > comphelper::getComponentContext ( css::uno::Reference< css::lang::XMultiServiceFactory > const &  factory)

Obtains a component context from a service factory.

Throws a RuntimeException if no component context can be obtained.

Parameters
factorymay be null
Returns
may be null
Reference< XComponentContext > comphelper::getComponentContext ( Reference< XMultiServiceFactory > const &  factory)

Definition at line 83 of file processfactory.cxx.

Referenced by getProcessComponentContext().

COMPHELPER_DLLPUBLIC css::awt::FontDescriptor comphelper::getDefaultFont ( )

get a css::awt::FontDescriptor that is fully initialized with the XXX_DONTKNOW enum values (which isn't the case if you instantiate it via the default constructor)

Definition at line 113 of file types.cxx.

double comphelper::getDouble ( const Any &  _rAny)

Definition at line 66 of file types.cxx.

References SAL_WARN.

COMPHELPER_DLLPUBLIC double comphelper::getDouble ( const css::uno::Any &  _rAny)
COMPHELPER_DLLPUBLIC sal_Int32 comphelper::getEnumAsINT32 ( const css::uno::Any &  _rAny)
Exceptions
css::lang::IllegalArgumentException
sal_Int32 comphelper::getEnumAsINT32 ( const Any &  _rAny)

Definition at line 104 of file types.cxx.

References cppu::enum2int().

COMPHELPER_DLLPUBLIC css::uno::Sequence< OUString> comphelper::getEventMethodsForType ( const css::uno::Type &  type)
Sequence< OUString> comphelper::getEventMethodsForType ( const Type type)
OUString comphelper::getExpandedUri ( css::uno::Reference< css::uno::XComponentContext > const &  context,
OUString const &  uri 
)

A helper function to expand vnd.sun.star.expand URLs.

If the given URI is a vnd.sun.star.expand URL, it is expanded (using the given component context's com.sun.star.util.theMacroExpander); otherwise it is returned unchanged.

Definition at line 21 of file getexpandeduri.cxx.

References parse().

float comphelper::getFloat ( const Any &  _rAny)

Definition at line 75 of file types.cxx.

References SAL_WARN.

COMPHELPER_DLLPUBLIC float comphelper::getFloat ( const css::uno::Any &  _rAny)
sal_Int16 comphelper::getINT16 ( const Any &  _rAny)

Definition at line 57 of file types.cxx.

References SAL_WARN.

COMPHELPER_DLLPUBLIC sal_Int16 comphelper::getINT16 ( const css::uno::Any &  _rAny)
sal_Int32 comphelper::getINT32 ( const Any &  _rAny)

Definition at line 48 of file types.cxx.

References SAL_WARN.

COMPHELPER_DLLPUBLIC sal_Int32 comphelper::getINT32 ( const css::uno::Any &  _rAny)
sal_Int64 comphelper::getINT64 ( const Any &  _rAny)

Definition at line 39 of file types.cxx.

References SAL_WARN.

COMPHELPER_DLLPUBLIC sal_Int64 comphelper::getINT64 ( const css::uno::Any &  _rAny)
OUString comphelper::GetkeyBindingStrByXkeyBinding ( const Sequence< KeyStroke > &  keySet)

Definition at line 31 of file AccessibleImplementationHelper.cxx.

COMPHELPER_DLLPUBLIC OUString comphelper::GetkeyBindingStrByXkeyBinding ( const css::uno::Sequence< css::awt::KeyStroke > &  keySet)

Helper function used for converting keybinding to string.

Parameters
keySetthe key stroke sequence.
COMPHELPER_DLLPUBLIC css::uno::Any comphelper::getNumberFormatDecimals ( const css::uno::Reference< css::util::XNumberFormats > &  xFormats,
sal_Int32  nKey 
)

returns the decimals of the given numeric number formatunder the given formats

Definition at line 61 of file numbers.cxx.

References SAL_WARN.

COMPHELPER_DLLPUBLIC css::uno::Any comphelper::getNumberFormatProperty ( const css::uno::Reference< css::util::XNumberFormatter > &  _rxFormatter,
sal_Int32  _nKey,
const OUString &  _rPropertyName 
)

retrieves the value of a given property for a given format key, relating to a given formatter

Any comphelper::getNumberFormatProperty ( const Reference< XNumberFormatter > &  _rxFormatter,
sal_Int32  _nKey,
const OUString &  _rPropertyName 
)

Definition at line 87 of file numbers.cxx.

References Any, and Exception.

COMPHELPER_DLLPUBLIC sal_Int16 comphelper::getNumberFormatType ( const css::uno::Reference< css::util::XNumberFormats > &  xFormats,
sal_Int32  nKey 
)

returns the css::util::NumberFormat of the given key under the given formats

Definition at line 31 of file numbers.cxx.

References SAL_WARN.

Referenced by getNumberFormatType().

COMPHELPER_DLLPUBLIC sal_Int16 comphelper::getNumberFormatType ( const css::uno::Reference< css::util::XNumberFormatter > &  xFormatter,
sal_Int32  nKey 
)

returns the css::util::NumberFormat of the given key under the given formatter

Definition at line 51 of file numbers.cxx.

References getNumberFormatType().

COMPHELPER_DLLPUBLIC css::uno::Reference< css::uno::XComponentContext > comphelper::getProcessComponentContext ( )
COMPHELPER_DLLPUBLIC css::uno::Reference< css::lang::XMultiServiceFactory > comphelper::getProcessServiceFactory ( )

This function gets the process service factory.

If no service factory is set the function throws a RuntimeException.

Definition at line 73 of file processfactory.cxx.

Referenced by getProcessComponentContext().

COMPHELPER_DLLPUBLIC css::uno::Type comphelper::getSequenceElementType ( const css::uno::Type &  _rSequenceType)

examine a sequence for the com.sun.star.uno::Type of its elements.

Type comphelper::getSequenceElementType ( const Type _rSequenceType)

Definition at line 136 of file types.cxx.

std::unique_ptr< IKeyPredicateLess > comphelper::getStandardLessPredicate ( Type const &  i_type,
Reference< XCollator > const &  i_collator 
)

Definition at line 162 of file anycompare.cxx.

Referenced by anyLess(), and comphelper::EnumerableMap::initialize().

::std::unique_ptr< IKeyPredicateLess > COMPHELPER_DLLPUBLIC comphelper::getStandardLessPredicate ( css::uno::Type const &  i_type,
css::uno::Reference< css::i18n::XCollator > const &  i_collator 
)

creates a default IKeyPredicateLess instance for the given UNO type

Parameters
i_typethe type for which a predicate instance should be created
i_collatorspecifies a collator instance to use, or <NULL>. If <NULL>, strings will be compared using the &lt operator, otherwise the collator will be used. The parameter is ignored if <arg>i_type</arg> does not specify the string type.
Returns
a default implementation of IKeyPredicateLess, which is able to compare values of the given type. If no such default implementation is known for the given type, then <NULL> is returned.
COMPHELPER_DLLPUBLIC OUString comphelper::getString ( const css::uno::Any &  _rAny)
OUString comphelper::getString ( const Any &  _rAny)

Definition at line 84 of file types.cxx.

References SAL_WARN.

template<class T >
T* comphelper::getUnoTunnelImplementation ( const css::uno::Reference< css::uno::XInterface > &  xIface)

Definition at line 43 of file servicehelper.hxx.

COMPHELPER_DLLPUBLIC bool comphelper::hasProperty ( const OUString &  _rName,
const css::uno::Reference< css::beans::XPropertySet > &  _rxSet 
)

check if the given set has the given property.

bool comphelper::hasProperty ( const OUString &  _rName,
const Reference< XPropertySet > &  _rxSet 
)

Definition at line 128 of file property.cxx.

css::uno::Sequence< css::uno::Any > comphelper::InitAnyPropertySequence ( ::std::initializer_list< ::std::pair< OUString, css::uno::Any > >  vInit)
inline

Init list for property sequences that wrap the PropertyValues in Anys.

This is particularly useful for creation of sequences that are later unwrapped using comphelper::SequenceAsHashMap.

Definition at line 42 of file propertysequence.hxx.

Referenced by comphelper::MimeConfigurationHelper::GetConfigurationByPath().

css::uno::Sequence< css::beans::PropertyValue > comphelper::InitPropertySequence ( ::std::initializer_list< ::std::pair< OUString, css::uno::Any > >  vInit)
inline

Init list for property sequences.

Definition at line 22 of file propertysequence.hxx.

Referenced by comphelper::EmbeddedObjectContainer::StoreEmbeddedObject().

template<typename ForwardIter , typename OutputIter , typename T >
OutputIter comphelper::intersperse ( ForwardIter  start,
ForwardIter  end,
OutputIter  out,
T const &  separator 
)

algorithm similar to std::copy, but inserts a separator between elements.

Definition at line 146 of file stl_types.hxx.

Referenced by comphelper::string::convertCommaSeparated().

COMPHELPER_DLLPUBLIC bool comphelper::isAssignableFrom ( const css::uno::Type &  _rAssignable,
const css::uno::Type &  _rFrom 
)

returns sal_True if objects of the types given are "compatible"

bool comphelper::isAssignableFrom ( const Type _rAssignable,
const Type _rFrom 
)

Definition at line 123 of file types.cxx.

References typelib_typedescription_isAssignableFrom().

static bool comphelper::isDebuggerAttached ( )
static

Definition at line 320 of file threadpool.cxx.

References size.

Referenced by comphelper::ThreadTaskTag::waitUntilDone().

bool comphelper::isFileUrl ( OUString const &  url)

Definition at line 25 of file fileurl.cxx.

Referenced by makeCanonicalFileURL().

COMPHELPER_DLLPUBLIC void comphelper::JoinAsyncEventNotifiers ( )

Definition at line 184 of file asyncnotification.cxx.

References g_Notifiers.

static void comphelper::lcl_notifyMapDataListeners_nothrow ( const MapData _mapData)
static
static void comphelper::lcl_registerMapModificationListener ( MapData _mapData,
MapEnumerator _listener 
)
static
static void comphelper::lcl_revokeMapModificationListener ( MapData _mapData,
MapEnumerator _listener 
)
static
static uno::Reference< embed::XStorage > comphelper::LookupStorageAtPath ( const uno::Reference< embed::XStorage > &  xParentStorage,
std::vector< OUString > &  rElems,
sal_uInt32  nOpenMode,
LifecycleProxy const &  rNastiness 
)
static
template<typename T >
std::shared_ptr<T> comphelper::make_shared_from_UNO ( T *  p)
inline

Makes a std::shared_ptr from a ref-counted UNO object pointer.

This makes sense if the object is used via UNO (implementing some X interface) and also internally using its implementation class, e.g.

    std::shared_ptr<MyUnoImpl> const ptr(
        comphelper::make_shared_from_UNO( new MyUnoImpl ) );
    ...
    xUno->callingUno( uno::Reference<XSomeInterface>( ptr.get() ) );
    ...
    takeSharedPtr( ptr );
    ...
Attention:
The shared_ptr operates on a separate reference counter, so weak pointers (std::weak_ptr) are invalidated when the last shared_ptr is destroyed, although the UNO object may still be alive.
Parameters
pobject pointer
Returns
shared_ptr to object

Definition at line 57 of file make_shared_from_uno.hxx.

template<typename T >
css::beans::PropertyValue comphelper::makePropertyValue ( const OUString &  rName,
T &&  rValue 
)

Creates a beans::PropertyValue easily, i.e.

you can write:

function(comphelper::makePropertyValue("Foo", nBar));

instead of writing 3 extra lines to set the name and value of the beans::PropertyValue.

Definition at line 29 of file propertyvalue.hxx.

template<typename M >
css::uno::Sequence< typename M::key_type > comphelper::mapKeysToSequence ( M const &  map)
inline

Copy (keys or values) from an associate container into a Sequence.

Template parameter:
M map container type eg. std::map/std::unordered_map
Returns
the generated Sequence

Definition at line 293 of file sequence.hxx.

References i.

Referenced by NamedPropertyValuesContainer::getElementNames(), and comphelper::EmbeddedObjectContainer::GetObjectNames().

template<typename M >
css::uno::Sequence< typename M::mapped_type > comphelper::mapValuesToSequence ( M const &  map)
inline

Definition at line 303 of file sequence.hxx.

References i.

template<class Tp , class Arg >
mem_fun1_t<Tp,Arg> comphelper::mem_fun ( void(Tp::*)(Arg)  f)
inline

Definition at line 112 of file stl_types.hxx.

COMPHELPER_DLLPUBLIC void comphelper::ModifyPropertyAttributes ( css::uno::Sequence< css::beans::Property > &  _rProps,
const OUString &  _sPropName,
sal_Int16  _nAddAttrib,
sal_Int16  _nRemoveAttrib 
)

within the given property sequence, modify attributes of a special property

Parameters
_rPropsthe sequence of properties to search in
_sPropNamethe name of the property which's attributes should be modified
_nAddAttribthe attributes which should be added
_nRemoveAttribthe attributes which should be removed
void comphelper::ModifyPropertyAttributes ( Sequence< Property > &  seqProps,
const OUString &  sPropName,
sal_Int16  nAddAttrib,
sal_Int16  nRemoveAttrib 
)

Definition at line 156 of file property.cxx.

References Property.

COMPHELPER_DLLPUBLIC css::uno::Reference< css::container::XNameContainer > comphelper::NameContainer_createInstance ( const css::uno::Type &  aType)
template<typename T >
T* comphelper::newArray_null ( size_t const  n)
throw (
)

Definition at line 30 of file newarray.hxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
const css::awt::FontDescriptor &  _rFont 
)

Definition at line 27 of file basicio.cxx.

void comphelper::operator<< ( css::uno::Reference< css::io::XObjectOutputStream > const &  ,
sal_Bool   
)
delete
template<class ELEMENT >
const css::uno::Reference<css::io::XObjectOutputStream>& comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
const css::uno::Sequence< ELEMENT > &  _rSeq 
)

Definition at line 74 of file basicio.hxx.

References ELEMENT.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
bool  _bVal 
)

Definition at line 84 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
const OUString &  rStr 
)

Definition at line 98 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
sal_Int16  _nValue 
)

Definition at line 112 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
sal_uInt16  _nValue 
)

Definition at line 126 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
sal_uInt32  _nValue 
)

Definition at line 140 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectOutputStream > & comphelper::operator<< ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream,
sal_Int32  _nValue 
)

Definition at line 154 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
css::awt::FontDescriptor &  _rFont 
)

Definition at line 52 of file basicio.cxx.

template<class ELEMENT >
const css::uno::Reference<css::io::XObjectInputStream>& comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
css::uno::Sequence< ELEMENT > &  _rSeq 
)

Definition at line 65 of file basicio.hxx.

References ELEMENT.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
bool &  _rVal 
)

Definition at line 77 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
OUString &  rStr 
)

Definition at line 91 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
sal_Int16 &  _rValue 
)

Definition at line 105 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
sal_uInt16 &  _rValue 
)

Definition at line 119 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
sal_uInt32 &  _rValue 
)

Definition at line 133 of file basicio.cxx.

COMPHELPER_DLLPUBLIC const css::uno::Reference< css::io::XObjectInputStream > & comphelper::operator>> ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream,
sal_Int32 &  _rValue 
)

Definition at line 147 of file basicio.cxx.

template<class RandItr , class Compare = std::less<>>
void comphelper::parallelSort ( const RandItr  aBegin,
const RandItr  aEnd,
Compare  aComp = Compare() 
)

Definition at line 363 of file parallelsort.hxx.

template<class iface >
bool comphelper::query_aggregation ( const css::uno::Reference< css::uno::XAggregation > &  _rxAggregate,
css::uno::Reference< iface > &  _rxOut 
)

ask for an iface of an aggregated object usage:
Reference<XFoo> xFoo;
if (query_aggregation(xAggregatedObject, xFoo))
...

Definition at line 167 of file uno3.hxx.

template<class T >
void comphelper::removeElementAt ( css::uno::Sequence< T > &  _rSeq,
sal_Int32  _nPos 
)
inline

remove a specified element from a sequences

Definition at line 87 of file sequence.hxx.

References nLength.

Referenced by RemoveProperty().

COMPHELPER_DLLPUBLIC void comphelper::RemoveProperty ( css::uno::Sequence< css::beans::Property > &  seqProps,
const OUString &  _rPropName 
)

remove the property with the given name from the given sequence

void comphelper::RemoveProperty ( Sequence< Property > &  _rProps,
const OUString &  _rPropName 
)

Definition at line 139 of file property.cxx.

References Property, and removeElementAt().

static comphelper::ThreadPool& comphelper::rTPool ( comphelper::ThreadPool::  getSharedOptimalPool())
static
template<typename DstType , typename SrcType >
DstType* comphelper::sequenceToArray ( DstType *  io_pArray,
const css::uno::Sequence< SrcType > &  i_Sequence 
)
inline

Copy from a Sequence into a plain C/C++ array.

Template parameter:
SrcType Sequence element type. Must be assignable to DstType
Template parameter:
DstType Array element type. Must be assignable from SrcType
Parameters
io_pArrayValid pointer to at least i_Sequence.getLength() elements of type DstType
i_SequenceReference to a Sequence of SrcType elements
Returns
a pointer to the array
Attention:
when copying from e.g. a Sequence<double> to an int array, no proper rounding will be performed, but the values will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation.

Definition at line 152 of file sequence.hxx.

template<typename DstType , typename SrcType >
DstType comphelper::sequenceToContainer ( const css::uno::Sequence< SrcType > &  i_Sequence)
inline

Copy from a Sequence into a container.

Template parameter:
SrcType Sequence element type. Must be assignable to SrcType's elements
Template parameter:
DstType Container type. This type must have a constructor taking a pair of iterators defining a range to copy from
Parameters
i_SequenceReference to a Sequence of SrcType elements
Returns
the generated container. C++17 copy elision rules apply
Attention:
this function always performs a copy. Furthermore, when copying from e.g. a Sequence<double> to a vector<int>, no proper rounding will be performed, but the values will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation.

Definition at line 236 of file sequence.hxx.

template<typename DstType >
DstType comphelper::sequenceToContainer ( const css::uno::Sequence< typename DstType::value_type > &  i_Sequence)
inline

Definition at line 243 of file sequence.hxx.

template<typename DstType , typename SrcType >
DstType& comphelper::sequenceToContainer ( DstType &  o_Output,
const css::uno::Sequence< SrcType > &  i_Sequence 
)
inline

Copy from a Sequence into an existing container.

This potentially saves a needless extra copy operation over the whole container, as it passes the target object by reference.

Template parameter:
SrcType Sequence element type. Must be assignable to SrcType's elements
Template parameter:
DstType Container type. This type must fulfill the STL container and sequence concepts, in particular, the begin(), end() and resize(int) methods must be available and have the usual semantics.
Parameters
o_OutputReference to the target container
i_SequenceReference to a Sequence of SrcType elements
Returns
a non-const reference to the given container
Attention:
this function always performs a copy. Furthermore, when copying from e.g. a Sequence<double> to a vector<int>, no proper rounding will be performed, but the values will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation.

Definition at line 279 of file sequence.hxx.

COMPHELPER_DLLPUBLIC void comphelper::setProcessServiceFactory ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  xSMgr)

This function set the process service factory.

void comphelper::setProcessServiceFactory ( const Reference< XMultiServiceFactory > &  xSMgr)

Definition at line 68 of file processfactory.cxx.

static void comphelper::splitPath ( std::vector< OUString > &  rElems,
const OUString &  rPath 
)
static
static void comphelper::ThreeByteToFourByte ( const sal_Int8 pBuffer,
const sal_Int32  nStart,
const sal_Int32  nFullLen,
sal_Char aCharBuffer 
)
static

Definition at line 59 of file base64.cxx.

template<typename T >
bool comphelper::tryPropertyValue ( css::uno::Any &  _rConvertedValue,
css::uno::Any &  _rOldValue,
const css::uno::Any &  _rValueToSet,
const T &  _rCurrentValue 
)

helper for implementing cppu::OPropertySetHelper::convertFastPropertyValue

Parameters
_rConvertedValuethe conversion result (if successful)
_rOldValuethe old value of the property, calculated from _rCurrentValue
_rValueToSetthe new value which is about to be set
_rCurrentValuethe current value of the property
Returns
sal_True, if the value could be converted and has changed sal_False, if the value could be converted and has not changed
Exceptions
InvalidArgumentExceptionthrown if the value could not be converted to the requested type (which is the template argument)

Definition at line 74 of file property.hxx.

COMPHELPER_DLLPUBLIC bool comphelper::tryPropertyValue ( css::uno::Any &  _rConvertedValue,
css::uno::Any &  _rOldValue,
const css::uno::Any &  _rValueToSet,
const css::uno::Any &  _rCurrentValue,
const css::uno::Type &  _rExpectedType 
)

helper for implementing cppu::OPropertySetHelper::convertFastPropertyValue

Parameters
_rConvertedValuethe conversion result (if successful)
_rOldValuethe old value of the property, calculated from _rCurrentValue
_rValueToSetthe new value which is about to be set
_rCurrentValuethe current value of the property
_rExpectedTypethe type which the property should have (if not void)
Returns
sal_True, if the value could be converted and has changed sal_False, if the value could be converted and has not changed
Exceptions
InvalidArgumentExceptionthrown if the value could not be converted to the requested type (which is the template argument)
bool comphelper::tryPropertyValue ( Any &  _rConvertedValue,
Any &  _rOldValue,
const Any &  _rValueToSet,
const Any &  _rCurrentValue,
const Type _rExpectedType 
)
template<class ENUMTYPE >
std::enable_if<std::is_enum<ENUMTYPE>::value, bool>::type comphelper::tryPropertyValueEnum ( css::uno::Any &  _rConvertedValue,
css::uno::Any &  _rOldValue,
const css::uno::Any &  _rValueToSet,
const ENUMTYPE &  _rCurrentValue 
)

helper for implementing cppu::OPropertySetHelper::convertFastPropertyValue for enum values

Parameters
_rConvertedValuethe conversion result (if successful)
_rOldValuethe old value of the property, calculated from _rCurrentValue
_rValueToSetthe new value which is about to be set
_rCurrentValuethe current value of the property
Returns
sal_True, if the value could be converted and has changed sal_False, if the value could be converted and has not changed
Exceptions
InvalidArgumentExceptionthrown if the value could not be converted to the requested type (which is the template argument)

Definition at line 99 of file property.hxx.

References cppu::any2enum().

template<typename... Args>
void comphelper::unwrapArgs ( const css::uno::Sequence< css::uno::Any > &  seq,
Args &...  args 
)
inline

Definition at line 110 of file unwrapargs.hxx.

References comphelper::detail::unwrapArgs().

Variable Documentation

const sal_uInt8 comphelper::aBase64DecodeTable[]
Initial value:
=
{ 62,255,255,255, 63,
52, 53, 54, 55, 56, 57, 58, 59, 60, 61,255,255,255, 0,255,255,
255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,255,255,255,255,255,
0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 }

Definition at line 39 of file base64.cxx.

const sal_Char comphelper::aBase64EncodeTable[]
Initial value:
=
{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/' }

Definition at line 31 of file base64.cxx.

const bool comphelper::bHyperThreadingActive = cpuid::hasHyperThreading()
static

Definition at line 30 of file parallelsort.hxx.

const char comphelper::ERRMSG_INVALID_COMPONENT_PARAM[] = "NULL as component reference not allowed."
static

Definition at line 27 of file numberedcollection.cxx.

std::vector<std::weak_ptr<AsyncEventNotifierAutoJoin> > comphelper::g_Notifiers
static

Definition at line 182 of file asyncnotification.cxx.

Referenced by JoinAsyncEventNotifiers().

thread_local bool comphelper::gbIsWorkerThread
static

prevent waiting for a task from inside a task

Definition at line 39 of file threadpool.cxx.

const sal_Int32 comphelper::HANDLE_AUTHENTICATIONREQUEST = 4
static

Will handle com::sun::star::ucb::AuthenticationRequest.

Definition at line 30 of file simplefileaccessinteraction.cxx.

Referenced by comphelper::SimpleFileAccessInteraction::SimpleFileAccessInteraction().

const sal_Int32 comphelper::HANDLE_CERTIFICATEREQUEST = 3
static

Will handle com::sun::star::ucb::CertificateValidationRequest.

Definition at line 28 of file simplefileaccessinteraction.cxx.

Referenced by comphelper::SimpleFileAccessInteraction::SimpleFileAccessInteraction().

const sal_Int32 comphelper::HANDLE_INTERACTIVEIOEXCEPTION = 0
static

Will handle com::sun::star::ucb::InteractiveIOException and derived classes.

Definition at line 22 of file simplefileaccessinteraction.cxx.

Referenced by comphelper::SimpleFileAccessInteraction::SimpleFileAccessInteraction().

const sal_Int32 comphelper::HANDLE_INTERACTIVENETWORKEXCEPTION = 2
static

Will handle com::sun::star::ucb::InteractiveNetworkException.

Definition at line 26 of file simplefileaccessinteraction.cxx.

Referenced by comphelper::SimpleFileAccessInteraction::SimpleFileAccessInteraction().

const sal_Int32 comphelper::HANDLE_UNSUPPORTEDDATASINKEXCEPTION = 1
static

Will handle com::sun::star::ucb::UnsupportedDataSinkException.

Definition at line 24 of file simplefileaccessinteraction.cxx.

Referenced by comphelper::SimpleFileAccessInteraction::SimpleFileAccessInteraction().

const sal_Int32 comphelper::nConstBufferSize = 32000

Definition at line 35 of file seekableinput.cxx.

Referenced by comphelper::OStorageHelper::CopyInputToOutput().

const size_t comphelper::nThreadCountGlobal = std::thread::hardware_concurrency()
static

Definition at line 29 of file parallelsort.hxx.