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

split out format table page and adapt code

Change-Id: Iecc66a0a26c6944bd398f79eb760694405b17e70
üst 00dc46b5
......@@ -23,6 +23,7 @@ $(eval $(call gb_UI_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/endnotepage \
sw/uiconfig/swriter/ui/editcategories \
sw/uiconfig/swriter/ui/exchangedatabases \
sw/uiconfig/swriter/ui/formattablepage \
sw/uiconfig/swriter/ui/footnotepage \
sw/uiconfig/swriter/ui/indexentry \
sw/uiconfig/swriter/ui/insertbookmark \
......
......@@ -46,18 +46,25 @@ public:
PercentFieldWrap();
void set(MetricField *pField);
const MetricField* get() const { return m_pField; }
void SetUpHdl(const Link& rLink) { m_pField->SetUpHdl(rLink); }
void SetDownHdl(const Link& rLink) { m_pField->SetDownHdl(rLink); }
void SetLoseFocusHdl(const Link& rLink) { m_pField->SetLoseFocusHdl(rLink); }
void SetMetric(FieldUnit eUnit) { ::SetMetric(*m_pField, eUnit); }
void Enable(bool bEnable = true, bool bChild = true) { m_pField->Enable(bEnable, bChild); }
bool HasFocus() const { return m_pField->HasFocus(); }
void SetAccessibleName(const OUString& rName) { m_pField->SetAccessibleName(rName); }
void SetText(const OUString& rStr) { m_pField->SetText(rStr); }
void SaveValue() { m_pField->SaveValue(); }
OUString GetSavedValue() const { return m_pField->GetSavedValue(); }
OUString GetText() const { return m_pField->GetText(); }
void SetMetricFieldMin(sal_Int64 nNewMin) { m_pField->SetMin(nNewMin); }
void SetMetricFieldMax(sal_Int64 nNewMax) { m_pField->SetMax(nNewMax); }
void SetValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE);
void SetLast(sal_Int64 nNewLast) { m_pField->SetLast(nNewLast); }
void SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE);
void SetUserValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE);
......
This diff is collapsed.
......@@ -38,34 +38,28 @@ struct TColumn
class SwFormatTablePage : public SfxTabPage
{
FixedLine aOptionsFL;
FixedText aNameFT;
TableNameEdit aNameED;
FixedText aWidthFT;
PercentField aWidthMF;
CheckBox aRelWidthCB;
FixedLine aPosFL;
RadioButton aFullBtn;
RadioButton aLeftBtn;
RadioButton aFromLeftBtn;
RadioButton aRightBtn;
RadioButton aCenterBtn;
RadioButton aFreeBtn;
FixedLine aDistFL;
FixedText aLeftFT;
PercentField aLeftMF;
FixedText aRightFT;
PercentField aRightMF;
FixedText aTopFT;
MetricField aTopMF;
FixedText aBottomFT;
MetricField aBottomMF;
FixedLine aPropertiesFL;
FixedText aTextDirectionFT;
ListBox aTextDirectionLB;
TableNameEdit* m_pNameED;
FixedText* m_pWidthFT;
PercentFieldWrap m_aWidthMF;
CheckBox* m_pRelWidthCB;
RadioButton* m_pFullBtn;
RadioButton* m_pLeftBtn;
RadioButton* m_pFromLeftBtn;
RadioButton* m_pRightBtn;
RadioButton* m_pCenterBtn;
RadioButton* m_pFreeBtn;
FixedText* m_pLeftFT;
PercentFieldWrap m_aLeftMF;
FixedText* m_pRightFT;
PercentFieldWrap m_aRightMF;
FixedText* m_pTopFT;
MetricField* m_pTopMF;
FixedText* m_pBottomFT;
MetricField* m_pBottomMF;
ListBox* m_pTextDirectionLB;
SwTableRep* pTblData;
SwTwips nSaveWidth;
......@@ -76,7 +70,7 @@ class SwFormatTablePage : public SfxTabPage
sal_Bool bHtmlMode : 1;
void Init();
void ModifyHdl( Edit* pEdit );
void ModifyHdl(const Edit* pEdit);
DECL_LINK( AutoClickHdl, CheckBox * );
DECL_LINK( RelWidthClickHdl, CheckBox * );
......
This diff is collapsed.
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