diff --git a/CHANGELOG b/CHANGELOG index 5b936b8..8f0ee09 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +v 0.19.0 [25-sep-2021] + - Writer. Insert shapes. Set zoom. + + +v 0.18.0 [29-aug-2021] + - Writer. Move cursor: start, end, left, right + + v 0.17.0 [10-jul-2021] - Add insert math in writer diff --git a/README.md b/README.md index 5d239b7..da2632d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,8 @@ Develop in pure Python, not need any dependence. * LibreOffice 7.0+ * LibreOffice SDK 7.0+ -* Look [documentation](https://doc.cuates.net/zaz/) + +#### Look [documentation](https://doc.cuates.net/zaz/) ## Free Software, not gratis software @@ -29,8 +30,6 @@ IBAN: BE60 9671 0556 5870 SWIFT / BIC: TRWIBEB1XXX ``` -* FairCoin: `fJ7emvtyGfvcMuxk1nHSnS7gmeScdcZXL5` -* Monero: `43H43TpQKYdYcw2ZCnn2nbjDh3imNQg8RGYS4oP4p7Z8aeBHg6VpeaFfBoMzDTUUDdQBiGkiQUSydJB96m6MqiEuEeyoopQ` * BCH: `qztd3l00xle5tffdqvh2snvadkuau2ml0uqm4n875d` * ETH: `0x61a4f614a30ff686445751ed8328b82b77ecfc69` diff --git a/VERSION b/VERSION index 04a373e..1cf0537 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.16.0 +0.19.0 diff --git a/doc/build/.doctrees/environment.pickle b/doc/build/.doctrees/environment.pickle index 7ea0022..ba938cc 100644 Binary files a/doc/build/.doctrees/environment.pickle and b/doc/build/.doctrees/environment.pickle differ diff --git a/doc/build/.doctrees/main/calc_sheets.doctree b/doc/build/.doctrees/main/calc_sheets.doctree index 18fe17c..5d1b443 100644 Binary files a/doc/build/.doctrees/main/calc_sheets.doctree and b/doc/build/.doctrees/main/calc_sheets.doctree differ diff --git a/doc/build/.doctrees/main/examples_calc.doctree b/doc/build/.doctrees/main/examples_calc.doctree index 0e32a1a..fc319aa 100644 Binary files a/doc/build/.doctrees/main/examples_calc.doctree and b/doc/build/.doctrees/main/examples_calc.doctree differ diff --git a/doc/build/.doctrees/main/examples_writer.doctree b/doc/build/.doctrees/main/examples_writer.doctree index d931dce..8980674 100644 Binary files a/doc/build/.doctrees/main/examples_writer.doctree and b/doc/build/.doctrees/main/examples_writer.doctree differ diff --git a/doc/build/_sources/main/calc_sheets.rst.txt b/doc/build/_sources/main/calc_sheets.rst.txt index 542a954..612351e 100644 --- a/doc/build/_sources/main/calc_sheets.rst.txt +++ b/doc/build/_sources/main/calc_sheets.rst.txt @@ -157,13 +157,13 @@ Copy .. code-block:: python sheet = doc[0] - doc.copy(sheet, 'OtherSheet') + doc.copy_sheet(sheet, 'OtherSheet') * By name .. code-block:: python - doc.copy('Sheet1', 'Sheet2') + doc.copy_sheet('Sheet1', 'Sheet2') * From sheet diff --git a/doc/build/_sources/main/examples_calc.rst.txt b/doc/build/_sources/main/examples_calc.rst.txt index 93f45ff..7d56286 100644 --- a/doc/build/_sources/main/examples_calc.rst.txt +++ b/doc/build/_sources/main/examples_calc.rst.txt @@ -21,3 +21,27 @@ Automatic calculate size range. ) sheet['A1'].data = data return + + +Copy visible cells +^^^^^^^^^^^^^^^^^^ + +.. code-block:: python + + doc = app.active + rangos = doc.active['A1'].current_region.visible + doc.select(rangos) + doc.copy() + + doc.active['A15'].select() + doc.paste() + + +Merge by row +^^^^^^^^^^^^ + +.. code-block:: python + + rango = app.selection + rango.merge_by_row() + diff --git a/doc/build/_sources/main/examples_writer.rst.txt b/doc/build/_sources/main/examples_writer.rst.txt index d7f3067..a584e17 100644 --- a/doc/build/_sources/main/examples_writer.rst.txt +++ b/doc/build/_sources/main/examples_writer.rst.txt @@ -1,9 +1,9 @@ For Writer -------------------- +---------- Set autostyle in table -^^^^^^^^^^^^^^^^^^^^^^ +~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: python @@ -12,3 +12,13 @@ Set autostyle in table table = doc.tables[0] table.style = 'Academic' return + + +Insert math formula +~~~~~~~~~~~~~~~~~~~ + +.. code-block:: python + + formula = '%LAMBDA_{deg","t}=1 + %alpha_deg SQRT {M_t over M_{(t=0)}-1}~"."' + text = app.selection + text.insert_math(formula) diff --git a/doc/build/main/calc_ranges.html b/doc/build/main/calc_ranges.html index 6f9e56d..0803ebf 100644 --- a/doc/build/main/calc_ranges.html +++ b/doc/build/main/calc_ranges.html @@ -15,7 +15,7 @@ - + @@ -263,7 +263,7 @@
  • Library easymacro.py
  • diff --git a/doc/build/main/calc_sheets.html b/doc/build/main/calc_sheets.html index e48c4fc..a99b7e8 100644 --- a/doc/build/main/calc_sheets.html +++ b/doc/build/main/calc_sheets.html @@ -15,7 +15,7 @@ - + @@ -174,13 +174,13 @@
  • By object

  • sheet = doc[0]
    -doc.copy(sheet, 'OtherSheet')
    +doc.copy_sheet(sheet, 'OtherSheet')
     
    -
    doc.copy('Sheet1', 'Sheet2')
    +
    doc.copy_sheet('Sheet1', 'Sheet2')
     
    diff --git a/doc/build/main/examples.html b/doc/build/main/examples.html index 1a82e95..35d31e8 100644 --- a/doc/build/main/examples.html +++ b/doc/build/main/examples.html @@ -46,10 +46,13 @@
  • For Calc
  • For Writer
  • For Draw
  • +
  • Apendixes
  • diff --git a/doc/build/main/examples_calc.html b/doc/build/main/examples_calc.html index d4d79f9..1c72ff3 100644 --- a/doc/build/main/examples_calc.html +++ b/doc/build/main/examples_calc.html @@ -53,6 +53,25 @@
    +
    +

    Copy visible cells

    +
    doc = app.active
    +rangos = doc.active['A1'].current_region.visible
    +doc.select(rangos)
    +doc.copy()
    +
    +doc.active['A15'].select()
    +doc.paste()
    +
    +
    +
    +
    +

    Merge by row

    +
    rango = app.selection
    +rango.merge_by_row()
    +
    +
    +
    @@ -85,6 +104,7 @@
  • For Base
  • +
  • Apendixes
  • diff --git a/doc/build/main/examples_writer.html b/doc/build/main/examples_writer.html index 6d4cc34..e5bca0b 100644 --- a/doc/build/main/examples_writer.html +++ b/doc/build/main/examples_writer.html @@ -45,6 +45,14 @@
    +
    +

    Insert math formula

    +
    formula = '%LAMBDA_{deg","t}=1 + %alpha_deg SQRT {M_t over M_{(t=0)}-1}~"."'
    +text = app.selection
    +text.insert_math(formula)
    +
    +
    +
    @@ -77,6 +85,7 @@
  • For Base
  • +
  • Apendixes
  • diff --git a/doc/build/searchindex.js b/doc/build/searchindex.js index 25500c5..cfb316a 100644 --- a/doc/build/searchindex.js +++ b/doc/build/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["index","main/apendixes","main/application","main/base","main/calc","main/calc_data","main/calc_doc","main/calc_ranges","main/calc_ranges2","main/calc_sheets","main/config","main/easymacro","main/email","main/examples","main/examples_app","main/examples_base","main/examples_calc","main/examples_draw","main/examples_writer","main/intro","main/paths","main/tools","main/tools_for_debug","main/writer"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["index.rst","main/apendixes.rst","main/application.rst","main/base.rst","main/calc.rst","main/calc_data.rst","main/calc_doc.rst","main/calc_ranges.rst","main/calc_ranges2.rst","main/calc_sheets.rst","main/config.rst","main/easymacro.rst","main/email.rst","main/examples.rst","main/examples_app.rst","main/examples_base.rst","main/examples_calc.rst","main/examples_draw.rst","main/examples_writer.rst","main/intro.rst","main/paths.rst","main/tools.rst","main/tools_for_debug.rst","main/writer.rst"],objects:{},objnames:{},objtypes:{},terms:{"0":[1,7,9,10,14,18,19,20,22],"008080":21,"02":19,"04":19,"06":[12,20,21],"07":19,"080315":21,"082211":21,"09":21,"0k":21,"1":[2,5,7,8,9,10,15,19,20,21,22],"10":[2,5,7,9,21],"100":16,"1090":1,"11":[19,21],"12":21,"125":[9,21],"126446":21,"128487":21,"13":[12,21],"14":21,"15":21,"16":21,"17":21,"18":21,"19":21,"2":[2,9,10,15,20,21,22],"20":[19,21],"200":[9,16,21],"2001":15,"2002":15,"2003":15,"2004":15,"2005":15,"2021":[12,19,20,21],"21":[20,21],"22":21,"23":[12,19,21],"24":[12,20],"26":[12,21],"27":21,"29":20,"3":[7,10,15,19,20],"30":12,"300":16,"34":21,"35":21,"3m":21,"4":[7,15,20,21],"40":19,"400":16,"41":19,"42":21,"43":[12,21],"46":21,"47":[20,21],"48":21,"495":12,"5":[5,7,15,21],"50":19,"500":[16,22],"53":[19,21],"6":[7,21],"7":19,"7iznrbyw":12,"8859":20,"9":10,"abstract":11,"case":21,"catch":11,"class":15,"default":[2,8,12,20,21],"do":20,"export":11,"extensi\u00f3n":10,"final":[1,19],"float":5,"function":[19,22],"import":[1,2,3,4,11,12,15,20,21,22,23],"int":5,"new":[1,4,10,11,15,17,19],"null":15,"opci\u00f3n":10,"public":10,"return":[2,14,15,16,17,18,21,22],"super":21,"true":[1,2,5,10,12,15,17,20,21],"while":2,A:10,And:22,By:[7,9],FOR:10,For:[0,2,10,13,20,21],If:[6,9,10,11,12,22],In:[10,19,21],Is:[2,4,10,21],It:[10,11],Not:8,Of:21,One:[7,9],Ons:10,Or:20,The:[5,10],To:11,With:[2,19],_2:9,a1:[1,5,7,8,16],a2:[1,5],a3:5,a4:5,a5:[5,8],a6:5,a7:5,absolut:[7,10],academ:18,access:9,act:20,action:[20,21],activ:[2,4,6,7,8,11,18,22,23],active_sheet:[5,7,8,9,16],add:[7,10,19,20,22],addin:[10,19],addonmenu:10,address:[7,12],all:[0,2,4,7,10,12,20],along:10,alt:[10,14],alwai:[1,2,3,4,8,9,11,12,20,21,22,23],an:[11,20],ani:[2,10,11,12,21,22],apendix:[0,2],api:[11,20,21],app:[1,2,3,4,5,6,7,8,9,11,12,14,15,16,17,18,20,21,22,23],app_nam:[20,21],appli:9,applic:[0,10,11,13,21],april:16,apt:19,ar:[5,11,12,20,21],arbitrari:2,archlinux:19,area:7,arg:[2,21],argument:[2,10],arrai:5,array_formula:5,ask:20,attach:12,automat:[5,10,16,22],autostyl:13,awt:2,b1:7,b2:7,b5:5,b:[1,7,20],bar:2,base:[0,10,11,13],base_insert_data:15,base_select_data:15,basedatefield:15,basemodel:15,basic:[19,21],bcc:12,been:2,befor:[10,22],bergman:[12,15,21],best:21,better:[21,22],between:11,bin:[10,20],binari:11,blank:10,bmp:10,bodi:12,bool:10,born:15,both:21,box:11,build:20,bytesequ:1,c10:5,c1:8,c4:7,c5:8,c:19,cach:20,calc:[0,2,10,11,13,14,19,20],calc_data_to_cel:16,calcul:[16,21],call:11,call_dispatch:2,call_macro:21,can:[2,10,11,12,15,19,20,21,22],captur:21,catch_except:22,caution:[2,9,20,21],cc:12,cd:[10,19],cell:[4,5,8,11,13],celldeletemod:8,cellinsertmod:8,chang:20,charfield:15,clean:9,client:12,clipboard:[2,13],clock:21,clone:19,close:[11,12,17],code:[4,10,11,22],code_nam:9,color:[4,11],color_html:21,color_nam:21,color_rgb:21,column:[6,7,8],columna:7,com:[1,2,12],command:[2,21],commandurl:14,common:2,complex:[11,21],compon:[10,19],compress:19,con:11,conf:[10,12,21],config:[12,20,21],configur:[0,11,12],confirm:20,connect:[3,12,15],contact:[9,15,21],contacto:15,contain:[4,11],content:[2,20],context:[2,10,20],control:2,copi:[4,10,11,19,22],copy_from:[8,9],copy_to:[8,9],copyrang:8,correctli:10,correo:12,cotillar:15,count:[4,11],cours:[19,21],creat:[10,11,13,19],create_inst:2,create_t:15,cryptographi:21,csv:11,ctrl:[10,14],cuat:19,current:[4,7,8,10,11,21],current_region:7,custom:[11,13],d1:8,d5:7,d8:7,d:7,damn:5,danger:21,darkblu:21,darken:20,data:[1,2,4,7,11,13,14,21,22],data_to_dict:21,databas:[11,15],database_proxi:15,databaseproxi:15,date:[5,11,15,22],datetim:[5,15],db:[3,15],de:10,debug:[0,2,7,11,12,14,20,21],decrypt:11,def:[2,14,15,16,17,18,21,22],defin:20,delet:[4,11,13],delete_menu:14,delin:20,descript:10,desktop1:2,desktop2:2,desktop:[2,21],detail:10,detect:5,dev:19,develop:[10,11,19],dialog:2,dialogprovider2:2,dict:[5,12,15],dict_to_properti:21,dictionari:[5,10,11],difficult:22,digest:11,dir:11,dir_tmp:20,directli:[11,21],directori:[2,11,19],dispatch:11,displai:10,display_nam:10,displaynam:10,distribut:10,doc:[1,3,4,7,8,9,11,15,17,18,20],doc_sourc:9,document:[2,4,11,17,21],documentservic:1,docx:2,domain:19,don:[19,20],done:19,down:8,download:[19,20,21],draw:[0,2,10,13],drwxr:21,ds:2,dt:20,e10:7,e15:5,e1:8,e4:8,e6:8,e7:7,each:10,easi:21,easili:11,easymacro:[0,1,2,3,4,12,15,20,21,22,23],echochar:21,edit:10,either:10,el:10,elmau:[10,19,20],els:15,email:[0,11],empti:7,en:[1,10,11],enabl:1,encapsul:1,encapsulado:1,encod:20,encrypt:11,encrypt_decrypt:21,end:[2,7,21],end_column:7,end_row:7,endcolumn:7,endrow:7,entir:8,ep:1,epoch:21,eps_encapsulated_postscript:1,epub:12,error:11,errorbox:21,es:[1,10],etc:2,even:10,everi:21,exactli:10,exampl:[0,2,10,14],excel_doc:2,except:11,execut:[11,15,21],exist:[2,9,11,15],exists_app:20,exit:20,ext:20,extens:[0,2,11,22],extensionnam:10,extern:11,extract:20,f12:7,f:[1,2,5,7,10,20],fals:[1,2,15],februari:16,field:[1,12],file1:12,file2:12,file:[0,2,11,12,19],file_nam:[20,21],file_test:10,fileformatvers:1,filter:[0,11,20],filter_nam:2,filterservic:1,finish:21,first:[0,5],fit:10,flag:1,folder:[10,12,20],fonda:15,fonst:11,font:2,forget:19,form:2,format:[2,10,11,12,21],formula:5,foundat:10,frame:2,free:[2,7,10],fresh:19,from:[2,4,5,8,11,12,13,15,19],from_csv:20,from_id:20,from_json:20,galleri:2,gandi:12,gener:[10,19],get:[0,4,5,6,7,11,15],get_color:21,get_config:21,get_desktop:2,get_dir:20,get_epoch:21,get_fil:20,get_filt:[1,2],get_font:2,get_json:21,get_queri:15,get_rang:7,git:19,gnome:21,gnu:[10,21],gran:10,great:10,group:7,ha:2,happi:11,have:[10,22],he:20,header:[1,4],hello:[12,21],hi:20,hidden:[2,12,17,21],hide:[2,6],himself:20,home:[2,3,10,11,12,15,17,21,22],hope:10,html:20,http:[10,19,21],httpx:21,i18n:10,i:[2,12,19,21],id:[11,15],id_ext:20,id_fold:20,id_par:20,idea:20,identityfield:15,idl:10,idlc:10,imag:[10,13,20],immedi:20,impli:10,impress:[2,10],impress_eps_export:1,includ:10,index:[0,4,14,20],info:[4,5,10,11,14,19],info_debug:[11,14,21],inform:[20,22],ingrid:[12,15,21],init:20,initi:15,inputbox:11,insert:[4,9,13,14],insert_menu_in_calc:14,insid:9,instal:[0,10,11,15,21,22],instanc:[1,11],instruct:20,integ:10,intern:[2,10],introduct:0,invers:10,ipifi:21,is_dir:20,is_fil:20,is_mac:21,is_protect:9,is_win:21,iso:20,issu:22,iter:11,jane:15,januari:16,jefferson:20,join:11,json:11,json_dump:21,json_load:21,jun:21,kei:[5,10],keyboard:10,kill:20,kim:15,know:20,label:[10,14],lang:21,languag:[10,21],languaj:21,last:[7,9],later:10,layer:11,left:8,legacy_table_nam:15,len:[2,9],lessen:20,letmein:[2,9,21],letter_lov:21,lh:21,lib:10,librari:[0,1,2,3,4,12,14,20,21,23],libre_offic:20,libreoffic:[2,10,11,12,19,21,22],license_:10,license_en:10,light:20,like:[5,10],limit:2,line:[2,21],link:10,linux:21,list:11,list_of_list:21,local:[12,19],localcrang:6,log:11,logo:[10,20],look:[2,10,21],loren:[12,15],loshap:6,love:12,ls:21,lu20665x29msz:20,m:14,mac:21,macro:[10,11,13,14,19],mai:[16,21],mail1:12,mail2:12,mail3:12,mail:12,main:[2,21],major:11,make:[11,13,19],manag:10,mandatori:1,mani:2,manipul:[4,11],march:16,marion:15,mau:[2,3,10,12,15,17,20,21,22],mbox:12,md:20,me:20,measur:21,member:20,memori:2,menu:13,menu_main:10,merchant:10,merg:[7,20],merge_zip:20,merged_area:7,messag:[11,12],message1:12,message2:12,meta:15,method:[8,11,20],mi:10,mine:20,model:15,modifi:[2,10],modul:[0,21],module1:21,month:16,more:[9,10,11,12,20,21],move:[4,10,19],mri:11,msg:[2,22],msgbox:[2,3,5,6,7,9,11,14,17,20,21,22,23],multi:10,multipl:[7,9,20],mx:12,my:[0,10,14,21,22],my_app:21,my_extens:21,my_nam:9,mydoc:2,myfil:[2,20],myfirstextens:19,myfirstextension_v0:19,mygreatextens:10,mymacro:14,n:[5,7,10,12,19,20],name:[1,4,7,11,14,15,20,21,22],name_16:10,name_26:10,name_sourc:9,name_target:9,nativ:8,nbest:12,ncell:5,necesari:8,need:[15,21,22],net:[10,12,19,20],new_nam:20,new_path:2,new_sheet:9,newnam:9,newsheet2:9,newsheet:9,next:7,next_cel:7,noexist:12,nombr:10,none:21,normal:[10,21],nosoffic:20,novak:15,now:[5,19,20,21],nwho:12,obj:[11,22],object:[2,6,9,11,22],od:[2,9,10,20],odb:[3,15],odt:[2,20,21],officemenubar:10,ok:21,one:[7,9,10,12,20,22],onli:[2,9,10,21],open:[10,11,17,22],oper:21,option1:10,option:[10,20],org:[10,21],origin:[2,6,11],os:[20,21],other:[2,6,8,9,12,20,21],other_nam:[2,20],othersheet:9,ott:20,our:[],out:21,output:21,overview:0,oxt:[19,20],p:20,pacman:19,page:[0,10],paramet:0,parent:4,part:10,particular:10,pass:10,password:[2,4,12,21],past:17,path:[0,3,11,12,15,17,21],path_dir:20,path_fil:20,path_hom:20,path_new:20,path_pygettext:10,path_python:20,path_sav:12,path_temp:20,path_tmp:20,path_url:20,path_zip:20,pathlib:20,pc:11,pdf:[11,20],peewe:15,pictur:[17,20,21],pip:15,planet:22,pleas:[10,22],png:[10,20,21],popen:21,port:12,posit:[7,9],possibl:[10,12],postscript:1,pot:[10,19],present:1,presentationdocu:1,previous:2,print:[2,15],privat:21,probabl:11,problem:22,process:22,product:[13,22],program:11,project:[10,19,20,21,22],properti:[10,11],protect:4,provid:19,prueba:10,publish:10,purpos:10,py:[0,2,10,19],python3:10,python:[5,11,19,21],pyuno:[2,6,22],queri:15,question:11,r2:7,r3:7,r4:7,r:[7,21,22],ra:7,rand:5,rang:[2,4,5,6,11,16],range_address:7,rango:[5,7,8],rapid:19,rdb:10,read:[2,4,11],read_bin:20,receiv:[10,20],recommend:[10,19],recurs:20,red:9,redistribut:10,regard:[12,21],region:7,regmerg:10,rel:10,rememb:[1,2,3,4,12,20,21,23],remerg:10,remov:[4,14],render:11,replac:11,replace_ext:20,repositori:19,request:21,requir:0,reset:9,respond:12,result:[2,20,21],rgb:9,right:8,row:[5,6,7,8,15],rtf:2,run:21,run_in_thread:[2,21],runtimeuid:2,rw:21,s:[10,11,19],safe_for_delet:20,same:[7,9,10,20,21],save:[11,12,13,22],save_bin:20,save_data:21,save_image_from_clipboard:17,save_log:22,save_tmp:20,sb:2,script:19,sdk:[10,19],search:0,second:21,secret:21,secur:12,see:10,select:[4,11,13],self:8,semant:10,send:[11,21],send_email:12,sent:12,server:12,servic:2,set:[2,4,5,10,13,20],set_config:21,setvalu:2,sha256:21,sha512:21,shape:6,share:10,sheet1:9,sheet2:9,sheet:[0,4,5,6,7,8,11,16],shell:22,shift:[10,14],shortcut:[10,14],should:[8,10],show:[2,6,10,11,14,22],show_info_debug:14,show_messag:21,show_tim:21,simpl:11,size:[16,20],sleep:[2,21],soffic:[10,20],sofia:15,softwar:10,sometim:22,sophia:12,sort:4,sourc:[8,19,20],space:10,special:4,spreadsheet:9,srv:[2,20],ssl:12,standard:21,star:[1,2,7],start:[2,10,19,21,22],start_clock:21,start_column:7,start_row:7,start_tim:21,startcolumn:7,startrow:7,statu:2,stop:21,stop_clock:21,stop_tim:21,string:[5,10,11],style:18,stylenam:2,sub:21,subdir:20,subdirectori:20,subject:12,submenu:14,successfulli:19,sudo:19,sun:[1,2],support:[2,19,21],svfilteroptionsdialog:1,svg:20,svtool:1,system:[11,21],t:[10,19,20],t_shift_mod1_mod2:10,tab:4,tabl:13,taper:20,target:[8,17,20],technic:21,temp:11,temp_dir:20,templat:21,templatenam:1,tempor:11,teresa:22,term:10,test:[2,15,19,20,21,22],text:[2,10,11,21],than:12,thi:[2,10,19,20,21,22],thing:2,thoma:20,thread:[2,11,12],three:[9,20,22],thunderbird:12,ticket:22,time:[5,11,22],timer:11,timer_nam:21,titl:[10,21],tmp:20,tmp_:20,to_csv:20,to_json:20,to_pdf:2,to_system:20,to_url:20,todai:[5,21],token:21,too:[10,12,21],tool:[0,10,11,14],toolbar:10,toolkit:2,total:[16,21],tu:10,tupl:[4,10,11,15,20],tuple_of_tupl:21,two:[9,10,20],txt:[20,22],type:[1,3,5,6,11,21,23],type_extens:10,u:15,ubuntu:19,ui:2,uicompon:1,uinam:[1,2],under:10,uniqu:10,uno:[2,11],uno_packag:20,unopkg:[10,19],unprotect:9,unzip:11,up:8,update_status_bar:2,urd:10,url:[10,11],url_open:21,us:[1,2,7,8,9,10,11,12,13,19,20,21,22],use_local:10,used_area:7,user:[9,12,19,20,21],userdata:1,usr:10,utf8:20,v:10,valid:9,valor:10,valu:[2,5,10],variant:21,verifi:[11,22],version:21,video:21,vim:10,visibl:[4,7],wai:[12,20],walk:20,walk_dir:20,want:[10,20],warn:11,warranti:10,we:12,web:21,what:10,when:[10,20],where:10,who:20,window:21,without:[2,10,20],wizard:10,work:21,world:5,write:4,writer:[0,2,10,11,13],writer_table_set_styl:18,www:10,x:21,xl:2,xlsx:2,xml:20,xpathset:20,xr:21,you:[2,10,11,12,15,19,20,21,22],your:[10,11,12,21,22],yournam:10,zaz:[10,14,19,20],zazeasymacro_v0:20,zip:11,zip_cont:20},titles:["Welcome to ZAZ\u2019s documentation!","Apendixes","Application","Base","Calc","Data","Document","Cell and ranges","Manipulate ranges","Sheets","Configuration","Library easymacro.py","Email","Examples","For Application","For Base","For Calc","For Draw","For Writer","Introduction","Paths and files","Tools","Tools for debug","Writer"],titleterms:{"catch":22,"default":10,"export":2,"function":10,"new":[2,3,9],For:[14,15,16,17,18],If:2,Is:9,To:2,activ:9,all:[1,9],ani:20,apendix:1,applic:[2,14,20],author:10,autostyl:18,base:[3,15],binari:20,box:[21,22],calc:[1,4,16],call:[2,21,22],cell:[7,16],clipboard:17,close:2,code:9,color:[9,21],configur:[10,20,21],contain:[2,9],content:[0,11,13],copi:[2,8,9,20],count:[2,9],creat:[2,15],csv:20,current:[2,6,23],custom:14,data:[5,15,16,20],databas:3,date:21,debug:22,decrypt:21,delet:[8,14,20],dictionari:21,digest:21,dir:[2,20],directori:20,dispatch:2,doc:[2,6,23],document:[0,6,9,20],domain:10,draw:17,easymacro:11,email:12,encrypt:21,error:[21,22],exampl:13,except:22,execut:20,exist:20,extens:[10,19,20],extern:21,file:[10,20,22],file_nam:2,filter:[1,2],first:19,fonst:2,format:20,from:[9,17,20,21],get:[1,2,9,20,21],header:6,home:20,icon:10,id:[10,20],imag:17,index:9,indic:0,info:[7,20,21,22],info_debug:22,inform:10,inputbox:21,insert:[8,15],instal:[19,20],instanc:2,introduct:19,is_modifi:2,is_read_onli:2,is_sav:2,iter:2,join:20,json:[20,21],librari:11,libreoffic:20,licens:10,list:21,local:10,log:22,macro:21,main:10,make:[14,21],manipul:8,menu:[10,14],messag:[21,22],method:2,move:[8,9],mri:22,my:19,name:[2,9,10],obj:2,open:[2,20,21],overview:19,paramet:10,parent:[9,10],password:9,past:2,path:[2,10,20],pc:21,pdf:2,program:[10,21],properti:[2,21],protect:9,py:11,pygettext:10,python:20,question:21,rang:[7,8],read:[5,20],remov:9,render:21,replac:20,requir:19,s:0,save:[2,17,20,21],select:[2,6,8,15,20],send:12,set:[9,18],set_focu:2,sheet:[1,9],show:21,simpl:21,sort:9,special:7,status_bar:2,string:21,system:20,tab:[6,9],tabl:[0,15,18],temp:20,tempor:20,test:10,text:20,thread:21,time:21,timer:21,titl:2,tool:[21,22],tupl:[9,21],type:[2,10,20],uid:2,unzip:20,url:[20,21],verifi:20,version:10,visibl:[2,9],warn:21,welcom:0,write:5,writer:[18,23],zaz:0,zip:20,zoom:2}}) \ No newline at end of file +Search.setIndex({docnames:["index","main/apendixes","main/application","main/base","main/calc","main/calc_data","main/calc_doc","main/calc_ranges","main/calc_ranges2","main/calc_sheets","main/config","main/easymacro","main/email","main/examples","main/examples_app","main/examples_base","main/examples_calc","main/examples_draw","main/examples_writer","main/intro","main/paths","main/tools","main/tools_for_debug","main/writer"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["index.rst","main/apendixes.rst","main/application.rst","main/base.rst","main/calc.rst","main/calc_data.rst","main/calc_doc.rst","main/calc_ranges.rst","main/calc_ranges2.rst","main/calc_sheets.rst","main/config.rst","main/easymacro.rst","main/email.rst","main/examples.rst","main/examples_app.rst","main/examples_base.rst","main/examples_calc.rst","main/examples_draw.rst","main/examples_writer.rst","main/intro.rst","main/paths.rst","main/tools.rst","main/tools_for_debug.rst","main/writer.rst"],objects:{},objnames:{},objtypes:{},terms:{"0":[1,7,9,10,14,18,19,20,22],"008080":21,"02":19,"04":19,"06":[12,20,21],"07":19,"080315":21,"082211":21,"09":21,"0k":21,"1":[2,5,7,8,9,10,15,18,19,20,21,22],"10":[2,5,7,9,21],"100":16,"1090":1,"11":[19,21],"12":21,"125":[9,21],"126446":21,"128487":21,"13":[12,21],"14":21,"15":21,"16":21,"17":21,"18":21,"19":21,"2":[2,9,10,15,20,21,22],"20":[19,21],"200":[9,16,21],"2001":15,"2002":15,"2003":15,"2004":15,"2005":15,"2021":[12,19,20,21],"21":[20,21],"22":21,"23":[12,19,21],"24":[12,20],"26":[12,21],"27":21,"29":20,"3":[7,10,15,19,20],"30":12,"300":16,"34":21,"35":21,"3m":21,"4":[7,15,20,21],"40":19,"400":16,"41":19,"42":21,"43":[12,21],"46":21,"47":[20,21],"48":21,"495":12,"5":[5,7,15,21],"50":19,"500":[16,22],"53":[19,21],"6":[7,21],"7":19,"7iznrbyw":12,"8859":20,"9":10,"abstract":11,"case":21,"catch":11,"class":15,"default":[2,8,12,20,21],"do":20,"export":11,"extensi\u00f3n":10,"final":[1,19],"float":5,"function":[19,22],"import":[1,2,3,4,11,12,15,20,21,22,23],"int":5,"new":[1,4,10,11,15,17,19],"null":15,"opci\u00f3n":10,"public":10,"return":[2,14,15,16,17,18,21,22],"super":21,"true":[1,2,5,10,12,15,17,20,21],"while":2,A:10,And:22,By:[7,9],FOR:10,For:[0,2,10,13,20,21],If:[6,9,10,11,12,22],In:[10,19,21],Is:[2,4,10,21],It:[10,11],Not:8,Of:21,One:[7,9],Ons:10,Or:20,The:[5,10],To:11,With:[2,19],_2:9,a15:16,a1:[1,5,7,8,16],a2:[1,5],a3:5,a4:5,a5:[5,8],a6:5,a7:5,absolut:[7,10],academ:18,access:9,act:20,action:[20,21],activ:[2,4,6,7,8,11,16,18,22,23],active_sheet:[5,7,8,9,16],add:[7,10,19,20,22],addin:[10,19],addonmenu:10,address:[7,12],all:[0,2,4,7,10,12,20],along:10,alpha_deg:18,alt:[10,14],alwai:[1,2,3,4,8,9,11,12,20,21,22,23],an:[11,20],ani:[2,10,11,12,21,22],apendix:[0,2],api:[11,20,21],app:[1,2,3,4,5,6,7,8,9,11,12,14,15,16,17,18,20,21,22,23],app_nam:[20,21],appli:9,applic:[0,10,11,13,21],april:16,apt:19,ar:[5,11,12,20,21],arbitrari:2,archlinux:19,area:7,arg:[2,21],argument:[2,10],arrai:5,array_formula:5,ask:20,attach:12,automat:[5,10,16,22],autostyl:13,awt:2,b1:7,b2:7,b5:5,b:[1,7,20],bar:2,base:[0,10,11,13],base_insert_data:15,base_select_data:15,basedatefield:15,basemodel:15,basic:[19,21],bcc:12,been:2,befor:[10,22],bergman:[12,15,21],best:21,better:[21,22],between:11,bin:[10,20],binari:11,blank:10,bmp:10,bodi:12,bool:10,born:15,both:21,box:11,build:20,bytesequ:1,c10:5,c1:8,c4:7,c5:8,c:19,cach:20,calc:[0,2,10,11,13,14,19,20],calc_data_to_cel:16,calcul:[16,21],call:11,call_dispatch:2,call_macro:21,can:[2,10,11,12,15,19,20,21,22],captur:21,catch_except:22,caution:[2,9,20,21],cc:12,cd:[10,19],cell:[4,5,8,11,13],celldeletemod:8,cellinsertmod:8,chang:20,charfield:15,clean:9,client:12,clipboard:[2,13],clock:21,clone:19,close:[11,12,17],code:[4,10,11,22],code_nam:9,color:[4,11],color_html:21,color_nam:21,color_rgb:21,column:[6,7,8],columna:7,com:[1,2,12],command:[2,21],commandurl:14,common:2,complex:[11,21],compon:[10,19],compress:19,con:11,conf:[10,12,21],config:[12,20,21],configur:[0,11,12],confirm:20,connect:[3,12,15],contact:[9,15,21],contacto:15,contain:[4,11],content:[2,20],context:[2,10,20],control:2,copi:[4,10,11,13,19,22],copy_from:[8,9],copy_sheet:9,copy_to:[8,9],copyrang:8,correctli:10,correo:12,cotillar:15,count:[4,11],cours:[19,21],creat:[10,11,13,19],create_inst:2,create_t:15,cryptographi:21,csv:11,ctrl:[10,14],cuat:19,current:[4,7,8,10,11,21],current_region:[7,16],custom:[11,13],d1:8,d5:7,d8:7,d:7,damn:5,danger:21,darkblu:21,darken:20,data:[1,2,4,7,11,13,14,21,22],data_to_dict:21,databas:[11,15],database_proxi:15,databaseproxi:15,date:[5,11,15,22],datetim:[5,15],db:[3,15],de:10,debug:[0,2,7,11,12,14,20,21],decrypt:11,def:[2,14,15,16,17,18,21,22],defin:20,deg:18,delet:[4,11,13],delete_menu:14,delin:20,descript:10,desktop1:2,desktop2:2,desktop:[2,21],detail:10,detect:5,dev:19,develop:[10,11,19],dialog:2,dialogprovider2:2,dict:[5,12,15],dict_to_properti:21,dictionari:[5,10,11],difficult:22,digest:11,dir:11,dir_tmp:20,directli:[11,21],directori:[2,11,19],dispatch:11,displai:10,display_nam:10,displaynam:10,distribut:10,doc:[1,3,4,7,8,9,11,15,16,17,18,20],doc_sourc:9,document:[2,4,11,17,21],documentservic:1,docx:2,domain:19,don:[19,20],done:19,down:8,download:[19,20,21],draw:[0,2,10,13],drwxr:21,ds:2,dt:20,e10:7,e15:5,e1:8,e4:8,e6:8,e7:7,each:10,easi:21,easili:11,easymacro:[0,1,2,3,4,12,15,20,21,22,23],echochar:21,edit:10,either:10,el:10,elmau:[10,19,20],els:15,email:[0,11],empti:7,en:[1,10,11],enabl:1,encapsul:1,encapsulado:1,encod:20,encrypt:11,encrypt_decrypt:21,end:[2,7,21],end_column:7,end_row:7,endcolumn:7,endrow:7,entir:8,ep:1,epoch:21,eps_encapsulated_postscript:1,epub:12,error:11,errorbox:21,es:[1,10],etc:2,even:10,everi:21,exactli:10,exampl:[0,2,10,14],excel_doc:2,except:11,execut:[11,15,21],exist:[2,9,11,15],exists_app:20,exit:20,ext:20,extens:[0,2,11,22],extensionnam:10,extern:11,extract:20,f12:7,f:[1,2,5,7,10,20],fals:[1,2,15],februari:16,field:[1,12],file1:12,file2:12,file:[0,2,11,12,19],file_nam:[20,21],file_test:10,fileformatvers:1,filter:[0,11,20],filter_nam:2,filterservic:1,finish:21,first:[0,5],fit:10,flag:1,folder:[10,12,20],fonda:15,fonst:11,font:2,forget:19,form:2,format:[2,10,11,12,21],formula:[5,13],foundat:10,frame:2,free:[2,7,10],fresh:19,from:[2,4,5,8,11,12,13,15,19],from_csv:20,from_id:20,from_json:20,galleri:2,gandi:12,gener:[10,19],get:[0,4,5,6,7,11,15],get_color:21,get_config:21,get_desktop:2,get_dir:20,get_epoch:21,get_fil:20,get_filt:[1,2],get_font:2,get_json:21,get_queri:15,get_rang:7,git:19,gnome:21,gnu:[10,21],gran:10,great:10,group:7,ha:2,happi:11,have:[10,22],he:20,header:[1,4],hello:[12,21],hi:20,hidden:[2,12,17,21],hide:[2,6],himself:20,home:[2,3,10,11,12,15,17,21,22],hope:10,html:20,http:[10,19,21],httpx:21,i18n:10,i:[2,12,19,21],id:[11,15],id_ext:20,id_fold:20,id_par:20,idea:20,identityfield:15,idl:10,idlc:10,imag:[10,13,20],immedi:20,impli:10,impress:[2,10],impress_eps_export:1,includ:10,index:[0,4,14,20],info:[4,5,10,11,14,19],info_debug:[11,14,21],inform:[20,22],ingrid:[12,15,21],init:20,initi:15,inputbox:11,insert:[4,9,13,14],insert_math:18,insert_menu_in_calc:14,insid:9,instal:[0,10,11,15,21,22],instanc:[1,11],instruct:20,integ:10,intern:[2,10],introduct:0,invers:10,ipifi:21,is_dir:20,is_fil:20,is_mac:21,is_protect:9,is_win:21,iso:20,issu:22,iter:11,jane:15,januari:16,jefferson:20,join:11,json:11,json_dump:21,json_load:21,jun:21,kei:[5,10],keyboard:10,kill:20,kim:15,know:20,label:[10,14],lambda_:18,lang:21,languag:[10,21],languaj:21,last:[7,9],later:10,layer:11,left:8,legacy_table_nam:15,len:[2,9],lessen:20,letmein:[2,9,21],letter_lov:21,lh:21,lib:10,librari:[0,1,2,3,4,12,14,20,21,23],libre_offic:20,libreoffic:[2,10,11,12,19,21,22],license_:10,license_en:10,light:20,like:[5,10],limit:2,line:[2,21],link:10,linux:21,list:11,list_of_list:21,local:[12,19],localcrang:6,log:11,logo:[10,20],look:[2,10,21],loren:[12,15],loshap:6,love:12,ls:21,lu20665x29msz:20,m:14,m_:18,m_t:18,mac:21,macro:[10,11,13,14,19],mai:[16,21],mail1:12,mail2:12,mail3:12,mail:12,main:[2,21],major:11,make:[11,13,19],manag:10,mandatori:1,mani:2,manipul:[4,11],march:16,marion:15,math:13,mau:[2,3,10,12,15,17,20,21,22],mbox:12,md:20,me:20,measur:21,member:20,memori:2,menu:13,menu_main:10,merchant:10,merg:[7,13,20],merge_by_row:16,merge_zip:20,merged_area:7,messag:[11,12],message1:12,message2:12,meta:15,method:[8,11,20],mi:10,mine:20,model:15,modifi:[2,10],modul:[0,21],module1:21,month:16,more:[9,10,11,12,20,21],move:[4,10,19],mri:11,msg:[2,22],msgbox:[2,3,5,6,7,9,11,14,17,20,21,22,23],multi:10,multipl:[7,9,20],mx:12,my:[0,10,14,21,22],my_app:21,my_extens:21,my_nam:9,mydoc:2,myfil:[2,20],myfirstextens:19,myfirstextension_v0:19,mygreatextens:10,mymacro:14,n:[5,7,10,12,19,20],name:[1,4,7,11,14,15,20,21,22],name_16:10,name_26:10,name_sourc:9,name_target:9,nativ:8,nbest:12,ncell:5,necesari:8,need:[15,21,22],net:[10,12,19,20],new_nam:20,new_path:2,new_sheet:9,newnam:9,newsheet2:9,newsheet:9,next:7,next_cel:7,noexist:12,nombr:10,none:21,normal:[10,21],nosoffic:20,novak:15,now:[5,19,20,21],nwho:12,obj:[11,22],object:[2,6,9,11,22],od:[2,9,10,20],odb:[3,15],odt:[2,20,21],officemenubar:10,ok:21,one:[7,9,10,12,20,22],onli:[2,9,10,21],open:[10,11,17,22],oper:21,option1:10,option:[10,20],org:[10,21],origin:[2,6,11],os:[20,21],other:[2,6,8,9,12,20,21],other_nam:[2,20],othersheet:9,ott:20,our:[],out:21,output:21,over:18,overview:0,oxt:[19,20],p:20,pacman:19,page:[0,10],paramet:0,parent:4,part:10,particular:10,pass:10,password:[2,4,12,21],past:[16,17],path:[0,3,11,12,15,17,21],path_dir:20,path_fil:20,path_hom:20,path_new:20,path_pygettext:10,path_python:20,path_sav:12,path_temp:20,path_tmp:20,path_url:20,path_zip:20,pathlib:20,pc:11,pdf:[11,20],peewe:15,pictur:[17,20,21],pip:15,planet:22,pleas:[10,22],png:[10,20,21],popen:21,port:12,posit:[7,9],possibl:[10,12],postscript:1,pot:[10,19],present:1,presentationdocu:1,previous:2,print:[2,15],privat:21,probabl:11,problem:22,process:22,product:[13,22],program:11,project:[10,19,20,21,22],properti:[10,11],protect:4,provid:19,prueba:10,publish:10,purpos:10,py:[0,2,10,19],python3:10,python:[5,11,19,21],pyuno:[2,6,22],queri:15,question:11,r2:7,r3:7,r4:7,r:[7,21,22],ra:7,rand:5,rang:[2,4,5,6,11,16],range_address:7,rango:[5,7,8,16],rapid:19,rdb:10,read:[2,4,11],read_bin:20,receiv:[10,20],recommend:[10,19],recurs:20,red:9,redistribut:10,regard:[12,21],region:7,regmerg:10,rel:10,rememb:[1,2,3,4,12,20,21,23],remerg:10,remov:[4,14],render:11,replac:11,replace_ext:20,repositori:19,request:21,requir:0,reset:9,respond:12,result:[2,20,21],rgb:9,right:8,row:[5,6,7,8,13,15],rtf:2,run:21,run_in_thread:[2,21],runtimeuid:2,rw:21,s:[10,11,19],safe_for_delet:20,same:[7,9,10,20,21],save:[11,12,13,22],save_bin:20,save_data:21,save_image_from_clipboard:17,save_log:22,save_tmp:20,sb:2,script:19,sdk:[10,19],search:0,second:21,secret:21,secur:12,see:10,select:[4,11,13,16,18],self:8,semant:10,send:[11,21],send_email:12,sent:12,server:12,servic:2,set:[2,4,5,10,13,20],set_config:21,setvalu:2,sha256:21,sha512:21,shape:6,share:10,sheet1:9,sheet2:9,sheet:[0,4,5,6,7,8,11,16],shell:22,shift:[10,14],shortcut:[10,14],should:[8,10],show:[2,6,10,11,14,22],show_info_debug:14,show_messag:21,show_tim:21,simpl:11,size:[16,20],sleep:[2,21],soffic:[10,20],sofia:15,softwar:10,sometim:22,sophia:12,sort:4,sourc:[8,19,20],space:10,special:4,spreadsheet:9,sqrt:18,srv:[2,20],ssl:12,standard:21,star:[1,2,7],start:[2,10,19,21,22],start_clock:21,start_column:7,start_row:7,start_tim:21,startcolumn:7,startrow:7,statu:2,stop:21,stop_clock:21,stop_tim:21,string:[5,10,11],style:18,stylenam:2,sub:21,subdir:20,subdirectori:20,subject:12,submenu:14,successfulli:19,sudo:19,sun:[1,2],support:[2,19,21],svfilteroptionsdialog:1,svg:20,svtool:1,system:[11,21],t:[10,18,19,20],t_shift_mod1_mod2:10,tab:4,tabl:13,taper:20,target:[8,17,20],technic:21,temp:11,temp_dir:20,templat:21,templatenam:1,tempor:11,teresa:22,term:10,test:[2,15,19,20,21,22],text:[2,10,11,18,21],than:12,thi:[2,10,19,20,21,22],thing:2,thoma:20,thread:[2,11,12],three:[9,20,22],thunderbird:12,ticket:22,time:[5,11,22],timer:11,timer_nam:21,titl:[10,21],tmp:20,tmp_:20,to_csv:20,to_json:20,to_pdf:2,to_system:20,to_url:20,todai:[5,21],token:21,too:[10,12,21],tool:[0,10,11,14],toolbar:10,toolkit:2,total:[16,21],tu:10,tupl:[4,10,11,15,20],tuple_of_tupl:21,two:[9,10,20],txt:[20,22],type:[1,3,5,6,11,21,23],type_extens:10,u:15,ubuntu:19,ui:2,uicompon:1,uinam:[1,2],under:10,uniqu:10,uno:[2,11],uno_packag:20,unopkg:[10,19],unprotect:9,unzip:11,up:8,update_status_bar:2,urd:10,url:[10,11],url_open:21,us:[1,2,7,8,9,10,11,12,13,19,20,21,22],use_local:10,used_area:7,user:[9,12,19,20,21],userdata:1,usr:10,utf8:20,v:10,valid:9,valor:10,valu:[2,5,10],variant:21,verifi:[11,22],version:21,video:21,vim:10,visibl:[4,7,13],wai:[12,20],walk:20,walk_dir:20,want:[10,20],warn:11,warranti:10,we:12,web:21,what:10,when:[10,20],where:10,who:20,window:21,without:[2,10,20],wizard:10,work:21,world:5,write:4,writer:[0,2,10,11,13],writer_table_set_styl:18,www:10,x:21,xl:2,xlsx:2,xml:20,xpathset:20,xr:21,you:[2,10,11,12,15,19,20,21,22],your:[10,11,12,21,22],yournam:10,zaz:[10,14,19,20],zazeasymacro_v0:20,zip:11,zip_cont:20},titles:["Welcome to ZAZ\u2019s documentation!","Apendixes","Application","Base","Calc","Data","Document","Cell and ranges","Manipulate ranges","Sheets","Configuration","Library easymacro.py","Email","Examples","For Application","For Base","For Calc","For Draw","For Writer","Introduction","Paths and files","Tools","Tools for debug","Writer"],titleterms:{"catch":22,"default":10,"export":2,"function":10,"new":[2,3,9],For:[14,15,16,17,18],If:2,Is:9,To:2,activ:9,all:[1,9],ani:20,apendix:1,applic:[2,14,20],author:10,autostyl:18,base:[3,15],binari:20,box:[21,22],calc:[1,4,16],call:[2,21,22],cell:[7,16],clipboard:17,close:2,code:9,color:[9,21],configur:[10,20,21],contain:[2,9],content:[0,11,13],copi:[2,8,9,16,20],count:[2,9],creat:[2,15],csv:20,current:[2,6,23],custom:14,data:[5,15,16,20],databas:3,date:21,debug:22,decrypt:21,delet:[8,14,20],dictionari:21,digest:21,dir:[2,20],directori:20,dispatch:2,doc:[2,6,23],document:[0,6,9,20],domain:10,draw:17,easymacro:11,email:12,encrypt:21,error:[21,22],exampl:13,except:22,execut:20,exist:20,extens:[10,19,20],extern:21,file:[10,20,22],file_nam:2,filter:[1,2],first:19,fonst:2,format:20,formula:18,from:[9,17,20,21],get:[1,2,9,20,21],header:6,home:20,icon:10,id:[10,20],imag:17,index:9,indic:0,info:[7,20,21,22],info_debug:22,inform:10,inputbox:21,insert:[8,15,18],instal:[19,20],instanc:2,introduct:19,is_modifi:2,is_read_onli:2,is_sav:2,iter:2,join:20,json:[20,21],librari:11,libreoffic:20,licens:10,list:21,local:10,log:22,macro:21,main:10,make:[14,21],manipul:8,math:18,menu:[10,14],merg:16,messag:[21,22],method:2,move:[8,9],mri:22,my:19,name:[2,9,10],obj:2,open:[2,20,21],overview:19,paramet:10,parent:[9,10],password:9,past:2,path:[2,10,20],pc:21,pdf:2,program:[10,21],properti:[2,21],protect:9,py:11,pygettext:10,python:20,question:21,rang:[7,8],read:[5,20],remov:9,render:21,replac:20,requir:19,row:16,s:0,save:[2,17,20,21],select:[2,6,8,15,20],send:12,set:[9,18],set_focu:2,sheet:[1,9],show:21,simpl:21,sort:9,special:7,status_bar:2,string:21,system:20,tab:[6,9],tabl:[0,15,18],temp:20,tempor:20,test:10,text:20,thread:21,time:21,timer:21,titl:2,tool:[21,22],tupl:[9,21],type:[2,10,20],uid:2,unzip:20,url:[20,21],verifi:20,version:10,visibl:[2,9,16],warn:21,welcom:0,write:5,writer:[18,23],zaz:0,zip:20,zoom:2}}) \ No newline at end of file diff --git a/doc/published.sh b/doc/published.sh index 6277a25..5bd5669 100755 --- a/doc/published.sh +++ b/doc/published.sh @@ -1,3 +1,3 @@ #!/bin/bash -rsync -ravz --delete build/ elmau.net:/opt/www/doc/zaz/ +rsync -ravz --delete build/ 152.89.107.109:/opt/doc.cuates.net/zaz/ diff --git a/doc/source/main/examples_calc.rst b/doc/source/main/examples_calc.rst index bc0188a..7d56286 100644 --- a/doc/source/main/examples_calc.rst +++ b/doc/source/main/examples_calc.rst @@ -36,3 +36,12 @@ Copy visible cells doc.active['A15'].select() doc.paste() + +Merge by row +^^^^^^^^^^^^ + +.. code-block:: python + + rango = app.selection + rango.merge_by_row() + diff --git a/source/easymacro.py b/source/easymacro.py index b125752..445b00e 100644 --- a/source/easymacro.py +++ b/source/easymacro.py @@ -3223,6 +3223,7 @@ class LOWriterTextRange(object): self._is_paragraph = self.obj.ImplementationName == 'SwXParagraph' self._is_table = self.obj.ImplementationName == 'SwXTextTable' self._is_text = self.obj.ImplementationName == 'SwXTextPortion' + self._is_section = not self.obj.TextSection is None self._parts = [] if self._is_paragraph: self._parts = [LOWriterTextRange(p, doc) for p in obj] @@ -3288,6 +3289,10 @@ class LOWriterTextRange(object): def is_text(self): return self._is_text + @property + def is_section(self): + return self._is_section + @property def text(self): return self.obj.Text @@ -3296,15 +3301,63 @@ class LOWriterTextRange(object): def cursor(self): return self.text.createTextCursorByRange(self.obj) + @property + def text_cursor(self): + return self.text.createTextCursor() + @property def dp(self): return self._doc.dp - def delete(self): + @property + def paragraph(self): cursor = self.cursor cursor.gotoStartOfParagraph(False) cursor.gotoNextParagraph(True) - cursor.String = '' + return LOWriterTextRange(cursor, self._doc) + + def goto_start(self): + if self.is_section: + rango = self.obj.TextSection.Anchor.Start + else: + rango = self.obj.Start + return LOWriterTextRange(rango, self._doc) + + def goto_end(self): + if self.is_section: + rango = self.obj.TextSection.Anchor.End + else: + rango = self.obj.End + return LOWriterTextRange(rango, self._doc) + + def goto_previous(self, expand=True): + cursor = self.cursor + cursor.gotoPreviousParagraph(expand) + return LOWriterTextRange(cursor, self._doc) + + def goto_next(self, expand=True): + cursor = self.cursor + cursor.gotoNextParagraph(expand) + return LOWriterTextRange(cursor, self._doc) + + def go_left(self, from_self=True, count=1, expand=False): + cursor = self.cursor + if not from_self: + cursor = self.text_cursor + cursor.gotoRange(self.obj, False) + cursor.goLeft(count, expand) + return LOWriterTextRange(cursor, self._doc) + + def go_right(self, from_self=True, count=1, expand=False): + cursor = self.cursor + if not from_self: + cursor = self.text_cursor + cursor.gotoRange(self.obj, False) + cursor.goRight(count, expand) + return LOWriterTextRange(cursor, self._doc) + + def delete(self): + self.value = '' return def offset(self): @@ -3332,7 +3385,7 @@ class LOWriterTextRange(object): cursor = self.cursor for i in range(count): self.text.insertControlCharacter(cursor, PARAGRAPH_BREAK, False) - return self._doc.selection + return LOWriterTextRange(cursor, self._doc) def insert_table(self, data): table = self._doc.create_instance(SERVICES['TEXT_TABLE']) @@ -3345,6 +3398,15 @@ class LOWriterTextRange(object): table = LOWriterTextTable(self._doc.tables[name], self._doc) return table + def insert_shape(self, tipo, args={}): + # ~ args['Width'] = args.get('Width', 1000) + # ~ args['Height'] = args.get('Height', 1000) + # ~ args['X'] = args.get('X', 0) + # ~ args['Y'] = args.get('Y', 0) + shape = self._doc.dp.add(tipo, args) + # ~ shape.anchor = self.obj + return shape + def insert_image(self, path, args={}): w = args.get('Width', 1000) h = args.get('Height', 1000) @@ -3482,6 +3544,9 @@ class LOWriter(LODocument): def dp(self): return self.draw_page @property + def shapes(self): + return self.draw_page + @property def draw_page(self): return LODrawPage(self.obj.DrawPage) @@ -3493,6 +3558,10 @@ class LOWriter(LODocument): def cursor(self): return self.obj.Text.createTextCursor() + @property + def view_cursor(self): + return self._cc.ViewCursor + @property def page_styles(self): ps = self.obj.StyleFamilies['PageStyles'] @@ -3510,6 +3579,13 @@ class LOWriter(LODocument): def replace_descriptor(self): return self.obj.createReplaceDescriptor() + @property + def zoom(self): + return self._cc.ViewSettings.ZoomValue + @zoom.setter + def zoom(self, value): + self._cc.ViewSettings.ZoomValue = value + def goto_start(self): self.view_cursor.gotoStart(False) return self.selection @@ -3612,6 +3688,16 @@ class LOShape(LOBaseObject): a = dict(Width=s.Width, Height=s.Height) return a + @property + def position(self): + return self.obj.Position + @property + def x(self): + return self.position.X + @property + def y(self): + return self.position.Y + @property def string(self): return self.obj.String @@ -3644,7 +3730,10 @@ class LOShape(LOBaseObject): def anchor(self, value): if hasattr(value, 'obj'): value = value.obj - self.obj.Anchor = value + try: + self.obj.Anchor = value + except Exception as e: + self.obj.AnchorType = value @property def visible(self): @@ -3778,8 +3867,11 @@ class LODrawPage(LOBaseObject): Connector """ index = self.count + default_height = 3000 + if type_shape == 'Line': + default_height = 0 w = args.pop('Width', 3000) - h = args.pop('Height', 3000) + h = args.pop('Height', default_height) x = args.pop('X', 1000) y = args.pop('Y', 1000) name = args.pop('Name', f'{type_shape.lower()}{index}') @@ -6707,8 +6799,12 @@ class Paths(object): return result @classmethod - def read(cls, path, encoding='utf-8'): - data = Path(path).read_text(encoding=encoding) + def read(cls, path, get_lines=False, encoding='utf-8'): + if get_lines: + with Path(path).open(encoding=encoding) as f: + data = f.readlines() + else: + data = Path(path).read_text(encoding=encoding) return data @classmethod diff --git a/source/zaz.py b/source/zaz.py index 83e6058..4846605 100755 --- a/source/zaz.py +++ b/source/zaz.py @@ -793,8 +793,8 @@ def main(args): def _process_command_line_arguments(): - parser = argparse.ArgumentParser( - description='Make LibreOffice extensions') + parser = argparse.ArgumentParser(description='Make LibreOffice extensions') + parser.add_argument('-new', '--new', dest='new', action='store_true', default=False, required=False) parser.add_argument('-t', '--target', dest='target', default='') @@ -813,6 +813,7 @@ def _process_command_line_arguments(): default=False, required=False) parser.add_argument('-oc', '--only_compress', dest='only_compress', action='store_true', default=False, required=False) + return parser.parse_args()