[Libreoffice-commits] core.git: cui/AllLangResTarget_cui.mk cui/source cui/uiconfig cui/UIConfig_cui.mk

Caolán McNamara caolanm at redhat.com
Fri Apr 4 05:06:13 PDT 2014


 cui/AllLangResTarget_cui.mk            |    1 
 cui/UIConfig_cui.mk                    |    1 
 cui/source/inc/autocdlg.hxx            |    7 -
 cui/source/inc/cuires.hrc              |    1 
 cui/source/inc/helpid.hrc              |    1 
 cui/source/tabpages/autocdlg.cxx       |   79 ++++++++++-----------
 cui/source/tabpages/autocdlg.hrc       |   64 -----------------
 cui/source/tabpages/autocdlg.src       |   72 -------------------
 cui/uiconfig/ui/smarttagoptionspage.ui |  123 +++++++++++++++++++++++++++++++++
 9 files changed, 167 insertions(+), 182 deletions(-)

New commits:
commit d25b1bf2bd617a9e29fd27c9550170fef0469481
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Apr 4 12:52:33 2014 +0100

    convert smarttag options page to .ui
    
    Change-Id: Iae72fb5debaa5fe642cba940cf6775f5fd927fcd

diff --git a/cui/AllLangResTarget_cui.mk b/cui/AllLangResTarget_cui.mk
index bb32b79..ebc0ce4 100644
--- a/cui/AllLangResTarget_cui.mk
+++ b/cui/AllLangResTarget_cui.mk
@@ -51,7 +51,6 @@ $(eval $(call gb_SrsTarget_add_files,cui/res,\
     cui/source/options/optlingu.src \
     cui/source/options/optpath.src \
     cui/source/options/treeopt.src \
-    cui/source/tabpages/autocdlg.src \
     cui/source/tabpages/border.src \
     cui/source/tabpages/frmdirlbox.src \
     cui/source/tabpages/page.src \
diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 8a4d328..cd18592 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -165,6 +165,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
 	cui/uiconfig/ui/showcoldialog \
 	cui/uiconfig/ui/similaritysearchdialog \
 	cui/uiconfig/ui/slantcornertabpage \
+	cui/uiconfig/ui/smarttagoptionspage \
 	cui/uiconfig/ui/smoothdialog \
 	cui/uiconfig/ui/solarizedialog \
 	cui/uiconfig/ui/specialcharacters \
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx
index a74f09e..e6748d0 100644
--- a/cui/source/inc/autocdlg.hxx
+++ b/cui/source/inc/autocdlg.hxx
@@ -461,10 +461,9 @@ class OfaSmartTagOptionsTabPage : public SfxTabPage
 private:
 
     // controls
-    CheckBox                m_aMainCB;
-    SvxCheckListBox         m_aSmartTagTypesLB;
-    PushButton              m_aPropertiesPB;
-    FixedText               m_aTitleFT;
+    CheckBox*               m_pMainCB;
+    SvxCheckListBox*        m_pSmartTagTypesLB;
+    PushButton*             m_pPropertiesPB;
 
     /// construction via Create()
     OfaSmartTagOptionsTabPage( Window* pParent, const SfxItemSet& rSet );
diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc
index 6d2df87..2d7f527 100644
--- a/cui/source/inc/cuires.hrc
+++ b/cui/source/inc/cuires.hrc
@@ -128,7 +128,6 @@
 #define OFA_TP_VIEW                     (RID_OFA_START + 202)
 #define RID_OFAPAGE_MSFILTEROPT         (RID_OFA_START + 120)
 #define RID_OFAPAGE_MSFILTEROPT2        (RID_OFA_START + 121)
-#define RID_OFAPAGE_SMARTTAG_OPTIONS    (RID_OFA_START + 125)
 #define RID_SVXPAGE_OPTIONS_CTL             (RID_SVX_START + 252)
 #define RID_SVXPAGE_OPTIONS_JAVA            (RID_SVX_START + 253)
 #define RID_SVXPAGE_ABOUT_CONFIG            (RID_SVX_START + 301)
diff --git a/cui/source/inc/helpid.hrc b/cui/source/inc/helpid.hrc
index 263a788..8b23869 100644
--- a/cui/source/inc/helpid.hrc
+++ b/cui/source/inc/helpid.hrc
@@ -32,7 +32,6 @@
 #define HID_OFA_FONT_SUBST_CLB "CUI_HID_OFA_FONT_SUBST_CLB"
 #define HID_DBPATH_CTL_PATH "CUI_HID_DBPATH_CTL_PATH"
 #define HID_DBPATH_HEADERBAR "CUI_HID_DBPATH_HEADERBAR"
-#define HID_OFAPAGE_SMARTTAG_OPTIONS "CUI_HID_OFAPAGE_SMARTTAG_OPTIONS"
 #define HID_OFADLG_TREELISTBOX "CUI_HID_OFADLG_TREELISTBOX"
 #define HID_OPTIONS_DICT_EDIT_ENTRIES_LIST "CUI_HID_OPTIONS_DICT_EDIT_ENTRIES_LIST"
 #define HID_COLORPAGE_DOCCOLOR_LB "CUI_HID_COLORPAGE_DOCCOLOR_LB"
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index f681ee7..43edca3 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -46,11 +46,11 @@
 #include <rtl/strbuf.hxx>
 
 #include "autocdlg.hxx"
-#include "autocdlg.hrc"
 #include "helpid.hrc"
 #include <editeng/acorrcfg.hxx>
 #include <editeng/svxacorr.hxx>
 #include "cuicharmap.hxx"
+#include "cuires.hrc"
 #include <editeng/unolingu.hxx>
 #include <dialmgr.hxx>
 #include <svx/svxids.hrc>
@@ -2357,22 +2357,23 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeAutoCompleteMultiListBox(Wi
 
 OfaSmartTagOptionsTabPage::OfaSmartTagOptionsTabPage( Window* pParent,
                                                       const SfxItemSet& rSet )
-    : SfxTabPage(pParent, CUI_RES( RID_OFAPAGE_SMARTTAG_OPTIONS ), rSet),
-    m_aMainCB( this, CUI_RES(CB_SMARTTAGS) ),
-    m_aSmartTagTypesLB( this, CUI_RES(LB_SMARTTAGS) ),
-    m_aPropertiesPB( this, CUI_RES(PB_SMARTTAGS) ),
-    m_aTitleFT( this, CUI_RES(FT_SMARTTAGS) )
+    : SfxTabPage(pParent, "SmartTagOptionsPage", "cui/ui/smarttagoptionspage.ui", rSet)
 {
-    FreeResource();
+    get(m_pMainCB, "main");
+    get(m_pSmartTagTypesLB, "list");
+    get(m_pPropertiesPB, "properties");
 
     // some options for the list box:
-    m_aSmartTagTypesLB.SetStyle( m_aSmartTagTypesLB.GetStyle() | WB_HSCROLL | WB_HIDESELECTION );
-    m_aSmartTagTypesLB.SetHighlightRange();
+    m_pSmartTagTypesLB->SetStyle( m_pSmartTagTypesLB->GetStyle() | WB_HSCROLL | WB_HIDESELECTION );
+    m_pSmartTagTypesLB->SetHighlightRange();
+    Size aControlSize(LogicToPixel(Size(172, 154), MAP_APPFONT));
+    m_pSmartTagTypesLB->set_width_request(aControlSize.Width());
+    m_pSmartTagTypesLB->set_height_request(aControlSize.Height());
 
     // set the handlers:
-    m_aMainCB.SetToggleHdl(LINK(this, OfaSmartTagOptionsTabPage, CheckHdl));
-    m_aPropertiesPB.SetClickHdl(LINK(this, OfaSmartTagOptionsTabPage, ClickHdl));
-    m_aSmartTagTypesLB.SetSelectHdl(LINK(this, OfaSmartTagOptionsTabPage, SelectHdl));
+    m_pMainCB->SetToggleHdl(LINK(this, OfaSmartTagOptionsTabPage, CheckHdl));
+    m_pPropertiesPB->SetClickHdl(LINK(this, OfaSmartTagOptionsTabPage, ClickHdl));
+    m_pSmartTagTypesLB->SetSelectHdl(LINK(this, OfaSmartTagOptionsTabPage, SelectHdl));
 }
 
 OfaSmartTagOptionsTabPage::~OfaSmartTagOptionsTabPage()
@@ -2401,22 +2402,22 @@ struct ImplSmartTagLBUserData
         mnSmartTagIdx( nSmartTagIdx ) {}
 };
 
-/** Clears m_aSmartTagTypesLB
+/** Clears m_pSmartTagTypesLB
 */
 void OfaSmartTagOptionsTabPage::ClearListBox()
 {
-    const sal_uLong nCount = m_aSmartTagTypesLB.GetEntryCount();
+    const sal_uLong nCount = m_pSmartTagTypesLB->GetEntryCount();
     for ( sal_uLong i = 0; i < nCount; ++i )
     {
-        const SvTreeListEntry* pEntry = m_aSmartTagTypesLB.GetEntry(i);
+        const SvTreeListEntry* pEntry = m_pSmartTagTypesLB->GetEntry(i);
         const ImplSmartTagLBUserData* pUserData = static_cast< ImplSmartTagLBUserData* >(pEntry->GetUserData());
         delete pUserData;
     }
 
-    m_aSmartTagTypesLB.Clear();
+    m_pSmartTagTypesLB->Clear();
 }
 
-/** Inserts items into m_aSmartTagTypesLB
+/** Inserts items into m_pSmartTagTypesLB
 */
 void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
 {
@@ -2447,11 +2448,11 @@ void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
                                            aName +
                                            OUString(")");
 
-            SvTreeListEntry* pEntry = m_aSmartTagTypesLB.SvTreeListBox::InsertEntry( aLBEntry );
+            SvTreeListEntry* pEntry = m_pSmartTagTypesLB->SvTreeListBox::InsertEntry( aLBEntry );
             if ( pEntry )
             {
                 const bool bCheck = rSmartTagMgr.IsSmartTagTypeEnabled( aSmartTagType );
-                m_aSmartTagTypesLB.SetCheckButtonState( pEntry, bCheck ? SV_BUTTON_CHECKED : SV_BUTTON_UNCHECKED );
+                m_pSmartTagTypesLB->SetCheckButtonState( pEntry, bCheck ? SV_BUTTON_CHECKED : SV_BUTTON_UNCHECKED );
                 pEntry->SetUserData(static_cast<void*>(new ImplSmartTagLBUserData( aSmartTagType, xRec, j ) ) );
             }
         }
@@ -2462,8 +2463,8 @@ void OfaSmartTagOptionsTabPage::FillListBox( const SmartTagMgr& rSmartTagMgr )
 */
 IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, ClickHdl)
 {
-    const sal_uLong nPos = m_aSmartTagTypesLB.GetSelectEntryPos();
-    const SvTreeListEntry* pEntry = m_aSmartTagTypesLB.GetEntry(nPos);
+    const sal_uLong nPos = m_pSmartTagTypesLB->GetSelectEntryPos();
+    const SvTreeListEntry* pEntry = m_pSmartTagTypesLB->GetEntry(nPos);
     const ImplSmartTagLBUserData* pUserData = static_cast< ImplSmartTagLBUserData* >(pEntry->GetUserData());
     uno::Reference< smarttags::XSmartTagRecognizer > xRec = pUserData->mxRec;
     const sal_Int32 nSmartTagIdx = pUserData->mnSmartTagIdx;
@@ -2479,17 +2480,17 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, ClickHdl)
 */
 IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, CheckHdl)
 {
-    const sal_Bool bEnable = m_aMainCB.IsChecked();
-    m_aSmartTagTypesLB.Enable( bEnable );
-    m_aSmartTagTypesLB.Invalidate();
-    m_aPropertiesPB.Enable( false );
+    const sal_Bool bEnable = m_pMainCB->IsChecked();
+    m_pSmartTagTypesLB->Enable( bEnable );
+    m_pSmartTagTypesLB->Invalidate();
+    m_pPropertiesPB->Enable( false );
 
     // if the controls are currently enabled, we still have to check
     // if the properties button should be disabled because the currently
     // seleted smart tag type does not have a properties dialog.
     // We do this by calling SelectHdl:
     if ( bEnable )
-        SelectHdl( &m_aSmartTagTypesLB );
+        SelectHdl(m_pSmartTagTypesLB);
 
     return 0;
 }
