From 3ed60d22c3c2a43d0460520485c3b6ecca00e239 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@collabora.co.uk>
Date: Thu, 30 Nov 2017 16:35:04 +0100
Subject: EPUB export: add UI to test custom media directory

Sets the RVNGMediaDir filter data key at UNO level.

Change-Id: I9919e5ca39c9f4f126d1d67946c8bec99ce0381d
Reviewed-on: https://gerrit.libreoffice.org/45603
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
---
 writerperfect/uiconfig/ui/exportepub.ui | 89 ++++++++++++++++++++++++++++++---
 1 file changed, 81 insertions(+), 8 deletions(-)

(limited to 'writerperfect/uiconfig')

diff --git a/writerperfect/uiconfig/ui/exportepub.ui b/writerperfect/uiconfig/ui/exportepub.ui
index bc55aff5eeda..3d7c28af73be 100644
--- a/writerperfect/uiconfig/ui/exportepub.ui
+++ b/writerperfect/uiconfig/ui/exportepub.ui
@@ -172,7 +172,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|splitft">Split method:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">splitlb</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
@@ -225,7 +225,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|coverimageft">Custom cover image:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">coverpath</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
@@ -279,6 +279,79 @@
                     <property name="position">3</property>
                   </packing>
                 </child>
+                <child>
+                  <object class="GtkAlignment" id="alignment4">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="top_padding">6</property>
+                    <property name="left_padding">12</property>
+                    <child>
+                      <object class="GtkBox" id="box8">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="orientation">vertical</property>
+                        <property name="spacing">6</property>
+                        <child>
+                          <object class="GtkLabel" id="mediadirft">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="margin_top">6</property>
+                            <property name="label" translatable="yes" context="exportepub|mediadirft">Custom media directory:</property>
+                            <property name="use_underline">True</property>
+                            <property name="mnemonic_widget">mediadir</property>
+                            <property name="xalign">0</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkBox" id="box9">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="spacing">12</property>
+                            <child>
+                              <object class="GtkEntry" id="mediadir">
+                                <property name="visible">True</property>
+                                <property name="can_focus">True</property>
+                              </object>
+                              <packing>
+                                <property name="expand">True</property>
+                                <property name="fill">True</property>
+                                <property name="position">0</property>
+                              </packing>
+                            </child>
+                            <child>
+                              <object class="GtkButton" id="mediabutton">
+                                <property name="label" translatable="yes" context="exportepub|mediabutton">Browse...</property>
+                                <property name="visible">True</property>
+                                <property name="can_focus">True</property>
+                                <property name="receives_default">True</property>
+                              </object>
+                              <packing>
+                                <property name="expand">False</property>
+                                <property name="fill">True</property>
+                                <property name="position">1</property>
+                              </packing>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                      </object>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">4</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -311,7 +384,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkAlignment" id="alignment4">
+                  <object class="GtkAlignment" id="alignment5">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="left_padding">12</property>
@@ -338,7 +411,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|identifierft">Identifier:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">identifier</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
@@ -353,7 +426,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|titleft">Title:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">title</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
@@ -378,7 +451,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|authorft">Author:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">author</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
@@ -403,7 +476,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|languageft">Language:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">language</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
@@ -428,7 +501,7 @@
                             <property name="margin_top">6</property>
                             <property name="label" translatable="yes" context="exportepub|dateft">Date:</property>
                             <property name="use_underline">True</property>
-                            <property name="mnemonic_widget">versionlb</property>
+                            <property name="mnemonic_widget">date</property>
                             <property name="xalign">0</property>
                           </object>
                           <packing>
-- 
cgit