def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') properties['RowCount'] = getProperty('RowCount', 'long', readonly) properties['IsRowCountFinal'] = getProperty('IsRowCountFinal', 'boolean', readonly) return properties
def _getPropertySetInfo(self): properties = {} properties['CursorName'] = getProperty('CursorName', 'string', BOUND | READONLY) properties['ResultSetConcurrency'] = getProperty('ResultSetConcurrency', 'long', BOUND | READONLY) properties['ResultSetType'] = getProperty('ResultSetType', 'long', BOUND | READONLY) properties['FetchDirection'] = getProperty('FetchDirection', 'long', BOUND) properties['FetchSize'] = getProperty('FetchSize', 'long', BOUND) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') properties['User'] = getProperty('User', 'com.sun.star.uno.XInterface', readonly) properties['MetaData'] = getProperty('MetaData', 'com.sun.star.auth.XRestKeyMap', readonly) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['PageId'] = getProperty('PageId', 'short', readonly) properties['Window'] = getProperty('Window', 'com.sun.star.awt.XWindow', readonly) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Provider'] = getProperty('Provider', 'com.sun.star.uno.XInterface', readonly) properties['Id'] = getProperty('Id', 'string', transient) properties['Authorized'] = getProperty('Authorized', 'boolean', readonly) return properties
def _getPropertySetInfo(self): properties = {} properties['QueryTimeOut'] = getProperty('QueryTimeOut', 'long', BOUND) properties['MaxFieldSize'] = getProperty('MaxFieldSize', 'long', BOUND) properties['MaxRows'] = getProperty('MaxRows', 'long', BOUND) properties['CursorName'] = getProperty('CursorName', 'string', BOUND) properties['ResultSetConcurrency'] = getProperty('ResultSetConcurrency', 'long', BOUND) properties['ResultSetType'] = getProperty('ResultSetType', 'long', BOUND) properties['FetchDirection'] = getProperty('FetchDirection', 'long', BOUND) properties['FetchSize'] = getProperty('FetchSize', 'long', BOUND) properties['EscapeProcessing'] = getProperty('EscapeProcessing', 'boolean', BOUND) properties['UseBookmarks'] = getProperty('UseBookmarks', 'boolean', BOUND + READONLY) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Scope'] = getProperty('Scope', 'com.sun.star.uno.XInterface', readonly) properties['Id'] = getProperty('Id', 'string', transient) properties['UrlList'] = getProperty('UrlList', '[]string', readonly) properties['Initialized'] = getProperty('Initialized', 'boolean', readonly) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName('com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName('com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Id'] = getProperty('Id', 'string', transient) properties['ProviderId'] = getProperty('ProviderId', 'string', transient) properties['AccessToken'] = getProperty('AccessToken', 'string', transient) properties['RefreshToken'] = getProperty('RefreshToken', 'string', transient) properties['NeverExpires'] = getProperty('NeverExpires', 'boolean', transient) properties['ExpiresIn'] = getProperty('ExpiresIn', 'short', transient) properties['HasExpired'] = getProperty('HasExpired', 'boolean', readonly) properties['Scopes'] = getProperty('Scopes', '[]string', readonly) properties['Scope'] = getProperty('Scope', 'string', transient) properties['MetaData'] = getProperty('MetaData', 'com.sun.star.auth.XRestKeyMap', readonly) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Connection'] = getProperty( 'Connection', 'com.sun.star.sdbc.XConnection', transient) properties['DataSources'] = getProperty('DataSources', '[]string', transient) properties['TableNames'] = getProperty('TableNames', '[]string', transient) properties['ColumnNames'] = getProperty('ColumnNames', '[]string', transient) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName('com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName('com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Scope'] = getProperty('Scope', 'com.sun.star.uno.XInterface', readonly) properties['Id'] = getProperty('Id', 'string', transient) properties['ProviderName'] = getProperty('ProviderName', 'string', transient) properties['ProviderList'] = getProperty('ProviderList', '[]string', readonly) properties['ScopeName'] = getProperty('ScopeName', 'string', transient) properties['ScopeList'] = getProperty('ScopeList', '[]string', readonly) properties['ScopesList'] = getProperty('ScopesList', '[]string', readonly) properties['State'] = getProperty('State', 'short', transient) return properties
def getCreatableContentsInfo(self): content = [] if self.User.CanAddChild and self.MetaData.getValue('CanAddChild'): provider = self.User.Provider properties = (getProperty('Title', 'string', BOUND), ) content.append( getContentInfo(provider.Folder, KIND_FOLDER, properties)) content.append( getContentInfo(provider.Office, KIND_DOCUMENT, properties)) #if provider.hasProprietaryFormat: # content.append(getContentInfo(provider.ProprietaryFormat, KIND_DOCUMENT, properties)) return tuple(content)
def _getCreatableContentsInfo(self): content = [] if self.IsFolder and self.CanAddChild: provider = self.Identifier.DataSource.Provider properties = (getProperty('Title', 'string', BOUND), ) content.append( getContentInfo(provider.Folder, KIND_FOLDER, properties)) content.append( getContentInfo(provider.Office, KIND_DOCUMENT, properties)) #if provider.hasProprietaryFormat: # content.append(getContentInfo(provider.ProprietaryFormat, KIND_DOCUMENT, properties)) return tuple(content)
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName('com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName('com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Url'] = getProperty('Url', 'com.sun.star.uno.XInterface', readonly) properties['UrlList'] = getProperty('UrlList', '[]string', readonly) properties['HandlerTimeout'] = getProperty('HandlerTimeout', 'short', transient) properties['ConnectTimeout'] = getProperty('ConnectTimeout', 'short', transient) properties['ReadTimeout'] = getProperty('ReadTimeout', 'short', transient) properties['Timeout'] = getProperty('Timeout', 'any', readonly) properties['Logger'] = getProperty('Logger', 'com.sun.star.logging.XLogger', readonly) return properties
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Url'] = getProperty('Url', 'com.sun.star.uno.XInterface', readonly) properties['HandlerTimeout'] = getProperty('HandlerTimeout', 'short', transient) properties['ConnectTimeout'] = getProperty('ConnectTimeout', 'short', transient) properties['ReadTimeout'] = getProperty('ReadTimeout', 'short', transient) properties['Timeout'] = getProperty('Timeout', 'any', readonly) properties['Initialized'] = getProperty('Initialized', 'boolean', readonly) return properties
def _getPropertySetInfo(self): properties = {} interface = 'com.sun.star.uno.XInterface' optional = 'com.sun.star.beans.Optional<string>' readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Configuration'] = getProperty('Configuration', interface, readonly) properties['PageId'] = getProperty('PageId', 'short', readonly) properties['Window'] = getProperty('Window', 'com.sun.star.awt.XWindow', readonly) properties['Uuid'] = getProperty('Uuid', 'string', readonly) properties['AuthorizationCode'] = getProperty('AuthorizationCode', optional, transient) properties['FirstLoad'] = getProperty('FirstLoad', 'boolean', transient) return properties
def _getPropertySetInfo(self): properties = {} properties['Name'] = getProperty('Name', 'string', READONLY) return properties
def _getPropertySetInfo(self): properties = {} interface = 'com.sun.star.uno.XInterface' optional = 'com.sun.star.beans.Optional<string>' bound = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.BOUND') readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['Wizard'] = getProperty('Wizard', 'com.sun.star.ui.dialogs.XWizard', readonly) properties['ResourceUrl'] = getProperty('ResourceUrl', 'string', transient) properties['UserName'] = getProperty('UserName', 'string', transient) properties['AutoClose'] = getProperty('AutoClose', 'boolean', readonly) properties['ActivePath'] = getProperty('ActivePath', 'short', readonly) properties['AuthorizationCode'] = getProperty('AuthorizationCode', optional, bound) properties['Uuid'] = getProperty('Uuid', 'string', readonly) properties['CodeVerifier'] = getProperty('CodeVerifier', 'string', readonly) properties['Configuration'] = getProperty('Configuration', interface, readonly) properties['Server'] = getProperty('Server', interface, bound | readonly) properties['Error'] = getProperty('Error', 'string', transient) # properties['Handler'] = getProperty('Handler', interface, readonly) return properties
def _getContentProperties(content, properties): namedvalues = [] for name in properties: namedvalues.append(getProperty(name)) command = getCommand('getPropertyValues', tuple(namedvalues)) return content.execute(command, 0, None)
def _getPropertySetInfo(self): properties = {} readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') transient = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.TRANSIENT') properties['User'] = getProperty('User', 'com.sun.star.uno.XInterface', readonly) properties['ClientId'] = getProperty('ClientId', 'string', transient) properties['ClientSecret'] = getProperty('ClientSecret', 'string', transient) properties['AuthorizationUrl'] = getProperty('AuthorizationUrl', 'string', transient) properties['AuthorizationParameters'] = getProperty( 'AuthorizationParameters', 'string', transient) properties['TokenUrl'] = getProperty('TokenUrl', 'string', transient) properties['TokenParameters'] = getProperty('TokenParameters', 'string', transient) properties['CodeChallenge'] = getProperty('CodeChallenge', 'boolean', transient) properties['CodeChallengeMethod'] = getProperty( 'CodeChallengeMethod', 'string', transient) properties['HttpHandler'] = getProperty('HttpHandler', 'boolean', transient) properties['RedirectAddress'] = getProperty('RedirectAddress', 'string', transient) properties['RedirectPort'] = getProperty('RedirectPort', 'short', transient) properties['RedirectUri'] = getProperty('RedirectUri', 'string', readonly) properties['State'] = getProperty('State', 'short', transient) properties['MetaData'] = getProperty('MetaData', 'com.sun.star.auth.XRestKeyMap', readonly) return properties
def _getPropertySetInfo(self): RO = 0 if self.Identifier.isNew() else READONLY properties = {} properties['ContentType'] = getProperty('ContentType', 'string', BOUND | RO) properties['MediaType'] = getProperty('MediaType', 'string', BOUND | READONLY) properties['IsDocument'] = getProperty('IsDocument', 'boolean', BOUND | RO) properties['IsFolder'] = getProperty('IsFolder', 'boolean', BOUND | RO) properties['Title'] = getProperty('Title', 'string', BOUND | CONSTRAINED) properties['Size'] = getProperty('Size', 'long', BOUND | RO) created = getProperty('DateCreated', 'com.sun.star.util.DateTime', BOUND | READONLY) properties['DateCreated'] = created modified = getProperty('DateModified', 'com.sun.star.util.DateTime', BOUND | RO) properties['DateModified'] = modified properties['IsReadOnly'] = getProperty('IsReadOnly', 'boolean', BOUND | RO) info = getProperty('CreatableContentsInfo', '[]com.sun.star.ucb.ContentInfo', BOUND | RO) properties['CreatableContentsInfo'] = info properties['CasePreservingURL'] = getProperty('CasePreservingURL', 'string', BOUND | RO) properties['BaseURI'] = getProperty('BaseURI', 'string', BOUND | READONLY) properties['TitleOnServer'] = getProperty('TitleOnServer', 'string', BOUND) properties['IsHidden'] = getProperty('IsHidden', 'boolean', BOUND | RO) properties['IsVolume'] = getProperty('IsVolume', 'boolean', BOUND | RO) properties['IsRemote'] = getProperty('IsRemote', 'boolean', BOUND | RO) properties['IsRemoveable'] = getProperty('IsRemoveable', 'boolean', BOUND | RO) properties['IsFloppy'] = getProperty('IsFloppy', 'boolean', BOUND | RO) properties['IsCompactDisc'] = getProperty('IsCompactDisc', 'boolean', BOUND | RO) return properties
def _getPropertySetInfo(self): properties = {} properties['IsLoaded'] = getProperty('IsLoaded', 'boolean', BOUND | READONLY) return properties
def _getPropertySetInfo(self): properties = {} properties['Name'] = getProperty('Name', 'string', READONLY) properties['URL'] = getProperty('URL', 'string', BOUND) infotype = '[]com.sun.star.beans.PropertyValue' properties['Info'] = getProperty('Info', infotype, BOUND) settingtype = '[]com.sun.star.beans.XPropertySet' properties['Settings'] = getProperty('Settings', settingtype, READONLY) properties['User'] = getProperty('User', 'string', BOUND) properties['Password'] = getProperty('Password', 'string', BOUND) properties['IsPasswordRequired'] = getProperty('IsPasswordRequired', 'boolean', BOUND) properties['SuppressVersionColumns'] = getProperty('SuppressVersionColumns', 'boolean', BOUND) properties['IsReadOnly'] = getProperty('IsReadOnly', 'boolean', READONLY) numbertype = 'com.sun.star.util.XNumberFormatsSupplier' properties['NumberFormatsSupplier'] = getProperty('NumberFormatsSupplier', numbertype, READONLY) properties['TableFilter'] = getProperty('TableFilter', '[]string', BOUND) properties['TableTypeFilter'] = getProperty('TableTypeFilter', '[]string', BOUND) databasedocument = 'com.sun.star.sdb.XOfficeDatabaseDocument' properties['DatabaseDocument'] = getProperty('DatabaseDocument', databasedocument, READONLY) return properties
def _getPropertySetInfo(self): properties = {} bound = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.BOUND') readonly = uno.getConstantByName( 'com.sun.star.beans.PropertyAttribute.READONLY') properties['Name'] = getProperty('Name', 'string', bound | readonly) properties['Type'] = getProperty('Type', 'long', bound | readonly) properties['TypeName'] = getProperty('TypeName', 'string', bound | readonly) properties['Precision'] = getProperty('Precision', 'long', bound | readonly) properties['Scale'] = getProperty('Scale', 'long', bound | readonly) properties['IsNullable'] = getProperty('IsNullable', 'long', bound | readonly) properties['IsAutoIncrement'] = getProperty('IsAutoIncrement', 'boolean', bound | readonly) properties['IsCurrency'] = getProperty('IsCurrency', 'boolean', bound | readonly) properties['IsRowVersion'] = getProperty('IsRowVersion', 'boolean', bound | readonly) properties['Description'] = getProperty('Description', 'string', bound | readonly) properties['DefaultValue'] = getProperty('DefaultValue', 'string', bound | readonly) return properties