summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2024-03-06 12:23:52 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2024-03-06 21:00:17 +0100
commit0915e48b8c5bcf603026e57b7acb7f50c36dcae4 (patch)
treeb039e41774b6e524a79acd9dbb9ca2919d651f38
parent2f284e59160c7e51ef447071c6b077ff4f5a1dcb (diff)
More refactoring of the extension
+ Added automatic getExtensionVersion() for comments Author + Improved pt-BR and en-US text in dialogs + refactoring some msgBox constants. Change-Id: Icbc2ebc83505bda8e4037a01151806ec50d00bd6 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/164479 Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--userguides/sanitycheck/SanityCheck/Campos.xba1
-rw-r--r--userguides/sanitycheck/SanityCheck/Comunes.xba21
-rw-r--r--userguides/sanitycheck/SanityCheck/Estilos.xba7
-rw-r--r--userguides/sanitycheck/SanityCheck/Formatos.xba2
-rw-r--r--userguides/sanitycheck/SanityCheck/Imagenes.xba39
-rw-r--r--userguides/sanitycheck/SanityCheck/L10n.xba81
-rw-r--r--userguides/sanitycheck/SanityCheck/Renombrar.xba4
-rw-r--r--userguides/sanitycheck/SanityCheck/Resaltes.xba1
-rw-r--r--userguides/sanitycheck/SanityCheck/Tablas.xba1
-rw-r--r--userguides/sanitycheck/description.xml2
-rw-r--r--userguides/sanitycheck/dist/Sanitycheck-1.0.0.oxtbin110377 -> 0 bytes
11 files changed, 83 insertions, 76 deletions
diff --git a/userguides/sanitycheck/SanityCheck/Campos.xba b/userguides/sanitycheck/SanityCheck/Campos.xba
index d77a1e4b..252b657e 100644
--- a/userguides/sanitycheck/SanityCheck/Campos.xba
+++ b/userguides/sanitycheck/SanityCheck/Campos.xba
@@ -4,7 +4,6 @@
Option Explicit
Private oDlgProps
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
Rem ############
Sub Dlg_Campos
diff --git a/userguides/sanitycheck/SanityCheck/Comunes.xba b/userguides/sanitycheck/SanityCheck/Comunes.xba
index 11174098..610775eb 100644
--- a/userguides/sanitycheck/SanityCheck/Comunes.xba
+++ b/userguides/sanitycheck/SanityCheck/Comunes.xba
@@ -3,13 +3,15 @@
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Comunes" script:language="StarBasic" script:moduleType="normal">REM ***** BASIC Módulo Comunes *****
Option Explicit
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
+ Global Const ExtensionID as String = &quot;vnd.b__antonio.sanitycheck&quot;
+ Global Extension as String
Dim oDlgAsist as Object
Dim paso &apos;as integer
Rem ############
+
Sub Dlg_Asist
-
+ Extension = getExtensionVersion()
Call L10n.Trad_Comunes
If Thiscomponent.HasLocation = false then : Msgbox (V_Txt(19),0+48+0, Extension) : Exit Sub : End If
If Imagenes.F_Prueba_Sel = 0 Then : Exit Sub : End If
@@ -300,7 +302,20 @@ Function MyName
MyName = oRegKey.givenname &amp; &quot; &quot; &amp; oRegKey.sn
End Function
-
+ Rem ####
+ REM Take the version number from the description.xml of the extension
+Function getExtensionVersion() As String
+ Dim extList As Object
+ Dim oElem As Object
+ extList = GetDefaultContext.getByName(&quot;/singletons/com.sun.star.deployment.PackageInformationProvider&quot;).getExtensionList()
+ Dim i As Integer
+ For i = 0 To uBound(extList)
+ oElem = extList(i)
+ If oElem(0) = ExtensionID Then
+ getExtensionVersion = &quot;Sanity Check V.&quot; &amp; oElem(1)
+ End If
+ Next i
+End Function
Rem ############ posible incorporación? Recargar documento.
sub ActualizarTodo
rem ----------------------------------------------------------------------
diff --git a/userguides/sanitycheck/SanityCheck/Estilos.xba b/userguides/sanitycheck/SanityCheck/Estilos.xba
index d82f7fa1..8fdada4c 100644
--- a/userguides/sanitycheck/SanityCheck/Estilos.xba
+++ b/userguides/sanitycheck/SanityCheck/Estilos.xba
@@ -2,7 +2,6 @@
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Estilos" script:language="StarBasic" script:moduleType="normal">REM ***** BASIC Módulo Estilos *****
Option Explicit
-
Global estiloPU(18) as String
Global estiloCU(22) as String
Dim oDlgEstilos as Object
@@ -20,7 +19,7 @@ Sub CargaEstilos_PU_Guias
estiloPU(2) = &quot;Column Contents&quot;
estiloPU(3) = &quot;Definition Term&quot;
estiloPU(4) = &quot;Definition Term 2&quot;
- estiloPU(5) = &quot;First Heading&quot; &apos; Puede que en la nueva plantilla no aparezca.
+ estiloPU(5) = &quot;Heading 1 First&quot; &apos; Puede que en la nueva plantilla no aparezca.
estiloPU(6) = &quot;Guide Name&quot;
estiloPU(7) = &quot;Guide Subtitle&quot;
estiloPU(8) = &quot;Guide Title&quot;
@@ -74,7 +73,7 @@ Sub ComprobacionEstilos
Call L10n.Trad_Estilos
Avisos_Estilos_Ajenos(&quot;P&quot;)
Avisos_Estilos_Ajenos(&quot;C&quot;)
- Call DialogoEstilos
+ Call DialogoEstilos
End Sub
Rem ############
@@ -152,7 +151,7 @@ End Function
Rem ############
Sub DialogoEstilos()
-
+ Extension = Comunes.getExtensionVersion()
DialogLibraries.LoadLibrary(&quot;SanityCheck&quot;)
oDlgEstilos = createUnoDialog(DialogLibraries.getByName(&quot;SanityCheck&quot;).getbyName(&quot;DlgEstilos&quot;))
diff --git a/userguides/sanitycheck/SanityCheck/Formatos.xba b/userguides/sanitycheck/SanityCheck/Formatos.xba
index 6ffc2141..2e985232 100644
--- a/userguides/sanitycheck/SanityCheck/Formatos.xba
+++ b/userguides/sanitycheck/SanityCheck/Formatos.xba
@@ -3,7 +3,6 @@
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Formatos" script:language="StarBasic" script:moduleType="normal">REM ***** BASIC Módulo Formatos *****
Option Explicit
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
Dim PBcounter as Integer, oDlgFmt as Object
Public E_Num(20) as String
@@ -39,6 +38,7 @@ End sub
Sub Dlg_Formatos
&apos; Dim oDlgRenombrar
Call L10n.Trad_Formatos
+ Extension = Comunes.getExtensionVersion()
&apos; If Thiscomponent.HasLocation = false then : Msgbox (Ren_Txt(16),0+48+0,Extension) : Exit Sub : End If
DialogLibraries.loadLibrary(&quot;SanityCheck&quot;)
oDlgFmt = CreateUnoDialog(DialogLibraries.getByName(&quot;SanityCheck&quot;).getByName(&quot;DlgFormatos&quot;))
diff --git a/userguides/sanitycheck/SanityCheck/Imagenes.xba b/userguides/sanitycheck/SanityCheck/Imagenes.xba
index cc48cb0b..2b52615f 100644
--- a/userguides/sanitycheck/SanityCheck/Imagenes.xba
+++ b/userguides/sanitycheck/SanityCheck/Imagenes.xba
@@ -2,8 +2,7 @@
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Imagenes" script:language="StarBasic" script:moduleType="normal">REM ***** BASIC Módulo Imagenes *****
Option Explicit
-
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
+
Global oImgs as Object
Global oImg as Object
Global vCursor as Object &apos; CursorVisible
@@ -17,13 +16,13 @@
Rem ############
Sub DlgImagenes
-Msgbox &quot;Comprobar renombrado de imágenes&quot;
+ Msgbox &quot;Comprobar renombrado de imágenes&quot;
Call L10n.Trad_Imagenes
- If Thiscomponent.HasLocation = false then : Msgbox (I_Txt(34),0+48+0, Extension) : Exit Sub : End If
+ If Thiscomponent.HasLocation = false then : Msgbox (I_Txt(34),0+MB_ICONEXCLAMATION+0, Extension) : Exit Sub : End If
If Imagenes.F_Prueba_Sel = 0 Then : Exit Sub : End If
oImgs = ThisComponent.GraphicObjects()
Ultima_Img = oImgs.getCount -1
- If Ultima_Img &lt; 0 Then : Msgbox (I_Txt(39), 0+48+0,Extension) : Exit Sub : End If
+ If Ultima_Img &lt; 0 Then : Msgbox (I_Txt(39), 0+MB_ICONEXCLAMATION+0,Extension) : Exit Sub : End If
Indice_Img = 0
oImg = oImgs.getbyIndex(Indice_Img)
vCursor = Thiscomponent.CurrentController.getViewCursor()
@@ -63,9 +62,9 @@ end sub
Sub Cargar_Parametros
&apos; Call L10n.Trad_Imagenes
- If not Dlg_Mostrado then : Msgbox I_Txt(33),0+48+0, Extension : exit sub: end if
+ If not Dlg_Mostrado then : Msgbox I_Txt(33),0+MB_ICONEXCLAMATION+0, Extension : exit sub: end if
If Imagenes.F_Prueba_Sel = 0 Then : Exit Sub : End If
- If Ultima_Img &lt; 0 Then : Dlg_Mostrado = False : Msgbox (I_Txt(35),0+48+0, Extension) : Exit Sub : End If &apos;si se borran todas las imágenes
+ If Ultima_Img &lt; 0 Then : Dlg_Mostrado = False : Msgbox (I_Txt(35),0+MB_ICONEXCLAMATION+0, Extension) : Exit Sub : End If &apos;si se borran todas las imágenes
Ultima_Img = oImgs.getCount -1
oImg = oImgs.getbyIndex(Indice_Img)
vCursor.gotoRange(oImg.Anchor,False)
@@ -167,7 +166,7 @@ sub OnBtn_Anterior(oEv)
oDlgImgs = oEv.Source.Context
If oImgs.getCount -1 &lt;&gt; Ultima_Img Then
Ultima_Img = oImgs.getCount -1
- Msgbox (I_Txt(27), 0+64+0, Extension)
+ Msgbox (I_Txt(27), 0+MB_ICONINFORMATION+0, Extension)
Indice_Img = 0
ElseIf Not Indice_Img &lt; 0 then
Indice_Img = Indice_Img -1
@@ -182,7 +181,7 @@ Sub OnBtn_Siguiente(oEv)
If oImgs.getCount -1 &lt;&gt; Ultima_Img Then
Ultima_Img = oImgs.getCount -1
Indice_Img = 0
- Msgbox (I_Txt(27), 0+64+0, Extension)
+ Msgbox (I_Txt(27), 0+MB_ICONINFORMATION+0, Extension)
ElseIf Indice_Img &lt; Ultima_Img Then
Indice_Img = Indice_Img + 1
End if
@@ -193,7 +192,7 @@ End Sub
Sub OnBtn_Salir
Dlg_Mostrado = False
Dlg_Activo = False
- Msgbox (I_Txt(28), 0+64+0, Extension)
+ Msgbox (I_Txt(28), 0+MB_ICONINFORMATION+0, Extension)
End Sub
Rem ############
@@ -224,7 +223,7 @@ Sub OnBtn_Cambiar_Nombre_Img(oEv)
On error goto ERRORES:
oDlgImgs = oEv.Source.Context
If oDlgImgs.getModel.getByName(&quot;Tx_Nombre_Img&quot;).Text = &quot;&quot; then
- Msgbox (I_Txt(30), 0+48+0, &quot;Error&quot;)
+ Msgbox (I_Txt(30), 0+MB_ICONEXCLAMATION+0, &quot;Error&quot;)
oDlgImgs.getModel.getByName(&quot;Tx_Nombre_Img&quot;).Text = oImg.name
Exit Sub
Else
@@ -233,7 +232,7 @@ On error goto ERRORES:
End If
ERRORES:
If Err = 1 Then
- Msgbox (Chr(13) &amp; I_Txt(31), 0+48+0, &quot;Error&quot;)
+ Msgbox (Chr(13) &amp; I_Txt(31), 0+MB_ICONEXCLAMATION+0, &quot;Error&quot;)
End If
End Sub
@@ -313,12 +312,12 @@ Function F_Ajuste_Imagenes_Marcos
Call L10n.Trad_Imagenes
- If Not Thiscomponent.HasLocation then : Msgbox (I_Txt(34),0+48+0,Extension ) : Exit Function : End If
+ If Not Thiscomponent.HasLocation then : Msgbox (I_Txt(34),0+MB_ICONEXCLAMATION+0,Extension ) : Exit Function : End If
REM 1º: Formato de imagen (Obligatorio antes de formato marcos)
Dim i as integer
Static s as String
oImgs = ThisComponent.GraphicObjects()
- If oImgs.getCount = 0 Then : Msgbox (I_Txt(39), 0+48+0, Extension) : Exit Function : End If
+ If oImgs.getCount = 0 Then : Msgbox (I_Txt(39), 0+MB_ICONEXCLAMATION+0, Extension) : Exit Function : End If
oProgressBar = ThisComponent.CurrentController.getStatusIndicator()
oProgressBar.start( I_Txt(32), oImgs.Count * 2 )
@@ -357,7 +356,7 @@ Function F_Ajuste_Imagenes_Marcos
NEXT
s = I_Txt(40)
s= s &amp; F_Ajuste_Marcos &apos;Ajuste de marcos y luego Descripciones
- Msgbox (s,0+64+0, I_Txt(41))
+ Msgbox (s,0+MB_ICONINFORMATION+0, I_Txt(41))
F_Ajuste_Imagenes_Marcos = s
End Function
@@ -514,13 +513,13 @@ End Function
Function F_AlternarLeyenda()
Call L10n.Trad_Imagenes
- If ThisComponent.HasLocation = false then : Msgbox (I_Txt(34),0+48+0,Extension): Exit Function : End If
+ If ThisComponent.HasLocation = false then : Msgbox (I_Txt(34),0+MB_ICONEXCLAMATION+0,Extension): Exit Function : End If
If Imagenes.F_Prueba_Sel = 0 Then Exit Function
- If ThisComponent.TextFrames.Count = 0 Then : Msgbox (I_Txt(53),0+64+0, Extension): Exit Function: End If
- If Msgbox (I_Txt(50), 4+48+256, Extension) = 6 Then
+ If ThisComponent.TextFrames.Count = 0 Then : Msgbox (I_Txt(53),0+MB_ICONINFORMATION+0, Extension): Exit Function: End If
+ If Msgbox (I_Txt(50), 4+MB_ICONEXCLAMATION+256, Extension) = 6 Then
Goto SIGUIENTE
else
- Msgbox (I_Txt(51), 0+64+0, Extension): Exit Function
+ Msgbox (I_Txt(51), 0+MB_ICONINFORMATION+0, Extension): Exit Function
End If
SIGUIENTE:
Dim Document as Object, dispatcher as Object
@@ -541,7 +540,7 @@ SIGUIENTE:
Next
Dim marco1 : marco1 = ThisComponent.getTextFrames.getByIndex(0).Anchor
vcursor.gotoRange(marco1,False)
- Msgbox (I_Txt(52),0+64+0, Extension)
+ Msgbox (I_Txt(52),0+MB_ICONINFORMATION+0, Extension)
F_AlternarLeyenda = Chr(13) &amp; I_Txt(52)
End Function
REM ================= Fin Imagenes ===========================================================
diff --git a/userguides/sanitycheck/SanityCheck/L10n.xba b/userguides/sanitycheck/SanityCheck/L10n.xba
index 3b95825b..cbef5c86 100644
--- a/userguides/sanitycheck/SanityCheck/L10n.xba
+++ b/userguides/sanitycheck/SanityCheck/L10n.xba
@@ -2,8 +2,7 @@
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="L10n" script:language="StarBasic" script:moduleType="normal"> REM ***** BASIC Módulo L10n *****
Option explicit
- Global Const Extension = &quot;Revisiones&quot;
-
+
Public C_Txt(17) as String
Public V_Txt(38) as String
Public E_Txt(20) as String
@@ -373,28 +372,28 @@ Sub Trad_Estilos
E_Txt(11) = Chr(13) &amp; &quot;Deseja excluí-lo do documento?&quot;
E_Txt(12) = &quot;Excluir estilo de parágrafo não utilizado&quot;
E_Txt(13) = &quot;Remover estilo de caractere não utilizado&quot;
- E_Txt(14) = &quot;Eles foram encontrados&quot;
+ E_Txt(14) = &quot;Estilos encontrados.&quot;
E_Txt(15) = &quot; Parágrafos com estilos fora do modelo&quot;
- E_Txt(16) = &quot;Verifique os comentários para corrigi-lo&quot;
+ E_Txt(16) = &quot;Verifique os comentários para corrigi-los&quot;
E_Txt(17) = &quot; - Estilo inexistente no modelo&quot;
E_Txt(18) = Chr(13) &amp; &quot;– Os comentários só são adicionados a parágrafos com um estilo&quot; _
- &amp; &quot; fora do modelo aplicado por dois motivos: &quot; &amp; Chr(13) _
+ &amp; &quot; fora do modelo aplicado. Isso por dois motivos: &quot; &amp; Chr(13) _
&amp; &quot;1.- a busca por estilos de caracteres é complicada e pode ser muito lenta e &quot; _
&amp; Chr (13) &amp; &quot;2.- O documento pode encher-se de comentários que dificultariam a sua leitura&quot; _
&amp; Chr(13) &amp; Chr(13) &amp; &quot;– Ao corrigir um estilo de parágrafo aplicado, não há problema,&quot; _
- &amp; &quot; L.O. atualiza o documento, portanto el estilo é removido da lista de estilos aplicados &quot; _
- &amp; &quot;nesta caixa de diálogo e movido para a lista de estilos Não utilizados.&quot; _
+ &amp; &quot; O LibreOffice atualiza o documento, portanto o estilo é removido da lista de estilos aplicados &quot; _
+ &amp; &quot;nesta caixa de diálogo e movido para a lista de estilos não utilizados.&quot; _
&amp; Chr(13) &amp; Chr(13) &amp; &quot; – O problema surge com os estilos de caracteres: mesmo que sejam&quot; _
- &amp; &quot; alteradas todas as ocorrências de um estilo estrangeiro no documento, &quot; _
- &amp; &quot;L.O. não atualiza sua lista de estilos de caracteres e, portanto, continua &quot; _
- &amp; &quot;a aparecer nos estilos aplicados, mesmo que não seja realmente aplicado.&quot; _
+ &amp; &quot; alteradas todas as ocorrências de um estilo fora do modelo no documento, &quot; _
+ &amp; &quot;O LibreOffice não atualiza sua lista de estilos de caracteres e, portanto, continua &quot; _
+ &amp; &quot;a aparecer nos estilos aplicados, mesmo que não seja efetivamente aplicado.&quot; _
&amp; Chr(13) &amp; Chr(13) &amp; &quot;A solução:&quot; &amp; Chr(13) &amp; &quot;1.- Salve o documento e &quot; _
&amp; Chr(13) &amp; &quot;2.- Recarregue o documento&quot; &amp; Chr (13) _
- &amp; &quot;Quando você executar a verificação de estilo novamente, ela irá para a lista Não utilizados&quot;
+ &amp; &quot;Quando executar a verificação de estilo novamente, ela irá para a lista Não utilizados&quot;
Case Else
E_Txt(0) = &quot;Style Check&quot;
- E_Txt(1) = &quot;Styles outside the guides&quot;
+ E_Txt(1) = &quot;Styles not in template&quot;
E_Txt(2) = &quot;Applied&quot;
E_Txt(3) = &quot;Not used&quot;
E_Txt(4) = &quot;Paragraph styles&quot;
@@ -407,23 +406,23 @@ Sub Trad_Estilos
E_Txt(11) = &quot;Do you want to delete it from the document?&quot;
E_Txt(12) = &quot;Delete Unused Paragraph Style&quot;
E_Txt(13) = &quot;Remove Unused Character Style&quot;
- E_Txt(14) = &quot;They have been found&quot;
- E_Txt(15) = &quot; Paragraphs with alien (paragraph) styles applied&quot;
+ E_Txt(14) = &quot;Styles were found.&quot;
+ E_Txt(15) = &quot; Paragraphs with alien styles applied&quot;
E_Txt(16) = &quot;Check the comments to correct it&quot;
E_Txt(17) = &quot; - Alien style, not in the template&quot;
- E_Txt(18) = Chr(13) &amp; &quot;– Comments are only added to paragraphs with a foreign (paragraph)&quot; _
+ E_Txt(18) = Chr(13) &amp; &quot;– Comments are only added to paragraphs with alien&quot; _
&amp; &quot; style applied for two reasons: &quot; &amp; Chr(13) &amp; &quot;1.- searching for character styles&quot;_
- &amp; &quot; is complicated and it can be very slow&quot; &amp; Chr(13) &amp; &quot;2.- The document could be filled &quot;_
- &amp;&quot;with comments which would make them difficult to read &quot;&amp; Chr(13) &amp; Chr(13) _
- &amp; &quot;– When correcting an applied paragraph style, there is no problem, L.O. updates &quot;_
+ &amp; &quot; is complicated and it can be very slow&quot; &amp; Chr(13) &amp; &quot;2.- The document can be filled &quot;_
+ &amp;&quot;with so many comments which would make them difficult to read &quot;&amp; Chr(13) &amp; Chr(13) _
+ &amp; &quot;– When correcting an applied paragraph style, there is no problem, LibreOffice updates &quot;_
&amp;&quot;the document, so the style is removed from the list of applied styles in this dialog &quot;_
&amp;&quot;and moved to the list of unused styles.&quot; &amp; Chr(13) &amp; Chr(13) _
- &amp; &quot; – The problem arises with character styles: even if all occurrences of a foreign &quot;_
- &amp; &quot;style in the document are deleted, L.O. does not update its list of character styles&quot;_
- &amp; &quot; and therefore continues to appear in applied styles even though it is not actually applied. &quot;_
- &amp; Chr(13) &amp; Chr(13) &amp; &quot;The solution:&quot; &amp; Chr(13) &amp; &quot;1.- Save the document and &quot;_
- &amp; Chr(13) &amp; &quot; 2.- Reload the document&quot; &amp; Chr (13) &amp; &quot;When you run the style &quot;_
- &amp; &quot;check again, the style go to the Unused styles list&quot;
+ &amp; &quot; – The problem arises with character styles: even if all occurrences of an alien &quot;_
+ &amp; &quot;style in the document are deleted, LibreOffice does not update the list of character styles&quot;_
+ &amp; &quot; and therefore continues to appear as applied styles even though it is not actually applied. &quot;_
+ &amp; Chr(13) &amp; Chr(13) &amp; &quot;The solution is:&quot; &amp; Chr(13) &amp; &quot;1.- Save the document and &quot;_
+ &amp; Chr(13) &amp; &quot; 2.- Reload the document&quot; &amp; Chr (13) &amp; &quot;Upon running the style &quot;_
+ &amp; &quot;check again, the style is now in the unused styles list&quot;
End Select
End Sub
@@ -455,27 +454,27 @@ Sub Trad_Formatos
Case &quot;pt&quot;
F_Txt(0) = &quot;Limpeza de formatos&quot;
- F_Txt(1) = &quot;- Texto: Limpa a formatação direta de caracteres aplicada ao texto&quot; &amp; Chr(13) _
+ F_Txt(1) = &quot;- Caracteres: Limpa a formatação direta de caracteres aplicada ao texto&quot; &amp; Chr(13) _
&amp; &quot;- Parágrafos: Limpa a formatação direta aplicada a parágrafos (incluindo listas não numeradas)&quot; _
&amp; Chr(13) &amp; &quot;-- Numerado: Limpa a formatação aplicada aos parágrafos da lista numerada&quot;
- F_Txt(2) = &quot;Caracteres &quot;
+ F_Txt(2) = &quot;Caracteres&quot;
F_Txt(3) = &quot;Parágrafos&quot;
F_Txt(4) = &quot;Parágrafos numerados&quot;
F_Txt(5) = &quot;Limpar&quot;
F_Txt(6) = &quot;Sair&quot;
F_Txt(7) = &quot;Retornar&quot;
- F_Txt(8) = &quot;Aqui vai a ajuda&quot;
- F_Txt(9) = &quot;Limpeza de formatação de texto concluída&quot;
+ F_Txt(8) = &quot;Ajuda&quot;
+ F_Txt(9) = &quot;Limpeza de formatação de caracteres concluída&quot;
F_Txt(10) = &quot;Limpeza de formatação de parágrafos concluída&quot;
F_Txt(11) = &quot;Limpeza e redefinição de números concluídas &quot;
F_Txt(12) = &quot; parágrafos foram marcados&quot; &amp; Chr(13) &amp; &quot;Verifique os comentários&quot;
F_Txt(13) = &quot;Em processamento ...&quot;
- F_Txt(14) = &quot;Verifique estilos e numeração&quot; &amp; Chr(13) &amp; Chr(13) &amp; &quot;Estilo anterior = &quot;
- F_Txt(15) = &quot;Seleccione itens para limpar&quot;
+ F_Txt(14) = &quot;Verifique estilos e numeração&quot; &amp; Chr(13) &amp; Chr(13) &amp; &quot;Estilo do parágrafo anterior = &quot;
+ F_Txt(15) = &quot;Selecione os itens para limpeza&quot;
Case else
F_Txt(0) = &quot;Format Cleaning&quot;
- F_Txt(1) = &quot;- Text: Clears direct character formatting applied to text&quot; &amp; Chr(13)_
+ F_Txt(1) = &quot;- Characters: Clears direct character formatting applied to text&quot; &amp; Chr(13)_
&amp; &quot;- Paragraphs: Clears direct formatting applied to paragraphs (Including unnumbered lists)&quot;_
&amp; Chr(13) &amp; &quot;-- Numbered: Clears the formatting applied to numbered list paragraphs&quot;
F_Txt(2) = &quot;Characters&quot;
@@ -484,14 +483,14 @@ Sub Trad_Formatos
F_Txt(5) = &quot;Clear&quot;
F_Txt(6) = &quot;Exit&quot;
F_Txt(7) = &quot;Return&quot;
- F_Txt(8) = &quot;Here goes the help&quot;
+ F_Txt(8) = &quot;Help&quot;
F_Txt(9) = &quot;Text format cleanup done&quot;
F_Txt(10) = &quot;Paragraph format cleanup done&quot;
- F_Txt(11) = &quot;Numbering format Cleanup an Reset done &quot;
- F_Txt(12) = &quot; paragraphs have been marked&quot; &amp; Chr(13) &amp; &quot;Check the annotations&quot;
+ F_Txt(11) = &quot;Numbering format cleanup an reset done &quot;
+ F_Txt(12) = &quot; paragraphs have been marked&quot; &amp; Chr(13) &amp; &quot;Please check the comments.&quot;
F_Txt(13) = &quot;Working ...&quot;
- F_Txt(14) = &quot; Check styles and numbering&quot; &amp; Chr(13) &amp; Chr(13) &amp; &quot;Previous style = &quot;
- F_Txt(15) = &quot;Selecct items to clean&quot;
+ F_Txt(14) = &quot; Check styles and numbering&quot; &amp; Chr(13) &amp; Chr(13) &amp; &quot;Style of previous paragraph = &quot;
+ F_Txt(15) = &quot;Select items to clean&quot;
End Select
End sub
@@ -571,7 +570,7 @@ Sub Trad_Imagenes
I_Txt(53) = &quot;No hay marcos en el documento&quot;
case &quot;pt&quot;
- I_Txt(0) = &quot;Revisão de imagems&quot;
+ I_Txt(0) = &quot;Revisão de imagens&quot;
I_Txt(1) = &quot;Mudar&quot;
I_Txt(2) = &quot;Como caractere&quot;
I_Txt(3) = &quot;Alterar/Atribuir&quot;
@@ -610,10 +609,10 @@ Sub Trad_Imagenes
I_Txt(30) = &quot;O nome da imagem não pode ficar vazio&quot;
I_Txt(31) = Chr(13) &amp; &quot;Erro: -1 Nome duplicado?&quot; &amp; Chr(13) &amp; &quot;Tente outro&quot;
I_Txt(32) = &quot;Em processamento ...&quot;
- I_Txt(33) = &quot;Esta macro não funciona isoladamente.&quot; &amp; Chr(13) &amp; &quot;Es executada a partir do diálogo&quot;
- I_Txt(34) = &quot;Primeiro de tudo você deve salvar o documento&quot;
+ I_Txt(33) = &quot;Esta macro não funciona isoladamente.&quot; &amp; Chr(13) &amp; &quot;Ela é executada a partir do diálogo&quot;
+ I_Txt(34) = &quot;Salve primeiro o documento&quot;
I_Txt(35) = &quot;Todas as imagens foram excluídas&quot;
- I_Txt(36) = &quot;Error N. &quot;
+ I_Txt(36) = &quot;Erro N. &quot;
I_Txt(37) = &quot;Erro: 1 - Um objeto pode ser selecionado: imagem, quadro, etc.&quot; &amp; Chr(13) &amp; Chr(13) _
&amp; &quot;Coloque o cursor em um trecho de texto e tente novamente&quot;
I_Txt(38) = &quot;Erro: 91 - Você pode estar em um comentário&quot; &amp; Chr(13) &amp; Chr(13) _
@@ -631,7 +630,7 @@ Sub Trad_Imagenes
I_Txt(47) = &quot;A imagem foi cortada com o Writer.&quot; &amp; Chr(13) &amp; Chr(13) &amp; &quot;Use outro programa para as culturas&quot;
I_Txt(48) = &quot;Verifique a escala:&quot; &amp; Chr(13) &amp; Chr(13) &amp; &quot;Caixa de diálogo &quot;&quot;Imagem&quot;&quot;, guia &quot;&quot;Cortar&quot;&quot;&quot; _
&amp; Chr(13) &amp; &quot;(% Largura deve ser igual a % Altura)&quot;
- I_Txt(49) = &quot;Pendiente texto ayuda&quot;
+ I_Txt(49) = &quot;Texto de ajuda pendente&quot;
Rem --- Macro Leyendas
I_Txt(50) = &quot;Apenas legendas devem ser colocadas acima das imagens&quot; &amp; Chr(13) &amp; &quot;para formato Web.&quot;_
&amp; &quot; Se as legendas estiverem no topo, a macro&quot; &amp; Chr(13) &amp; &quot;ajustar imagens e quadros &quot;_
diff --git a/userguides/sanitycheck/SanityCheck/Renombrar.xba b/userguides/sanitycheck/SanityCheck/Renombrar.xba
index ae85866f..a873b692 100644
--- a/userguides/sanitycheck/SanityCheck/Renombrar.xba
+++ b/userguides/sanitycheck/SanityCheck/Renombrar.xba
@@ -3,10 +3,8 @@
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Renombrar" script:language="StarBasic" script:moduleType="normal">REM ***** BASIC Módulo Renombrar *****
Option Explicit
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
Dim oDlgRenombrar
-
Rem ############
Sub Dlg_Renombrar
&apos; Dim oDlgRenombrar
@@ -36,7 +34,7 @@ End Sub
Sub Casillas_Renombrar(oEv)
oDlg = oEv.Source.Context
- Dim Imgs, Marcos, Tablas, Indice, suma
+ Dim Imgs, Marcos, Tablas, Indice, suma
With oDlg.getModel
Imgs = .getbyname(&quot;Ch_Imgs&quot;).State
Tablas = .getbyname(&quot;Ch_Tablas&quot;).State
diff --git a/userguides/sanitycheck/SanityCheck/Resaltes.xba b/userguides/sanitycheck/SanityCheck/Resaltes.xba
index 9d10f126..cfe27887 100644
--- a/userguides/sanitycheck/SanityCheck/Resaltes.xba
+++ b/userguides/sanitycheck/SanityCheck/Resaltes.xba
@@ -3,7 +3,6 @@
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Resaltes" script:language="StarBasic">REM ***** BASIC (&quot;Módulo Resaltes&quot;) *****
Option Explicit
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
&apos;Const BASE_KEY As string = &quot;vnd.org.bantoniof.Revisiones.Configuration/&quot;
Const Rosado As String = &quot;250,220,230&quot; &apos; Text Body List Intro
Const Amar1 As String = &quot;255,228,181&quot; &apos; Lista1
diff --git a/userguides/sanitycheck/SanityCheck/Tablas.xba b/userguides/sanitycheck/SanityCheck/Tablas.xba
index 3c6a209b..1efea7e1 100644
--- a/userguides/sanitycheck/SanityCheck/Tablas.xba
+++ b/userguides/sanitycheck/SanityCheck/Tablas.xba
@@ -3,7 +3,6 @@
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Tablas" script:language="StarBasic">REM ***** BASIC Módulo Tablas *****
Option explicit
- Const Extension as string = &quot;Revisiones v 1.0.0&quot;
Global oTablas as Object
Global oTabla as Object
Global vCursor as Object
diff --git a/userguides/sanitycheck/description.xml b/userguides/sanitycheck/description.xml
index d3ff1019..1a70920f 100644
--- a/userguides/sanitycheck/description.xml
+++ b/userguides/sanitycheck/description.xml
@@ -4,7 +4,7 @@
xmlns:dep="http://openoffice.org/extensions/description/2006"
xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="vnd.b__antonio.sanitycheck"/>
- <version value="1.0.1"/>
+ <version value="1.0.2"/>
<!-- <dependencies>
<OpenOffice.org-minimal-version value="2.1" dep:name="OpenOffice.org 2.1"/>
</dependencies> -->
diff --git a/userguides/sanitycheck/dist/Sanitycheck-1.0.0.oxt b/userguides/sanitycheck/dist/Sanitycheck-1.0.0.oxt
deleted file mode 100644
index 562c4e5d..00000000
--- a/userguides/sanitycheck/dist/Sanitycheck-1.0.0.oxt
+++ /dev/null
Binary files differ