Class ModuleNamesKind

class ooodev.utils.kind.module_names_kind.ModuleNamesKind(val)[source]

Enum for looking up module names.

Support conversion from int, str, and tuple.

Example

>>> from ooodev.utils.kind.module_names_kind import ModuleNamesKind
# ...
>>> val1 = ModuleNamesKind.SPREADSHEET_DOCUMENT
>>> val2 = ModuleNamesKind(20)
>>> val3 = ModuleNamesKind("com.sun.star.sheet.SpreadsheetDocument")
>>> val4 = ModuleNamesKind((20, "com.sun.star.sheet.SpreadsheetDocument"))
>>> val1 == val2 == val3 == val4
True
__int__()[source]

Gets the int portion of the enum tuple value.

Return type:

int

to_json()[source]

Gets the JSON representation of the enum.

Return type:

int

BASIC_IDE = (3, 'com.sun.star.script.BasicIDE')
BIBLIOGRAPHY = (10, 'com.sun.star.frame.Bibliography')
CHART_DOCUMENT = (13, 'com.sun.star.chart2.ChartDocument')
DATA_SOURCE_BROWSER = (15, 'com.sun.star.sdb.DataSourceBrowser')
DRAWING_DOCUMENT = (17, 'com.sun.star.drawing.DrawingDocument')
FORMULA_PROPERTIES = (19, 'com.sun.star.formula.FormulaProperties')
FORM_DESIGN = (1, 'com.sun.star.sdb.FormDesign')
GLOBAL_DOCUMENT = (12, 'com.sun.star.text.GlobalDocument')
NONE = (0, 'unknown')
OFFICE_DATABASE_DOCUMENT = (21, 'com.sun.star.sdb.OfficeDatabaseDocument')
PRESENTATION_DOCUMENT = (22, 'com.sun.star.presentation.PresentationDocument')
QUERY_DESIGN = (4, 'com.sun.star.sdb.QueryDesign')
RELATION_DESIGN = (11, 'com.sun.star.sdb.RelationDesign')
REPORT_DEFINITION = (18, 'com.sun.star.report.ReportDefinition')
SPREADSHEET_DOCUMENT = (20, 'com.sun.star.sheet.SpreadsheetDocument')
START_MODULE = (7, 'com.sun.star.frame.StartModule')
TABLE_DATA_VIEW = (8, 'com.sun.star.sdb.TableDataView')
TABLE_DESIGN = (5, 'com.sun.star.sdb.TableDesign')
TEXT_DOCUMENT = (9, 'com.sun.star.text.TextDocument')
TEXT_REPORT_DESIGN = (14, 'com.sun.star.sdb.TextReportDesign')
VIEW_DESIGN = (2, 'com.sun.star.sdb.ViewDesign')
WEB_DOCUMENT = (6, 'com.sun.star.text.WebDocument')
XML_FORM_DOCUMENT = (16, 'com.sun.star.xforms.XMLFormDocument')