@@ -2498,20 +2499,20 @@ IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, CheckHdl)
 */
 IMPL_LINK_NOARG(OfaSmartTagOptionsTabPage, SelectHdl)
 {
-    if ( m_aSmartTagTypesLB.GetEntryCount() < 1 )
+    if ( m_pSmartTagTypesLB->GetEntryCount() < 1 )
         return 0;
 
-    const sal_uLong nPos = m_aSmartTagTypesLB.GetSelectEntryPos();
-    const SvTreeListEntry* pEntry = m_aSmartTagTypesLB.GetEntry(nPos);
+    const sal_uLong nPos = m_pSmartTagTypesLB->GetSelectEntryPos();
+    const SvTreeListEntry* pEntry = m_pSmartTagTypesLB->GetEntry(nPos);
     const ImplSmartTagLBUserData* pUserData = static_cast< ImplSmartTagLBUserData* >(pEntry->GetUserData());
     uno::Reference< smarttags::XSmartTagRecognizer > xRec = pUserData->mxRec;
     const sal_Int32 nSmartTagIdx = pUserData->mnSmartTagIdx;
 
     const lang::Locale aLocale( LanguageTag::convertToLocale( eLastDialogLanguage ) );
     if ( xRec->hasPropertyPage( nSmartTagIdx, aLocale ) )
-        m_aPropertiesPB.Enable( true );
+        m_pPropertiesPB->Enable( true );
     else
-        m_aPropertiesPB.Enable( false );
+        m_pPropertiesPB->Enable( false );
 
     return 0;
 }
