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

make top of format->background align with the other tabs

Change-Id: I11c6271ebee62938f89c03c82e02adc2e0d3a1f4
üst a1234aa4
...@@ -74,6 +74,7 @@ private: ...@@ -74,6 +74,7 @@ private:
SvxBackgroundTabPage( Window* pParent, const SfxItemSet& rCoreSet ); SvxBackgroundTabPage( Window* pParent, const SfxItemSet& rCoreSet );
~SvxBackgroundTabPage(); ~SvxBackgroundTabPage();
VclContainer* m_pAsGrid;
FixedText* m_pSelectTxt; FixedText* m_pSelectTxt;
ListBox* m_pLbSelect; ListBox* m_pLbSelect;
FixedText* m_pTblDesc; FixedText* m_pTblDesc;
......
...@@ -351,6 +351,7 @@ SvxBackgroundTabPage::SvxBackgroundTabPage(Window* pParent, const SfxItemSet& rC ...@@ -351,6 +351,7 @@ SvxBackgroundTabPage::SvxBackgroundTabPage(Window* pParent, const SfxItemSet& rC
, pTableBck_Impl(NULL) , pTableBck_Impl(NULL)
, pParaBck_Impl(NULL) , pParaBck_Impl(NULL)
{ {
get(m_pAsGrid, "asgrid");
get(m_pSelectTxt, "asft"); get(m_pSelectTxt, "asft");
get(m_pLbSelect, "selectlb"); get(m_pLbSelect, "selectlb");
get(m_pTblDesc, "forft"); get(m_pTblDesc, "forft");
...@@ -1104,6 +1105,7 @@ void SvxBackgroundTabPage::ShowSelector() ...@@ -1104,6 +1105,7 @@ void SvxBackgroundTabPage::ShowSelector()
{ {
if( bAllowShowSelector) if( bAllowShowSelector)
{ {
m_pAsGrid->Show();
m_pSelectTxt->Show(); m_pSelectTxt->Show();
m_pLbSelect->Show(); m_pLbSelect->Show();
m_pLbSelect->SetSelectHdl( HDL(SelectHdl_Impl) ); m_pLbSelect->SetSelectHdl( HDL(SelectHdl_Impl) );
...@@ -1622,6 +1624,7 @@ void SvxBackgroundTabPage::ShowTblControl() ...@@ -1622,6 +1624,7 @@ void SvxBackgroundTabPage::ShowTblControl()
m_pTblLBox->SelectEntryPos(0); m_pTblLBox->SelectEntryPos(0);
m_pTblDesc->Show(); m_pTblDesc->Show();
m_pTblLBox->Show(); m_pTblLBox->Show();
m_pAsGrid->Show();
} }
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
...@@ -1630,10 +1633,11 @@ void SvxBackgroundTabPage::ShowParaControl(sal_Bool bCharOnly) ...@@ -1630,10 +1633,11 @@ void SvxBackgroundTabPage::ShowParaControl(sal_Bool bCharOnly)
{ {
m_pParaLBox->SetSelectHdl(HDL(ParaDestinationHdl_Impl)); m_pParaLBox->SetSelectHdl(HDL(ParaDestinationHdl_Impl));
m_pParaLBox->SelectEntryPos(0); m_pParaLBox->SelectEntryPos(0);
if(!bCharOnly) if (!bCharOnly)
{ {
m_pTblDesc->Show(); m_pTblDesc->Show();
m_pParaLBox->Show(); m_pParaLBox->Show();
m_pAsGrid->Show();
} }
m_pParaLBox->SetData(m_pParaLBox); // here it can be recognized that this mode is turned on m_pParaLBox->SetData(m_pParaLBox); // here it can be recognized that this mode is turned on
} }
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="row_spacing">6</property> <property name="row_spacing">6</property>
<child> <child>
<object class="GtkGrid" id="grid2"> <object class="GtkGrid" id="asgrid">
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="column_spacing">12</property> <property name="column_spacing">12</property>
<child> <child>
<object class="GtkLabel" id="asft"> <object class="GtkLabel" id="asft">
......
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