summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-04-25 11:15:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:17 +0100
commite125d95ba4a4905fa36ba8f4bed0c2dafd37ce13 (patch)
tree8059f31bbc1cd6d13b80393d0082c2d64906aea4
parent88ab6e32f70bf6ae3cbe0677942b71701069b4db (diff)
first pass at a manual conversion to .ui format of a dialog
-rw-r--r--sw/Package_uiconfig.mk4
-rw-r--r--sw/source/ui/inc/titlepage.hxx44
-rw-r--r--sw/source/ui/misc/titlepage.cxx130
-rw-r--r--sw/uiconfig/swriter/ui/titlepage.ui491
4 files changed, 566 insertions, 103 deletions
diff --git a/sw/Package_uiconfig.mk b/sw/Package_uiconfig.mk
index 57e7f0be7e83..c4cf186dde86 100644
--- a/sw/Package_uiconfig.mk
+++ b/sw/Package_uiconfig.mk
@@ -27,6 +27,9 @@
#*************************************************************************
$(eval $(call gb_Package_Package,sw_uiconfig,$(SRCDIR)/sw/uiconfig))
+
+$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/ui/titlepage.ui,swriter/ui/titlepage.ui))
+
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/sglobal/menubar/menubar.xml,sglobal/menubar/menubar.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/sglobal/statusbar/statusbar.xml,sglobal/statusbar/statusbar.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/sglobal/toolbar/alignmentbar.xml,sglobal/toolbar/alignmentbar.xml))
@@ -193,7 +196,6 @@ $(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolb
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/drawingobjectbar.xml,swriter/toolbar/drawingobjectbar.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/drawtextobjectbar.xml,swriter/toolbar/drawtextobjectbar.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/extrusionobjectbar.xml,swriter/toolbar/extrusionobjectbar.xml))
-$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/findbar.xml,swriter/toolbar/findbar.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/flowchartshapes.xml,swriter/toolbar/flowchartshapes.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/fontworkobjectbar.xml,swriter/toolbar/fontworkobjectbar.xml))
$(eval $(call gb_Package_add_file,sw_uiconfig,xml/uiconfig/modules/swriter/toolbar/fontworkshapetype.xml,swriter/toolbar/fontworkshapetype.xml))
diff --git a/sw/source/ui/inc/titlepage.hxx b/sw/source/ui/inc/titlepage.hxx
index 01fbfa77561c..b4ff9c1430ad 100644
--- a/sw/source/ui/inc/titlepage.hxx
+++ b/sw/source/ui/inc/titlepage.hxx
@@ -44,34 +44,22 @@ class SwPageDesc;
class SwTitlePageDlg : public SfxModalDialog
{
private:
- FixedLine aMakeInsertFL;
- RadioButton aUseExistingPagesRB;
- RadioButton aInsertNewPagesRB;
- FixedText aPageCountFT;
- NumericField aPageCountNF;
- FixedText aPagePagesFT;
-
- FixedText aPageStartFT;
- RadioButton aDocumentStartRB;
- RadioButton aPageStartRB;
- NumericField aPageStartNF;
-
- FixedLine aNumberingFL;
- CheckBox aRestartNumberingCB;
- FixedText aRestartNumberingFT;
- NumericField aRestartNumberingNF;
- CheckBox aSetPageNumberCB;
- FixedText aSetPageNumberFT;
- NumericField aSetPageNumberNF;
-
- FixedLine aPagePropertiesFL;
- ListBox aPagePropertiesLB;
- PushButton aPagePropertiesPB;
-
- FixedLine aBottomFL;
- OKButton aOkPB;
- CancelButton aCancelPB;
- HelpButton aHelpPB;
+ RadioButton* m_pUseExistingPagesRB;
+ NumericField* m_pPageCountNF;
+
+ RadioButton* m_pDocumentStartRB;
+ RadioButton* m_pPageStartRB;
+ NumericField* m_pPageStartNF;
+
+ CheckBox* m_pRestartNumberingCB;
+ NumericField* m_pRestartNumberingNF;
+ CheckBox* m_pSetPageNumberCB;
+ NumericField* m_pSetPageNumberNF;
+
+ ListBox* m_pPagePropertiesLB;
+ PushButton* m_pPagePropertiesPB;
+
+ OKButton* m_pOkPB;
SwWrtShell *mpSh;
diff --git a/sw/source/ui/misc/titlepage.cxx b/sw/source/ui/misc/titlepage.cxx
index a826af480cfe..3261ecb00ab5 100644
--- a/sw/source/ui/misc/titlepage.cxx
+++ b/sw/source/ui/misc/titlepage.cxx
@@ -128,64 +128,46 @@ namespace
*/
void SwTitlePageDlg::FillList()
{
- sal_uInt16 nTitlePages = aPageCountNF.GetValue();
- aPagePropertiesLB.Clear();
+ sal_uInt16 nTitlePages = m_pPageCountNF->GetValue();
+ m_pPagePropertiesLB->Clear();
if (mpTitleDesc)
- aPagePropertiesLB.InsertEntry(mpTitleDesc->GetName());
+ m_pPagePropertiesLB->InsertEntry(mpTitleDesc->GetName());
if (nTitlePages > 1 && mpIndexDesc)
- aPagePropertiesLB.InsertEntry(mpIndexDesc->GetName());
+ m_pPagePropertiesLB->InsertEntry(mpIndexDesc->GetName());
if (mpNormalDesc)
- aPagePropertiesLB.InsertEntry(mpNormalDesc->GetName());
- aPagePropertiesLB.SelectEntryPos(0);
+ m_pPagePropertiesLB->InsertEntry(mpNormalDesc->GetName());
+ m_pPagePropertiesLB->SelectEntryPos(0);
}
sal_uInt16 SwTitlePageDlg::GetInsertPosition() const
{
sal_uInt16 nPage = 1;
- if (aPageStartNF.IsEnabled())
- nPage = aPageStartNF.GetValue();
+ if (m_pPageStartNF->IsEnabled())
+ nPage = m_pPageStartNF->GetValue();
return nPage;
}
SwTitlePageDlg::SwTitlePageDlg( Window *pParent ) :
- SfxModalDialog( pParent, SW_RES(DLG_TITLEPAGE) ),
-#ifdef MSC
-#pragma warning (disable : 4355)
-#endif
- aMakeInsertFL ( this, SW_RES( FL_MAKEINSERT )),
- aUseExistingPagesRB ( this, SW_RES( RB_USE_EXISTING_PAGES )),
- aInsertNewPagesRB ( this, SW_RES( RB_INSERT_NEW_PAGES )),
- aPageCountFT ( this, SW_RES( FT_PAGE_COUNT )),
- aPageCountNF ( this, SW_RES( NF_PAGE_COUNT )),
- aPagePagesFT ( this, SW_RES( FT_PAGE_PAGES )),
- aPageStartFT ( this, SW_RES( FT_PAGE_START )),
- aDocumentStartRB ( this, SW_RES( RB_DOCUMENT_START )),
- aPageStartRB ( this, SW_RES( RB_PAGE_START )),
- aPageStartNF ( this, SW_RES( NF_PAGE_START )),
- aNumberingFL ( this, SW_RES( FL_NUMBERING )),
- aRestartNumberingCB ( this, SW_RES( CB_RESTART_NUMBERING )),
- aRestartNumberingFT ( this, SW_RES( FT_RESTART_NUMBERING )),
- aRestartNumberingNF ( this, SW_RES( NF_RESTART_NUMBERING )),
- aSetPageNumberCB ( this, SW_RES( CB_SET_PAGE_NUMBER )),
- aSetPageNumberFT ( this, SW_RES( FT_SET_PAGE_NUMBER )),
- aSetPageNumberNF ( this, SW_RES( NF_SET_PAGE_NUMBER )),
- aPagePropertiesFL ( this, SW_RES( FL_PAGE_PROPERTIES )),
- aPagePropertiesLB ( this, SW_RES( LB_PAGE_PROPERTIES )),
- aPagePropertiesPB ( this, SW_RES( PB_PAGE_PROPERTIES )),
- aBottomFL ( this, SW_RES( FL_BOTTOM )),
- aOkPB ( this, SW_RES( PB_OK )),
- aCancelPB ( this, SW_RES( PB_CANCEL )),
- aHelpPB ( this, SW_RES( PB_HELP )),
- mpPageFmtDesc (0)
-#ifdef MSC
-#pragma warning (default : 4355)
-#endif
+ SfxModalDialog( pParent, rtl::OString("DLG_TITLEPAGE"),
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("modules/swriter/ui/titlepage.ui")) ),
+ mpPageFmtDesc(0)
{
- FreeResource();
-
- aOkPB.SetClickHdl(LINK(this, SwTitlePageDlg, OKHdl));
- aRestartNumberingCB.SetClickHdl(LINK(this, SwTitlePageDlg, RestartNumberingHdl));
- aSetPageNumberCB.SetClickHdl(LINK(this, SwTitlePageDlg, SetPageNumberHdl));
+ m_pUseExistingPagesRB = static_cast<RadioButton*>(m_pUIBuilder->get_by_name("RB_USE_EXISTING_PAGES"));
+ m_pPageCountNF = static_cast<NumericField*>(m_pUIBuilder->get_by_name("NF_PAGE_COUNT"));
+ m_pDocumentStartRB = static_cast<RadioButton*>(m_pUIBuilder->get_by_name("RB_DOCUMENT_START"));
+ m_pPageStartRB = static_cast<RadioButton*>(m_pUIBuilder->get_by_name("RB_PAGE_START"));
+ m_pPageStartNF = static_cast<NumericField*>(m_pUIBuilder->get_by_name("NF_PAGE_START"));
+ m_pRestartNumberingCB = static_cast<CheckBox*>(m_pUIBuilder->get_by_name("CB_RESTART_NUMBERING"));
+ m_pRestartNumberingNF = static_cast<NumericField*>(m_pUIBuilder->get_by_name("NF_RESTART_NUMBERING"));
+ m_pSetPageNumberCB = static_cast<CheckBox*>(m_pUIBuilder->get_by_name("CB_SET_PAGE_NUMBER"));
+ m_pSetPageNumberNF = static_cast<NumericField*>(m_pUIBuilder->get_by_name("NF_SET_PAGE_NUMBER"));
+ m_pPagePropertiesLB = static_cast<ListBox*>(m_pUIBuilder->get_by_name("LB_PAGE_PROPERTIES"));
+ m_pPagePropertiesPB = static_cast<PushButton*>(m_pUIBuilder->get_by_name("PB_PAGE_PROPERTIES"));
+ m_pOkPB = static_cast<OKButton*>(m_pUIBuilder->get_by_name("PB_OK"));
+
+ m_pOkPB->SetClickHdl(LINK(this, SwTitlePageDlg, OKHdl));
+ m_pRestartNumberingCB->SetClickHdl(LINK(this, SwTitlePageDlg, RestartNumberingHdl));
+ m_pSetPageNumberCB->SetClickHdl(LINK(this, SwTitlePageDlg, SetPageNumberHdl));
sal_uInt16 nSetPage = 1;
sal_uInt16 nResetPage = 1;
@@ -224,63 +206,63 @@ SwTitlePageDlg::SwTitlePageDlg( Window *pParent ) :
}
lcl_PopCursor(mpSh);
- aUseExistingPagesRB.Check();
- aPageCountNF.SetValue(nTitlePages);
- aPageCountNF.SetUpHdl(LINK(this, SwTitlePageDlg, UpHdl));
- aPageCountNF.SetDownHdl(LINK(this, SwTitlePageDlg, DownHdl));
+ m_pUseExistingPagesRB->Check();
+ m_pPageCountNF->SetValue(nTitlePages);
+ m_pPageCountNF->SetUpHdl(LINK(this, SwTitlePageDlg, UpHdl));
+ m_pPageCountNF->SetDownHdl(LINK(this, SwTitlePageDlg, DownHdl));
- aDocumentStartRB.Check();
- aPageStartNF.Enable(false);
- aPageStartNF.SetValue(lcl_GetCurrentPage(mpSh));
+ m_pDocumentStartRB->Check();
+ m_pPageStartNF->Enable(false);
+ m_pPageStartNF->SetValue(lcl_GetCurrentPage(mpSh));
Link aStartPageHdl = LINK(this, SwTitlePageDlg, StartPageHdl);
- aDocumentStartRB.SetClickHdl(aStartPageHdl);
- aPageStartRB.SetClickHdl(aStartPageHdl);
+ m_pDocumentStartRB->SetClickHdl(aStartPageHdl);
+ m_pPageStartRB->SetClickHdl(aStartPageHdl);
if (bMaybeResetNumbering && nResetPage > 0)
{
- aRestartNumberingCB.Check();
- aRestartNumberingNF.SetValue(nResetPage);
+ m_pRestartNumberingCB->Check();
+ m_pRestartNumberingNF->SetValue(nResetPage);
}
- aRestartNumberingNF.Enable(aRestartNumberingCB.IsChecked());
+ m_pRestartNumberingNF->Enable(m_pRestartNumberingCB->IsChecked());
- aSetPageNumberNF.SetValue(nSetPage);
+ m_pSetPageNumberNF->SetValue(nSetPage);
if (nSetPage > 1)
- aSetPageNumberCB.Check();
- aSetPageNumberNF.Enable(aSetPageNumberCB.IsChecked());
+ m_pSetPageNumberCB->Check();
+ m_pSetPageNumberNF->Enable(m_pSetPageNumberCB->IsChecked());
FillList();
- aPagePropertiesPB.SetClickHdl(LINK(this, SwTitlePageDlg, EditHdl));
+ m_pPagePropertiesPB->SetClickHdl(LINK(this, SwTitlePageDlg, EditHdl));
}
IMPL_LINK_NOARG(SwTitlePageDlg, UpHdl)
{
- if (aPageCountNF.GetValue() == 2)
+ if (m_pPageCountNF->GetValue() == 2)
FillList();
return 0;
}
IMPL_LINK_NOARG(SwTitlePageDlg, DownHdl)
{
- if (aPageCountNF.GetValue() == 1)
+ if (m_pPageCountNF->GetValue() == 1)
FillList();
return 0;
}
IMPL_LINK_NOARG(SwTitlePageDlg, RestartNumberingHdl)
{
- aRestartNumberingNF.Enable(aRestartNumberingCB.IsChecked());
+ m_pRestartNumberingNF->Enable(m_pRestartNumberingCB->IsChecked());
return 0;
}
IMPL_LINK_NOARG(SwTitlePageDlg, SetPageNumberHdl)
{
- aSetPageNumberNF.Enable(aSetPageNumberCB.IsChecked());
+ m_pSetPageNumberNF->Enable(m_pSetPageNumberCB->IsChecked());
return 0;
}
IMPL_LINK_NOARG(SwTitlePageDlg, StartPageHdl)
{
- aPageStartNF.Enable(aPageStartRB.IsChecked());
+ m_pPageStartNF->Enable(m_pPageStartRB->IsChecked());
return 0;
}
@@ -292,7 +274,7 @@ SwTitlePageDlg::~SwTitlePageDlg()
IMPL_LINK( SwTitlePageDlg, EditHdl, Button *, /*pBtn*/ )
{
SwView& rView = mpSh->GetView();
- rView.GetDocShell()->FormatPage(aPagePropertiesLB.GetSelectEntry(), false, mpSh);
+ rView.GetDocShell()->FormatPage(m_pPagePropertiesLB->GetSelectEntry(), false, mpSh);
rView.InvalidateRulerPos();
return 0;
@@ -306,13 +288,13 @@ IMPL_LINK( SwTitlePageDlg, OKHdl, Button *, /*pBtn*/ )
SwFmtPageDesc aTitleDesc(mpTitleDesc);
- if (aSetPageNumberCB.IsChecked())
- aTitleDesc.SetNumOffset(aSetPageNumberNF.GetValue());
+ if (m_pSetPageNumberCB->IsChecked())
+ aTitleDesc.SetNumOffset(m_pSetPageNumberNF->GetValue());
else if (mpPageFmtDesc)
aTitleDesc.SetNumOffset(mpPageFmtDesc->GetNumOffset());
- sal_uInt16 nNoPages = aPageCountNF.GetValue();
- if (!aUseExistingPagesRB.IsChecked())
+ sal_uInt16 nNoPages = m_pPageCountNF->GetValue();
+ if (!m_pUseExistingPagesRB->IsChecked())
{
mpSh->GotoPage(GetInsertPosition(), false);
for (sal_uInt16 nI=0; nI < nNoPages; ++nI)
@@ -335,9 +317,9 @@ IMPL_LINK( SwTitlePageDlg, OKHdl, Button *, /*pBtn*/ )
mpSh->SetAttr(aPageFmtDesc);
}
- if (aRestartNumberingCB.IsChecked() || nNoPages > 1)
+ if (m_pRestartNumberingCB->IsChecked() || nNoPages > 1)
{
- sal_uInt16 nPgNo = aRestartNumberingCB.IsChecked() ? aRestartNumberingNF.GetValue() : 0;
+ sal_uInt16 nPgNo = m_pRestartNumberingCB->IsChecked() ? m_pRestartNumberingNF->GetValue() : 0;
const SwPageDesc *pNewDesc = nNoPages > 1 ? mpNormalDesc : 0;
mpSh->GotoPage(GetInsertPosition() + nNoPages, false);
lcl_ChangePage(mpSh, nPgNo, pNewDesc);
@@ -345,7 +327,7 @@ IMPL_LINK( SwTitlePageDlg, OKHdl, Button *, /*pBtn*/ )
mpSh->EndUndo();
lcl_PopCursor(mpSh);
- if (!aUseExistingPagesRB.IsChecked())
+ if (!m_pUseExistingPagesRB->IsChecked())
mpSh->GotoPage(GetInsertPosition(), false);
EndDialog( RET_OK );
return 0;
diff --git a/sw/uiconfig/swriter/ui/titlepage.ui b/sw/uiconfig/swriter/ui/titlepage.ui
new file mode 100644
index 000000000000..dd8e44fc1f54
--- /dev/null
+++ b/sw/uiconfig/swriter/ui/titlepage.ui
@@ -0,0 +1,491 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkDialog" id="DLG_TITLEPAGE">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</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="orientation">vertical</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="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="PB_OK">
+ <property name="label">gtk-ok</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="PB_CANCEL">
+ <property name="label">gtk-cancel</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="PB_HELP">
+ <property name="label">gtk-help</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>
+ <property name="spacing">10</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="left_padding">12</property>
+ <child>
+ <object class="GtkGrid" id="grid1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_homogeneous">True</property>
+ <property name="n_rows">5</property>
+ <child>
+ <object class="GtkLabel" id="label6">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Number of title pages</property>
+ </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="GtkLabel" id="label7">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Place title pages at</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="GtkLabel" id="label8">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">pages</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="NF_PAGE_COUNT">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="numeric">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="NF_PAGE_START">
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="progress_fraction">0.040000000000000001</property>
+ <property name="progress_pulse_step">1</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="climb_rate">1</property>
+ <property name="numeric">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">4</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="RB_USE_EXISTING_PAGES">
+ <property name="label" translatable="yes">Converting existing pages to title pages</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>
+ <property name="group">RB_INSERT_NEW_PAGES</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="RB_INSERT_NEW_PAGES">
+ <property name="label" translatable="yes">Insert new title pages</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>
+ <property name="group">RB_USE_EXISTING_PAGES</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="RB_DOCUMENT_START">
+ <property name="label" translatable="yes">Document Start</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>
+ <property name="group">RB_PAGE_START</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">3</property>
+ <property name="width">3</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="RB_PAGE_START">
+ <property name="label" translatable="yes">Page</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>
+ <property name="group">RB_DOCUMENT_START</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">4</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">Make Title Pages</property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="frame2">
+ <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="GtkBox" id="box3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <object class="GtkCheckButton" id="CB_RESTART_NUMBERING">
+ <property name="label" translatable="yes">Reset Page Numbering after title pages</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="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="FT_PAGE_COUNT">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Page number</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="NF_RESTART_NUMBERING">
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="numeric">True</property>
+ </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>
+ <child>
+ <object class="GtkCheckButton" id="CB_SET_PAGE_NUMBER">
+ <property name="label" translatable="yes">Set Page Number for first title page</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="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box5">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="FT_PAGE_PAGES">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Page number</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="NF_SET_PAGE_NUMBER">
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="numeric">True</property>
+ </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">3</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Page Numbering</property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="frame3">
+ <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="alignment3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox" id="box2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkComboBox" id="LB_PAGE_PROPERTIES">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="PB_PAGE_PROPERTIES">
+ <property name="label" translatable="yes">Edit...</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Edit Page Properties</property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="0">PB_OK</action-widget>
+ <action-widget response="0">PB_CANCEL</action-widget>
+ <action-widget response="0">PB_HELP</action-widget>
+ </action-widgets>
+ </object>
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="lower">1</property>
+ <property name="upper">65535</property>
+ <property name="value">1</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
+</interface>