@@ -2531,13 +2532,13 @@ bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
     sal_Bool bModifiedSmartTagTypes = sal_False;
     std::vector< OUString > aDisabledSmartTagTypes;
 
-    const sal_uLong nCount = m_aSmartTagTypesLB.GetEntryCount();
+    const sal_uLong nCount = m_pSmartTagTypesLB->GetEntryCount();
 
     for ( sal_uLong i = 0; i < nCount; ++i )
     {
-        const SvTreeListEntry* pEntry = m_aSmartTagTypesLB.GetEntry(i);
+        const SvTreeListEntry* pEntry = m_pSmartTagTypesLB->GetEntry(i);
         const ImplSmartTagLBUserData* pUserData = static_cast< ImplSmartTagLBUserData* >(pEntry->GetUserData());
-        const sal_Bool bChecked = m_aSmartTagTypesLB.IsChecked(i);
+        const sal_Bool bChecked = m_pSmartTagTypesLB->IsChecked(i);
         const sal_Bool bIsCurrentlyEnabled = pSmartTagMgr->IsSmartTagTypeEnabled( pUserData->maSmartTagType );
 
         bModifiedSmartTagTypes = bModifiedSmartTagTypes || ( !bChecked != !bIsCurrentlyEnabled );
@@ -2548,10 +2549,10 @@ bool OfaSmartTagOptionsTabPage::FillItemSet( SfxItemSet& )
         delete pUserData;
     }
 
