[Libreoffice-bugs] [Bug 45498] PDF export should support Document Type selection (Slides, Handouts, Notes Slides, Notes, Outline) similar to Print

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 27 18:29:12 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=45498

--- Comment #12 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
Created attachment 160008
  --> https://bugs.documentfoundation.org/attachment.cgi?id=160008&action=edit
Glade dialog with single-choice for scope

(In reply to Timur from comment #11)
> I add UX to have mockup. 

How about this? Don't see the use case to print normal or slide sorter + notes.
So I removed the two checkboxes and added one dropdown.

diff --git a/filter/uiconfig/ui/pdfgeneralpage.ui
b/filter/uiconfig/ui/pdfgeneralpage.ui
index 02bef0174279..d636a16da584 100644
--- a/filter/uiconfig/ui/pdfgeneralpage.ui
+++ b/filter/uiconfig/ui/pdfgeneralpage.ui
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.22.1 -->
+<!-- Generated with glade 3.22.2 -->
 <interface domain="flt">
   <requires lib="gtk+" version="3.18"/>
   <object class="GtkSizeGroup"/>
@@ -172,6 +172,75 @@
             <property name="position">0</property>
           </packing>
         </child>
+        <child>
+          <object class="GtkFrame">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label_xalign">0</property>
+            <property name="shadow_type">none</property>
+            <child>
+              <object class="GtkAlignment">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="left_padding">12</property>
+                <child>
+                  <object class="GtkBox">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <child>
+                      <object class="GtkLabel" id="lbScope">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="label" translatable="yes"
context="pdfgeneralpage|scopelabel">_Content:</property>
+                        <property name="use_underline">True</property>
+                        <property name="mnemonic_widget">cbScope</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="GtkComboBoxText" id="cbScope">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="active">0</property>
+                        <items>
+                          <item id="0" translatable="yes"
context="pdfgeneralpage|scopebox_1">Normal</item>
+                          <item id="1" translatable="yes"
context="pdfgeneralpage|scopebox_2">Outline</item>
+                          <item id="2" translatable="yes"
context="pdfgeneralpage|scopebox_3">Notes</item>
+                          <item id="3" translatable="yes"
context="pdfgeneralpage|scopebox_4">Slide Sorter</item>
+                        </items>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
+                      </packing>
+                    </child>
+                  </object>
+                </child>
+              </object>
+            </child>
+            <child type="label">
+              <object class="GtkLabel" id="frmScope">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="label" translatable="yes"
context="pdfgeneralpage|scopeframe">Scope</property>
+                <attributes>
+                  <attribute name="weight" value="bold"/>
+                </attributes>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
         <child>
           <object class="GtkFrame" id="frame2">
             <property name="visible">True</property>
@@ -344,7 +413,7 @@
           <packing>
             <property name="expand">False</property>
             <property name="fill">True</property>
-            <property name="position">1</property>
+            <property name="position">2</property>
           </packing>
         </child>
         <child>
@@ -426,7 +495,7 @@
           <packing>
             <property name="expand">False</property>
             <property name="fill">True</property>
-            <property name="position">2</property>
+            <property name="position">3</property>
           </packing>
         </child>
       </object>
@@ -791,7 +860,7 @@
                       </object>
                       <packing>
                         <property name="left_attach">0</property>
-                        <property name="top_attach">7</property>
+                        <property name="top_attach">5</property>
                       </packing>
                     </child>
                     <child>
@@ -806,7 +875,7 @@
                       </object>
                       <packing>
                         <property name="left_attach">0</property>
-                        <property name="top_attach">8</property>
+                        <property name="top_attach">6</property>
                       </packing>
                     </child>
                     <child>
@@ -819,48 +888,11 @@
                         <property name="use_underline">True</property>
                         <property name="draw_indicator">True</property>
                       </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">5</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkCheckButton" id="notes">
-                        <property name="label" translatable="yes"
context="pdfgeneralpage|notes">Export _notes pages</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">False</property>
-                        <property name="halign">start</property>
-                        <property name="use_underline">True</property>
-                        <property name="draw_indicator">True</property>
-                      </object>
                       <packing>
                         <property name="left_attach">0</property>
                         <property name="top_attach">3</property>
                       </packing>
                     </child>
-                    <child>
-                      <object class="GtkAlignment" id="onlynotesframe">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="left_padding">18</property>
-                        <child>
-                          <object class="GtkCheckButton" id="onlynotes">
-                            <property name="label" translatable="yes"
context="pdfgeneralpage|onlynotes">Export onl_y notes pages</property>
-                            <property name="visible">True</property>
-                            <property name="can_focus">True</property>
-                            <property name="receives_default">False</property>
-                            <property name="halign">start</property>
-                            <property name="use_underline">True</property>
-                            <property name="draw_indicator">True</property>
-                          </object>
-                        </child>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">4</property>
-                      </packing>
-                    </child>
                     <child>
                       <object class="GtkCheckButton" id="singlepagesheets">
                         <property name="label" translatable="yes"
context="pdfgeneralpage|singlepagesheets">Whole sheet export</property>
@@ -873,7 +905,7 @@
                       </object>
                       <packing>
                         <property name="left_attach">0</property>
-                        <property name="top_attach">6</property>
+                        <property name="top_attach">4</property>
                       </packing>
                     </child>
                   </object>
@@ -921,6 +953,7 @@
       <widget name="all"/>
       <widget name="range"/>
       <widget name="selection"/>
+      <widget name="lbScope"/>
       <widget name="losslesscompress"/>
       <widget name="box3"/>
       <widget name="reduceresolution"/>
@@ -930,6 +963,7 @@
   <object class="GtkSizeGroup" id="sizegroupWidget">
     <widgets>
       <widget name="pages"/>
+      <widget name="cbScope"/>
       <widget name="qualityframe"/>
       <widget name="resolution"/>
       <widget name="watermarkentry"/>
diff --git a/translations b/translations
index ebb391af0691..0a73e51795ef 160000
--- a/translations
+++ b/translations
@@ -1 +1 @@
-Subproject commit ebb391af06913d791a1b283415744bc9521b4cb0
+Subproject commit 0a73e51795ef412006c59d3723f265fed445dea1

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200427/f7026b08/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list