Remove easymacro2 in zaz

This commit is contained in:
Mauricio Baeza 2020-12-23 22:24:00 -06:00
parent 024341caa1
commit 81e9a87838
4 changed files with 202 additions and 3 deletions

View File

@ -2775,7 +2775,7 @@ class LOWriterTextRange(object):
@property
def string(self):
s = ''
if self._is_paragraph:
if not self._is_table:
s = self.obj.String
return s
@string.setter

87
source/images/insert.svg Normal file
View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
id="Capa_1"
x="0px"
y="0px"
width="25.061001"
height="31.99976"
viewBox="0 0 25.061001 31.99976"
xml:space="preserve"><metadata
id="metadata41"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs39" />
<g
id="g4"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
<path
d="m 13.874,25.477 0.646,1.27 H 3.22 V 0 H 25.574 V 20.073 L 24.218,19.415 V 1.269 H 4.578 V 25.477 Z M 7.528,8.308 C 7.415,8.414 7.281,8.502 7.128,8.57 6.973,8.639 6.81,8.688 6.639,8.722 L 6.848,9.69 7.945,9.453 8.528,12.151 9.927,11.848 8.915,7.165 7.813,7.405 C 7.845,7.599 7.834,7.772 7.779,7.924 7.724,8.076 7.641,8.201 7.528,8.308 Z m 6.859,0.26 -1.184,0.255 -0.256,-1.184 -1.03,0.222 0.257,1.186 -1.184,0.254 0.222,1.03 1.184,-0.256 0.256,1.184 1.029,-0.222 -0.255,-1.186 1.184,-0.256 z m 1.671,-2.105 c -0.113,0.105 -0.246,0.193 -0.4,0.262 -0.153,0.068 -0.317,0.119 -0.488,0.152 l 0.209,0.968 1.096,-0.237 0.584,2.698 1.398,-0.303 L 17.442,5.32 16.34,5.557 c 0.032,0.196 0.021,0.369 -0.033,0.52 -0.051,0.151 -0.135,0.279 -0.249,0.386 z M 23.315,8.558 23.09,7.529 19.694,8.265 19.918,9.294 Z M 19.344,6.642 19.568,7.671 22.965,6.936 22.741,5.907 Z m 1.666,12.6 v -6.818 h -3.238 v 6.818 1.458 1.435 l -1.09,-2.234 -3.055,-0.008 1.255,2.573 H 14.87 l 0.809,1.632 0.104,0.215 h 0.002 l 1.988,4.022 v 10e-4 h 1.34 v 1.359 h 6.023 v -1.359 h 1.34 v -6.222 z"
id="path2" />
</g>
<g
id="g6"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g8"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g10"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g12"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g14"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g16"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g18"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g20"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g22"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g24"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g26"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g28"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g30"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g32"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
<g
id="g34"
transform="matrix(1.0776144,0,0,1.0776144,-3.4699184,0)">
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

113
source/images/preview.svg Normal file
View File

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="0 0 31.999998 32.000061"
xml:space="preserve"
sodipodi:docname="preview.svg"
width="31.999998"
height="32.000061"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="2560"
inkscape:window-height="1006"
id="namedview23"
showgrid="false"
inkscape:zoom="1.6074219"
inkscape:cx="16.0005"
inkscape:cy="16.00003"
inkscape:window-x="0"
inkscape:window-y="37"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" /><metadata
id="metadata43"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs41" />
<g
id="g6"
transform="scale(0.06250012)">
<g
id="g4">
<path
d="M 509.107,130.133 364.04,2.133 c -1.741,-1.536 -3.968,-2.236 -6.101,-2.116 L 8.533,0 C 6.263,0 4.096,0.896 2.5,2.5 0.905,4.105 0,6.263 0,8.533 v 358.4 c 0,4.719 3.814,8.533 8.533,8.533 h 179.2 c 0.205,0 0.384,-0.102 0.58,-0.119 18.765,20.966 45.935,34.253 76.22,34.253 13.909,0 27.179,-2.816 39.279,-7.859 l 90.735,107.238 c 1.63,1.911 4.011,3.021 6.519,3.021 27.844,0 42.667,-19.823 42.667,-34.133 0,-2.014 -0.717,-3.977 -2.014,-5.513 l -81.988,-96.888 h 143.735 c 4.719,0 8.533,-3.814 8.533,-8.533 v -230.4 c 10e-4,-2.449 -1.049,-4.778 -2.892,-6.4 z M 366.933,27.443 480.896,128 H 366.933 Z m -102.4,365.09 c -47.053,0 -85.333,-38.281 -85.333,-85.333 0,-47.052 38.281,-85.333 85.333,-85.333 47.052,0 85.333,38.281 85.333,85.333 0,47.052 -38.28,85.333 -85.333,85.333 z m 161.647,87.894 c -1.638,5.009 -7.697,13.047 -21.308,14.336 L 319.274,393.592 c 7.228,-4.599 13.824,-10.061 19.678,-16.265 z M 494.933,358.4 h -141.85 c 8.755,-15.078 13.85,-32.538 13.85,-51.2 0,-56.465 -45.935,-102.4 -102.4,-102.4 -56.465,0 -102.4,45.935 -102.4,102.4 0,18.662 5.094,36.122 13.85,51.2 H 17.067 V 17.067 l 332.8,0.017 v 119.45 c 0,4.719 3.814,8.533 8.533,8.533 h 136.533 z"
id="path2" />
</g>
</g>
<g
id="g8"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g10"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g12"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g14"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g16"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g18"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g20"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g22"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g24"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g26"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g28"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g30"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g32"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g34"
transform="translate(-239.9995,-239.99997)">
</g>
<g
id="g36"
transform="translate(-239.9995,-239.99997)">
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -46,7 +46,6 @@ from conf import (
log)
EASYMACRO_TMP = 'easymacro2.py'
EASYMACRO = 'easymacro.py'
@ -747,7 +746,7 @@ def _new(args):
path_logo = 'images/pymacros.png'
copyfile(path_logo, _join(path, 'images/logo.png'))
copyfile('zaz.py', _join(path, 'zaz.py'))
copyfile(EASYMACRO_TMP, _join(path, 'easymacro.py'))
copyfile(EASYMACRO, _join(path, 'easymacro.py'))
copyfile('conf.py.example', _join(path, 'conf.py'))
msg = 'Folders and files copy successfully for new extension.'