[Libreoffice-commits] core.git: 2 commits - helpcontent2 sw/inc sw/source sw/uiconfig

Caolán McNamara caolanm at redhat.com
Sat Sep 14 08:10:48 PDT 2013


 helpcontent2                                 |    2 
 sw/inc/dbui.hrc                              |    2 
 sw/source/ui/dbui/mailmergehelper.cxx        |    2 
 sw/source/ui/dbui/mmaddressblockpage.cxx     |   98 +++++------
 sw/source/ui/dbui/mmaddressblockpage.hrc     |    9 -
 sw/source/ui/dbui/mmaddressblockpage.hxx     |   26 +--
 sw/source/ui/dbui/mmaddressblockpage.src     |  103 ------------
 sw/uiconfig/swriter/ui/addressblockdialog.ui |    2 
 sw/uiconfig/swriter/ui/selectblockdialog.ui  |  224 ++++++++++++++++++++++++++-
 9 files changed, 274 insertions(+), 194 deletions(-)

New commits:
commit d03ec9f32d7a6331e6bc49cf54a54d15a1399638
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Sep 14 15:03:05 2013 +0100

    really convert select address block to .ui
    
    Change-Id: Icfd77f2037a27f24fd796084509a1baa7734103b

diff --git a/sw/inc/dbui.hrc b/sw/inc/dbui.hrc
index 7e24085..361b7da 100644
--- a/sw/inc/dbui.hrc
+++ b/sw/inc/dbui.hrc
@@ -38,7 +38,7 @@
 #define DLG_MM_CREATEADDRESSLIST    (RC_DBUI_BEGIN + 14)
 #define DLG_MM_CUSTOMIZE_ADDRESS_LIST (RC_DBUI_BEGIN + 17)
 
-#define DLG_MM_SELECTADDRESSBLOCK     (RC_DBUI_BEGIN + 19)
+
 #define DLG_MM_ASSIGNFIELDS           (RC_DBUI_BEGIN + 20)
 
 #define DLG_MM_LAYOUT_PAGE            (RC_DBUI_BEGIN + 22)
