easymacro/source/easymacro/__init__.py

64 lines
1.8 KiB
Python
Raw Normal View History

2022-08-11 22:33:41 -05:00
#!/usr/bin/env python3
2023-12-07 19:08:49 -06:00
# ~ easymacro - for easily develop macros in LibreOffice
# ~ Copyright (C) 2020-2023 Mauricio Baeza (elmau)
# ~ This program is free software: you can redistribute it and/or modify it
# ~ under the terms of the GNU General Public License as published by the
# ~ Free Software Foundation, either version 3 of the License, or (at your
# ~ option) any later version.
# ~ This program is distributed in the hope that it will be useful, but
# ~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# ~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# ~ for more details.
# ~ You should have received a copy of the GNU General Public License along
# ~ with this program. If not, see <http://www.gnu.org/licenses/>.
2022-08-11 22:33:41 -05:00
from .easymain import *
2022-08-15 23:57:31 -05:00
from .easydialog import *
2022-08-11 22:33:41 -05:00
from .easytools import *
from .easydocs import LODocuments
2022-11-03 23:31:29 -06:00
from .easydrawpage import LOGalleries
2022-08-11 22:33:41 -05:00
2023-12-07 19:08:49 -06:00
__version__ = '0.5.0'
__author__ = 'Mauricio Baeza (elMau)'
2022-08-11 22:33:41 -05:00
def __getattr__(name):
classes = {
'active': LODocuments().active,
'clipboard': ClipBoard,
'cmd': LOMain.commands,
2022-08-16 22:45:11 -05:00
'color': Color(),
'config': Config,
2022-08-15 23:57:31 -05:00
'dates': Dates,
'dialog': LODialog,
2022-08-17 11:42:44 -05:00
'dispatch': LOMain.dispatch,
2022-08-18 22:42:32 -05:00
'docs': LODocuments(),
2022-08-15 23:57:31 -05:00
'email': Email,
'get_config': get_app_config,
2022-08-17 11:42:44 -05:00
'filters': LOMain.filters,
'fonts': LOMain.fonts,
2022-08-16 22:45:11 -05:00
'hash': Hash,
2022-08-15 23:57:31 -05:00
'inspect': LOInspect,
2022-08-16 22:45:11 -05:00
'macro': Macro,
'menus': LOMenus(),
2022-08-15 23:57:31 -05:00
'paths': Paths,
2022-08-16 22:45:11 -05:00
'url': URL,
'set_config': set_app_config,
2022-08-16 22:45:11 -05:00
'shell': Shell,
'shortcuts': LOShortCuts(),
2022-08-16 22:45:11 -05:00
'timer': Timer,
2022-11-03 23:31:29 -06:00
'galleries': LOGalleries()
2022-08-11 22:33:41 -05:00
}
if name in classes:
return classes[name]
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")