2016-05-27 1 views
0

私はopen office calcのプロジェクトをWindowsとubuntuで実行しようとしましたが、画像はWindowsでは表示されますが、ubuntuでは表示されません。 私はAddons.xcuに次のコードを使用していたOXT>レジストリ>データ>組織>のOpenOffice>オフィスで見つかっ> Addons.xcuUbuntuの拡張オフィススプレッドシート文書内の拡張ツールバーに画像を取得

私は[https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/AddOns/Images_for_Toolbars_and_Menus][1]

に言われているように従うことを試みた。しかし私は、オープンオフィスのスプレッドシートツールバーでubuntuで画像を取得する方法を取得することができません。

<node oor:name="com.abc.user guide.images" oor:op="replace"> 
       <prop oor:name="URL" oor:type="xs:string"> 
        <value>com.abc:User Guide</value> 
       </prop> 
       <node oor:name="UserDefinedImages"> 
        <prop oor:name="ImageSmallURL">  <value>vnd.sun.star.extension://com.ABC/images/help16.png</value><!--Have tried this code but it works in windows, not Ubuntu--> 
         <!--      <value>%origin%/../../../../../images/help16.png</value> works in case of windows--><!--Have also tried this code,but it works in windows, not Ubuntu--> 
        </prop> 
        <prop oor:name="ImageBigURL"> 
         <value/> 
         <!--<value>vnd.sun.star.extension://com.ABC/images/help16.png</value>--> 
        </prop> 
        <prop oor:name="ImageSmallHCURL"> 
         <value/> 
        </prop> 
        <prop oor:name="ImageBigHCURL"> 
         <value/> 
        </prop> 
       </node> 
      </node> 
+0

//com.abcを//com.abcまたはcom.abcまたはcom.ABCに変更しようとしましたか?これらのxcuファイルは本当に苦しいことがあります。 –

+0

はい、何も機能しませんでした。 – Rubal

答えて

0

私はUbuntuの中にオープンオフィスのメニューツールバーのドロップダウンメニューの画像が、表示されていない、ため、OSにその差は思いますが、比較はWindowsの間にあるときではなく、彼らは、Windowsでのみ表示されますとUbuntu。 私は、WindowsとUbuntuの両方のオープンオフィスエクステンションでプロジェクトを試みました。

アイコン画像をJframeに置いても、開いたときにはフレーム内に表示されませんが、Ubuntuのタスクバーでは、Windowsの場合とは逆に、画像がアイコンとしてフレームの上隅に表示されますまた、Windowsのタスクバーにも表示されます。

また、メニューボタンの向こう側に画像がない、またはドロップダウンしたオープンオフィスの他のメニュー項目と比較しました。

結論:OSの違い。

0

Linux Mint(Ubuntu)のツールバーイメージとドロップダウンメニュー項目の4つのイメージを含むLibreoffice 5.0ライターアプリケーションの場合は、Addons.xcuを使用します。
私はあなたがそれから骨を選ぶことができればうれしく思います。それは編集の膨大な量を必要とし、文書化は助けよりも障害であったからです。
注:画像は26x26または16x16である必要があります。なぜ私は今覚えていない。

<?xml version='1.0' encoding='UTF-8'?> 
<oor:component-data oor:name="Addons" oor:package="org.openoffice.Office" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<node oor:name="AddonUI"> 
    <node oor:name="OfficeMenuBarMerging"> 
    <node oor:name="libreoffice.footswitch" oor:op="replace"> 
    <node oor:name="S1" oor:op="replace"> 
    <prop oor:name="MergePoint"> 
     <value>.uno:ToolsMenu</value> 
    </prop> 
    <prop oor:name="MergeCommand"> 
     <value>AddAfter</value> 
    </prop> 
    <prop oor:name="MergeFallback"> 
     <value>AddPath</value> 
    </prop> 
    <node oor:name="MenuItems"> 
     <node oor:name="M1" oor:op="replace"> 
     <prop oor:name="Title"> 
     <value xml:lang="en-GB">Footswitch</value> 
     <value xml:lang="en-US">Footswitch</value> 
     <value xml:lang="es">Footswitch</value> 
     <value xml:lang="de">Footswitch</value> 
     </prop> 
     <prop oor:name="Context" oor:type="xs:string"> 
     <value>com.sun.star.text.TextDocument, com.sun.star.text.WebDocument</value> 
     </prop> 
     <node oor:name="Submenu"> 
     <node oor:name="M1" oor:op="replace"> 
     <prop oor:name="Title"> 
      <value xml:lang="en-GB">Start footswitch</value> 
      <value xml:lang="en-US">Start footswitch</value> 
      <value xml:lang="es">Iniciar footswitch</value> 
      <value xml:lang="de">Starten footswitch</value> 
     </prop> 
     <prop oor:name="URL"> 
      <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$footswitch?language=Python&amp;location=user:uno_packages</value> 
     </prop> 
     <prop oor:name="ImageIdentifier" oor:type="xs:string"> 
     <value>%origin%/icons/footswitch.png</value> 
     </prop> 
     <prop oor:name="Context" oor:type="xs:string"> 
      <value>com.sun.star.text.TextDocument, com.sun.star.text.WebDocument</value> 
     </prop> 
     </node> 
     </node> 
     <node oor:name="Submenu"> 
     <node oor:name="M2" oor:op="replace"> 
     <prop oor:name="Title"> 
      <value xml:lang="en-GB">List HID Devices</value> 
      <value xml:lang="en-US">List HID Devices</value> 
      <value xml:lang="es">Lista dispositivos de HID</value> 
      <value xml:lang="de">Liste HID Geräte</value> 

     </prop> 
     <prop oor:name="URL"> 
      <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$list_hid_devices?language=Python&amp;location=user:uno_packages</value> 
     </prop> 
     <prop oor:name="Context" oor:type="xs:string"> 
      <value>com.sun.star.text.TextDocument, com.sun.star.text.WebDocument</value> 
     </prop> 
     </node> 
     </node> 
     <node oor:name="Submenu"> 
     <node oor:name="M3" oor:op="replace"> 
     <prop oor:name="Title"> 
      <value xml:lang="en-GB">footswitch help</value> 
      <value xml:lang="en-US">footswitch help</value> 
      <value xml:lang="es">footswitch Ayuda</value> 
      <value xml:lang="de">footswitch Hilfe</value> 
     </prop> 
     <prop oor:name="URL"> 
      <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$HelpBox?language=Python&amp;location=user:uno_packages</value> 
     </prop> 
     <prop oor:name="Context" oor:type="xs:string"> 
      <value>com.sun.star.text.TextDocument, com.sun.star.text.WebDocument</value> 
     </prop> 
     </node> 
     </node> 
     <node oor:name="Submenu"> 
     <node oor:name="M4" oor:op="replace"> 
     <prop oor:name="Title"> 
      <value xml:lang="en-GB">Edit Config file</value> 
      <value xml:lang="en-US">Edit Config file</value> 
      <value xml:lang="es">Editar archivo de configuración</value> 
      <value xml:lang="de">Bearbeiten Konfigurationsdatei</value> 
     </prop> 
     <prop oor:name="URL"> 
      <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$EditConfigurationFile?language=Python&amp;location=user:uno_packages</value> 
     </prop> 
     <prop oor:name="Context" oor:type="xs:string"> 
      <value>com.sun.star.text.TextDocument, com.sun.star.text.WebDocument</value> 
     </prop> 
     </node> 
     </node> 
     </node> 
    </node> 
    </node> 
    </node> 
    </node> 