-    const sal_Bool bModifiedRecognize = ( !m_aMainCB.IsChecked() != !pSmartTagMgr->IsLabelTextWithSmartTags() );
+    const sal_Bool bModifiedRecognize = ( !m_pMainCB->IsChecked() != !pSmartTagMgr->IsLabelTextWithSmartTags() );
     if ( bModifiedSmartTagTypes || bModifiedRecognize )
     {
-        bool bLabelTextWithSmartTags = m_aMainCB.IsChecked() ? true : false;
+        bool bLabelTextWithSmartTags = m_pMainCB->IsChecked() ? true : false;
         pSmartTagMgr->WriteConfiguration( bModifiedRecognize     ? &bLabelTextWithSmartTags : 0,
                                           bModifiedSmartTagTypes ? &aDisabledSmartTagTypes : 0 );
     }
@@ -2572,9 +2573,9 @@ void OfaSmartTagOptionsTabPage::Reset( const SfxItemSet&  )
         return;
 
     FillListBox( *pSmartTagMgr );
-    m_aSmartTagTypesLB.SelectEntryPos( 0 );
-    m_aMainCB.Check( pSmartTagMgr->IsLabelTextWithSmartTags() );
-    CheckHdl( &m_aMainCB );
+    m_pSmartTagTypesLB->SelectEntryPos( 0 );
+    m_pMainCB->Check( pSmartTagMgr->IsLabelTextWithSmartTags() );
+    CheckHdl(m_pMainCB);
 }
 
 void OfaSmartTagOptionsTabPage::ActivatePage( const SfxItemSet& )