diff --git a/sw/source/ui/dbui/mailmergehelper.cxx b/sw/source/ui/dbui/mailmergehelper.cxx
index 14cbf1a..f6f9a89 100644
--- a/sw/source/ui/dbui/mailmergehelper.cxx
+++ b/sw/source/ui/dbui/mailmergehelper.cxx
@@ -222,7 +222,7 @@ SwAddressPreview::SwAddressPreview(Window* pParent, WinBits nStyle)
 
 extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwAddressPreview(Window *pParent, VclBuilder::stringmap &rMap)
 {
-    WinBits nWinStyle = WB_NOTABSTOP;
+    WinBits nWinStyle = WB_DIALOGCONTROL;
     OString sBorder = VclBuilder::extractCustomProperty(rMap);
     if (!sBorder.isEmpty())
         nWinStyle |= WB_BORDER;
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index c8be401..dcd6b8f 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -338,44 +338,35 @@ IMPL_LINK(SwMailMergeAddressBlockPage, InsertDataHdl_Impl, ImageButton*, pButton
 }
 
 SwSelectAddressBlockDialog::SwSelectAddressBlockDialog(
-                Window* pParent, SwMailMergeConfigItem& rConfig) :
-    SfxModalDialog(pParent, SW_RES(DLG_MM_SELECTADDRESSBLOCK)),
-#ifdef _MSC_VER
-#pragma warning (disable : 4355)
-#endif
-    m_aSelectFT( this, SW_RES(         FT_SELECT)),
-    m_aPreview( this, SW_RES(          WIN_PREVIEW)),
-    m_aNewPB( this, SW_RES(            PB_NEW)),
-    m_aCustomizePB( this, SW_RES(      PB_CUSTOMIZE)),
-    m_aDeletePB( this, SW_RES(         PB_DELETE)),
-    m_aSettingsFI( this, SW_RES(       FI_SETTINGS)),
-    m_aNeverRB( this, SW_RES(          RB_NEVER)),
-    m_aAlwaysRB( this, SW_RES(         RB_ALWAYS)),
-    m_aDependentRB( this, SW_RES(      RB_DEPENDENT)),
-    m_aCountryED( this, SW_RES(        ED_COUNTRY)),
-    m_aSeparatorFL( this, SW_RES(      FL_SEPARATOR)),
-    m_aOK( this, SW_RES(               PB_OK)),
-    m_aCancel( this, SW_RES(           PB_CANCEL)),
-    m_aHelp( this, SW_RES(             PB_HELP)),
-#ifdef _MSC_VER
-#pragma warning (default : 4355)
-#endif
-    m_rConfig(rConfig)
-{
-    FreeResource();
+                Window* pParent, SwMailMergeConfigItem& rConfig)
+    : SfxModalDialog(pParent, "SelectBlockDialog",
+        "modules/swriter/ui/selectblockdialog.ui")
+    , m_rConfig(rConfig)
+{
+    get(m_pPreview, "preview");
+    Size aSize(m_pPreview->LogicToPixel(Size(192, 100), MapMode(MAP_APPFONT)));
+    m_pPreview->set_width_request(aSize.Width());
+    m_pPreview->set_height_request(aSize.Height());
+    get(m_pNewPB, "new");
+    get(m_pCustomizePB, "edit");
+    get(m_pDeletePB, "delete");
+    get(m_pNeverRB, "never");
+    get(m_pAlwaysRB, "always");
+    get(m_pDependentRB, "dependent");
+    get(m_pCountryED, "country");
 
     Link aCustomizeHdl = LINK(this, SwSelectAddressBlockDialog, NewCustomizeHdl_Impl);
-    m_aNewPB.SetClickHdl(aCustomizeHdl);
-    m_aCustomizePB.SetClickHdl(aCustomizeHdl);
+    m_pNewPB->SetClickHdl(aCustomizeHdl);
+    m_pCustomizePB->SetClickHdl(aCustomizeHdl);
 
-    m_aDeletePB.SetClickHdl(LINK(this, SwSelectAddressBlockDialog, DeleteHdl_Impl));
+    m_pDeletePB->SetClickHdl(LINK(this, SwSelectAddressBlockDialog, DeleteHdl_Impl));
 
     Link aLk = LINK(this, SwSelectAddressBlockDialog, IncludeHdl_Impl);
-    m_aNeverRB.SetClickHdl(aLk);
-    m_aAlwaysRB.SetClickHdl(aLk);
-    m_aDependentRB.SetClickHdl(aLk);
-    m_aPreview.SetLayout(2, 2);
-    m_aPreview.EnableScrollBar();
+    m_pNeverRB->SetClickHdl(aLk);
+    m_pAlwaysRB->SetClickHdl(aLk);
+    m_pDependentRB->SetClickHdl(aLk);
+    m_pPreview->SetLayout(2, 2);
+    m_pPreview->EnableScrollBar();
 }
 
 SwSelectAddressBlockDialog::~SwSelectAddressBlockDialog()
@@ -387,15 +378,15 @@ void SwSelectAddressBlockDialog::SetAddressBlocks(const uno::Sequence< OUString>
 {
     m_aAddressBlocks = rBlocks;
     for(sal_Int32 nAddress = 0; nAddress < m_aAddressBlocks.getLength(); ++nAddress)
-        m_aPreview.AddAddress(m_aAddressBlocks[nAddress]);
-    m_aPreview.SelectAddress(nSelectedAddress);
+        m_pPreview->AddAddress(m_aAddressBlocks[nAddress]);
+    m_pPreview->SelectAddress(nSelectedAddress);
 }
 
 // return the address blocks and put the selected one to the first position
 const uno::Sequence< OUString >&    SwSelectAddressBlockDialog::GetAddressBlocks()
 {
     //put the selected block to the first position
-    sal_uInt16 nSelect = m_aPreview.GetSelectedAddress();
+    sal_uInt16 nSelect = m_pPreview->GetSelectedAddress();
     if(nSelect)
     {
         uno::Sequence< OUString >aTemp = m_aAddressBlocks;
@@ -418,21 +409,22 @@ const uno::Sequence< OUString >&    SwSelectAddressBlockDialog::GetAddressBlocks
 void SwSelectAddressBlockDialog::SetSettings(
         sal_Bool bIsCountry, OUString rCountry)
 {
+    RadioButton *pActive = m_pNeverRB;
     if(bIsCountry)
     {
-        !rCountry.isEmpty() ? m_aDependentRB.Check() : m_aAlwaysRB.Check();
-        m_aCountryED.SetText(rCountry);
+        pActive = !rCountry.isEmpty() ? m_pDependentRB : m_pAlwaysRB;
+        m_pCountryED->SetText(rCountry);
     }
-    else
-        m_aNeverRB.Check();
-    m_aDeletePB.Enable(m_aAddressBlocks.getLength() > 1);
+    pActive->Check();
+    IncludeHdl_Impl(pActive);
+    m_pDeletePB->Enable(m_aAddressBlocks.getLength() > 1);
 }
 
 OUString     SwSelectAddressBlockDialog::GetCountry() const
 {
     OUString sRet;
-    if(m_aDependentRB.IsChecked())
-        sRet = m_aCountryED.GetText();
+    if(m_pDependentRB->IsChecked())
+        sRet = m_pCountryED->GetText();
     return sRet;
 }
 
@@ -440,7 +432,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, DeleteHdl_Impl, PushButton*, pButton)
 {
     if(m_aAddressBlocks.getLength())
     {
-        sal_uInt16 nSelected = m_aPreview.GetSelectedAddress();
+        sal_uInt16 nSelected = m_pPreview->GetSelectedAddress();
         OUString* pAddressBlocks = m_aAddressBlocks.getArray();
         sal_Int32 nSource = 0;
         for(sal_Int32 nTarget = 0; nTarget < m_aAddressBlocks.getLength() - 1; nTarget++)
@@ -452,14 +444,14 @@ IMPL_LINK(SwSelectAddressBlockDialog, DeleteHdl_Impl, PushButton*, pButton)
         m_aAddressBlocks.realloc(m_aAddressBlocks.getLength() - 1);
         if(m_aAddressBlocks.getLength() <= 1)
             pButton->Enable(sal_False);
-        m_aPreview.RemoveSelectedAddress();
+        m_pPreview->RemoveSelectedAddress();
     }
     return 0;
 }
 
 IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton)
 {
-    bool bCustomize = pButton == &m_aCustomizePB;
+    bool bCustomize = pButton == m_pCustomizePB;
     SwCustomizeAddressBlockDialog::DialogType nType = bCustomize ?
         SwCustomizeAddressBlockDialog::ADDRESSBLOCK_EDIT :
         SwCustomizeAddressBlockDialog::ADDRESSBLOCK_NEW;
@@ -467,26 +459,26 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton
         new SwCustomizeAddressBlockDialog(pButton,m_rConfig,nType);
     if(bCustomize)
     {
-        pDlg->SetAddress(m_aAddressBlocks[m_aPreview.GetSelectedAddress()]);
+        pDlg->SetAddress(m_aAddressBlocks[m_pPreview->GetSelectedAddress()]);
     }
     if(RET_OK == pDlg->Execute())
     {
         if(bCustomize)
         {
             OUString sNew = pDlg->GetAddress();
-            m_aPreview.ReplaceSelectedAddress(sNew);
-            m_aAddressBlocks[m_aPreview.GetSelectedAddress()] = sNew;
+            m_pPreview->ReplaceSelectedAddress(sNew);
+            m_aAddressBlocks[m_pPreview->GetSelectedAddress()] = sNew;
         }
         else
         {
             OUString sNew = pDlg->GetAddress();
-            m_aPreview.AddAddress(sNew);
+            m_pPreview->AddAddress(sNew);
             m_aAddressBlocks.realloc(m_aAddressBlocks.getLength() + 1);
             sal_uInt16 nSelect = (sal_uInt16)m_aAddressBlocks.getLength() - 1;
             m_aAddressBlocks[nSelect] = sNew;
-            m_aPreview.SelectAddress(nSelect);
+            m_pPreview->SelectAddress(nSelect);
         }
-        m_aDeletePB.Enable( m_aAddressBlocks.getLength() > 1);
+        m_pDeletePB->Enable( m_aAddressBlocks.getLength() > 1);
     }
     delete pDlg;
     return 0;
@@ -494,7 +486,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton
 
 IMPL_LINK(SwSelectAddressBlockDialog, IncludeHdl_Impl, RadioButton*, pButton)
 {
-    m_aCountryED.Enable(&m_aDependentRB == pButton);
+    m_pCountryED->Enable(m_pDependentRB == pButton);
     return 0;
 }
 
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hrc b/sw/source/ui/dbui/mmaddressblockpage.hrc
index 17e4209..596fcd1 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hrc
+++ b/sw/source/ui/dbui/mmaddressblockpage.hrc
@@ -39,15 +39,6 @@
 #define FI_THIRD                18
 #define FI_MATCH_FIELDS         19
 
-#define FT_SELECT               20
-#define PB_NEW                  21
-#define PB_DELETE               22
-#define PB_CUSTOMIZE            23
-
-#define RB_NEVER                25
-#define RB_ALWAYS               26
-#define RB_DEPENDENT            27
-#define ED_COUNTRY              28
 #define FL_SEPARATOR            29
 #define PB_OK                   30
 #define PB_CANCEL               31
diff --git a/sw/source/ui/dbui/mmaddressblockpage.hxx b/sw/source/ui/dbui/mmaddressblockpage.hxx
index 6e32c7d..03dabbc 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.hxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.hxx
@@ -98,23 +98,15 @@ public:
 
 class SwSelectAddressBlockDialog : public SfxModalDialog
 {
-    FixedText           m_aSelectFT;
-    SwAddressPreview    m_aPreview;
-    PushButton          m_aNewPB;
-    PushButton          m_aCustomizePB;
-    PushButton          m_aDeletePB;
+    SwAddressPreview*   m_pPreview;
+    PushButton*         m_pNewPB;
+    PushButton*         m_pCustomizePB;
+    PushButton*         m_pDeletePB;
 
-    FixedInfo           m_aSettingsFI;
-    RadioButton         m_aNeverRB;
-    RadioButton         m_aAlwaysRB;
-    RadioButton         m_aDependentRB;
-    Edit                m_aCountryED;
-
-    FixedLine           m_aSeparatorFL;
-
-    OKButton            m_aOK;
-    CancelButton        m_aCancel;
-    HelpButton          m_aHelp;
+    RadioButton*        m_pNeverRB;
+    RadioButton*        m_pAlwaysRB;
+    RadioButton*        m_pDependentRB;
+    Edit*               m_pCountryED;
 
     com::sun::star::uno::Sequence< OUString>    m_aAddressBlocks;
     SwMailMergeConfigItem& m_rConfig;
@@ -134,7 +126,7 @@ public:
     const com::sun::star::uno::Sequence< OUString>&    GetAddressBlocks();
 
     void                SetSettings(sal_Bool bIsCountry, OUString sCountry);
-    sal_Bool            IsIncludeCountry() const {return !m_aNeverRB.IsChecked();}
+    sal_Bool            IsIncludeCountry() const {return !m_pNeverRB->IsChecked();}
     OUString     GetCountry() const;
 };
 
diff --git a/sw/source/ui/dbui/mmaddressblockpage.src b/sw/source/ui/dbui/mmaddressblockpage.src
index 1f80f0c..fdd871d 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.src
+++ b/sw/source/ui/dbui/mmaddressblockpage.src
@@ -186,109 +186,6 @@ TabPage DLG_MM_ADDRESSBLOCK_PAGE
     };
 };
 
-ModalDialog DLG_MM_SELECTADDRESSBLOCK
-{
-    OutputSize = TRUE ;
-    SVLook = TRUE ;
-    Size = MAP_APPFONT ( 260 , 219 ) ;
-    Moveable = TRUE ;
-
-    Text [ en-US ] = "Select Address Block";
-
-    FixedText       FT_SELECT
-    {
-        Pos = MAP_APPFONT ( 6 , 3 ) ;
-        Size = MAP_APPFONT ( 150 , 8 ) ;
-        Text[ en-US ] = "~Select your preferred address block";
-    };
-    Window WIN_PREVIEW
-    {
-        Border = TRUE;
-        Pos = MAP_APPFONT ( 6 , 14 ) ;
-        Size = MAP_APPFONT ( 192 , 100 ) ;
-        DialogControl = TRUE;
-    };
-    PushButton      PB_NEW
-    {
-        HelpID = "sw:PushButton:DLG_MM_SELECTADDRESSBLOCK:PB_NEW";
-        Pos = MAP_APPFONT ( 204 , 14 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        Text[ en-US ] = "~New...";
-    };
-    PushButton      PB_CUSTOMIZE
-    {
-        HelpID = "sw:PushButton:DLG_MM_SELECTADDRESSBLOCK:PB_CUSTOMIZE";
-        Pos = MAP_APPFONT ( 204 , 31 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        Text[ en-US ] = "~Edit...";
-    };
-    PushButton      PB_DELETE
-    {
-        HelpID = "sw:PushButton:DLG_MM_SELECTADDRESSBLOCK:PB_DELETE";
-        Pos = MAP_APPFONT ( 204 , 48 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-        Group = FALSE;
-        Text[ en-US ] = "~Delete";
-    };
-
-    FixedText       FI_SETTINGS
-    {
-        Pos = MAP_APPFONT ( 6 , 120 ) ;
-        Size = MAP_APPFONT ( 150 , 8 ) ;
-        Text[ en-US ] = "Address block settings";
-    };
-    RadioButton     RB_NEVER
-    {
-        HelpID = "sw:RadioButton:DLG_MM_SELECTADDRESSBLOCK:RB_NEVER";
-        Pos = MAP_APPFONT ( 12 , 131 ) ;
-        Size = MAP_APPFONT ( 150 , 10 ) ;
-        Text[ en-US ] = "N~ever include the country/region";
-    };
-    RadioButton     RB_ALWAYS
-    {
-        HelpID = "sw:RadioButton:DLG_MM_SELECTADDRESSBLOCK:RB_ALWAYS";
-        Pos = MAP_APPFONT ( 12 , 145 ) ;
-        Size = MAP_APPFONT ( 150 , 10 ) ;
-        Text[ en-US ] = "~Always include the country/region";
-    };
-    RadioButton     RB_DEPENDENT
-    {
-        HelpID = "sw:RadioButton:DLG_MM_SELECTADDRESSBLOCK:RB_DEPENDENT";
-        Pos = MAP_APPFONT ( 12 , 159 ) ;
-        Size = MAP_APPFONT ( 150 , 10 ) ;
-        Text[ en-US ] = "Only ~include the country/region if it is not:";
-    };
-    Edit ED_COUNTRY
-    {
-        HelpID = "sw:Edit:DLG_MM_SELECTADDRESSBLOCK:ED_COUNTRY";
-        Pos = MAP_APPFONT ( 18 , 172 ) ;
-        Size = MAP_APPFONT ( 180 , 12 ) ;
-        Border = TRUE;
-    };
-
-    FixedLine FL_SEPARATOR
-    {
-        Pos = MAP_APPFONT ( 0 , 188 ) ;
-        Size = MAP_APPFONT ( 260 , 8 ) ;
-    };
-
-    OKButton        PB_OK
-    {
-        Pos = MAP_APPFONT ( 95 , 199 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-    };
-    CancelButton    PB_CANCEL
-    {
-        Pos = MAP_APPFONT ( 148 , 199 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-    };
-    HelpButton      PB_HELP
-    {
-        Pos = MAP_APPFONT ( 204 , 199 ) ;
-        Size = MAP_APPFONT ( 50 , 14 ) ;
-    };
-};
-
 #define WORKAROUND\
     Text [ en-US ] = "New Address Block";
 
diff --git a/sw/uiconfig/swriter/ui/addressblockdialog.ui b/sw/uiconfig/swriter/ui/addressblockdialog.ui
index ff07d16..a36e235 100644
--- a/sw/uiconfig/swriter/ui/addressblockdialog.ui
+++ b/sw/uiconfig/swriter/ui/addressblockdialog.ui
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- interface-requires LibreOffice 1.0 -->
   <!-- interface-requires gtk+ 3.0 -->
+  <!-- interface-requires LibreOffice 1.0 -->
   <object class="GtkDialog" id="AddressBlockDialog">
     <property name="can_focus">False</property>
     <property name="border_width">6</property>
diff --git a/sw/uiconfig/swriter/ui/selectblockdialog.ui b/sw/uiconfig/swriter/ui/selectblockdialog.ui
index 4abafd4..e33e480 100644
--- a/sw/uiconfig/swriter/ui/selectblockdialog.ui
+++ b/sw/uiconfig/swriter/ui/selectblockdialog.ui
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
+  <!-- interface-requires LibreOffice 1.0 -->
   <object class="GtkDialog" id="SelectBlockDialog">
     <property name="can_focus">False</property>
     <property name="border_width">6</property>
@@ -68,7 +69,221 @@
           </packing>
         </child>
         <child>
-          <placeholder/>
+          <object class="GtkGrid" id="grid1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <property name="vexpand">True</property>
+            <property name="row_spacing">6</property>
+            <property name="column_spacing">12</property>
+            <child>
+              <object class="GtkButtonBox" id="buttonbox2">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="orientation">vertical</property>
+                <property name="spacing">6</property>
+                <property name="layout_style">start</property>
+                <child>
+                  <object class="GtkButton" id="new">
+                    <property name="label" translatable="yes">_New...</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="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="edit">
+                    <property name="label" translatable="yes">_Edit...</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="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="delete">
+                    <property name="label" translatable="yes">_Delete</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="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">2</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">2</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkLabel" id="label1">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="xalign">0</property>
+                <property name="label" translatable="yes">_Select your preferred address block</property>
+                <property name="use_underline">True</property>
+                <property name="mnemonic_widget">preview:border</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="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>
+                        <child>
+                          <object class="GtkRadioButton" id="never">
+                            <property name="label" translatable="yes">N_ever include the country/region</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>
+                            <property name="group">always</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="GtkRadioButton" id="always">
+                            <property name="label" translatable="yes">_Always include the country/region</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>
+                            <property name="group">dependent</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="GtkRadioButton" id="dependent">
+                            <property name="label" translatable="yes">Only _include the country/region if it is not:</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">never</property>
+                            <accessibility>
+                              <relation type="label-for" target="country"/>
+                            </accessibility>
+                          </object>
+                          <packing>
+                            <property name="left_attach">0</property>
+                            <property name="top_attach">2</property>
+                            <property name="width">1</property>
+                            <property name="height">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkEntry" id="country">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="margin_left">12</property>
+                            <property name="hexpand">True</property>
+                            <property name="invisible_char">●</property>
+                            <accessibility>
+                              <relation type="labelled-by" target="dependent"/>
+                            </accessibility>
+                          </object>
+                          <packing>
+                            <property name="left_attach">0</property>
+                            <property name="top_attach">3</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" translatable="yes">Address block settings</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                    </attributes>
+                  </object>
+                </child>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">2</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="swlo-SwAddressPreview" id="preview:border">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="hexpand">True</property>
+                <property name="vexpand">True</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>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
         </child>
       </object>
     </child>
@@ -78,11 +293,4 @@
       <action-widget response="0">help</action-widget>
     </action-widgets>
   </object>
-  <object class="GtkSizeGroup" id="sizegroup1">
-    <property name="mode">both</property>
-    <widgets>
-      <widget name="addressdest:border"/>
-      <widget name="addrpreview:border"/>
-    </widgets>
-  </object>
 </interface>
commit 6521201d164632c4a854cc90e4347f3b73e2d9c1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Sep 14 15:14:32 2013 +0100

    Updated core
    Project: help  b28f1c1eafe23a8106592aeef0dfe0e235eb0b9a

diff --git a/helpcontent2 b/helpcontent2
index c072ef6..b28f1c1 160000
--- a/helpcontent2
+++ b/helpcontent2
@@ -1 +1 @@
-Subproject commit c072ef65d773a788a30efd0453a92ed3f558a30c
+Subproject commit b28f1c1eafe23a8106592aeef0dfe0e235eb0b9a


More information about the Libreoffice-commits mailing list