<!-- Insert a toolbar image for Start footswitch --> 
    <node oor:name="OfficeToolBar"> 
     <node oor:name="footswitch.OfficeToolBar" oor:op="replace"> 
      <node oor:name="fstb01" oor:op="replace"> 
       <prop oor:name="URL" oor:type="xs:string"> 
        <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$footswitch?language=Python&amp;location=user:uno_packages</value> 
       </prop> 
       <prop oor:name="Title" oor:type="xs:string"> 
        <value xml:lang="en">Start footswitch</value> 
        <value xml:lang="es">Iniciar footswitch</value> 
        <value xml:lang="de">Starten footswitch</value> 
       </prop> 
       <prop oor:name="Target" oor:type="xs:string"> 
        <value>_self</value> 
       </prop> 
       <prop oor:name="Context" oor:type="xs:string"> 
        <value>com.sun.star.text.TextDocument, com.sun.star.text.WebDocument</value> 
       </prop> 
      </node> 
    </node> 
    </node> 

<!-- Assign an image to any reference to the footswitch URL --> 
    <node oor:name="Images"> 
    <node oor:name="libreoffice.footswitch.image1" oor:op="replace"> 
    <prop oor:name="URL" oor:type="xs:string"> 
    <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$footswitch?language=Python&amp;location=user:uno_packages</value> 
    </prop> 
    <node oor:name="UserDefinedImages"> 
    <prop oor:name="ImageSmallURL" oor:type="xs:string"> 
    <value>%origin%/icons/footswitch_26.png</value> 
    </prop> 
    <prop oor:name="ImageBigURL" oor:type="xs:string"> 
    <value>%origin%/icons/footswitch_26.png</value> 
    </prop> 
    </node> 
    </node> 
    <node oor:name="libreoffice.footswitch.image2" oor:op="replace"> 
    <prop oor:name="URL" oor:type="xs:string"> 
    <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$EditConfigurationFile?language=Python&amp;location=user:uno_packages</value> 
    </prop> 
    <node oor:name="UserDefinedImages"> 
    <prop oor:name="ImageSmallURL" oor:type="xs:string"> 
    <value>%origin%/icons/config_16.png</value> 
    </prop> 
    </node> 
    </node> 
    <node oor:name="libreoffice.footswitch.image3" oor:op="replace"> 
    <prop oor:name="URL" oor:type="xs:string"> 
    <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$HelpBox?language=Python&amp;location=user:uno_packages</value> 
    </prop> 
    <node oor:name="UserDefinedImages"> 
    <prop oor:name="ImageSmallURL" oor:type="xs:string"> 
    <value>%origin%/icons/help-contents_16.png</value> 
    </prop> 
    </node> 
    </node> 
    <node oor:name="libreoffice.footswitch.image4" oor:op="replace"> 
    <prop oor:name="URL" oor:type="xs:string"> 
    <value>vnd.sun.star.script:footswitch.oxt|footswitch|footswitch.py$list_hid_devices?language=Python&amp;location=user:uno_packages</value> 
    </prop> 
    <node oor:name="UserDefinedImages"> 
    <prop oor:name="ImageSmallURL" oor:type="xs:string"> 
    <value>%origin%/icons/devices_16.png</value> 
    </prop> 
    </node> 
    </node> 
</node> 
</node> 
</oor:component-data> 
関連する問題