[Libreoffice-commits] core.git: sw/AllLangResTarget_sw.mk sw/inc sw/source sw/uiconfig sw/UIConfig_swriter.mk

Caolán McNamara caolanm at redhat.com
Tue Aug 6 22:42:28 PDT 2013


 sw/AllLangResTarget_sw.mk                  |    1 
 sw/UIConfig_swriter.mk                     |    1 
 sw/inc/helpid.h                            |    1 
 sw/source/ui/envelp/labprt.cxx             |   98 ++++------
 sw/source/ui/envelp/labprt.hrc             |   49 -----
 sw/source/ui/envelp/labprt.hxx             |   27 +-
 sw/source/ui/envelp/labprt.src             |  122 ------------
 sw/uiconfig/swriter/ui/labeloptionspage.ui |  284 +++++++++++++++++++++++++++++
 8 files changed, 340 insertions(+), 243 deletions(-)

New commits:
commit c5740ff43bea7ab7362812cb6fd77507ba100359
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Aug 6 23:06:11 2013 +0200

    convert label options tabpage to .ui
    
    Change-Id: I3fd082bc3a8989f6099ee826f61240d9227b2afe

diff --git a/sw/AllLangResTarget_sw.mk b/sw/AllLangResTarget_sw.mk
index 0916793..0d1cc07 100644
--- a/sw/AllLangResTarget_sw.mk
+++ b/sw/AllLangResTarget_sw.mk
@@ -102,7 +102,6 @@ $(eval $(call gb_SrsTarget_add_files,sw/res,\
     sw/source/ui/envelp/envprt.src \
     sw/source/ui/envelp/label.src \
     sw/source/ui/envelp/labfmt.src \
-    sw/source/ui/envelp/labprt.src \
     sw/source/ui/envelp/mailmrge.src \
     sw/source/ui/fldui/flddb.src \
     sw/source/ui/fldui/flddinf.src \
diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk
index 8e7f217..34ea76f 100644
--- a/sw/UIConfig_swriter.mk
+++ b/sw/UIConfig_swriter.mk
@@ -102,6 +102,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
 	sw/uiconfig/swriter/ui/insertsectiondialog \
 	sw/uiconfig/swriter/ui/insertscript \
 	sw/uiconfig/swriter/ui/inserttable \
+	sw/uiconfig/swriter/ui/labeloptionspage \
 	sw/uiconfig/swriter/ui/linenumbering \
 	sw/uiconfig/swriter/ui/mailconfigpage \
 	sw/uiconfig/swriter/ui/mailmergedialog \
diff --git a/sw/inc/helpid.h b/sw/inc/helpid.h
index 6127920..0a4014c 100644
--- a/sw/inc/helpid.h
+++ b/sw/inc/helpid.h
@@ -145,7 +145,6 @@
 #define HID_FRM_STD                                             "SW_HID_FRM_STD"
 #define HID_GRF_EXT                                             "SW_HID_GRF_EXT"
 #define HID_LAB_LAB                                             "SW_HID_LAB_LAB"
-#define HID_LAB_PRT                                             "SW_HID_LAB_PRT"
 #define HID_ENV_PRT                                             "SW_HID_ENV_PRT"
 #define HID_LAB_FMT                                             "SW_HID_LAB_FMT"
 #define HID_ENV_ENV                                             "SW_HID_ENV_ENV"
diff --git a/sw/source/ui/envelp/labprt.cxx b/sw/source/ui/envelp/labprt.cxx
index de6a37e..c59b359 100644
--- a/sw/source/ui/envelp/labprt.cxx
+++ b/sw/source/ui/envelp/labprt.cxx
@@ -27,44 +27,36 @@
 #include "swuilabimp.hxx"
 
 #include <cmdid.h>
-#include <labprt.hrc>
-
-SwLabPrtPage::SwLabPrtPage(Window* pParent, const SfxItemSet& rSet) :
-
-    SfxTabPage(pParent, SW_RES(TP_LAB_PRT), rSet),
-
-    pPrinter( 0 ),
-    aFLDontKnow    (this, SW_RES(FL_DONTKNOW)),
-    aPageButton    (this, SW_RES(BTN_PAGE   )),
-    aSingleButton  (this, SW_RES(BTN_SINGLE )),
-    aColText       (this, SW_RES(TXT_COL    )),
-    aColField      (this, SW_RES(FLD_COL    )),
-    aRowText       (this, SW_RES(TXT_ROW    )),
-    aRowField      (this, SW_RES(FLD_ROW    )),
-    aSynchronCB    (this, SW_RES(CB_SYNCHRON)),
-    aFLPrinter     (this, SW_RES(FL_PRINTER )),
-    aPrinterInfo   (this, SW_RES(INF_PRINTER)),
-    aPrtSetup      (this, SW_RES(BTN_PRTSETUP))
 
+SwLabPrtPage::SwLabPrtPage(Window* pParent, const SfxItemSet& rSet)
+    : SfxTabPage(pParent, "LabelOptionsPage",
+        "modules/swriter/ui/labeloptionspage.ui", rSet)
+    , pPrinter(0)
 {
-    FreeResource();
+    get(m_pPageButton, "entirepage");
+    get(m_pSingleButton, "singlelabel");
+    get(m_pSingleGrid, "singlegrid");
+    get(m_pColField, "cols");
+    get(m_pRowField, "rows");
+    get(m_pSynchronCB, "synchronize");
+    get(m_pPrinterFrame, "printerframe");
+    get(m_pPrinterInfo, "printername");
+    get(m_pPrtSetup, "setup");
     SetExchangeSupport();
 
     // Install handlers
     Link aLk = LINK(this, SwLabPrtPage, CountHdl);
-    aPageButton  .SetClickHdl( aLk );
-    aSingleButton.SetClickHdl( aLk );
+    m_pPageButton->SetClickHdl( aLk );
+    m_pSingleButton->SetClickHdl( aLk );
 
-    aPrtSetup.SetClickHdl( aLk );
+    m_pPrtSetup->SetClickHdl( aLk );
 
     SvtCommandOptions aCmdOpts;
     if ( aCmdOpts.Lookup(
              SvtCommandOptions::CMDOPTION_DISABLED,
              OUString( "Print"  ) ) )
     {
-        aPrinterInfo.Hide();
-        aPrtSetup.Hide();
-        aFLPrinter.Hide();
+        m_pPrinterFrame->Hide();
     }
 }
 
@@ -75,7 +67,7 @@ SwLabPrtPage::~SwLabPrtPage()
 
 IMPL_LINK( SwLabPrtPage, CountHdl, Button *, pButton )
 {
-    if (pButton == &aPrtSetup)
+    if (pButton == m_pPrtSetup)
     {
         // Call printer setup
         if (!pPrinter)
@@ -86,20 +78,17 @@ IMPL_LINK( SwLabPrtPage, CountHdl, Button *, pButton )
         pDlg->Execute();
         delete pDlg;
         GrabFocus();
-        aPrinterInfo.SetText(pPrinter->GetName());
+        m_pPrinterInfo->SetText(pPrinter->GetName());
         return 0;
     }
-    const sal_Bool bEnable = pButton == &aSingleButton;
-    aColText .Enable(bEnable);
-    aColField.Enable(bEnable);
-    aRowText .Enable(bEnable);
-    aRowField.Enable(bEnable);
-    aSynchronCB.Enable(!bEnable);
-
-    OSL_ENSURE(!bEnable || pButton == &aPageButton, "NewButton?" );
+    const bool bEnable = pButton == m_pSingleButton;
+    m_pSingleGrid->Enable(bEnable);
+    m_pSynchronCB->Enable(!bEnable);
+
+    OSL_ENSURE(!bEnable || pButton == m_pPageButton, "NewButton?" );
     if ( bEnable )
     {
-        aColField.GrabFocus();
+        m_pColField->GrabFocus();
     }
     return 0;
 }
@@ -124,10 +113,10 @@ int SwLabPrtPage::DeactivatePage(SfxItemSet* _pSet)
 
 void SwLabPrtPage::FillItem(SwLabItem& rItem)
 {
-    rItem.bPage = aPageButton.IsChecked();
-    rItem.nCol  = (sal_uInt16) aColField.GetValue();
-    rItem.nRow  = (sal_uInt16) aRowField.GetValue();
-    rItem.bSynchron = aSynchronCB.IsChecked() && aSynchronCB.IsEnabled();
+    rItem.bPage = m_pPageButton->IsChecked();
+    rItem.nCol  = (sal_uInt16) m_pColField->GetValue();
+    rItem.nRow  = (sal_uInt16) m_pRowField->GetValue();
+    rItem.bSynchron = m_pSynchronCB->IsChecked() && m_pSynchronCB->IsEnabled();
 }
 
 sal_Bool SwLabPrtPage::FillItemSet(SfxItemSet& rSet)
@@ -145,38 +134,35 @@ void SwLabPrtPage::Reset(const SfxItemSet& )
     SwLabItem aItem;
     GetParentSwLabDlg()->GetLabItem(aItem);
 
-    aColField.SetValue   (aItem.nCol);
-    aRowField.SetValue   (aItem.nRow);
+    m_pColField->SetValue   (aItem.nCol);
+    m_pRowField->SetValue   (aItem.nRow);
 
     if (aItem.bPage)
     {
-        aPageButton.Check();
-        aPageButton.GetClickHdl().Call(&aPageButton);
+        m_pPageButton->Check();
+        m_pPageButton->GetClickHdl().Call(m_pPageButton);
     }
     else
     {
-        aSingleButton.GetClickHdl().Call(&aSingleButton);
-        aSingleButton.Check();
+        m_pSingleButton->GetClickHdl().Call(m_pSingleButton);
+        m_pSingleButton->Check();
     }
 
     if (pPrinter)
     {
         // show printer
-        aPrinterInfo.SetText(pPrinter->GetName());
+        m_pPrinterInfo->SetText(pPrinter->GetName());
     }
     else
-        aPrinterInfo.SetText(Printer::GetDefaultPrinterName());
+        m_pPrinterInfo->SetText(Printer::GetDefaultPrinterName());
 
-    aColField.SetMax(aItem.nCols);
-    aRowField.SetMax(aItem.nRows);
+    m_pColField->SetMax(aItem.nCols);
+    m_pRowField->SetMax(aItem.nRows);
 
-    aColField.SetLast(aColField.GetMax());
-    aRowField.SetLast(aRowField.GetMax());
+    m_pColField->SetLast(m_pColField->GetMax());
+    m_pRowField->SetLast(m_pRowField->GetMax());
 
-    aSynchronCB.Check(aItem.bSynchron);
+    m_pSynchronCB->Check(aItem.bSynchron);
 }
 
-
-
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/labprt.hrc b/sw/source/ui/envelp/labprt.hrc
deleted file mode 100644
index c47a47c5..0000000
--- a/sw/source/ui/envelp/labprt.hrc
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef _LABPRT_HRC
-#define _LABPRT_HRC
-
-#include "envelp.hrc"
-
-// local resources *********************************************************
-
-#define BTN_PAGE      1
-#define BTN_SINGLE    2
-#define INF_PRINTER   3
-#define TXT_COL       4
-#define FLD_COL       5
-#define TXT_ROW       6
-#define FLD_ROW       7
-#define BTN_PRTSETUP  8
-#define FL_PRINTER    9
-#define FL_DONTKNOW  10
-#define CB_SYNCHRON  11
-
-// overflow check ********************************************************
-
-#define LABPRT_ACT_END  0
-
-#if LABPRT_ACT_END > RC_LABPRT_END
-#error Resource-Ueberlauf in #file, #line
-#endif
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx
index da793ca7..33d950b 100644
--- a/sw/source/ui/envelp/labprt.hxx
+++ b/sw/source/ui/envelp/labprt.hxx
@@ -19,10 +19,11 @@
 #ifndef _LABPRT_HXX
 #define _LABPRT_HXX
 
-#include <vcl/group.hxx>
+#include <vcl/button.hxx>
 #include <vcl/field.hxx>
+#include <vcl/group.hxx>
+#include <vcl/layout.hxx>
 #include <svtools/stdctrl.hxx>
-#include <vcl/button.hxx>
 #include <sfx2/tabdlg.hxx>
 
 
@@ -35,18 +36,16 @@ class SwLabPrtPage : public SfxTabPage
 {
     Printer*      pPrinter;             // for the shaft setting - unfortunately
 
-    FixedLine     aFLDontKnow;
-    RadioButton   aPageButton;
-    RadioButton   aSingleButton;
-    FixedText     aColText;
-    NumericField  aColField;
-    FixedText     aRowText;
-    NumericField  aRowField;
-    CheckBox      aSynchronCB;
-
-    FixedLine     aFLPrinter;
-    FixedInfo     aPrinterInfo;
-    PushButton    aPrtSetup;
+    RadioButton*  m_pPageButton;
+    RadioButton*  m_pSingleButton;
+    VclContainer* m_pSingleGrid;
+    VclContainer* m_pPrinterFrame;
+    NumericField* m_pColField;
+    NumericField* m_pRowField;
+    CheckBox*     m_pSynchronCB;
+
+    FixedText*    m_pPrinterInfo;
+    PushButton*   m_pPrtSetup;
 
      SwLabPrtPage(Window* pParent, const SfxItemSet& rSet);
     ~SwLabPrtPage();
diff --git a/sw/source/ui/envelp/labprt.src b/sw/source/ui/envelp/labprt.src
deleted file mode 100644
index b55a949..0000000
--- a/sw/source/ui/envelp/labprt.src
+++ /dev/null
@@ -1,122 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- *   Licensed to the Apache Software Foundation (ASF) under one or more
- *   contributor license agreements. See the NOTICE file distributed
- *   with this work for additional information regarding copyright
- *   ownership. The ASF licenses this file to you under the Apache
- *   License, Version 2.0 (the "License"); you may not use this file
- *   except in compliance with the License. You may obtain a copy of
- *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "labprt.hrc"
-#include "helpid.h"
- // TP_LAB_PRT ---------------------------------------------------------------
-TabPage TP_LAB_PRT
-{
-    HelpID = HID_LAB_PRT ;
-    Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
-    Hide = TRUE ;
-    RadioButton BTN_PAGE
-    {
-        HelpID = "sw:RadioButton:TP_LAB_PRT:BTN_PAGE";
-        Pos = MAP_APPFONT ( 12 , 14 ) ;
-        Size = MAP_APPFONT ( 70 , 10 ) ;
-        TabStop = TRUE ;
-        Group = TRUE ;
-        Text [ en-US ] = "~Entire page" ;
-    };
-    RadioButton BTN_SINGLE
-    {
-        HelpID = "sw:RadioButton:TP_LAB_PRT:BTN_SINGLE";
-        Pos = MAP_APPFONT ( 12 , 28 ) ;
-        Size = MAP_APPFONT ( 70 , 10 ) ;
-        Text [ en-US ] = "~Single label" ;
-    };
-    FixedText TXT_COL
-    {
-        Pos = MAP_APPFONT ( 127 , 29 ) ;
-        Size = MAP_APPFONT ( 30 , 8 ) ;
-        Text [ en-US ] = "Colu~mn" ;
-        Left = TRUE ;
-    };
-    NumericField FLD_COL
-    {
-        HelpID = "sw:NumericField:TP_LAB_PRT:FLD_COL";
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 160 , 27 ) ;
-        Size = MAP_APPFONT ( 24 , 12 ) ;
-        TabStop = TRUE ;
-        Left = TRUE ;
-        Repeat = TRUE ;
-        Spin = TRUE ;
-        Minimum = 1 ;
-        First = 1 ;
-    };
-    FixedText TXT_ROW
-    {
-        Pos = MAP_APPFONT ( 191 , 29 ) ;
-        Size = MAP_APPFONT ( 30 , 8 ) ;
-        Text [ en-US ] = "Ro~w" ;
-        Left = TRUE ;
-    };
-    NumericField FLD_ROW
-    {
-        HelpID = "sw:NumericField:TP_LAB_PRT:FLD_ROW";
-        Border = TRUE ;
-        Pos = MAP_APPFONT ( 224 , 27 ) ;
-        Size = MAP_APPFONT ( 24 , 12 ) ;
-        TabStop = TRUE ;
-        Left = TRUE ;
-        Repeat = TRUE ;
-        Spin = TRUE ;
-        Minimum = 1 ;
-        First = 1 ;
-    };
-    CheckBox CB_SYNCHRON
-    {
-        HelpID = "sw:CheckBox:TP_LAB_PRT:CB_SYNCHRON";
-        Pos = MAP_APPFONT ( 12 , 43 ) ;
-        Size = MAP_APPFONT ( 120 , 10 ) ;
-        TabStop = TRUE ;
-        Text [ en-US ] = "Synchroni~ze contents" ;
-    };
-    FixedLine FL_DONTKNOW
-    {
-        Pos = MAP_APPFONT ( 6 , 3 ) ;
-        Size = MAP_APPFONT ( 248 , 8 ) ;
-        Text [ en-US ] = "Distribute";
-    };
-    FixedText INF_PRINTER
-    {
-        Pos = MAP_APPFONT ( 12 , 73 ) ;
-        Size = MAP_APPFONT ( 182 , 8 ) ;
-        Left = TRUE ;
-        Text [ en-US ] = "Printer Name" ;
-    };
-    PushButton BTN_PRTSETUP
-    {
-        HelpID = "sw:PushButton:TP_LAB_PRT:BTN_PRTSETUP";
-        Pos = MAP_APPFONT ( 198 , 70 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        TabStop = TRUE ;
-        Text [ en-US ] = "Setup..." ;
-    };
-    FixedLine FL_PRINTER
-    {
-        Pos = MAP_APPFONT ( 6 , 59 ) ;
-        Size = MAP_APPFONT ( 248 , 8 ) ;
-        Text [ en-US ] = " Printer " ;
-    };
-};
- // **************************************************************************
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/uiconfig/swriter/ui/labeloptionspage.ui b/sw/uiconfig/swriter/ui/labeloptionspage.ui
new file mode 100644
index 0000000..528e7d1
--- /dev/null
+++ b/sw/uiconfig/swriter/ui/labeloptionspage.ui
@@ -0,0 +1,284 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkAdjustment" id="adjustment1">
+    <property name="lower">1</property>
+    <property name="upper">100</property>
+    <property name="value">1</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
+  <object class="GtkBox" id="LabelOptionsPage">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="border_width">6</property>
+    <property name="orientation">vertical</property>
+    <property name="spacing">12</property>
+    <child>
+      <object class="GtkFrame" id="frame1">
+        <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" id="alignment1">
+            <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="GtkGrid" id="grid2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="row_spacing">6</property>
+                <property name="column_spacing">12</property>
+                <child>
+                  <object class="GtkRadioButton" id="entirepage">
+                    <property name="label" translatable="yes">_Entire page</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">False</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                    <property name="active">True</property>
+                    <property name="draw_indicator">True</property>
+                    <property name="group">singlelabel</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">0</property>
+                    <property name="width">2</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkRadioButton" id="singlelabel">
+                    <property name="label" translatable="yes">_Single label</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">False</property>
+                    <property name="hexpand">True</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                    <property name="draw_indicator">True</property>
+                    <property name="group">entirepage</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">1</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkGrid" id="singlegrid">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="column_spacing">18</property>
+                    <child>
+                      <object class="GtkGrid" id="grid4">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="column_spacing">12</property>
+                        <child>
+                          <object class="GtkLabel" id="label4">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="xalign">0</property>
+                            <property name="label" translatable="yes">Colu_mn</property>
+                            <property name="use_underline">True</property>
+                            <property name="mnemonic_widget">cols</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">0</property>
+                            <property name="top_attach">0</property>
+                            <property name="width">1</property>
+                            <property name="height">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkSpinButton" id="cols">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="invisible_char">●</property>
+                            <property name="adjustment">adjustment1</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">1</property>
+                            <property name="top_attach">0</property>
+                            <property name="width">1</property>
+                            <property name="height">1</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="left_attach">0</property>
+                        <property name="top_attach">0</property>
+                        <property name="width">1</property>
+                        <property name="height">1</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkGrid" id="grid5">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="column_spacing">12</property>
+                        <child>
+                          <object class="GtkLabel" id="label5">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="xalign">0</property>
+                            <property name="label" translatable="yes">Ro_w</property>
+                            <property name="use_underline">True</property>
+                            <property name="mnemonic_widget">rows</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">0</property>
+                            <property name="top_attach">0</property>
+                            <property name="width">1</property>
+                            <property name="height">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkSpinButton" id="rows">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="invisible_char">●</property>
+                            <property name="adjustment">adjustment1</property>
+                          </object>
+                          <packing>
+                            <property name="left_attach">1</property>
+                            <property name="top_attach">0</property>
+                            <property name="width">1</property>
+                            <property name="height">1</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="left_attach">1</property>
+                        <property name="top_attach">0</property>
+                        <property name="width">1</property>
+                        <property name="height">1</property>
+                      </packing>
+                    </child>
+                  </object>
+                  <packing>
+                    <property name="left_attach">1</property>
+                    <property name="top_attach">1</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkCheckButton" id="synchronize">
+                    <property name="label" translatable="yes">Synchroni_ze contents</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">False</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                    <property name="draw_indicator">True</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">2</property>
+                    <property name="width">2</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child type="label">
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label">Distribute</property>
+            <attributes>
+              <attribute name="weight" value="semibold"/>
+            </attributes>
+          </object>
+        </child>
+      </object>
+      <packing>
+        <property name="expand">False</property>
+        <property name="fill">True</property>
+        <property name="position">0</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkFrame" id="printerframe">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="hexpand">True</property>
+        <property name="label_xalign">0</property>
+        <property name="shadow_type">none</property>
+        <child>
+          <object class="GtkAlignment" id="alignment2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <property name="top_padding">6</property>
+            <property name="left_padding">12</property>
+            <child>
+              <object class="GtkGrid" id="grid1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+                <property name="column_spacing">12</property>
+                <child>
+                  <object class="GtkButton" id="setup">
+                    <property name="label" translatable="yes">Setup...</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="use_underline">True</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">1</property>
+                    <property name="top_attach">0</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="printername">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="hexpand">True</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Printer Name</property>
+                    <property name="use_underline">True</property>
+                    <property name="mnemonic_widget">setup</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">0</property>
+                    <property name="width">1</property>
+                    <property name="height">1</property>
+                  </packing>
+                </child>
+              </object>
+            </child>
+          </object>
+        </child>
+        <child type="label">
+          <object class="GtkLabel" id="label2">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label">Printer</property>
+            <attributes>
+              <attribute name="weight" value="semibold"/>
+            </attributes>
+          </object>
+        </child>
+      </object>
+      <packing>
+        <property name="expand">False</property>
+        <property name="fill">True</property>
+        <property name="position">1</property>
+      </packing>
+    </child>
+  </object>
+</interface>


More information about the Libreoffice-commits mailing list