Kaydet (Commit) a641d049 authored tarafından Caolán McNamara's avatar Caolán McNamara

convert toc style page to .ui

Change-Id: I8ed03fc3e5433d8a2fe83c3ad88fa95773fe6c53
üst 7ffab58b
...@@ -140,6 +140,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\ ...@@ -140,6 +140,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/splittable \ sw/uiconfig/swriter/ui/splittable \
sw/uiconfig/swriter/ui/statisticsinfopage \ sw/uiconfig/swriter/ui/statisticsinfopage \
sw/uiconfig/swriter/ui/stringinput \ sw/uiconfig/swriter/ui/stringinput \
sw/uiconfig/swriter/ui/tocstylespage \
sw/uiconfig/swriter/ui/tablecolumnpage \ sw/uiconfig/swriter/ui/tablecolumnpage \
sw/uiconfig/swriter/ui/tableproperties \ sw/uiconfig/swriter/ui/tableproperties \
sw/uiconfig/swriter/ui/tabletextflowpage \ sw/uiconfig/swriter/ui/tabletextflowpage \
......
...@@ -167,7 +167,6 @@ ...@@ -167,7 +167,6 @@
#define HID_OPTCAPTION_PAGE "SW_HID_OPTCAPTION_PAGE" #define HID_OPTCAPTION_PAGE "SW_HID_OPTCAPTION_PAGE"
#define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT" #define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT"
#define HID_TP_TOX_ENTRY "SW_HID_TP_TOX_ENTRY" #define HID_TP_TOX_ENTRY "SW_HID_TP_TOX_ENTRY"
#define HID_TOX_STYLES_PAGE "SW_HID_TOX_STYLES_PAGE"
#define HID_TP_VISITING_CARDS "SW_HID_TP_VISITING_CARDS" #define HID_TP_VISITING_CARDS "SW_HID_TP_VISITING_CARDS"
#define HID_DLG_ADD_IDX_STYLES "SW_HID_DLG_ADD_IDX_STYLES" #define HID_DLG_ADD_IDX_STYLES "SW_HID_DLG_ADD_IDX_STYLES"
#define HID_ADD_STYLES_TLB "SW_HID_ADD_STYLES_TLB" #define HID_ADD_STYLES_TLB "SW_HID_ADD_STYLES_TLB"
......
...@@ -463,14 +463,11 @@ public: ...@@ -463,14 +463,11 @@ public:
class SwTOXStylesTabPage : public SfxTabPage class SwTOXStylesTabPage : public SfxTabPage
{ {
FixedLine aFormatFL; ListBox* m_pLevelLB;
FixedText aLevelFT2; PushButton* m_pAssignBT;
ListBox aLevelLB; ListBox* m_pParaLayLB;
ImageButton aAssignBT; PushButton* m_pStdBT;
FixedText aTemplateFT; PushButton* m_pEditStyleBT;
ListBox aParaLayLB;
PushButton aStdBT;
PushButton aEditStyleBT;
SwForm* m_pCurrentForm; SwForm* m_pCurrentForm;
......
...@@ -3648,33 +3648,28 @@ void SwTokenWindow::GetFocus() ...@@ -3648,33 +3648,28 @@ void SwTokenWindow::GetFocus()
} }
} }
SwTOXStylesTabPage::SwTOXStylesTabPage(Window* pParent, const SfxItemSet& rAttrSet ) : SwTOXStylesTabPage::SwTOXStylesTabPage(Window* pParent, const SfxItemSet& rAttrSet )
SfxTabPage(pParent, SW_RES(TP_TOX_STYLES), rAttrSet), : SfxTabPage(pParent, "TocStylesPage", "modules/swriter/ui/tocstylespage.ui", rAttrSet)
aFormatFL(this, SW_RES(FL_FORMAT )), , m_pCurrentForm(0)
aLevelFT2(this, SW_RES(FT_LEVEL )), {
aLevelLB(this, SW_RES(LB_LEVEL )), get(m_pLevelLB, "levels");
aAssignBT(this, SW_RES(BT_ASSIGN )), get(m_pAssignBT, "assign");
aTemplateFT(this, SW_RES(FT_TEMPLATE)), get(m_pParaLayLB, "styles");
aParaLayLB(this, SW_RES(LB_PARALAY )), m_pParaLayLB->SetStyle(m_pParaLayLB->GetStyle() | WB_SORT);
aStdBT(this, SW_RES(BT_STD )), get(m_pStdBT, "default");
aEditStyleBT(this, SW_RES(BT_EDIT_STYLE )), get(m_pEditStyleBT, "edit");
m_pCurrentForm(0) long nHeight = m_pLevelLB->GetTextHeight() * 16;
{ m_pLevelLB->set_height_request(nHeight);
FreeResource(); m_pParaLayLB->set_height_request(nHeight);
SetExchangeSupport( sal_True ); SetExchangeSupport( sal_True );
aEditStyleBT.SetClickHdl (LINK( this, SwTOXStylesTabPage, EditStyleHdl)); m_pEditStyleBT->SetClickHdl (LINK( this, SwTOXStylesTabPage, EditStyleHdl));
aAssignBT.SetClickHdl (LINK( this, SwTOXStylesTabPage, AssignHdl)); m_pAssignBT->SetClickHdl (LINK( this, SwTOXStylesTabPage, AssignHdl));
aStdBT.SetClickHdl (LINK( this, SwTOXStylesTabPage, StdHdl)); m_pStdBT->SetClickHdl (LINK( this, SwTOXStylesTabPage, StdHdl));
aParaLayLB.SetSelectHdl (LINK( this, SwTOXStylesTabPage, EnableSelectHdl)); m_pParaLayLB->SetSelectHdl (LINK( this, SwTOXStylesTabPage, EnableSelectHdl));
aLevelLB.SetSelectHdl (LINK( this, SwTOXStylesTabPage, EnableSelectHdl)); m_pLevelLB->SetSelectHdl(LINK(this, SwTOXStylesTabPage, EnableSelectHdl));
aParaLayLB.SetDoubleClickHdl(LINK( this, SwTOXStylesTabPage, DoubleClickHdl)); m_pParaLayLB->SetDoubleClickHdl(LINK( this, SwTOXStylesTabPage, DoubleClickHdl));
aStdBT.SetAccessibleRelationMemberOf(&aFormatFL);
aAssignBT.SetAccessibleRelationMemberOf(&aFormatFL);
aEditStyleBT.SetAccessibleRelationMemberOf(&aFormatFL);
} }
SwTOXStylesTabPage::~SwTOXStylesTabPage() SwTOXStylesTabPage::~SwTOXStylesTabPage()
...@@ -3682,21 +3677,21 @@ SwTOXStylesTabPage::~SwTOXStylesTabPage() ...@@ -3682,21 +3677,21 @@ SwTOXStylesTabPage::~SwTOXStylesTabPage()
delete m_pCurrentForm; delete m_pCurrentForm;
} }
sal_Bool SwTOXStylesTabPage::FillItemSet( SfxItemSet& ) sal_Bool SwTOXStylesTabPage::FillItemSet( SfxItemSet& )
{ {
return sal_True; return sal_True;
} }
void SwTOXStylesTabPage::Reset( const SfxItemSet& rSet ) void SwTOXStylesTabPage::Reset( const SfxItemSet& rSet )
{ {
ActivatePage(rSet); ActivatePage(rSet);
} }
void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& ) void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
{ {
m_pCurrentForm = new SwForm(GetForm()); m_pCurrentForm = new SwForm(GetForm());
aParaLayLB.Clear(); m_pParaLayLB->Clear();
aLevelLB.Clear(); m_pLevelLB->Clear();
// not hyperlink for user directories // not hyperlink for user directories
...@@ -3713,7 +3708,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& ) ...@@ -3713,7 +3708,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
aStr += m_pCurrentForm->GetTemplate( 0 ); aStr += m_pCurrentForm->GetTemplate( 0 );
aStr += aDeliEnd; aStr += aDeliEnd;
} }
aLevelLB.InsertEntry(aStr); m_pLevelLB->InsertEntry(aStr);
for( i=1; i < nSize; ++i ) for( i=1; i < nSize; ++i )
{ {
...@@ -3735,7 +3730,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& ) ...@@ -3735,7 +3730,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
aCpy += m_pCurrentForm->GetTemplate( i ); aCpy += m_pCurrentForm->GetTemplate( i );
aCpy += aDeliEnd; aCpy += aDeliEnd;
} }
aLevelLB.InsertEntry( aCpy ); m_pLevelLB->InsertEntry( aCpy );
} }
// initialise templates // initialise templates
...@@ -3745,18 +3740,18 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& ) ...@@ -3745,18 +3740,18 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
for( i = 0; i < nSz; ++i ) for( i = 0; i < nSz; ++i )
if( !(pColl = &rSh.GetTxtFmtColl( i ))->IsDefault() ) if( !(pColl = &rSh.GetTxtFmtColl( i ))->IsDefault() )
aParaLayLB.InsertEntry( pColl->GetName() ); m_pParaLayLB->InsertEntry( pColl->GetName() );
// query pool collections and set them for the directory // query pool collections and set them for the directory
for( i = 0; i < m_pCurrentForm->GetFormMax(); ++i ) for( i = 0; i < m_pCurrentForm->GetFormMax(); ++i )
{ {
aStr = m_pCurrentForm->GetTemplate( i ); aStr = m_pCurrentForm->GetTemplate( i );
if( aStr.Len() && if( aStr.Len() &&
LISTBOX_ENTRY_NOTFOUND == aParaLayLB.GetEntryPos( aStr )) LISTBOX_ENTRY_NOTFOUND == m_pParaLayLB->GetEntryPos( aStr ))
aParaLayLB.InsertEntry( aStr ); m_pParaLayLB->InsertEntry( aStr );
} }
EnableSelectHdl(&aParaLayLB); EnableSelectHdl(m_pParaLayLB);
} }
int SwTOXStylesTabPage::DeactivatePage( SfxItemSet* /*pSet*/ ) int SwTOXStylesTabPage::DeactivatePage( SfxItemSet* /*pSet*/ )
...@@ -3773,9 +3768,9 @@ SfxTabPage* SwTOXStylesTabPage::Create( Window* pParent, ...@@ -3773,9 +3768,9 @@ SfxTabPage* SwTOXStylesTabPage::Create( Window* pParent,
IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn ) IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn )
{ {
if( LISTBOX_ENTRY_NOTFOUND != aParaLayLB.GetSelectEntryPos()) if( LISTBOX_ENTRY_NOTFOUND != m_pParaLayLB->GetSelectEntryPos())
{ {
SfxStringItem aStyle(SID_STYLE_EDIT, aParaLayLB.GetSelectEntry()); SfxStringItem aStyle(SID_STYLE_EDIT, m_pParaLayLB->GetSelectEntry());
SfxUInt16Item aFamily(SID_STYLE_FAMILY, SFX_STYLE_FAMILY_PARA); SfxUInt16Item aFamily(SID_STYLE_FAMILY, SFX_STYLE_FAMILY_PARA);
Window* pDefDlgParent = Application::GetDefDialogParent(); Window* pDefDlgParent = Application::GetDefDialogParent();
Application::SetDefDialogParent( pBtn ); Application::SetDefDialogParent( pBtn );
...@@ -3792,26 +3787,26 @@ IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn ) ...@@ -3792,26 +3787,26 @@ IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn )
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
IMPL_LINK_NOARG(SwTOXStylesTabPage, AssignHdl) IMPL_LINK_NOARG(SwTOXStylesTabPage, AssignHdl)
{ {
sal_uInt16 nLevPos = aLevelLB.GetSelectEntryPos(); sal_uInt16 nLevPos = m_pLevelLB->GetSelectEntryPos();
sal_uInt16 nTemplPos = aParaLayLB.GetSelectEntryPos(); sal_uInt16 nTemplPos = m_pParaLayLB->GetSelectEntryPos();
if(nLevPos != LISTBOX_ENTRY_NOTFOUND && if(nLevPos != LISTBOX_ENTRY_NOTFOUND &&
nTemplPos != LISTBOX_ENTRY_NOTFOUND) nTemplPos != LISTBOX_ENTRY_NOTFOUND)
{ {
String aStr(aLevelLB.GetEntry(nLevPos)); String aStr(m_pLevelLB->GetEntry(nLevPos));
sal_uInt16 nDelPos = aStr.Search(aDeliStart); sal_uInt16 nDelPos = aStr.Search(aDeliStart);
if(nDelPos != STRING_NOTFOUND) if(nDelPos != STRING_NOTFOUND)
aStr.Erase(nDelPos-1); aStr.Erase(nDelPos-1);
aStr += ' '; aStr += ' ';
aStr += aDeliStart; aStr += aDeliStart;
aStr += aParaLayLB.GetSelectEntry(); aStr += m_pParaLayLB->GetSelectEntry();
m_pCurrentForm->SetTemplate(nLevPos, aParaLayLB.GetSelectEntry()); m_pCurrentForm->SetTemplate(nLevPos, m_pParaLayLB->GetSelectEntry());
aStr += aDeliEnd; aStr += aDeliEnd;
aLevelLB.RemoveEntry(nLevPos); m_pLevelLB->RemoveEntry(nLevPos);
aLevelLB.InsertEntry(aStr, nLevPos); m_pLevelLB->InsertEntry(aStr, nLevPos);
aLevelLB.SelectEntry(aStr); m_pLevelLB->SelectEntry(aStr);
Modify(); Modify();
} }
return 0; return 0;
...@@ -3819,15 +3814,15 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, AssignHdl) ...@@ -3819,15 +3814,15 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, AssignHdl)
IMPL_LINK_NOARG(SwTOXStylesTabPage, StdHdl) IMPL_LINK_NOARG(SwTOXStylesTabPage, StdHdl)
{ {
sal_uInt16 nPos = aLevelLB.GetSelectEntryPos(); sal_uInt16 nPos = m_pLevelLB->GetSelectEntryPos();
if(nPos != LISTBOX_ENTRY_NOTFOUND) if(nPos != LISTBOX_ENTRY_NOTFOUND)
{ String aStr(aLevelLB.GetEntry(nPos)); { String aStr(m_pLevelLB->GetEntry(nPos));
sal_uInt16 nDelPos = aStr.Search(aDeliStart); sal_uInt16 nDelPos = aStr.Search(aDeliStart);
if(nDelPos != STRING_NOTFOUND) if(nDelPos != STRING_NOTFOUND)
aStr.Erase(nDelPos-1); aStr.Erase(nDelPos-1);
aLevelLB.RemoveEntry(nPos); m_pLevelLB->RemoveEntry(nPos);
aLevelLB.InsertEntry(aStr, nPos); m_pLevelLB->InsertEntry(aStr, nPos);
aLevelLB.SelectEntry(aStr); m_pLevelLB->SelectEntry(aStr);
m_pCurrentForm->SetTemplate(nPos, aEmptyStr); m_pCurrentForm->SetTemplate(nPos, aEmptyStr);
Modify(); Modify();
} }
...@@ -3836,12 +3831,12 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, StdHdl) ...@@ -3836,12 +3831,12 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, StdHdl)
IMPL_LINK_NOARG_INLINE_START(SwTOXStylesTabPage, DoubleClickHdl) IMPL_LINK_NOARG_INLINE_START(SwTOXStylesTabPage, DoubleClickHdl)
{ {
String aTmpName( aParaLayLB.GetSelectEntry() ); String aTmpName( m_pParaLayLB->GetSelectEntry() );
SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell(); SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
if(aParaLayLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND && if(m_pParaLayLB->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND &&
(aLevelLB.GetSelectEntryPos() == 0 || SwMultiTOXTabDialog::IsNoNum(rSh, aTmpName))) (m_pLevelLB->GetSelectEntryPos() == 0 || SwMultiTOXTabDialog::IsNoNum(rSh, aTmpName)))
AssignHdl(&aAssignBT); AssignHdl(m_pAssignBT);
return 0; return 0;
} }
IMPL_LINK_NOARG_INLINE_END(SwTOXStylesTabPage, DoubleClickHdl) IMPL_LINK_NOARG_INLINE_END(SwTOXStylesTabPage, DoubleClickHdl)
...@@ -3851,14 +3846,14 @@ IMPL_LINK_NOARG_INLINE_END(SwTOXStylesTabPage, DoubleClickHdl) ...@@ -3851,14 +3846,14 @@ IMPL_LINK_NOARG_INLINE_END(SwTOXStylesTabPage, DoubleClickHdl)
--------------------------------------------------------------------*/ --------------------------------------------------------------------*/
IMPL_LINK_NOARG(SwTOXStylesTabPage, EnableSelectHdl) IMPL_LINK_NOARG(SwTOXStylesTabPage, EnableSelectHdl)
{ {
aStdBT.Enable(aLevelLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND); m_pStdBT->Enable(m_pLevelLB->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND);
SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell(); SwWrtShell& rSh = ((SwMultiTOXTabDialog*)GetTabDialog())->GetWrtShell();
String aTmpName(aParaLayLB.GetSelectEntry()); String aTmpName(m_pParaLayLB->GetSelectEntry());
aAssignBT.Enable(aParaLayLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND && m_pAssignBT->Enable(m_pParaLayLB->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND &&
LISTBOX_ENTRY_NOTFOUND != aLevelLB.GetSelectEntryPos() && LISTBOX_ENTRY_NOTFOUND != m_pLevelLB->GetSelectEntryPos() &&
(aLevelLB.GetSelectEntryPos() == 0 || SwMultiTOXTabDialog::IsNoNum(rSh, aTmpName))); (m_pLevelLB->GetSelectEntryPos() == 0 || SwMultiTOXTabDialog::IsNoNum(rSh, aTmpName)));
aEditStyleBT.Enable(aParaLayLB.GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND ); m_pEditStyleBT->Enable(m_pParaLayLB->GetSelectEntryPos() != LISTBOX_ENTRY_NOTFOUND );
return 0; return 0;
} }
......
...@@ -24,12 +24,8 @@ ...@@ -24,12 +24,8 @@
#define LB_ENTRY 20 #define LB_ENTRY 20
#define ED_ENTRY 22 #define ED_ENTRY 22
#define BT_STD 26
#define FL_ENTRY 28 #define FL_ENTRY 28
#define LB_LEVEL 29 #define LB_LEVEL 29
#define FT_TEMPLATE 30
#define LB_PARALAY 31
#define BT_ASSIGN 32
#define FL_FORMAT 33 #define FL_FORMAT 33
#define BT_EDIT_STYLE 40 #define BT_EDIT_STYLE 40
#define CB_CASE 43 #define CB_CASE 43
......
...@@ -1083,82 +1083,6 @@ TabPage TP_TOX_ENTRY ...@@ -1083,82 +1083,6 @@ TabPage TP_TOX_ENTRY
Text [ en-US ] = "S"; Text [ en-US ] = "S";
}; };
}; };
TabPage TP_TOX_STYLES
{
HelpID = HID_TOX_STYLES_PAGE;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
FixedText FT_LEVEL
{
Pos = MAP_APPFONT ( 11 , 14 ) ;
Size = MAP_APPFONT ( 102 , 8 ) ;
Text [ en-US ] = "~Levels" ;
Left = TRUE ;
};
ListBox LB_LEVEL
{
HelpID = "sw:ListBox:TP_TOX_STYLES:LB_LEVEL";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 25 ) ;
Size = MAP_APPFONT ( 102 , 131 ) ;
TabStop = TRUE ;
AutoHScroll = TRUE ;
};
FixedText FT_TEMPLATE
{
Pos = MAP_APPFONT ( 142 , 14 ) ;
Size = MAP_APPFONT ( 102 , 8 ) ;
Text [ en-US ] = "Paragraph ~Styles" ;
Left = TRUE ;
};
ListBox LB_PARALAY
{
HelpID = "sw:ListBox:TP_TOX_STYLES:LB_PARALAY";
Border = TRUE ;
Pos = MAP_APPFONT ( 142 , 25 ) ;
Size = MAP_APPFONT ( 101 , 131 ) ;
TabStop = TRUE ;
Sort = TRUE ;
AutoHScroll = TRUE ;
};
PushButton BT_STD
{
HelpID = "sw:PushButton:TP_TOX_STYLES:BT_STD";
Pos = MAP_APPFONT ( 64 , 162 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Default" ;
};
ImageButton BT_ASSIGN
{
HelpID = "sw:ImageButton:TP_TOX_STYLES:BT_ASSIGN";
Pos = MAP_APPFONT ( 118 , 28 ) ;
Size = MAP_APPFONT ( 20 , 12 ) ;
TabStop = TRUE ;
ButtonImage = Image
{
ImageBitmap = Bitmap
{
File = "one_left.bmp" ;
};
MaskColor = IMAGE_MASK_COLOR ;
};
};
PushButton BT_EDIT_STYLE
{
HelpID = "sw:PushButton:TP_TOX_STYLES:BT_EDIT_STYLE";
Pos = MAP_APPFONT ( 193 , 162 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Edit";
};
FixedLine FL_FORMAT
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Assignment";
};
};
ModalDialog DLG_ADD_IDX_STYLES ModalDialog DLG_ADD_IDX_STYLES
{ {
HelpId = HID_DLG_ADD_IDX_STYLES; HelpId = HID_DLG_ADD_IDX_STYLES;
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkBox" id="TocStylesPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">18</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Levels</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">levels: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>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Paragraph _Styles</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">styles:border</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="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="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="levels: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="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="shadow_type">in</property>
<child>
<object class="GtkTreeView" id="styles:border">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection2"/>
</child>
</object>
</child>
</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="GtkButton" id="default">
<property name="label" translatable="yes">_Default</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="use_underline">True</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="GtkButton" id="edit">
<property name="label" translatable="yes">_Edit</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="use_underline">True</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="GtkButton" id="assign">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<property name="valign">start</property>
<property name="image">image1</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>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="labelGrid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Assignment</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">sw/res/one_left.png</property>
</object>
<object class="GtkSizeGroup" id="sizegroup1">
<widgets>
<widget name="default"/>
<widget name="edit"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="sizegroup2">
<widgets>
<widget name="levels:border"/>
<widget name="styles:border"/>
</widgets>
</object>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment