def __init__(self, ctx, datasource, path, close): self._ctx = ctx self._path = path self._datasource = datasource self._close = close self._disposed = False self._resolver = getStringResource(ctx, g_identifier, g_extension) self._resources = {'Title': 'SenderDialog.Title', 'PickerTitle': 'Sender.FilePicker.Title', 'PickerFilters': 'Sender.FilePicker.Filters'}
def __init__(self, ctx, datasource, path): self._ctx = ctx self._datasource = datasource self._path = path self._url = None self._disposed = False self._resolver = getStringResource(ctx, g_identifier, g_extension) self._resources = {'PickerTitle': 'Mail.FilePicker.Title', 'Property': 'Mail.Document.Property.%s', 'Document': 'MailWindow.Label8.Label.1'}
def __init__(self, ctx, datasource): self._ctx = ctx self._diposed = False self._path = getPathSettings(ctx).Work self._datasource = datasource self._rowset = self._getRowSet() self._grid = None self._configuration = getConfiguration(ctx, g_identifier, True) self._resolver = getStringResource(ctx, g_identifier, g_extension) self._resources = {'Title': 'SpoolerDialog.Title', 'State': 'SpoolerDialog.Label2.Label.%s', 'TabTitle': 'SpoolerTab%s.Title'} self._resource = 'SpoolerTab1.Grid1.Column.%s'
def __init__(self, ctx): try: self._ctx = ctx self._stringResource = getStringResource(ctx, g_identifier, g_extension, 'OptionsDialog') service = 'com.sun.star.mail.SpoolerService' self._spooler = createService(ctx, service) datasource = DataSource(ctx) self._model = IspdbModel(ctx, datasource, True) self._logger = Pool(ctx).getLogger() self._logger.logMessage(INFO, "Loading ... Done", 'OptionsDialog', '__init__()') except Exception as e: msg = "Error: %s - %s" % (e, traceback.print_exc()) print(msg)
def __init__(self, ctx, datasource): self._ctx = ctx self._datasource = datasource self._configuration = getConfiguration(ctx, g_identifier, True) self._document = getDesktop(ctx).CurrentComponent #mri = createService(self._ctx, 'mytools.Mri') #mri.inspect(self._document) self._path = self._getPath() self._prefix = 'Sub.' service = 'com.sun.star.sdb.DatabaseContext' self._dbcontext = createService(ctx, service) self._addressbook = None self._statement = None self._queries = None self._address = self._getRowSet(TABLE) self._recipient = self._getRowSet(QUERY) self._grid1 = None self._grid2 = None self._resultset = None self._composer = None self._subcomposer = None self._command = None self._subcommand = None self._name = None self._rows = () self._tables = () self._table = None self._query = None self._changed = False self._disposed = False self._similar = False self._temp = False self._saved = False self._lock = Condition() self._resolver = getStringResource(ctx, g_identifier, g_extension) self._resources = {'Step': 'MergerPage%s.Step', 'Title': 'MergerPage%s.Title', 'TabTitle': 'MergerTab%s.Title', 'Progress': 'MergerPage1.Label6.Label.%s', 'Error': 'MergerPage1.Label8.Label.%s', 'Index': 'MergerPage1.Label14.Label.%s', 'Message': 'MergerTab2.Label1.Label', 'Recipient': 'MailWindow.Label4.Label', 'PickerTitle': 'Mail.FilePicker.Title', 'Property': 'Mail.Document.Property.%s', 'Document': 'MailWindow.Label8.Label.1'}
def __init__(self, ctx, datasource, close, email=''): self._ctx = ctx self._datasource = datasource self._close = close self._email = email self._user = None self._servers = None self._services = [SMTP.value, IMAP.value] self._count = 0 self._offline = 0 self._isnew = False self._diposed = False self._updated = False self._version = 0 self._messageid = None secure = {0: 3, 1: 4, 2: 4, 3: 5} unsecure = {0: 0, 1: 1, 2: 2, 3: 2} self._levels = {0: unsecure, 1: secure, 2: secure} self._connections = {0: 'Insecure', 1: 'Ssl', 2: 'Tls'} self._authentications = { 0: 'None', 1: 'Login', 2: 'Login', 3: 'OAuth2' } self._configuration = getConfiguration(ctx, g_identifier, True) self._timeout = self._configuration.getByName('ConnectTimeout') self._resolver = getStringResource(ctx, g_identifier, g_extension) self._resources = { 'Step': 'IspdbPage%s.Step', 'Title': 'IspdbPage%s.Title.%s', 'PageLabel': 'IspdbPage%s.Label1.Label', 'PagesLabel': 'IspdbPages.Label1.Label', 'Progress': 'IspdbPage2.Label2.Label.%s', 'Security': 'IspdbPages.Label10.Label.%s', 'SendTitle': 'SendDialog.Title', 'SendSubject': 'SendDialog.TextField2.Text', 'SendMessage': 'SendDialog.TextField3.Text', 'ThreadSubject': 'SendThread.Subject', 'ThreadMessage': 'SendThread.Message' }