Permalink
Browse files

Annota cambio versione 3.17.2

  • Loading branch information...
giuserpe committed Nov 29, 2017
1 parent 869ba92 commit 7d60bff5f4b1d83a7dc74ec93cc66c4fad11ee75
@@ -23,7 +23,7 @@ rem ----------------------------------------------------------------------
rem le seguenti identificano la versione del pacchetto
Public Const versioneUF_major= 3 'INCOMPATIBILITA'
Public Const versioneUF_minor= 17 'NUOVE FUNZIONALITA'
Public Const versioneUF_subversion= "2.dev" 'CORREZIONE BUGS
Public Const versioneUF_subversion= "2" 'CORREZIONE BUGS
Sub setta_versione
' ThisComponent.Sheets.getByName("S1").GetCellByPosition(7,295).value = versioneUF_major
' ThisComponent.Sheets.getByName("S1").GetCellByPosition(8,295).value = versioneUF_minor
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="org.giuseppe-vizziello.leeno" />
<version value="3.17.2.dev" />
<version value="3.17.2" />
<publisher>
<name xlink:href="http://leeno.org">LeenO</name>
</publisher>
@@ -4481,7 +4481,7 @@ def importa_listino_leeno_run(arg=None):
#~ viola(12632319,13684991,15790335)
lista_articoli = list()
nome = oSheet.getCellByPosition(2, 0).String
chi(8)
#~ chi(8)
test = uFindStringCol('ATTENZIONE!', 5, oSheet)+1
assembla = DlgSiNo('''Il riconoscimento di descrizioni e sottodescrizioni
dipende dalla colorazione di sfondo delle righe.
@@ -5597,7 +5597,7 @@ def XPWE_in(arg=None):
########################################################################
Lmajor= 3 #'INCOMPATIBILITA'
Lminor= 17 #'NUOVE FUNZIONALITA'
Lsubv= "2.dev" #'CORREZIONE BUGS
Lsubv= "2" #'CORREZIONE BUGS
noVoce =('Livello-0-scritta', 'Livello-1-scritta', 'livello2 valuta', 'comp Int_colonna', 'Ultimus_centro_bordi_lati')
stili_computo =('Comp Start Attributo', 'comp progress', 'comp 10 s','Comp End Attributo')
stili_contab =('Comp Start Attributo_R', 'comp 10 s_R','Comp End Attributo_R')
@@ -6051,7 +6051,7 @@ def autoexec_off(arg=None):
oDoc = XSCRIPTCONTEXT.getDocument()
oSheet = oDoc.getSheets().getByName('M1')
oSheet.getCellByPosition(2,27).String = ''#sUltimus
def autoexec(arg=None):
'''
questa è richiamata da New_File()
@@ -6787,187 +6787,7 @@ def taglia_x(arg=None):
oRange = oSheet.getCellRangeByPosition(sCol, sRow, eCol, eRow)
flags = VALUE + DATETIME + STRING + ANNOTATION + FORMULA + OBJECTS + EDITATTR # FORMATTED + HARDATTR
oSheet.getCellRangeByPosition(sCol, sRow, eCol, eRow).clearContents(flags)
########################################################################
def debug_mt(arg=None): #COMUNE DI MATERA
oDoc = XSCRIPTCONTEXT.getDocument()
oSheet = oDoc.CurrentController.ActiveSheet
#~ chi(oSheet.getCellRangeByName('B278').Type.value)
#~ return
#~ chi(oSheet.getCellRangeByName('a6').CellBackColor)#
#~ return
#~ oSheet.getCellRangeByName('Y254')
#~ return
#~ col1 = 16777072 #16771481
#~ col2 = 16777120 #16771501
#~ for y in reversed(range(3, getLastUsedCell(oSheet).EndRow)):
#~ if oSheet.getCellByPosition(0, y).CellBackColor == 16771481:
#~ oSheet.getCellByPosition(0, y).CellBackColor = 16777072
#~ oSheet.getCellRangeByPosition(1, y, 26, y).clearContents(HARDATTR)
#~ if oSheet.getCellByPosition(0, y).CellBackColor == 16771501:
#~ oSheet.getCellByPosition(0, y).CellBackColor = 16777120
#~ oSheet.getCellRangeByPosition(1, y, 26, y).clearContents(HARDATTR)
#~ return
#~ for y in range(3, getLastUsedCell(oSheet).EndRow):
#~ for x in (29, 30):
#~ oSheet.getCellByPosition(x, y).String= oSheet.getCellByPosition(x, y).String.replace(' ','\n')
#~ chi(len(oSheet.getCellRangeByName('A6').String.split('.')))
#~ return
# SALTA SULLE CELLE
#~ for y in range(Range2Cell()[1]+1, getLastUsedCell(oSheet).EndRow):
for y in reversed(range(0, getLastUsedCell(oSheet).EndRow+1)):
if oSheet.getCellByPosition(0, y).CellStyle in ('Livello-0-scritta', 'Livello-1-scritta'):
oSheet.getRows().removeByIndex(y, 1)
#~ testo = oSheet.getCellByPosition(2, y).String.split('- art. ')[1]
#~ oSheet.getCellByPosition(2, y).String = '- vedi voce art. ' + testo
#~ oSheet.getCellByPosition(5, y).Value = oSheet.getCellByPosition(5, y).Value
#~ _gotoCella(2, y)
#~ chi (len(oSheet.getCellByPosition(0, y).String.split('.')))
#~ _gotoCella(4, y)
#~ return
#~ oSheet.getCellByPosition(6, y).Value = oSheet.getCellByPosition(5, y).Value / 100
#~ if len (oSheet.getCellByPosition(2, y).String) > 5:
#~ oSheet.getCellByPosition(4, y).String = ''
#~ for x in range(3, 3):
#~ if oSheet.getCellByPosition(2, y).Type.value == 'TEXT' and oSheet.getCellByPosition(3, y).Type.value == 'TEXT':
#~ oSheet.getCellByPosition(1, y).String = oSheet.getCellByPosition(1, y).String +' '+oSheet.getCellByPosition(2, y).String
#~ oSheet.getCellByPosition(2, y).String = oSheet.getCellByPosition(3, y).String
#~ oSheet.getCellByPosition(3, y).Value = oSheet.getCellByPosition(4, y).Value
#~ oSheet.getCellByPosition(4, y).Value = oSheet.getCellByPosition(5, y).Value
#~ oSheet.getCellByPosition(5, y).String = ''
#~ if oSheet.getCellByPosition(x, y).getIsMerged() == True:
#~ return
chi("fine")
return
# SPALMA I VALORI
#~ for y in range(0, getLastUsedCell(oSheet).EndRow):
#~ if oSheet.getCellByPosition(0, y).Type.value =='VALUE':
#~ valore = oSheet.getCellByPosition(0, y).Value
#~ else:
#~ oSheet.getCellByPosition(0, y).Value = valore
# COLORA VALORI DIFFERENTI
#~ for y in range(3, getLastUsedCell(oSheet).EndRow):
#~ if oSheet.getCellByPosition(10, y).String != oSheet.getCellByPosition(11, y).String:
#~ if oSheet.getCellByPosition(11, y).String != '':
#~ oSheet.getCellByPosition(10, y).CellBackColor = 16777113
#~ oSheet.getCellByPosition(11, y).CellBackColor = 16777113
#~ # SOSTITUZIONI
test = getLastUsedCell(oSheet).EndRow+1
#~ for y in range(Range2Cell()[1]+1, test):
for y in range(3, test):
if '-' in oSheet.getCellByPosition(13, y).String:
oSheet.getCellByPosition(13, y).String = oSheet.getCellByPosition(13, y).String.replace('-','/')
return
# inserisce numero tabella
#~ for y in range(0, getLastUsedCell(oSheet).EndRow):
#~ if oSheet.getCellByPosition(0, y).CellBackColor == 16777113:
#~ oSheet.getCellByPosition(13, y).Formula = '=VLOOKUP(A'+ str(y+1) + ';strade;2;0)'
#~ oSheet.getCellByPosition(13, y).String = oSheet.getCellByPosition(13, y).String
#~ oSheet.getCellRangeByPosition(0, y, 11, y).merge(True)
#~ return
#~ RECUPERA VIE
#~ vie = list()
#~ n = 0
#~ for y in range(0, getLastUsedCell(oSheet).EndRow):
#~ if oSheet.getCellByPosition(0, y).CellBackColor == 16777113:
#~ oSheet.getCellByPosition(12, y).CellBackColor = 16777113
#~ n += 1
#~ testo = oSheet.getCellByPosition(0, y).String
#~ num = oSheet.getCellByPosition(13, y).Value
#~ el =(n, testo, num)
#~ vie.append(el)
#~ oSheet = oDoc.getSheets().getByName('VIE')
#~ oRange = oSheet.getCellRangeByPosition(0, 1, len(vie[0])-1, len(vie))
#~ lista_come_array = tuple(vie)
#~ oRange.setDataArray(lista_come_array)
#~ crea via e numero
#~ for y in range(0, getLastUsedCell(oSheet).EndRow+1):
#~ if oSheet.getCellByPosition(0, y).CellBackColor == 16777113:
#~ testo = oSheet.getCellByPosition(0, y).String
#~ else:
#~ try:
#~ if oSheet.getCellByPosition(2, y).String != '':
#~ oSheet.getCellByPosition(12, y).String = testo + ', ' + oSheet.getCellByPosition(2, y).String.upper()
#~ else:
#~ oSheet.getCellByPosition(12, y).String = ''
#~ except:
#~ pass
#~ elimina '/' finale
#~ for y in range(0, getLastUsedCell(oSheet).EndRow):
#~ try:
#~ if oSheet.getCellByPosition(9, y).String[-1] == '/':
#~ oSheet.getCellByPosition(9, y).String = oSheet.getCellByPosition(9, y).String[:-1]
#~ except:
#~ pass
#~ return
#~ INSERISCI PARTICELLE
#~ for y in reversed(range(3, getLastUsedCell(oSheet).EndRow+1)):
#~ if oSheet.getCellByPosition(10, y).String != '':
#~ if oSheet.getCellByPosition(11, y).String != '':
#~ oSheet.getCellByPosition(0, y).String = oSheet.getCellByPosition(10, y).String + '/' + oSheet.getCellByPosition(11, y).String
#~ else:
#~ oSheet.getCellByPosition(0, y).String = oSheet.getCellByPosition(10, y).String
#~ ricerca graffate
#~ for y in reversed(range(3, getLastUsedCell(oSheet).EndRow)):
#~ if '\n' in oSheet.getCellByPosition(6, y).String:
#~ particelle = oSheet.getCellByPosition(6, y).String.split('\n')
#~ sub = oSheet.getCellByPosition(7, y).String.split('\n')
#~ while len(sub) < len(particelle):
#~ sub.append('')
#~ oDoc.CurrentController.select(oSheet.getCellRangeByPosition(0, y, 5, y))
#~ copy_clip()
#~ oSheet.getRows().insertByIndex(y+1, len(particelle)-1)
#~ oDoc.CurrentController.select(oSheet.getCellRangeByPosition(0, y+1, 0, y+len(particelle)-1))
#~ paste_clip()
#~ for n in range(0, len(particelle)):
#~ oSheet.getCellByPosition(6, y+n).String = particelle[n]
#~ oSheet.getCellByPosition(7, y+n).String = sub[n]
#~ oSheet.getCellByPosition(15, y+n).String = particelle[0]+ '/' + sub[0]
#~ chi(sub)
#RAGGRUPPA LE RIGHE SECONDO IL COLoRE
#~ oDoc = XSCRIPTCONTEXT.getDocument()
#~ oSheet = oDoc.CurrentController.ActiveSheet
#~ iSheet = oSheet.RangeAddress.Sheet
#~ oCellRangeAddr = uno.createUnoStruct('com.sun.star.table.CellRangeAddress')
#~ oCellRangeAddr.Sheet = iSheet
#~ lista = list()
#~ test = getLastUsedCell(oSheet).EndRow-1
#~ for n in range(0, test):
#~ if oSheet.getCellByPosition(0, n).CellBackColor == 16777113:
#~ sopra = n+1
#~ for n in range(sopra+1, test):
#~ if oSheet.getCellByPosition(0, n).CellBackColor == 16777113:
#~ sotto = n-1
#~ lista.append((sopra, sotto))
#~ break
#~ for el in lista:
#~ oCellRangeAddr.StartRow = el[0]
#~ oCellRangeAddr.EndRow = el[1]
#~ oSheet.group(oCellRangeAddr,1)
#~ oSheet.getCellRangeByPosition(0, el[0], 0, el[1]).Rows.IsVisible=False
#~ return
########################################################################
# ELENCO DEGLI SCRIPT VISUALIZZATI NEL SELETTORE DI MACRO #
#~ g_exportedScripts = richiesta_offerta,
########################################################################
View
Binary file not shown.

0 comments on commit 7d60bff

Please sign in to comment.