diff --git a/cui/source/tabpages/autocdlg.hrc b/cui/source/tabpages/autocdlg.hrc
deleted file mode 100644
index ad13cb5..0000000
--- a/cui/source/tabpages/autocdlg.hrc
+++ /dev/null
@@ -1,64 +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 _SVX_AUTOCDLG_HRC
-#define _SVX_AUTOCDLG_HRC
-
-#include <cuires.hrc>
-
-// defines ------------------------------------------------------------------
-
-#define ED_RIGHT_MARGIN                 100
-#define BT_OK                           101
-#define BT_CANCEL                       102
-
-#define CB_ACTIV                        121
-#define CB_COLLECT                      122
-#define CB_APPEND_SPACE                 123
-#define CB_REMOVE_LIST                  124
-#define CB_AS_TIP                       125
-#define FT_MIN_WORDLEN                  126
-#define FT_MAX_ENTRIES                  127
-#define NF_MIN_WORDLEN                  128
-#define NF_MAX_ENTRIES                  129
-#define FT_EXPAND_KEY                   130
-#define DCB_EXPAND_KEY                  131
-#define LB_ENTRIES                      132
-#define PB_ENTRIES                      133
-
-#define FT_LANG                         209
-#define LB_LANG                         210
-
-#define CB_SMARTTAGS                    220
-#define FT_SMARTTAGS                    221
-#define LB_SMARTTAGS                    222
-#define PB_SMARTTAGS                    223
-#define  STR_PB_NEWABBREV               224
-#define  STR_PB_DELABBREV               225
-#define  STR_PB_NEWDOUBLECAPS           226
-#define  STR_PB_DELDOUBLECAPS           227
-#define  STR_PB_SGL_STD                 228
-#define  STR_PB_DBL_STD                 229
-#define  STR_PB_SGL_START               230
-#define  STR_PB_DBL_START               231
-#define  STR_PB_SGL_END                 232
-#define  STR_PB_DBL_END                 233
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/source/tabpages/autocdlg.src b/cui/source/tabpages/autocdlg.src
deleted file mode 100644
index 4da0c87..0000000
--- a/cui/source/tabpages/autocdlg.src
+++ /dev/null
@@ -1,72 +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 "autocdlg.hrc"
-#include <cuires.hrc>
-#include "helpid.hrc"
-#include <svx/svxids.hrc>
-
-/**************************************************************************/
-/*                                                                        */
-/*  Beschreibung: Smart Tag Options                                       */
-/*                                                                        */
-/**************************************************************************/
-TabPage RID_OFAPAGE_SMARTTAG_OPTIONS
-{
-    HelpId = HID_OFAPAGE_SMARTTAG_OPTIONS ;
-    OutputSize = TRUE ;
-    Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
-    SVLook = TRUE ;
-    Hide = TRUE ;
-    Text [ en-US ] = "Smart Tags";
-
-    CheckBox CB_SMARTTAGS
-    {
-        HelpID = "cui:CheckBox:RID_OFAPAGE_SMARTTAG_OPTIONS:CB_SMARTTAGS";
-        Pos = MAP_APPFONT( 4, 3 );
-        Size = MAP_APPFONT( 116, 10 );
-        Text [ en-US ] = "Label text with smart tags";
-    };
-
-    FixedText FT_SMARTTAGS
-    {
-        Pos = MAP_APPFONT( 12, 15 );
-        Size = MAP_APPFONT( 116, 8 );
-        Text [ en-US ] = "Currently installed smart tags";
-    };
-
-    Control LB_SMARTTAGS
-    {
-        Pos = MAP_APPFONT ( 12 , 25 ) ;
-        Size = MAP_APPFONT ( 172 , 154 ) ;
-        Border = TRUE ;
-        TabStop = TRUE ;
-    };
-
-    PushButton PB_SMARTTAGS
-    {
-        HelpID = "cui:PushButton:RID_OFAPAGE_SMARTTAG_OPTIONS:PB_SMARTTAGS";
-        Pos = MAP_APPFONT ( 188 , 25 ) ;
-        Size = MAP_APPFONT ( 60 , 14 ) ;
-        Text [ en-US ] = "Properties...";
-    };
-
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cui/uiconfig/ui/smarttagoptionspage.ui b/cui/uiconfig/ui/smarttagoptionspage.ui
new file mode 100644
index 0000000..13ac419
--- /dev/null
+++ b/cui/uiconfig/ui/smarttagoptionspage.ui
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.16.1 -->
+<interface>
+  <requires lib="gtk+" version="3.0"/>
+  <!-- interface-requires LibreOffice 1.0 -->
+  <object class="GtkGrid" id="SmartTagOptionsPage">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="border_width">6</property>
+    <property name="row_spacing">12</property>
+    <property name="column_spacing">6</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="vexpand">True</property>
+        <property name="row_spacing">6</property>
+        <child>
+          <object class="GtkCheckButton" id="main">
+            <property name="label" translatable="yes">Label text with smart tags</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">0</property>
+            <property name="width">1</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="hexpand">True</property>
+            <property name="vexpand">True</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="hexpand">True</property>
+                <property name="vexpand">True</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="hexpand">True</property>
+                    <property name="vexpand">True</property>
+                    <property name="column_spacing">12</property>
+                    <child>
+                      <object class="GtkButton" id="properties">
+                        <property name="label" translatable="yes">Properties...</property>
+                        <property name="visible">True</property>
+                        <property name="can_focus">True</property>
+                        <property name="receives_default">True</property>
+                        <property name="valign">start</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="svxcorelo-SvxCheckListBox" id="list:border">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="hexpand">True</property>
+                        <property name="vexpand">True</property>
+                        <child internal-child="selection">
+                          <object class="GtkTreeSelection" id="Check List Box-selection1"/>
+                        </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>
+                  </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" translatable="yes">Currently installed smart tags</property>
+                <attributes>
+                  <attribute name="weight" value="bold"/>
+                </attributes>
+              </object>
+            </child>
+          </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="left_attach">0</property>
+        <property name="top_attach">0</property>
+        <property name="width">1</property>
+        <property name="height">1</property>
+      </packing>
+    </child>
+  </object>
+</interface>


More information about the Libreoffice-commits mailing list