summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extras/source/glade/libreoffice-catalog.xml.in3
-rw-r--r--sw/UIConfig_swriter.mk1
-rw-r--r--sw/inc/helpid.h1
-rw-r--r--sw/source/ui/envelp/envlop.hrc12
-rw-r--r--sw/source/ui/envelp/envlop.src106
-rw-r--r--sw/source/ui/envelp/envlop1.cxx134
-rw-r--r--sw/source/ui/inc/envlop.hxx25
-rw-r--r--sw/uiconfig/swriter/ui/envaddresspage.ui375
8 files changed, 467 insertions, 190 deletions
diff --git a/extras/source/glade/libreoffice-catalog.xml.in b/extras/source/glade/libreoffice-catalog.xml.in
index 6ff3b4c08313..cd382c683926 100644
--- a/extras/source/glade/libreoffice-catalog.xml.in
+++ b/extras/source/glade/libreoffice-catalog.xml.in
@@ -317,6 +317,9 @@
<glade-widget-class title="Label Preview" name="swuilo-SwLabPreview"
generic-name="Label Preview" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
+ <glade-widget-class title="Envelope Preview" name="swuilo-SwEnvPreview"
+ generic-name="Envelope Preview" parent="GtkDrawingArea"
+ icon-name="widget-gtk-drawingarea"/>
<glade-widget-class title="Rectangle Control" name="svxlo-SvxRectCtl"
generic-name="Rectangle Control" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
diff --git a/sw/UIConfig_swriter.mk b/sw/UIConfig_swriter.mk
index 020df2daa986..4cd027344b85 100644
--- a/sw/UIConfig_swriter.mk
+++ b/sw/UIConfig_swriter.mk
@@ -85,6 +85,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/editcategories \
sw/uiconfig/swriter/ui/editsectiondialog \
sw/uiconfig/swriter/ui/endnotepage \
+ sw/uiconfig/swriter/ui/envaddresspage \
sw/uiconfig/swriter/ui/envprinterpage \
sw/uiconfig/swriter/ui/exchangedatabases \
sw/uiconfig/swriter/ui/formatsectiondialog \
diff --git a/sw/inc/helpid.h b/sw/inc/helpid.h
index ddad116ff642..6af945cd6c68 100644
--- a/sw/inc/helpid.h
+++ b/sw/inc/helpid.h
@@ -144,7 +144,6 @@
#define HID_FRM_STD "SW_HID_FRM_STD"
#define HID_GRF_EXT "SW_HID_GRF_EXT"
-#define HID_ENV_ENV "SW_HID_ENV_ENV"
#define HID_ENV_FMT "SW_HID_ENV_FMT"
#define HID_COND_COLL "SW_HID_COND_COLL"
diff --git a/sw/source/ui/envelp/envlop.hrc b/sw/source/ui/envelp/envlop.hrc
index 166f55b4e430..69e61d01afff 100644
--- a/sw/source/ui/envelp/envlop.hrc
+++ b/sw/source/ui/envelp/envlop.hrc
@@ -24,18 +24,6 @@
// local resources *********************************************************
-#define TXT_ADDR 1
-#define EDT_ADDR 2
-#define FT_DATABASE 3
-#define LB_DATABASE 4
-#define FT_TABLE 5
-#define LB_TABLE 6
-#define BTN_INSERT 7
-#define FT_DBFIELD 8
-#define LB_DBFIELD 9
-#define BOX_SEND 10
-#define EDT_SEND 11
-#define WIN_PREVIEW 12
#define ST_INSERT 13
#define ST_CHANGE 14
diff --git a/sw/source/ui/envelp/envlop.src b/sw/source/ui/envelp/envlop.src
index 82ca4dcd8195..53a28e854594 100644
--- a/sw/source/ui/envelp/envlop.src
+++ b/sw/source/ui/envelp/envlop.src
@@ -60,111 +60,5 @@ TabDialog DLG_ENV
Text [ en-US ] = "~Modify" ;
};
};
- // TP_ENV_ENV ---------------------------------------------------------------
-TabPage TP_ENV_ENV
-{
- HelpID = HID_ENV_ENV ;
- Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
- Hide = TRUE ;
- FixedText TXT_ADDR
- {
- Pos = MAP_APPFONT ( 6 , 6 ) ;
- Size = MAP_APPFONT ( 124 , 8 ) ;
- Text [ en-US ] = "Addr~essee" ;
- Group = TRUE ;
- Left = TRUE ;
- };
- MultiLineEdit EDT_ADDR
- {
- HelpID = "sw:MultiLineEdit:TP_ENV_ENV:EDT_ADDR";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 6 , 17 ) ;
- Size = MAP_APPFONT ( 124 , 66 ) ;
- TabStop = TRUE ;
- Left = TRUE ;
- HScroll = TRUE ;
- VScroll = TRUE ;
- IgnoreTab = TRUE;
- };
- FixedText FT_DATABASE
- {
- Pos = MAP_APPFONT ( 162 , 6 ) ;
- Size = MAP_APPFONT ( 92 , 8 ) ;
- Text [ en-US ] = "Database" ;
- };
- ListBox LB_DATABASE
- {
- HelpID = "sw:ListBox:TP_ENV_ENV:LB_DATABASE";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 162 , 17 ) ;
- Size = MAP_APPFONT ( 82 , 50 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- };
- FixedText FT_TABLE
- {
- Pos = MAP_APPFONT ( 162 , 33 ) ;
- Size = MAP_APPFONT ( 92 , 8 ) ;
- Text [ en-US ] = "Table" ;
- };
- ListBox LB_TABLE
- {
- HelpID = "sw:ListBox:TP_ENV_ENV:LB_TABLE";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 162 , 44 ) ;
- Size = MAP_APPFONT ( 82 , 50 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- };
- ImageButton BTN_INSERT
- {
- HelpID = "sw:ImageButton:TP_ENV_ENV:BTN_INSERT";
- Pos = MAP_APPFONT ( 137 , 71 ) ;
- Size = MAP_APPFONT ( 18 , 12 ) ;
- SYMBOL = IMAGEBUTTON_ARROW_LEFT ;
- TabStop = TRUE ;
- };
- FixedText FT_DBFIELD
- {
- Pos = MAP_APPFONT ( 162 , 60 ) ;
- Size = MAP_APPFONT ( 92 , 8 ) ;
- Text [ en-US ] = "~Database field" ;
- };
- ListBox LB_DBFIELD
- {
- HelpID = "sw:ListBox:TP_ENV_ENV:LB_DBFIELD";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 162 , 71 ) ;
- Size = MAP_APPFONT ( 82 , 50 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- };
- CheckBox BOX_SEND
- {
- HelpID = "sw:CheckBox:TP_ENV_ENV:BOX_SEND";
- Pos = MAP_APPFONT ( 6 , 105 ) ;
- Size = MAP_APPFONT ( 124 , 8 ) ;
- Text [ en-US ] = "~Sender" ;
- TabStop = TRUE ;
- };
- MultiLineEdit EDT_SEND
- {
- HelpID = "sw:MultiLineEdit:TP_ENV_ENV:EDT_SEND";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 6 , 116) ;
- Size = MAP_APPFONT ( 124 , 63 ) ;
- TabStop = TRUE ;
- Left = TRUE ;
- HScroll = TRUE ;
- VScroll = TRUE ;
- IgnoreTab = TRUE;
- };
- Window WIN_PREVIEW
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 160 , 116 ) ;
- Size = MAP_APPFONT ( 84 , 63 ) ;
- };
-};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx
index 29ab6f8bc993..f6838d8cfaee 100644
--- a/sw/source/ui/envelp/envlop1.cxx
+++ b/sw/source/ui/envelp/envlop1.cxx
@@ -19,6 +19,7 @@
#include "dbmgr.hxx"
#include <sfx2/app.hxx>
+#include <vcl/builder.hxx>
#include <vcl/msgbox.hxx>
#include <swwait.hxx>
#include <viewopt.hxx>
@@ -56,8 +57,20 @@ SwEnvPreview::SwEnvPreview(SfxTabPage* pParent, const ResId& rResID) :
SetMapMode(MapMode(MAP_PIXEL));
}
-SwEnvPreview::~SwEnvPreview()
+SwEnvPreview::SwEnvPreview(Window* pParent, WinBits nStyle)
+ : Window(pParent, nStyle)
{
+ SetMapMode(MapMode(MAP_PIXEL));
+}
+
+Size SwEnvPreview::GetOptimalSize() const
+{
+ return LogicToPixel(Size(84 , 63), MAP_APPFONT);
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwEnvPreview(Window *pParent, VclBuilder::stringmap &)
+{
+ return new SwEnvPreview(pParent, 0);
}
void SwEnvPreview::DataChanged( const DataChangedEvent& rDCEvt )
@@ -191,34 +204,41 @@ short SwEnvDlg::Ok()
return nRet;
}
-SwEnvPage::SwEnvPage(Window* pParent, const SfxItemSet& rSet) :
-
- SfxTabPage(pParent, SW_RES(TP_ENV_ENV), rSet),
-
- aAddrText (this, SW_RES(TXT_ADDR )),
- aAddrEdit (this, SW_RES(EDT_ADDR )),
- aDatabaseFT (this, SW_RES(FT_DATABASE)),
- aDatabaseLB (this, SW_RES(LB_DATABASE)),
- aTableFT (this, SW_RES(FT_TABLE )),
- aTableLB (this, SW_RES(LB_TABLE )),
- aInsertBT (this, SW_RES(BTN_INSERT )),
- aDBFieldFT (this, SW_RES(FT_DBFIELD )),
- aDBFieldLB (this, SW_RES(LB_DBFIELD )),
- aSenderBox (this, SW_RES(BOX_SEND )),
- aSenderEdit (this, SW_RES(EDT_SEND )),
- aPreview (this, SW_RES(WIN_PREVIEW))
-
+SwEnvPage::SwEnvPage(Window* pParent, const SfxItemSet& rSet)
+ : SfxTabPage(pParent, "EnvAddressPage",
+ "modules/swriter/ui/envaddresspage.ui", rSet)
{
- FreeResource();
+ get(m_pAddrEdit, "addredit");
+ get(m_pDatabaseLB, "database");
+ get(m_pTableLB, "table");
+ get(m_pDBFieldLB, "field");
+ get(m_pInsertBT, "insert");
+ get(m_pSenderBox, "sender");
+ get(m_pSenderEdit, "senderedit");
+ get(m_pPreview, "preview");
+
+ long nTextBoxHeight(m_pAddrEdit->GetTextHeight() * 10);
+ long nTextBoxWidth(m_pAddrEdit->approximate_char_width() * 25);
+
+ m_pAddrEdit->set_height_request(nTextBoxHeight);
+ m_pAddrEdit->set_width_request(nTextBoxWidth);
+ m_pSenderEdit->set_height_request(nTextBoxHeight);
+ m_pSenderEdit->set_width_request(nTextBoxWidth);
+
+ long nListBoxWidth = approximate_char_width() * 30;
+ m_pTableLB->set_width_request(nListBoxWidth);
+ m_pDatabaseLB->set_width_request(nListBoxWidth);
+ m_pDBFieldLB->set_width_request(nListBoxWidth);
+
SetExchangeSupport();
pSh = GetParentSwEnvDlg()->pSh;
// Install handlers
- aDatabaseLB .SetSelectHdl(LINK(this, SwEnvPage, DatabaseHdl ));
- aTableLB .SetSelectHdl(LINK(this, SwEnvPage, DatabaseHdl ));
- aInsertBT .SetClickHdl (LINK(this, SwEnvPage, FieldHdl ));
- aSenderBox .SetClickHdl (LINK(this, SwEnvPage, SenderHdl ));
- aPreview.SetBorderStyle( WINDOW_BORDER_MONO );
+ m_pDatabaseLB->SetSelectHdl(LINK(this, SwEnvPage, DatabaseHdl ));
+ m_pTableLB->SetSelectHdl(LINK(this, SwEnvPage, DatabaseHdl ));
+ m_pInsertBT->SetClickHdl (LINK(this, SwEnvPage, FieldHdl ));
+ m_pSenderBox->SetClickHdl (LINK(this, SwEnvPage, SenderHdl ));
+ m_pPreview->SetBorderStyle( WINDOW_BORDER_MONO );
SwDBData aData = pSh->GetDBData();
sActDBName = aData.sDataSource;
@@ -235,44 +255,44 @@ IMPL_LINK( SwEnvPage, DatabaseHdl, ListBox *, pListBox )
{
SwWait aWait( *pSh->GetView().GetDocShell(), sal_True );
- if (pListBox == &aDatabaseLB)
+ if (pListBox == m_pDatabaseLB)
{
sActDBName = pListBox->GetSelectEntry();
- pSh->GetNewDBMgr()->GetTableNames(&aTableLB, sActDBName);
+ pSh->GetNewDBMgr()->GetTableNames(m_pTableLB, sActDBName);
sActDBName += DB_DELIM;
}
else
- sActDBName.SetToken(1, DB_DELIM, aTableLB.GetSelectEntry());
- pSh->GetNewDBMgr()->GetColumnNames(&aDBFieldLB, aDatabaseLB.GetSelectEntry(),
- aTableLB.GetSelectEntry());
+ sActDBName.SetToken(1, DB_DELIM, m_pTableLB->GetSelectEntry());
+ pSh->GetNewDBMgr()->GetColumnNames(m_pDBFieldLB, m_pDatabaseLB->GetSelectEntry(),
+ m_pTableLB->GetSelectEntry());
return 0;
}
IMPL_LINK_NOARG(SwEnvPage, FieldHdl)
{
- OUString aStr("<" + aDatabaseLB.GetSelectEntry() + "." +
- aTableLB.GetSelectEntry() + "." +
- OUString(aTableLB.GetEntryData(aTableLB.GetSelectEntryPos()) == 0 ? '0' : '1') + "." +
- aDBFieldLB.GetSelectEntry() + ">");
- aAddrEdit.ReplaceSelected(aStr);
- Selection aSel = aAddrEdit.GetSelection();
- aAddrEdit.GrabFocus();
- aAddrEdit.SetSelection(aSel);
+ OUString aStr("<" + m_pDatabaseLB->GetSelectEntry() + "." +
+ m_pTableLB->GetSelectEntry() + "." +
+ OUString(m_pTableLB->GetEntryData(m_pTableLB->GetSelectEntryPos()) == 0 ? '0' : '1') + "." +
+ m_pDBFieldLB->GetSelectEntry() + ">");
+ m_pAddrEdit->ReplaceSelected(aStr);
+ Selection aSel = m_pAddrEdit->GetSelection();
+ m_pAddrEdit->GrabFocus();
+ m_pAddrEdit->SetSelection(aSel);
return 0;
}
IMPL_LINK_NOARG(SwEnvPage, SenderHdl)
{
- const sal_Bool bEnable = aSenderBox.IsChecked();
+ const sal_Bool bEnable = m_pSenderBox->IsChecked();
GetParentSwEnvDlg()->aEnvItem.bSend = bEnable;
- aSenderEdit.Enable(bEnable);
+ m_pSenderEdit->Enable(bEnable);
if ( bEnable )
{
- aSenderEdit.GrabFocus();
- if(aSenderEdit.GetText().isEmpty())
- aSenderEdit.SetText(MakeSender());
+ m_pSenderEdit->GrabFocus();
+ if(m_pSenderEdit->GetText().isEmpty())
+ m_pSenderEdit->SetText(MakeSender());
}
- aPreview.Invalidate();
+ m_pPreview->Invalidate();
return 0;
}
@@ -280,23 +300,23 @@ void SwEnvPage::InitDatabaseBox()
{
if (pSh->GetNewDBMgr())
{
- aDatabaseLB.Clear();
+ m_pDatabaseLB->Clear();
Sequence<OUString> aDataNames = SwNewDBMgr::GetExistingDatabaseNames();
const OUString* pDataNames = aDataNames.getConstArray();
for (long i = 0; i < aDataNames.getLength(); i++)
- aDatabaseLB.InsertEntry(pDataNames[i]);
+ m_pDatabaseLB->InsertEntry(pDataNames[i]);
String sDBName = sActDBName.GetToken( 0, DB_DELIM );
String sTableName = sActDBName.GetToken( 1, DB_DELIM );
- aDatabaseLB.SelectEntry(sDBName);
- if (pSh->GetNewDBMgr()->GetTableNames(&aTableLB, sDBName))
+ m_pDatabaseLB->SelectEntry(sDBName);
+ if (pSh->GetNewDBMgr()->GetTableNames(m_pTableLB, sDBName))
{
- aTableLB.SelectEntry(sTableName);
- pSh->GetNewDBMgr()->GetColumnNames(&aDBFieldLB, sDBName, sTableName);
+ m_pTableLB->SelectEntry(sTableName);
+ pSh->GetNewDBMgr()->GetColumnNames(m_pDBFieldLB, sDBName, sTableName);
}
else
- aDBFieldLB.Clear();
+ m_pDBFieldLB->Clear();
}
}
@@ -323,9 +343,9 @@ int SwEnvPage::DeactivatePage(SfxItemSet* _pSet)
void SwEnvPage::FillItem(SwEnvItem& rItem)
{
- rItem.aAddrText = aAddrEdit .GetText();
- rItem.bSend = aSenderBox .IsChecked();
- rItem.aSendText = aSenderEdit.GetText();
+ rItem.aAddrText = m_pAddrEdit->GetText();
+ rItem.bSend = m_pSenderBox->IsChecked();
+ rItem.aSendText = m_pSenderEdit->GetText();
}
sal_Bool SwEnvPage::FillItemSet(SfxItemSet& rSet)
@@ -338,10 +358,10 @@ sal_Bool SwEnvPage::FillItemSet(SfxItemSet& rSet)
void SwEnvPage::Reset(const SfxItemSet& rSet)
{
SwEnvItem aItem = (const SwEnvItem&) rSet.Get(FN_ENVELOP);
- aAddrEdit .SetText(convertLineEnd(aItem.aAddrText, GetSystemLineEnd()));
- aSenderEdit.SetText(convertLineEnd(aItem.aSendText, GetSystemLineEnd()));
- aSenderBox .Check (aItem.bSend);
- aSenderBox.GetClickHdl().Call(&aSenderBox);
+ m_pAddrEdit->SetText(convertLineEnd(aItem.aAddrText, GetSystemLineEnd()));
+ m_pSenderEdit->SetText(convertLineEnd(aItem.aSendText, GetSystemLineEnd()));
+ m_pSenderBox->Check (aItem.bSend);
+ m_pSenderBox->GetClickHdl().Call(m_pSenderBox);
}
diff --git a/sw/source/ui/inc/envlop.hxx b/sw/source/ui/inc/envlop.hxx
index 2025d3dcab52..43a69d9a5fae 100644
--- a/sw/source/ui/inc/envlop.hxx
+++ b/sw/source/ui/inc/envlop.hxx
@@ -47,11 +47,12 @@ class SwEnvPreview : public Window
public:
- SwEnvPreview(SfxTabPage* pParent, const ResId& rResID);
- ~SwEnvPreview();
+ SwEnvPreview(SfxTabPage* pParent, const ResId& rResID);
+ SwEnvPreview(Window * pParent, WinBits nStyle);
protected:
virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual Size GetOptimalSize() const;
};
// class SwEnvDlg -----------------------------------------------------------
@@ -81,18 +82,14 @@ public:
// class SwEnvPage ----------------------------------------------------------
class SwEnvPage : public SfxTabPage
{
- FixedText aAddrText;
- MultiLineEdit aAddrEdit;
- FixedText aDatabaseFT;
- ListBox aDatabaseLB;
- FixedText aTableFT;
- ListBox aTableLB;
- ImageButton aInsertBT;
- FixedText aDBFieldFT;
- ListBox aDBFieldLB;
- CheckBox aSenderBox;
- MultiLineEdit aSenderEdit;
- SwEnvPreview aPreview;
+ VclMultiLineEdit* m_pAddrEdit;
+ ListBox* m_pDatabaseLB;
+ ListBox* m_pTableLB;
+ ListBox* m_pDBFieldLB;
+ PushButton* m_pInsertBT;
+ CheckBox* m_pSenderBox;
+ VclMultiLineEdit* m_pSenderEdit;
+ SwEnvPreview* m_pPreview;
SwWrtShell* pSh;
String sActDBName;
diff --git a/sw/uiconfig/swriter/ui/envaddresspage.ui b/sw/uiconfig/swriter/ui/envaddresspage.ui
new file mode 100644
index 000000000000..3893f7d9bea1
--- /dev/null
+++ b/sw/uiconfig/swriter/ui/envaddresspage.ui
@@ -0,0 +1,375 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <!-- interface-requires LibreOffice 1.0 -->
+ <object class="GtkImage" id="image1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-go-back</property>
+ </object>
+ <object class="GtkBox" id="EnvAddressPage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="border_width">6</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkGrid" id="grid3">
+ <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">18</property>
+ <child>
+ <object class="GtkGrid" id="grid4">
+ <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="GtkScrolledWindow" id="scrolledwindow1">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="hscrollbar_policy">always</property>
+ <property name="vscrollbar_policy">always</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="addredit:border">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ </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>
+ <child>
+ <object class="GtkLabel" id="label2">
+ <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">Addr_essee</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">addredit:border</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>
+ <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="grid6">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">12</property>
+ <property name="row_homogeneous">True</property>
+ <child>
+ <object class="GtkGrid" id="grid8">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="valign">start</property>
+ <property name="hexpand">True</property>
+ <property name="row_spacing">6</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">Database</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">database</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="GtkComboBoxText" id="database">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="entry_text_column">0</property>
+ <property name="id_column">1</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="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="grid9">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="valign">center</property>
+ <property name="hexpand">True</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label7">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Table</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">table</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="GtkComboBoxText" id="table">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="entry_text_column">0</property>
+ <property name="id_column">1</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="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="grid10">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="valign">end</property>
+ <property name="hexpand">True</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="label8">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Database field</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">field</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="GtkComboBoxText" id="field">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="entry_text_column">0</property>
+ <property name="id_column">1</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="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="insert">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="tooltip_markup" translatable="yes">Insert</property>
+ <property name="valign">center</property>
+ <property name="image">image1</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="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <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="column_spacing">18</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="row_spacing">6</property>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow2">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <property name="hscrollbar_policy">always</property>
+ <property name="vscrollbar_policy">always</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <object class="GtkTextView" id="senderedit:border">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <accessibility>
+ <relation type="labelled-by" target="sender"/>
+ </accessibility>
+ </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>
+ <child>
+ <object class="GtkCheckButton" id="sender">
+ <property name="label" translatable="yes">_Sender</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>
+ <accessibility>
+ <relation type="label-for" target="senderedit:border"/>
+ </accessibility>
+ </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>
+ <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="GtkBox" id="box1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <placeholder/>
+ </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>
+ <child>
+ <object class="swuilo-SwEnvPreview" id="preview">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">0</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>
+ <object class="GtkSizeGroup" id="sizegroup1">
+ <widgets>
+ <widget name="insert"/>
+ <widget name="box1"/>
+ </widgets>
+ </object>
+ <object class="GtkSizeGroup" id="sizegroup2">
+ <widgets>
+ <widget name="grid6"/>
+ <widget name="preview"/>
+ </widgets>
+ </object>
+</interface>