47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
|
|
||
|
Apendixes
|
||
|
---------
|
||
|
|
||
|
Remember, always import library.
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
import easymacro as app
|
||
|
|
||
|
|
||
|
Get all filters in Calc sheet
|
||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
* Fields in filter
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
'Finalized': False,
|
||
|
'UIName': 'EPS - Encapsulated PostScript',
|
||
|
'UserData': <ByteSequence instance 'b'''>,
|
||
|
'TemplateName': '',
|
||
|
'Enabled': True,
|
||
|
'Mandatory': False,
|
||
|
'Name': 'impress_eps_Export',
|
||
|
'FilterService': '',
|
||
|
'Type': 'eps_Encapsulated_PostScript',
|
||
|
'UIComponent': 'com.sun.star.svtools.SvFilterOptionsDialog',
|
||
|
'Flags': 1090,
|
||
|
'FileFormatVersion': 0,
|
||
|
'DocumentService': 'com.sun.star.presentation.PresentationDocument',
|
||
|
'UINames': {
|
||
|
'en-US': 'EPS - Encapsulated PostScript',
|
||
|
'es': 'EPS - PostScript encapsulado'}
|
||
|
|
||
|
|
||
|
.. code-block:: python
|
||
|
|
||
|
filters = app.get_filters()
|
||
|
headers = (('DocumentService', 'UIName', 'Name', 'Type'),)
|
||
|
data = [(f['DocumentService'], f['UIName'], f['Name'], f['Type'])
|
||
|
for f in filters]
|
||
|
|
||
|
doc = app.docs.new()
|
||
|
doc[0]['A1'].data = headers
|
||
|
doc[0]['A2'].data = data
|