2021-06-25 22:55:52 -05:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / > < meta name = "generator" content = "Docutils 0.17.1: http://docutils.sourceforge.net/" / >
< title > Library easymacro.py — ZAZ documentation< / title >
< link rel = "stylesheet" type = "text/css" href = "../_static/pygments.css" / >
< link rel = "stylesheet" type = "text/css" href = "../_static/alabaster.css" / >
< script data-url_root = "../" id = "documentation_options" src = "../_static/documentation_options.js" > < / script >
< script src = "../_static/jquery.js" > < / script >
< script src = "../_static/underscore.js" > < / script >
< script src = "../_static/doctools.js" > < / script >
< link rel = "index" title = "Index" href = "../genindex.html" / >
< link rel = "search" title = "Search" href = "../search.html" / >
< link rel = "next" title = "Tools for debug" href = "tools_for_debug.html" / >
< link rel = "prev" title = "Configuration" href = "config.html" / >
< link rel = "stylesheet" href = "../_static/custom.css" type = "text/css" / >
< meta name = "viewport" content = "width=device-width, initial-scale=0.9, maximum-scale=0.9" / >
< / head > < body >
< div class = "document" >
< div class = "documentwrapper" >
< div class = "bodywrapper" >
< div class = "body" role = "main" >
< section id = "library-easymacro-py" >
< h1 > Library easymacro.py< a class = "headerlink" href = "#library-easymacro-py" title = "Permalink to this headline" > ¶< / a > < / h1 >
< p > < strong > easymacro.py< / strong > it’ s a library for easily develop macros en LibreOffice con Python. It is an abstraction layer between the extensive and complex LibreOffice API UNO and your code.< / p >
< p > Probably, your will be more happy if used it. :)< / p >
< p > You can used < strong > easymacro.py< / strong > with any extension or directly in your macros.< / p >
< p > < strong > IMPORTANT< / strong > : Majority objects are custom objects, you can always get original UNO object with property < cite > obj< / cite > < / p >
< div class = "highlight-python notranslate" > < div class = "highlight" > < pre > < span > < / span > < span class = "n" > doc< / span > < span class = "o" > =< / span > < span class = "n" > app< / span > < span class = "o" > .< / span > < span class = "n" > active< / span >
< span class = "n" > app< / span > < span class = "o" > .< / span > < span class = "n" > msgbox< / span > < span class = "p" > (< / span > < span class = "n" > doc< / span > < span class = "p" > )< / span >
< span class = "n" > app< / span > < span class = "o" > .< / span > < span class = "n" > msgbox< / span > < span class = "p" > (< / span > < span class = "n" > doc< / span > < span class = "o" > .< / span > < span class = "n" > obj< / span > < span class = "p" > )< / span >
< / pre > < / div >
< / div >
< div class = "toctree-wrapper compound" >
< p class = "caption" > < span class = "caption-text" > Contents:< / span > < / p >
< ul >
< li class = "toctree-l1" > < a class = "reference internal" href = "tools_for_debug.html" > Tools for debug< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#info-debug" > INFO_DEBUG< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#log-error" > Log error< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#log-debug" > Log debug< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#log-info" > Log info< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#log-to-file" > Log to file< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#message-box" > Message box< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#catch-exceptions" > Catch exceptions< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html#call-mri" > Call MRI< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "tools.html" > Tools< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#info-from-pc" > Info from PC< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#message-box" > Message Box< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#show-warning" > Show warning< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#show-error-box" > Show error box< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#make-question" > Make question< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#inputbox" > InputBox< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#date-and-times" > Date and times< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#thread" > Thread< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#dictionary-properties" > Dictionary < -> properties< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#tuples-or-lists-to-dictionary" > Tuples or lists to dictionary< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#json" > Json< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#call-macros" > Call Macros< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#call-external-program" > Call external program< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#timer" > Timer< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#get-digest" > Get digest< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#save-and-get-configurations" > Save and get configurations< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#render-string" > Render string< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#encrypt-decrypt" > Encrypt decrypt< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#simple-url-open" > Simple url open< / a > < / li >
2021-06-30 14:29:02 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html#color" > Color< / a > < / li >
2021-06-25 22:55:52 -05:00
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "paths.html" > Paths and files< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-info-path" > Get info path< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#exists-path" > Exists path< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#path-is-file" > Path is file< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#path-is-dir" > Path is dir< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-home" > Get path home< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-documents" > Get path documents< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-temp" > Get path temp< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-from-libreoffice-configuration" > Get path from LibreOffice configuration< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-executable-python" > Get path executable python< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#save-and-read-text-data" > Save and read text data< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#save-and-read-binary-data" > Save and read binary data< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#join-paths" > Join paths< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-a-temporal-path" > Get a temporal path< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-a-temporal-dir" > Get a temporal dir< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-for-save" > Get path for save< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#select-directory" > Select directory< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-path-exists-file" > Get path exists file< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#replace-extension" > Replace extension< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#path-in-format-url-system" > Path in format URL < -> System< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#delete-files-and-directories" > Delete files and directories< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-files" > Get files< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-directories" > Get directories< / a > < / li >
2021-06-28 22:59:16 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#get-install-path-extension-from-id" > Get install path extension from id< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#verify-if-application-exists" > Verify if application exists< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#open-any-type-file" > Open any type file< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#save-and-read-json" > Save and read json< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#save-and-read-csv" > Save and read csv< / a > < / li >
2021-06-29 22:01:10 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#zip-unzip" > Zip, unzip< / a > < / li >
2021-06-28 22:59:16 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html#copy-files" > Copy files< / a > < / li >
2021-06-25 22:55:52 -05:00
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "email.html" > Email< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "email.html#send-email" > Send email< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "application.html" > Application< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#create-instances" > Create instances< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#current-doc" > Current doc< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#iter-docs" > Iter docs< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#count" > Count< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#get-by-name" > Get by name< / a > < / li >
2021-06-30 22:26:08 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#if-contain" > If contain< / a > < / li >
2021-06-25 22:55:52 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#new" > New< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#open" > Open< / a > < / li >
2021-06-29 22:01:10 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#save" > Save< / a > < / li >
2021-06-30 22:26:08 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#close" > Close< / a > < / li >
2021-06-29 22:01:10 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#to-pdf" > To PDF< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#export" > Export< / a > < / li >
2021-06-30 14:29:02 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#fonst" > Fonst< / a > < / li >
2021-06-30 22:26:08 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#filters" > Filters< / a > < / li >
2021-06-25 22:55:52 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#call-dispatch" > Call dispatch< / a > < / li >
2021-06-30 22:26:08 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#properties" > Properties< / a > < / li >
2021-07-03 17:32:51 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html#methods" > Methods< / a > < / li >
2021-06-25 22:55:52 -05:00
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "calc.html" > Calc< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#current-doc" > Current doc< / a > < / li >
2021-07-03 19:23:23 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#selection" > Selection< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#headers" > Headers< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#tabs" > Tabs< / a > < / li >
2021-06-25 22:55:52 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#active-sheet" > Active sheet< / a > < / li >
2021-07-03 19:23:23 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#get-by-index" > Get by index< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#get-by-name" > Get by name< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#contains" > Contains< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#get-tuple-with-all-names" > Get tuple with all names< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#count" > Count< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#new" > New< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#move" > Move< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#remove" > Remove< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#copy" > Copy< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#copy-from" > Copy from< / a > < / li >
2021-07-03 21:59:22 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#copy-to" > Copy to< / a > < / li >
2021-07-03 19:23:23 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#sort" > Sort< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#name" > Name< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#code-name" > Code name< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#visible" > Visible< / a > < / li >
2021-07-03 21:59:22 -05:00
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#is-protected" > Is protected< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#set-password" > Set password< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#remove-password" > Remove password< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#tab-color" > Tab color< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#document-parent" > Document parent< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html#activate" > Activate< / a > < / li >
2021-06-25 22:55:52 -05:00
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "writer.html" > Writer< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "writer.html#current-doc" > Current doc< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "base.html" > Base< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "base.html#new-database" > New database< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< / section >
< / div >
< / div >
< / div >
< div class = "sphinxsidebar" role = "navigation" aria-label = "main navigation" >
< div class = "sphinxsidebarwrapper" >
< h1 class = "logo" > < a href = "../index.html" > ZAZ< / a > < / h1 >
< h3 > Navigation< / h3 >
< p class = "caption" > < span class = "caption-text" > Contents:< / span > < / p >
< ul class = "current" >
< li class = "toctree-l1" > < a class = "reference internal" href = "intro.html" > Introduction< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "config.html" > Configuration< / a > < / li >
< li class = "toctree-l1 current" > < a class = "current reference internal" href = "#" > Library easymacro.py< / a > < ul >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools_for_debug.html" > Tools for debug< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "tools.html" > Tools< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "paths.html" > Paths and files< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "email.html" > Email< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "application.html" > Application< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "calc.html" > Calc< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "writer.html" > Writer< / a > < / li >
< li class = "toctree-l2" > < a class = "reference internal" href = "base.html" > Base< / a > < / li >
< / ul >
< / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "examples.html" > Examples< / a > < / li >
2021-07-02 22:10:16 -05:00
< li class = "toctree-l1" > < a class = "reference internal" href = "apendixes.html" > Apendixes< / a > < / li >
2021-06-25 22:55:52 -05:00
< / ul >
< div class = "relations" >
< h3 > Related Topics< / h3 >
< ul >
< li > < a href = "../index.html" > Documentation overview< / a > < ul >
< li > Previous: < a href = "config.html" title = "previous chapter" > Configuration< / a > < / li >
< li > Next: < a href = "tools_for_debug.html" title = "next chapter" > Tools for debug< / a > < / li >
< / ul > < / li >
< / ul >
< / div >
< div id = "searchbox" style = "display: none" role = "search" >
< h3 id = "searchlabel" > Quick search< / h3 >
< div class = "searchformwrapper" >
< form class = "search" action = "../search.html" method = "get" >
< input type = "text" name = "q" aria-labelledby = "searchlabel" / >
< input type = "submit" value = "Go" / >
< / form >
< / div >
< / div >
< script > $ ( '#searchbox' ) . show ( 0 ) ; < / script >
< / div >
< / div >
< div class = "clearer" > < / div >
< / div >
< div class = "footer" >
© 2021, Mauricio Baeza.
|
Powered by < a href = "http://sphinx-doc.org/" > Sphinx 4.0.2< / a >
& < a href = "https://github.com/bitprophet/alabaster" > Alabaster 0.7.12< / a >
|
< a href = "../_sources/main/easymacro.rst.txt"
rel="nofollow">Page source< / a >
< / div >
< / body >
< / html >