image tests

This commit is contained in:
George Litvinov 2019-10-16 16:17:28 +03:00
parent 827520ee7f
commit 1802ec7abb
9 changed files with 24 additions and 12 deletions

View file

@ -35,19 +35,31 @@
<value xml:lang="ru">Панель редактора</value> <value xml:lang="ru">Панель редактора</value>
</prop> </prop>
<prop oor:name="URL" oor:type="xs:string"> <prop oor:name="URL" oor:type="xs:string">
<value>macro:///IPHRedaction.Validation.validate</value> <value>macro:///IPHRedaction.Validation.validateButton</value>
</prop> </prop>
<prop oor:name="Target" oor:type="xs:string"> <prop oor:name="Target" oor:type="xs:string">
<value>_self</value> <value>_self</value>
</prop> </prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"> <prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/img-48</value> <value>%origin%/IPHRedaction/validate</value>
</prop> </prop>
</node> </node>
<node oor:name="buttonClean" oor:op="replace"> <node oor:name="buttonClean" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string"> <prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.GlobalDocument,com.sun.star.text.TextDocument,com.sun.star.text.WebDocument</value> <value>com.sun.star.text.GlobalDocument,com.sun.star.text.TextDocument,com.sun.star.text.WebDocument</value>
</prop> </prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="ru">Панель редактора</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>macro:///IPHRedaction.Clean.cleanButton</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/IPHRedaction/testfont</value>
</prop>
</node> </node>
</node> </node>
<node oor:name="buttonValidate" oor:op="replace"> <node oor:name="buttonValidate" oor:op="replace">
@ -59,14 +71,14 @@
<value xml:lang="en">Validation</value> <value xml:lang="en">Validation</value>
</prop> </prop>
<prop oor:name="URL" oor:type="xs:string"> <prop oor:name="URL" oor:type="xs:string">
<value>macro:///IPHRedaction.Validation.validate</value> <value>macro:///IPHRedaction.Validation.validateButton</value>
</prop> </prop>
<prop oor:name="Target" oor:type="xs:string"> <prop oor:name="Target" oor:type="xs:string">
<value>_self</value> <value>_self</value>
</prop> </prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"> <prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/img-48.png</value> <value>%origin%/IPHRedaction/validate</value>
</prop> </prop>
</node> </node>
<node oor:name="buttonClean" oor:op="replace"> <node oor:name="buttonClean" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string"> <prop oor:name="Context" oor:type="xs:string">
@ -82,9 +94,9 @@
<prop oor:name="Target" oor:type="xs:string"> <prop oor:name="Target" oor:type="xs:string">
<value>_self</value> <value>_self</value>
</prop> </prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string"> <prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/img-48.png</value> <value>%origin%/IPHRedaction/testfont</value>
</prop> </prop>
</node> </node>

Binary file not shown.

View file

@ -71,7 +71,7 @@ Sub workaroundForDiacriticKerningBug
AskAndReplace("([:print:][\u0300-\u036F])","$1") AskAndReplace("([:print:][\u0300-\u036F])","$1")
End Sub End Sub
Sub validate Sub validateButton
MsgBox "Validation works!" MsgBox "Validation works!"
End Sub End Sub

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

View file

@ -29,8 +29,8 @@
</extension-description> </extension-description>
<icon> <icon>
<default xlink:href="images/img-48.png" /> <default xlink:href="icons/img-48.png" />
<high-contrast xlink:href="images/img-48.png" /> <high-contrast xlink:href="icons/img-48.png" />
</icon> </icon>
</description> </description>