[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - 2 commits - sw/AllLangResTarget_sw.mk sw/inc sw/source sw/uiconfig sw/UI_swriter.mk
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Sep 17 07:15:20 PDT 2012
sw/AllLangResTarget_sw.mk | 1
sw/UI_swriter.mk | 1
sw/inc/swabstdlg.hxx | 2
sw/source/ui/app/app.src | 10
sw/source/ui/dialog/swdlgfact.cxx | 18 -
sw/source/ui/dialog/swdlgfact.hxx | 2
sw/source/ui/inc/app.hrc | 5
sw/source/ui/inc/convert.hxx | 35 --
sw/source/ui/inc/table.hrc | 2
sw/source/ui/shells/basesh.cxx | 3
sw/source/ui/table/convert.cxx | 165 ++++------
sw/source/ui/table/convert.hrc | 39 --
sw/source/ui/table/convert.src | 189 ------------
sw/uiconfig/swriter/ui/converttexttable.ui | 443 +++++++++++++++++++++++++++++
14 files changed, 544 insertions(+), 371 deletions(-)
New commits:
commit b2f3a3369c29040988b1ce94d1b5b6ef08d79f60
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 17 15:14:55 2012 +0100
convert code to use new text<->table dialog
Change-Id: I1f38f764901a2526d30561cedfa8495f8e326180
diff --git a/sw/AllLangResTarget_sw.mk b/sw/AllLangResTarget_sw.mk
index 3a34a90..c11b215 100644
--- a/sw/AllLangResTarget_sw.mk
+++ b/sw/AllLangResTarget_sw.mk
@@ -172,7 +172,6 @@ $(eval $(call gb_SrsTarget_add_files,sw/res,\
sw/source/ui/shells/shells.src \
sw/source/ui/smartmenu/stmenu.src \
sw/source/ui/table/chartins.src \
- sw/source/ui/table/convert.src \
sw/source/ui/table/mergetbl.src \
sw/source/ui/table/rowht.src \
sw/source/ui/table/table.src \
diff --git a/sw/UI_swriter.mk b/sw/UI_swriter.mk
index 70d7d90..482648e 100644
--- a/sw/UI_swriter.mk
+++ b/sw/UI_swriter.mk
@@ -11,6 +11,7 @@ $(eval $(call gb_UI_UI,modules/swriter))
$(eval $(call gb_UI_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/columnwidth \
+ sw/uiconfig/swriter/ui/converttexttable \
sw/uiconfig/swriter/ui/inserttable \
sw/uiconfig/swriter/ui/linenumbering \
sw/uiconfig/swriter/ui/printeroptions \
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index 79ad10f..1d86404 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -365,7 +365,7 @@ public:
virtual VclAbstractDialog * CreateSwChangeDBDlg( SwView& rVw, int nResId ) = 0; //add for SwChangeDBDlg
virtual SfxAbstractTabDialog * CreateSwCharDlg( Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
const String* pFmtStr = 0, sal_Bool bIsDrwTxtDlg = sal_False) = 0;
- virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg ( SwView& rView , int nResId, bool bToTable) = 0; //add for SwConvertTableDlg
+ virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg(SwView& rView, bool bToTable) = 0; //add for SwConvertTableDlg
virtual VclAbstractDialog * CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId) = 0; //add for SwCaptionDialog
virtual AbstractSwInsertDBColAutoPilot* CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
diff --git a/sw/source/ui/app/app.src b/sw/source/ui/app/app.src
index 3dc412b..dfec7f3 100644
--- a/sw/source/ui/app/app.src
+++ b/sw/source/ui/app/app.src
@@ -560,6 +560,16 @@ String STR_STATUSBAR_WORDCOUNT
Text [ en-US ] = "Words: $1 Selected: $2";
};
+String STR_CONVERT_TEXT_TABLE
+{
+ Text [ en-US ] = "Convert Text to Table" ;
+};
+
+String STR_SYMBOL
+{
+ Text [ en-US ] = "Symbol" ;
+};
+
ToolBox RID_MODULE_TOOLBOX
{
HelpID = HID_MODULE_TOOLBOX ;
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index 61d7b93..6efcfc7 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -773,22 +773,10 @@ SfxAbstractTabDialog * SwAbstractDialogFactory_Impl::CreateSwCharDlg(Window* pP
}
-AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg (
- SwView& rView,int nResId, bool bToTable )
+AbstractSwConvertTableDlg* SwAbstractDialogFactory_Impl::CreateSwConvertTableDlg(SwView& rView, bool bToTable)
{
- SwConvertTableDlg* pDlg=NULL;
- switch ( nResId )
- {
- case DLG_CONV_TEXT_TABLE :
- pDlg = new SwConvertTableDlg( rView, bToTable );
- break;
- default:
- break;
- }
-
- if ( pDlg )
- return new AbstractSwConvertTableDlg_Impl( pDlg );
- return 0;
+ SwConvertTableDlg* pDlg = new SwConvertTableDlg(rView, bToTable);
+ return new AbstractSwConvertTableDlg_Impl(pDlg);
}
VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId)
diff --git a/sw/source/ui/dialog/swdlgfact.hxx b/sw/source/ui/dialog/swdlgfact.hxx
index 6f6b2c6..4abcabd 100644
--- a/sw/source/ui/dialog/swdlgfact.hxx
+++ b/sw/source/ui/dialog/swdlgfact.hxx
@@ -448,7 +448,7 @@ public:
virtual VclAbstractDialog * CreateSwChangeDBDlg( SwView& rVw, int nResId ); //add for SwChangeDBDlg
virtual SfxAbstractTabDialog * CreateSwCharDlg( Window* pParent, SwView& pVw, const SfxItemSet& rCoreSet, int nResId, // add for SwCharDlg
const String* pFmtStr = 0, sal_Bool bIsDrwTxtDlg = sal_False);
- virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg ( SwView& rView, int nResId, bool bToTable ); //add for SwConvertTableDlg
+ virtual AbstractSwConvertTableDlg* CreateSwConvertTableDlg(SwView& rView, bool bToTable); //add for SwConvertTableDlg
virtual VclAbstractDialog * CreateSwCaptionDialog ( Window *pParent, SwView &rV,int nResId); //add for SwCaptionDialog
virtual AbstractSwInsertDBColAutoPilot* CreateSwInsertDBColAutoPilot( SwView& rView, // add for SwInsertDBColAutoPilot
diff --git a/sw/source/ui/inc/app.hrc b/sw/source/ui/inc/app.hrc
index a15c6a1..8c61154 100644
--- a/sw/source/ui/inc/app.hrc
+++ b/sw/source/ui/inc/app.hrc
@@ -85,14 +85,13 @@
#define MN_SUB_ALIGN (RC_APP_BEGIN + 50)
#define STR_WRITER_DOCUMENT_FULLTYPE (RC_APP_BEGIN + 100)
+#define STR_CONVERT_TEXT_TABLE (RC_APP_BEGIN + 101)
#define STR_ABSTRACT_TITLE (RC_APP_BEGIN + 102)
#define STR_DONT_ASK_AGAIN (RC_APP_BEGIN + 103)
-// --> OD 2008-04-14 #outlinelevel#
#define STR_OUTLINE_NUMBERING (RC_APP_BEGIN + 104)
-//#outline level,zhaojianwei
#define STR_FDLG_OUTLINE_LEVEL (RC_APP_BEGIN + 105)
#define STR_FDLG_STYLE (RC_APP_BEGIN + 106)
-//<-end,zhaojianwei
+#define STR_SYMBOL (RC_APP_BEGIN + 107)
// Status bar strings
#define STR_STATUSBAR_WORDCOUNT_NO_SELECTION (RC_APP_BEGIN + 110)
diff --git a/sw/source/ui/inc/convert.hxx b/sw/source/ui/inc/convert.hxx
index 500afe0..c77d148 100644
--- a/sw/source/ui/inc/convert.hxx
+++ b/sw/source/ui/inc/convert.hxx
@@ -42,31 +42,24 @@ struct SwInsertTableOptions;
class SwConvertTableDlg: public SfxModalDialog
{
- RadioButton aTabBtn;
- RadioButton aSemiBtn;
- RadioButton aParaBtn;
- RadioButton aOtherBtn;
- Edit aOtherEd;
- CheckBox aKeepColumn;
- FixedLine aDelimFL;
+ RadioButton* mpTabBtn;
+ RadioButton* mpSemiBtn;
+ RadioButton* mpParaBtn;
+ RadioButton* mpOtherBtn;
+ Edit* mpOtherEd;
+ CheckBox* mpKeepColumn;
- CheckBox aHeaderCB;
- CheckBox aRepeatHeaderCB;
+ VclContainer* mpOptions;
- FixedText aRepeatHeaderFT; // "dummy" to build before and after FT
- FixedText aRepeatHeaderBeforeFT;
- NumericField aRepeatHeaderNF;
- FixedText aRepeatHeaderAfterFT;
- TextControlCombo aRepeatHeaderCombo;
+ CheckBox* mpHeaderCB;
+ CheckBox* mpRepeatHeaderCB;
- FixedLine aOptionsFL;
- CheckBox aDontSplitCB;
- CheckBox aBorderCB;
- PushButton aAutoFmtBtn;
+ VclContainer* mpRepeatRows;
+ NumericField* mpRepeatHeaderNF;
- OKButton aOkBtn;
- CancelButton aCancelBtn;
- HelpButton aHelpBtn;
+ CheckBox* mpDontSplitCB;
+ CheckBox* mpBorderCB;
+ PushButton* mpAutoFmtBtn;
String sConvertTextTable;
SwTableAutoFmt* pTAutoFmt;
diff --git a/sw/source/ui/inc/table.hrc b/sw/source/ui/inc/table.hrc
index 17372b7..f41bc6d 100644
--- a/sw/source/ui/inc/table.hrc
+++ b/sw/source/ui/inc/table.hrc
@@ -19,7 +19,7 @@
#include "rcid.hrc"
#define DLG_FORMAT_TABLE (RC_TABLE_BEGIN + 1)
-#define DLG_CONV_TEXT_TABLE (RC_TABLE_BEGIN + 2)
+
#define DLG_ROW_HEIGHT (RC_TABLE_BEGIN + 4)
#define DLG_SPLIT (RC_TABLE_BEGIN + 5)
diff --git a/sw/source/ui/shells/basesh.cxx b/sw/source/ui/shells/basesh.cxx
index 8a3afdc..020715c 100644
--- a/sw/source/ui/shells/basesh.cxx
+++ b/sw/source/ui/shells/basesh.cxx
@@ -837,8 +837,7 @@ void SwBaseShell::Execute(SfxRequest &rReq)
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "SwAbstractDialogFactory fail!");
- AbstractSwConvertTableDlg* pDlg = pFact->CreateSwConvertTableDlg(
- GetView(),DLG_CONV_TEXT_TABLE , bToTable);
+ AbstractSwConvertTableDlg* pDlg = pFact->CreateSwConvertTableDlg(GetView(), bToTable);
OSL_ENSURE(pDlg, "Dialogdiet fail!");
if( RET_OK == pDlg->Execute() )
{
diff --git a/sw/source/ui/table/convert.cxx b/sw/source/ui/table/convert.cxx
index 332591f..e2066b6 100644
--- a/sw/source/ui/table/convert.cxx
+++ b/sw/source/ui/table/convert.cxx
@@ -47,8 +47,8 @@
#include "view.hxx"
#include "tblafmt.hxx"
+#include "app.hrc"
#include "table.hrc"
-#include "convert.hrc"
#include "swabstdlg.hxx"
namespace swui
@@ -65,21 +65,21 @@ void SwConvertTableDlg::GetValues( sal_Unicode& rDelim,
SwInsertTableOptions& rInsTblOpts,
SwTableAutoFmt const*& prTAFmt )
{
- if( aTabBtn.IsChecked() )
+ if( mpTabBtn->IsChecked() )
{
//0x0b mustn't be set when re-converting table into text
- bIsKeepColumn = !aKeepColumn.IsVisible() || aKeepColumn.IsChecked();
+ bIsKeepColumn = !mpKeepColumn->IsVisible() || mpKeepColumn->IsChecked();
rDelim = bIsKeepColumn ? 0x09 : 0x0b;
nSaveButtonState = 0;
}
- else if( aSemiBtn.IsChecked() )
+ else if( mpSemiBtn->IsChecked() )
{
rDelim = ';';
nSaveButtonState = 1;
}
- else if( aOtherBtn.IsChecked() && aOtherEd.GetText().Len() )
+ else if( mpOtherBtn->IsChecked() && mpOtherEd->GetText().Len() )
{
- uOther = aOtherEd.GetText().GetChar( 0 );
+ uOther = mpOtherEd->GetText().GetChar( 0 );
rDelim = uOther;
nSaveButtonState = 3;
}
@@ -87,7 +87,7 @@ void SwConvertTableDlg::GetValues( sal_Unicode& rDelim,
{
nSaveButtonState = 2;
rDelim = cParaDelim;
- if(aOtherBtn.IsChecked())
+ if(mpOtherBtn->IsChecked())
{
nSaveButtonState = 3;
uOther = 0;
@@ -96,15 +96,15 @@ void SwConvertTableDlg::GetValues( sal_Unicode& rDelim,
sal_uInt16 nInsMode = 0;
- if (aBorderCB.IsChecked())
+ if (mpBorderCB->IsChecked())
nInsMode |= tabopts::DEFAULT_BORDER;
- if (aHeaderCB.IsChecked())
+ if (mpHeaderCB->IsChecked())
nInsMode |= tabopts::HEADLINE;
- if (aRepeatHeaderCB.IsEnabled() && aRepeatHeaderCB.IsChecked())
- rInsTblOpts.mnRowsToRepeat = sal_uInt16( aRepeatHeaderNF.GetValue() );
+ if (mpRepeatHeaderCB->IsEnabled() && mpRepeatHeaderCB->IsChecked())
+ rInsTblOpts.mnRowsToRepeat = sal_uInt16( mpRepeatHeaderNF->GetValue() );
else
rInsTblOpts.mnRowsToRepeat = 0;
- if (!aDontSplitCB.IsChecked())
+ if (!mpDontSplitCB->IsChecked())
nInsMode |= tabopts::SPLIT_LAYOUT;
if( pTAutoFmt )
@@ -115,60 +115,43 @@ void SwConvertTableDlg::GetValues( sal_Unicode& rDelim,
SwConvertTableDlg::SwConvertTableDlg( SwView& rView, bool bToTable )
-
- : SfxModalDialog( &rView.GetViewFrame()->GetWindow(), SW_RES(DLG_CONV_TEXT_TABLE)),
-#ifdef MSC
-#pragma warning (disable : 4355)
-#endif
- aTabBtn (this, SW_RES(CB_TAB)),
- aSemiBtn (this, SW_RES(CB_SEMI)),
- aParaBtn (this, SW_RES(CB_PARA)),
- aOtherBtn (this, SW_RES(RB_OTHER)),
- aOtherEd (this, SW_RES(ED_OTHER)),
- aKeepColumn (this, SW_RES(CB_KEEPCOLUMN)),
- aDelimFL (this, SW_RES(FL_DELIM)),
-
- aHeaderCB (this, SW_RES(CB_HEADER)),
- aRepeatHeaderCB (this, SW_RES(CB_REPEAT_HEADER)),
-
- aRepeatHeaderFT (this, SW_RES(FT_REPEAT_HEADER)),
- aRepeatHeaderBeforeFT (this),
- aRepeatHeaderNF (this, SW_RES(NF_REPEAT_HEADER)),
- aRepeatHeaderAfterFT (this),
- aRepeatHeaderCombo (this, SW_RES(WIN_REPEAT_HEADER), aRepeatHeaderNF, aRepeatHeaderBeforeFT, aRepeatHeaderAfterFT),
-
- aOptionsFL (this, SW_RES(FL_OPTIONS)),
- aDontSplitCB (this, SW_RES(CB_DONT_SPLIT)),
- aBorderCB (this, SW_RES(CB_BORDER)),
- aAutoFmtBtn(this,SW_RES(BT_AUTOFORMAT)),
-
- aOkBtn(this,SW_RES(BT_OK)),
- aCancelBtn(this,SW_RES(BT_CANCEL)),
- aHelpBtn(this, SW_RES(BT_HELP)),
-#ifdef MSC
-#pragma warning (default : 4355)
-#endif
- sConvertTextTable(SW_RES(STR_CONVERT_TEXT_TABLE)),
- pTAutoFmt( 0 ),
- pShell( &rView.GetWrtShell() )
+ : SfxModalDialog(&rView.GetViewFrame()->GetWindow(), "ConvertTextTableDialog", "modules/swriter/ui/converttexttable.ui" )
+ , sConvertTextTable(SW_RES(STR_CONVERT_TEXT_TABLE))
+ , pTAutoFmt(0)
+ , pShell(&rView.GetWrtShell())
{
- aOtherEd.SetAccessibleName(String(SW_RES(STR_SYMBOL)));
- aOtherEd.SetAccessibleRelationLabeledBy(&aOtherBtn);
- FreeResource();
+ get(mpTabBtn, "tabs");
+ get(mpSemiBtn, "semicolons");
+ get(mpParaBtn, "paragraph");
+ get(mpOtherBtn, "other");
+ get(mpOtherEd, "othered");
+ get(mpKeepColumn, "keepcolumn");
+ get(mpOptions, "options");
+ get(mpHeaderCB, "headingcb");
+ get(mpRepeatHeaderCB, "repeatheading");
+ get(mpRepeatRows, "repeatrows");
+ get(mpRepeatHeaderNF, "repeatheadersb");
+ get(mpDontSplitCB, "dontsplitcb");
+ get(mpBorderCB, "bordercb");
+ get(mpAutoFmtBtn, "autofmt");
+
+ mpOtherEd->SetAccessibleName(String(SW_RES(STR_SYMBOL)));
+ mpOtherEd->SetAccessibleRelationLabeledBy(mpOtherBtn);
+
if(nSaveButtonState > -1)
{
switch (nSaveButtonState)
{
case 0:
- aTabBtn.Check();
- aKeepColumn.Check(bIsKeepColumn);
+ mpTabBtn->Check();
+ mpKeepColumn->Check(bIsKeepColumn);
break;
- case 1: aSemiBtn.Check();break;
- case 2: aParaBtn.Check();break;
+ case 1: mpSemiBtn->Check();break;
+ case 2: mpParaBtn->Check();break;
case 3:
- aOtherBtn.Check();
+ mpOtherBtn->Check();
if(uOther)
- aOtherEd.SetText(uOther);
+ mpOtherEd->SetText(uOther);
break;
}
@@ -176,35 +159,24 @@ SwConvertTableDlg::SwConvertTableDlg( SwView& rView, bool bToTable )
if( bToTable )
{
SetText( sConvertTextTable );
- aAutoFmtBtn.SetClickHdl(LINK(this, SwConvertTableDlg, AutoFmtHdl));
- aAutoFmtBtn.Show();
- aKeepColumn.Show();
- aKeepColumn.Enable( aTabBtn.IsChecked() );
- aRepeatHeaderCombo.Arrange( aRepeatHeaderFT );
+ mpAutoFmtBtn->SetClickHdl(LINK(this, SwConvertTableDlg, AutoFmtHdl));
+ mpAutoFmtBtn->Show();
+ mpKeepColumn->Show();
+ mpKeepColumn->Enable( mpTabBtn->IsChecked() );
}
else
{
//Einfuege-Optionen verstecken
- aHeaderCB .Show(sal_False);
- aRepeatHeaderCB .Show(sal_False);
- aDontSplitCB .Show(sal_False);
- aBorderCB .Show(sal_False);
- aOptionsFL .Show(sal_False);
- aRepeatHeaderCombo.Show(sal_False);
-
- //Groesse anpassen
- Size aSize(GetSizePixel());
- aSize.Height() = 8 + aHelpBtn.GetSizePixel().Height() + aHelpBtn.GetPosPixel().Y();
- SetOutputSizePixel(aSize);
+ mpOptions->Hide();
}
- aKeepColumn.SaveValue();
+ mpKeepColumn->SaveValue();
Link aLk( LINK(this, SwConvertTableDlg, BtnHdl) );
- aTabBtn.SetClickHdl( aLk );
- aSemiBtn.SetClickHdl( aLk );
- aParaBtn.SetClickHdl( aLk );
- aOtherBtn.SetClickHdl(aLk );
- aOtherEd.Enable( aOtherBtn.IsChecked() );
+ mpTabBtn->SetClickHdl( aLk );
+ mpSemiBtn->SetClickHdl( aLk );
+ mpParaBtn->SetClickHdl( aLk );
+ mpOtherBtn->SetClickHdl(aLk );
+ mpOtherEd->Enable( mpOtherBtn->IsChecked() );
const SwModuleOptions* pModOpt = SW_MOD()->GetModuleConfig();
@@ -213,13 +185,13 @@ SwConvertTableDlg::SwConvertTableDlg( SwView& rView, bool bToTable )
SwInsertTableOptions aInsOpts = pModOpt->GetInsTblFlags(bHTMLMode);
sal_uInt16 nInsTblFlags = aInsOpts.mnInsMode;
- aHeaderCB.Check( 0 != (nInsTblFlags & tabopts::HEADLINE) );
- aRepeatHeaderCB.Check(aInsOpts.mnRowsToRepeat > 0);
- aDontSplitCB.Check( 0 == (nInsTblFlags & tabopts::SPLIT_LAYOUT));
- aBorderCB.Check( 0!= (nInsTblFlags & tabopts::DEFAULT_BORDER) );
+ mpHeaderCB->Check( 0 != (nInsTblFlags & tabopts::HEADLINE) );
+ mpRepeatHeaderCB->Check(aInsOpts.mnRowsToRepeat > 0);
+ mpDontSplitCB->Check( 0 == (nInsTblFlags & tabopts::SPLIT_LAYOUT));
+ mpBorderCB->Check( 0!= (nInsTblFlags & tabopts::DEFAULT_BORDER) );
- aHeaderCB.SetClickHdl(LINK(this, SwConvertTableDlg, CheckBoxHdl));
- aRepeatHeaderCB.SetClickHdl(LINK(this, SwConvertTableDlg, ReapeatHeaderCheckBoxHdl));
+ mpHeaderCB->SetClickHdl(LINK(this, SwConvertTableDlg, CheckBoxHdl));
+ mpRepeatHeaderCB->SetClickHdl(LINK(this, SwConvertTableDlg, ReapeatHeaderCheckBoxHdl));
ReapeatHeaderCheckBoxHdl();
CheckBoxHdl();
}
@@ -244,16 +216,16 @@ IMPL_LINK( SwConvertTableDlg, AutoFmtHdl, PushButton*, pButton )
IMPL_LINK( SwConvertTableDlg, BtnHdl, Button*, pButton )
{
- if( pButton == &aTabBtn )
- aKeepColumn.SetState( aKeepColumn.GetSavedValue() );
+ if( pButton == mpTabBtn )
+ mpKeepColumn->SetState( mpKeepColumn->GetSavedValue() );
else
{
- if( aKeepColumn.IsEnabled() )
- aKeepColumn.SaveValue();
- aKeepColumn.Check( sal_True );
+ if( mpKeepColumn->IsEnabled() )
+ mpKeepColumn->SaveValue();
+ mpKeepColumn->Check( sal_True );
}
- aKeepColumn.Enable( aTabBtn.IsChecked() );
- aOtherEd.Enable( aOtherBtn.IsChecked() );
+ mpKeepColumn->Enable( mpTabBtn->IsChecked() );
+ mpOtherEd->Enable( mpOtherBtn->IsChecked() );
return 0;
}
@@ -263,7 +235,7 @@ IMPL_LINK( SwConvertTableDlg, BtnHdl, Button*, pButton )
IMPL_LINK_NOARG(SwConvertTableDlg, CheckBoxHdl)
{
- aRepeatHeaderCB.Enable(aHeaderCB.IsChecked());
+ mpRepeatHeaderCB->Enable(mpHeaderCB->IsChecked());
ReapeatHeaderCheckBoxHdl();
return 0;
@@ -271,11 +243,8 @@ IMPL_LINK_NOARG(SwConvertTableDlg, CheckBoxHdl)
IMPL_LINK_NOARG(SwConvertTableDlg, ReapeatHeaderCheckBoxHdl)
{
- sal_Bool bEnable = aHeaderCB.IsChecked() && aRepeatHeaderCB.IsChecked();
- aRepeatHeaderBeforeFT.Enable(bEnable);
- aRepeatHeaderAfterFT.Enable(bEnable);
- aRepeatHeaderNF.Enable(bEnable);
-
+ bool bEnable = mpHeaderCB->IsChecked() && mpRepeatHeaderCB->IsChecked();
+ mpRepeatRows->Enable(bEnable);
return 0;
}
diff --git a/sw/source/ui/table/convert.hrc b/sw/source/ui/table/convert.hrc
deleted file mode 100644
index a48406b..0000000
--- a/sw/source/ui/table/convert.hrc
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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 .
- */
-#define CB_TAB 1
-#define CB_SEMI 3
-#define CB_PARA 4
-#define FL_DELIM 5
-#define RB_OTHER 6
-#define ED_OTHER 7
-#define CB_KEEPCOLUMN 8
-#define STR_CONVERT_TEXT_TABLE 9
-#define CB_HEADER 13
-#define CB_REPEAT_HEADER 14
-#define CB_DONT_SPLIT 15
-#define CB_BORDER 16
-#define FL_OPTIONS 17
-#define FT_REPEAT_HEADER 18
-#define NF_REPEAT_HEADER 19
-
-#define BT_OK 100
-#define BT_CANCEL 101
-#define BT_AUTOFORMAT 102
-#define BT_HELP 103
-#define WIN_REPEAT_HEADER 104
-#define STR_SYMBOL 105
diff --git a/sw/source/ui/table/convert.src b/sw/source/ui/table/convert.src
deleted file mode 100644
index e02db10..0000000
--- a/sw/source/ui/table/convert.src
+++ /dev/null
@@ -1,189 +0,0 @@
-/*
- * 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 "table.hrc"
-#include "convert.hrc"
-#include "cmdid.h"
-#include "helpid.h"
-ModalDialog DLG_CONV_TEXT_TABLE
-{
- HelpID = CMD_FN_CONVERT_TEXT_TABLE ;
- OUTPUTSIZE = TRUE ;
- Size = MAP_APPFONT ( 203 , 169 ) ;
- Text [ en-US ] = "Convert Table to Text" ;
- MOVEABLE = TRUE ;
- SVLOOK = TRUE ;
- RadioButton CB_TAB
- {
- HelpID = "sw:RadioButton:DLG_CONV_TEXT_TABLE:CB_TAB";
- Pos = MAP_APPFONT ( 12 , 17 ) ;
- Size = MAP_APPFONT ( 60 , 10 ) ;
- Text [ en-US ] = "~Tabs" ;
- TABSTOP = TRUE ;
- Group = TRUE ;
- Check = TRUE ;
- };
- RadioButton CB_SEMI
- {
- HelpID = "sw:RadioButton:DLG_CONV_TEXT_TABLE:CB_SEMI";
- Pos = MAP_APPFONT ( 75 , 17 ) ;
- Size = MAP_APPFONT ( 60 , 10 ) ;
- Text [ en-US ] = "~Semicolons" ;
- TABSTOP = TRUE ;
- };
- RadioButton CB_PARA
- {
- HelpID = "sw:RadioButton:DLG_CONV_TEXT_TABLE:CB_PARA";
- Pos = MAP_APPFONT ( 12 , 33 ) ;
- Size = MAP_APPFONT ( 60 , 10 ) ;
- Text [ en-US ] = "~Paragraph" ;
- TABSTOP = TRUE ;
- };
- RadioButton RB_OTHER
- {
- HelpID = "sw:RadioButton:DLG_CONV_TEXT_TABLE:RB_OTHER";
- Pos = MAP_APPFONT ( 75 , 33 ) ;
- Size = MAP_APPFONT ( 45 , 10 ) ;
- Text [ en-US ] = "~Other: " ;
- };
- Edit ED_OTHER
- {
- HelpID = "sw:Edit:DLG_CONV_TEXT_TABLE:ED_OTHER";
- Border = TRUE ;
- Left = TRUE ;
- Pos = MAP_APPFONT ( 123 , 32 ) ;
- Size = MAP_APPFONT ( 9 , 12 ) ;
- Text = "," ;
- MaxTextLength = 1 ;
- };
- CheckBox CB_KEEPCOLUMN
- {
- HelpID = "sw:CheckBox:DLG_CONV_TEXT_TABLE:CB_KEEPCOLUMN";
- Pos = MAP_APPFONT ( 12 , 49 ) ;
- Size = MAP_APPFONT ( 128 , 10 ) ;
- Check = TRUE;
- Hide = TRUE ;
- Text [ en-US ] = "Equal width for all columns" ;
- };
- FixedLine FL_DELIM
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 135 , 8 ) ;
- Text [ en-US ] = "Separate text at" ;
- Group = TRUE ;
- };
- CheckBox CB_HEADER
- {
- HelpID = "sw:CheckBox:DLG_CONV_TEXT_TABLE:CB_HEADER";
- Pos = MAP_APPFONT ( 12 , 84 ) ;
- Size = MAP_APPFONT ( 123 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Heading";
- };
- CheckBox CB_REPEAT_HEADER
- {
- HelpID = "sw:CheckBox:DLG_CONV_TEXT_TABLE:CB_REPEAT_HEADER";
- Pos = MAP_APPFONT ( 22 , 97 ) ;
- Size = MAP_APPFONT ( 113 , 10 ) ;
- Text [ en-US ] = "Repeat heading";
- TabStop = TRUE ;
- };
- FixedText FT_REPEAT_HEADER
- {
- Pos = MAP_APPFONT ( 125 , 113 ) ;
- Size = MAP_APPFONT ( 66 , 10 ) ;
- Text [ en-US ] = "The first %POSITION_OF_CONTROL rows" ;
- };
- NumericField NF_REPEAT_HEADER
- {
- HelpID = "sw:NumericField:DLG_CONV_TEXT_TABLE:NF_REPEAT_HEADER";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 191 , 112 ) ;
- Size = MAP_APPFONT ( 28 , 12 ) ;
- TabStop = TRUE ;
- Left = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Minimum = 1 ;
- Maximum = 1000 ;
- First = 1 ;
- };
- Window WIN_REPEAT_HEADER
- {
- Pos = MAP_APPFONT ( 30 , 110 ) ;
- Size = MAP_APPFONT ( 2 , 1 ) ;
- };
- CheckBox CB_DONT_SPLIT
- {
- HelpID = "sw:CheckBox:DLG_CONV_TEXT_TABLE:CB_DONT_SPLIT";
- Pos = MAP_APPFONT ( 12 , 126 ) ;
- Size = MAP_APPFONT ( 123 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Don't split table";
- };
- CheckBox CB_BORDER
- {
- HelpID = "sw:CheckBox:DLG_CONV_TEXT_TABLE:CB_BORDER";
- Pos = MAP_APPFONT ( 12 , 139 ) ;
- Size = MAP_APPFONT ( 123 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Border";
- };
- FixedLine FL_OPTIONS
- {
- Pos = MAP_APPFONT ( 6 , 71 ) ;
- Size = MAP_APPFONT ( 135 , 8 ) ;
- Text [ en-US ] = "Options";
- };
- String STR_CONVERT_TEXT_TABLE
- {
- Text [ en-US ] = "Convert Text to Table" ;
- };
- OkButton BT_OK
- {
- Pos = MAP_APPFONT ( 147 , 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TABSTOP = TRUE ;
- DefButton = TRUE ;
- };
- CancelButton BT_CANCEL
- {
- Pos = MAP_APPFONT ( 147 , 23 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TABSTOP = TRUE ;
- };
- HelpButton BT_HELP
- {
- Pos = MAP_APPFONT ( 147 , 43 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TABSTOP = TRUE ;
- };
- PushButton BT_AUTOFORMAT
- {
- HelpID = "sw:PushButton:DLG_CONV_TEXT_TABLE:BT_AUTOFORMAT";
- Pos = MAP_APPFONT ( 12 , 152 ) ;
- Size = MAP_APPFONT ( 86 , 14 ) ;
- TabStop = TRUE ;
- Hide = TRUE ;
- Text [ en-US ] = "Auto~Format..." ;
- };
- String STR_SYMBOL
- {
- Text [ en-US ] = "Symbol" ;
- };
-};
diff --git a/sw/uiconfig/swriter/ui/converttexttable.ui b/sw/uiconfig/swriter/ui/converttexttable.ui
index 0e6e9dc..63bfbf8 100644
--- a/sw/uiconfig/swriter/ui/converttexttable.ui
+++ b/sw/uiconfig/swriter/ui/converttexttable.ui
@@ -1,6 +1,13 @@
<?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">1000</property>
+ <property name="value">1</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
<object class="GtkDialog" id="ConvertTextTableDialog">
<property name="can_focus">False</property>
<property name="border_width">5</property>
@@ -99,31 +106,24 @@
<property name="row_spacing">18</property>
<property name="column_spacing">10</property>
<child>
- <object class="GtkRadioButton" id="tabs">
- <property name="label" translatable="yes">Tabs</property>
- <property name="use_action_appearance">False</property>
+ <object class="GtkEntry" id="othered">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="valign">end</property>
- <property name="use_action_appearance">False</property>
- <property name="relief">half</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">semicolons</property>
+ <property name="invisible_char">â</property>
+ <property name="width_chars">1</property>
+ <property name="text" translatable="yes">,</property>
+ <property name="invisible_char_set">True</property>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
+ <property name="left_attach">2</property>
+ <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
- <object class="GtkRadioButton" id="semicolons">
- <property name="label" translatable="yes">Paragraph</property>
+ <object class="GtkRadioButton" id="other">
+ <property name="label" translatable="yes">Other:</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -132,17 +132,17 @@
<property name="use_action_appearance">False</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
- <property name="group">paragraph</property>
+ <property name="group">tabs</property>
</object>
<packing>
- <property name="left_attach">0</property>
+ <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="GtkRadioButton" id="paragraph">
+ <object class="GtkRadioButton" id="semicolons">
<property name="label" translatable="yes">Semicolons</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
@@ -162,8 +162,8 @@
</packing>
</child>
<child>
- <object class="GtkRadioButton" id="other">
- <property name="label" translatable="yes">Other:</property>
+ <object class="GtkRadioButton" id="paragraph">
+ <property name="label" translatable="yes">Paragraph</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -172,26 +172,34 @@
<property name="use_action_appearance">False</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
- <property name="group">tabs</property>
+ <property name="group">semicolons</property>
</object>
<packing>
- <property name="left_attach">1</property>
+ <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="GtkEntry" id="othered">
+ <object class="GtkRadioButton" id="tabs">
+ <property name="label" translatable="yes">Tabs</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="invisible_char">â</property>
- <property name="width_chars">1</property>
- <property name="invisible_char_set">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="valign">end</property>
+ <property name="use_action_appearance">False</property>
+ <property name="relief">half</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">paragraph</property>
</object>
<packing>
- <property name="left_attach">2</property>
- <property name="top_attach">1</property>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -219,7 +227,7 @@
</object>
</child>
<child type="label">
- <object class="GtkLabel" id="1">
+ <object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Separate text at</property>
@@ -365,6 +373,7 @@
<property name="shadow_type">out</property>
<property name="invisible_char_set">True</property>
<property name="progress_pulse_step">1</property>
+ <property name="adjustment">adjustment1</property>
<property name="update_policy">if-valid</property>
</object>
<packing>
commit 142ff9c34c0fa878fe67375ff669d49d34cfec45
Author: Gokul <gokul.cdac at gmail.com>
Date: Mon Sep 17 14:33:05 2012 +0100
add a text<->table dialog
Change-Id: I3ce08b32b07ac23d6183cd820d6e46cff78cdbe3
diff --git a/sw/uiconfig/swriter/ui/converttexttable.ui b/sw/uiconfig/swriter/ui/converttexttable.ui
new file mode 100644
index 0000000..0e6e9dc
--- /dev/null
+++ b/sw/uiconfig/swriter/ui/converttexttable.ui
@@ -0,0 +1,434 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkDialog" id="ConvertTextTableDialog">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="title" translatable="yes">Convert Table to Text</property>
+ <property name="type_hint">dialog</property>
+ <child internal-child="vbox">
+ <object class="GtkBox" id="dialog-vbox1">
+ <property name="can_focus">False</property>
+ <property name="spacing">2</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox" id="dialog-action_area1">
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="layout_style">start</property>
+ <child>
+ <object class="GtkButton" id="ok">
+ <property name="label">gtk-ok</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">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="cancel">
+ <property name="label">gtk-cancel</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">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="help">
+ <property name="label">gtk-help</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">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="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</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>
+ <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="halign">start</property>
+ <property name="valign">start</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="halign">start</property>
+ <property name="valign">start</property>
+ <property name="margin_bottom">10</property>
+ <property name="row_spacing">18</property>
+ <property name="column_spacing">10</property>
+ <child>
+ <object class="GtkRadioButton" id="tabs">
+ <property name="label" translatable="yes">Tabs</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="valign">end</property>
+ <property name="use_action_appearance">False</property>
+ <property name="relief">half</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">semicolons</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="semicolons">
+ <property name="label" translatable="yes">Paragraph</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="valign">end</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">paragraph</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="paragraph">
+ <property name="label" translatable="yes">Semicolons</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="valign">end</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">other</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="other">
+ <property name="label" translatable="yes">Other:</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="valign">end</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">tabs</property>
+ </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="GtkEntry" id="othered">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">â</property>
+ <property name="width_chars">1</property>
+ <property name="invisible_char_set">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="keepcolumn">
+ <property name="label" translatable="yes">Equal width for all columns</property>
+ <property name="use_action_appearance">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Separate text at</property>
+ <property name="use_markup">True</property>
+ </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="options">
+ <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="alignment2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkGrid" id="grid3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">5</property>
+ <property name="column_spacing">5</property>
+ <child>
+ <object class="GtkCheckButton" id="headingcb">
+ <property name="label" translatable="yes">Heading</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</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="GtkCheckButton" id="repeatheading">
+ <property name="label" translatable="yes">Repeat heading</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="margin_left">25</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">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>
+ <child>
+ <object class="GtkCheckButton" id="dontsplitcb">
+ <property name="label" translatable="yes">Don't split table</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </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>
+ <child>
+ <object class="GtkCheckButton" id="bordercb">
+ <property name="label" translatable="yes">Border</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">4</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkGrid" id="repeatrows">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="margin_left">50</property>
+ <child>
+ <object class="GtkLabel" id="label3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">The first </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="GtkLabel" id="label4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">rows</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>
+ <child>
+ <object class="GtkSpinButton" id="repeatheadersb">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">â¢</property>
+ <property name="shadow_type">out</property>
+ <property name="invisible_char_set">True</property>
+ <property name="progress_pulse_step">1</property>
+ <property name="update_policy">if-valid</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">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="autofmt">
+ <property name="label" translatable="yes">AutoFormat...</property>
+ <property name="use_action_appearance">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">5</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Options</property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">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>
+ <action-widgets>
+ <action-widget response="0">ok</action-widget>
+ <action-widget response="0">cancel</action-widget>
+ <action-widget response="0">help</action-widget>
+ </action-widgets>
+ </object>
+</interface>
More information about the Libreoffice-commits
mailing list