convert frame type page to .ui

Change-Id: Id2be1940652e0d26efe4fdb92b750039744632de
This commit is contained in:
Caolán McNamara
2013-08-16 09:42:46 +01:00
parent 071f8b97ab
commit b36e10d4e1
12 changed files with 1333 additions and 764 deletions

View File

@@ -320,6 +320,9 @@
<glade-widget-class title="Envelope Preview" name="swuilo-SwEnvPreview"
generic-name="Envelope Preview" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
<glade-widget-class title="Frame Preview" name="svxlo-SvxSwFrameExample"
generic-name="Frame Preview" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
<glade-widget-class title="Rectangle Control" name="svxlo-SvxRectCtl"
generic-name="Rectangle Control" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>

View File

@@ -68,11 +68,13 @@ class SVX_DLLPUBLIC SvxSwFrameExample : public Window
void DrawRect_Impl(const Rectangle &rRect, const Color &rFillColor, const Color &rLineColor);
virtual void Paint(const Rectangle&);
virtual Size GetOptimalSize() const;
protected:
virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
SvxSwFrameExample(Window* pParent, const ResId& rResID);
SvxSwFrameExample(Window* pParent, WinBits nStyle);
~SvxSwFrameExample();
inline void SetWrap(sal_uInt16 nW) { nWrap = nW; }

View File

@@ -18,6 +18,7 @@
*/
#include <tools/poly.hxx>
#include <vcl/builder.hxx>
#include <vcl/metric.hxx>
#include <vcl/svapp.hxx>
#include <svtools/colorcfg.hxx>
@@ -50,6 +51,33 @@ SvxSwFrameExample::SvxSwFrameExample( Window *pParent, const ResId& rResID ) :
SetMapMode(MAP_PIXEL);
}
SvxSwFrameExample::SvxSwFrameExample( Window *pParent, WinBits nStyle ) :
Window(pParent, nStyle),
nHAlign (HoriOrientation::CENTER),
nHRel (RelOrientation::FRAME),
nVAlign (VertOrientation::TOP),
nVRel (RelOrientation::PRINT_AREA),
nWrap (WrapTextMode_NONE),
nAnchor (TextContentAnchorType_AT_PAGE),
bTrans (sal_False),
aRelPos (Point(0,0))
{
InitColors_Impl();
SetMapMode(MAP_PIXEL);
}
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxSwFrameExample(Window *pParent, VclBuilder::stringmap &)
{
return new SvxSwFrameExample(pParent, 0);
}
Size SvxSwFrameExample::GetOptimalSize() const
{
return LogicToPixel(Size(52, 86), MapMode(MAP_APPFONT));
}
SvxSwFrameExample::~SvxSwFrameExample()
{
}

View File

@@ -97,6 +97,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/footnoteareapage \
sw/uiconfig/swriter/ui/footnotesendnotestabpage \
sw/uiconfig/swriter/ui/frmaddpage \
sw/uiconfig/swriter/ui/frmtypepage \
sw/uiconfig/swriter/ui/frmurlpage \
sw/uiconfig/swriter/ui/indexentry \
sw/uiconfig/swriter/ui/inputfielddialog \

View File

@@ -142,7 +142,6 @@
// TabPage Help-IDs
#define HID_FRM_STD "SW_HID_FRM_STD"
#define HID_GRF_EXT "SW_HID_GRF_EXT"
#define HID_COND_COLL "SW_HID_COND_COLL"

File diff suppressed because it is too large Load Diff

View File

@@ -19,41 +19,6 @@
#include <svtools/controldims.hrc>
#define RB_ANCHOR_PAGE 1
#define RB_ANCHOR_PARA 2
#define RB_ANCHOR_AT_CHAR 3
#define RB_ANCHOR_AS_CHAR 4
#define RB_ANCHOR_FRAME 5
#define WN_BSP 21
// SwFrmPage
#define FL_TYPE 26
#define FT_WIDTH 27
#define ED_WIDTH 28
#define FT_HEIGHT 29
#define ED_HEIGHT 30
#define CB_AUTOHEIGHT 31
#define FL_SIZE 32
#define FT_HORIZONTAL 33
#define DLB_HORIZONTAL 34
#define FT_AT_HORZ_POS 35
#define ED_AT_HORZ_POS 36
#define FT_HORI_RELATION 1
#define LB_HORI_RELATION 2
#define CB_MIRROR 37
#define FT_VERTICAL 38
#define DLB_VERTICAL 39
#define FT_AT_VERT_POS 40
#define ED_AT_VERT_POS 41
#define FT_VERT_RELATION 3
#define LB_VERT_RELATION 4
#define FL_POSITION 43
#define BT_REALSIZE 44
#define CB_AUTOWIDTH 46
#define FT_WIDTH_AUTO 47
#define FT_HEIGHT_AUTO 48
// metrics
#define SWFRMPG_COL_0 RSC_SP_TBPG_INNERBORDER_LEFT
#define SWFRMPG_COL_1 (SWFRMPG_COL_0+RSC_SP_FLGR_INNERBORDER_LEFT)

View File

@@ -205,318 +205,6 @@ TabDialog DLG_FRM_OLE
};
};
};
TabPage TP_FRM_STD
{
HelpID = HID_FRM_STD ;
SVLook = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
FixedText FT_WIDTH
{
Pos = MAP_APPFONT ( SWFRMPG_COL_1 , SWFRMPG_ROW_2 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_3-SWFRMPG_COL_1-1) , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Left = TRUE ;
Text [ en-US ] = "~Width" ;
};
FixedText FT_WIDTH_AUTO
{
Pos = MAP_APPFONT ( SWFRMPG_COL_1 , SWFRMPG_ROW_2 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_3-SWFRMPG_COL_1-1) , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Left = TRUE ;
Text [ en-US ] = "~Width (at least)" ;
};
MetricField ED_WIDTH
{
HelpID = "sw:MetricField:TP_FRM_STD:ED_WIDTH";
Border = TRUE ;
Pos = MAP_APPFONT ( SWFRMPG_COL_3 , SWFRMPG_ROW_1 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_3) , RSC_CD_TEXTBOX_HEIGHT ) ;
Text = "12,99" ;
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 5 ;
Maximum = 9999 ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
First = 5 ;
Last = 9999 ;
SpinSize = 10 ;
};
CheckBox CB_REL_WIDTH
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_REL_WIDTH";
Pos = MAP_APPFONT ( SWFRMPG_COL_2 , SWFRMPG_ROW_3 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_2) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "Relat~ive" ;
};
CheckBox CB_AUTOWIDTH
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_AUTOWIDTH";
Pos = MAP_APPFONT ( SWFRMPG_COL_2 , SWFRMPG_ROW_4 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_2) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "AutoSize";
};
FixedText FT_HEIGHT
{
Pos = MAP_APPFONT ( SWFRMPG_COL_1 , SWFRMPG_ROW_6 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_3-SWFRMPG_COL_1-1) , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Left = TRUE ;
Text [ en-US ] = "H~eight" ;
};
FixedText FT_HEIGHT_AUTO
{
Pos = MAP_APPFONT ( SWFRMPG_COL_1 , SWFRMPG_ROW_6 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_3-SWFRMPG_COL_1-1) , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Left = TRUE ;
Text [ en-US ] = "H~eight (at least)" ;
};
MetricField ED_HEIGHT
{
HelpID = "sw:MetricField:TP_FRM_STD:ED_HEIGHT";
Border = TRUE ;
Pos = MAP_APPFONT ( SWFRMPG_COL_3 , SWFRMPG_ROW_5 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_3) , RSC_CD_TEXTBOX_HEIGHT ) ;
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 5 ;
Maximum = 9999 ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
First = 5 ;
Last = 9999 ;
SpinSize = 10 ;
};
CheckBox CB_REL_HEIGHT
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_REL_HEIGHT";
Pos = MAP_APPFONT ( SWFRMPG_COL_2 , SWFRMPG_ROW_7 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_2) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "Re~lative" ;
};
CheckBox CB_AUTOHEIGHT
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_AUTOHEIGHT";
Pos = MAP_APPFONT ( SWFRMPG_COL_2 , SWFRMPG_ROW_8 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_2) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "AutoSize";
};
CheckBox CB_FIXEDRATIO
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_FIXEDRATIO";
Pos = MAP_APPFONT ( SWFRMPG_COL_1 , SWFRMPG_ROW_9 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_1) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Keep ratio" ;
};
PushButton BT_REALSIZE
{
HelpID = "sw:PushButton:TP_FRM_STD:BT_REALSIZE";
Pos = MAP_APPFONT ( 35 , 86 ) ;
Size = MAP_APPFONT ( 70 , 14 ) ;
TabStop = TRUE ;
Hide = TRUE ;
Text [ en-US ] = "~Original Size" ;
};
FixedLine FL_SIZE
{
Pos = MAP_APPFONT ( SWFRMPG_COL_0 , SWFRMPG_ROW_0 ) ;
Size = MAP_APPFONT ( (SWFRMPG_COL_4-SWFRMPG_COL_0) , RSC_CD_FIXEDLINE_HEIGHT ) ;
Text [ en-US ] = "Size" ;
};
FixedLine FL_TYPE_SEP
{
Pos = MAP_APPFONT ( 111 , 14 ) ;
Size = MAP_APPFONT ( 4 , (SWFRMPG_ROW_9+RSC_CD_CHECKBOX_HEIGHT-SWFRMPG_ROW_1) ) ;
Vert = TRUE;
};
RadioButton RB_ANCHOR_PAGE
{
HelpID = "sw:RadioButton:TP_FRM_STD:RB_ANCHOR_PAGE";
Pos = MAP_APPFONT ( 122 , 14 ) ;
Size = MAP_APPFONT ( 70 , 10 ) ;
Text [ en-US ] = "To ~page";
};
RadioButton RB_ANCHOR_PARA
{
HelpID = "sw:RadioButton:TP_FRM_STD:RB_ANCHOR_PARA";
Pos = MAP_APPFONT ( 122 , 28 ) ;
Size = MAP_APPFONT ( 70 , 10 ) ;
Text [ en-US ] = "To paragrap~h";
};
RadioButton RB_ANCHOR_AT_CHAR
{
HelpID = "sw:RadioButton:TP_FRM_STD:RB_ANCHOR_AT_CHAR";
Pos = MAP_APPFONT ( 122 , 42 ) ;
Size = MAP_APPFONT ( 70 , 10 ) ;
Text [ en-US ] = "To cha~racter";
};
RadioButton RB_ANCHOR_AS_CHAR
{
HelpID = "sw:RadioButton:TP_FRM_STD:RB_ANCHOR_AS_CHAR";
Pos = MAP_APPFONT ( 122 , 56 ) ;
Size = MAP_APPFONT ( 70 , 10 ) ;
Text [ en-US ] = "~As character" ;
};
RadioButton RB_ANCHOR_FRAME
{
HelpID = "sw:RadioButton:TP_FRM_STD:RB_ANCHOR_FRAME";
Pos = MAP_APPFONT ( 122 , 70 ) ;
Size = MAP_APPFONT ( 70 , 10 ) ;
Text [ en-US ] = "To ~frame";
};
FixedLine FL_TYPE
{
Pos = MAP_APPFONT ( 116 , 3 ) ;
Size = MAP_APPFONT ( 80 , 8 ) ;
Text [ en-US ] = "Anchor" ;
};
Window WN_BSP
{
Pos = MAP_APPFONT ( 202 , 14 ) ;
Size = MAP_APPFONT ( 52 , 86 ) ;
};
FixedText FT_HORIZONTAL
{
Pos = MAP_APPFONT ( 12 , SWFRMPG_ROW_12 ) ;
Size = MAP_APPFONT ( 35 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Left = TRUE ;
Text [ en-US ] = "Hori~zontal" ;
};
ListBox DLB_HORIZONTAL
{
HelpID = "sw:ListBox:TP_FRM_STD:DLB_HORIZONTAL";
Pos = MAP_APPFONT ( 49 , SWFRMPG_ROW_11 ) ;
Size = MAP_APPFONT ( 50 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
};
FixedText FT_AT_HORZ_POS
{
Pos = MAP_APPFONT ( 101 , SWFRMPG_ROW_12 ) ;
Size = MAP_APPFONT ( 20 , RSC_CD_FIXEDLINE_HEIGHT ) ;
Center = TRUE ;
Text [ en-US ] = "b~y" ;
};
MetricField ED_AT_HORZ_POS
{
HelpID = "sw:MetricField:TP_FRM_STD:ED_AT_HORZ_POS";
Border = TRUE ;
Pos = MAP_APPFONT ( 123 , SWFRMPG_ROW_11 ) ;
Size = MAP_APPFONT ( 35 , RSC_CD_TEXTBOX_HEIGHT ) ;
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = -9999 ;
Maximum = 9999 ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
First = -9999 ;
Last = 9999 ;
SpinSize = 10 ;
};
FixedText FT_HORI_RELATION
{
Pos = MAP_APPFONT ( 160 , SWFRMPG_ROW_12 ) ;
Size = MAP_APPFONT ( 21 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Center = TRUE ;
Text [ en-US ] = "~to" ;
};
ListBox LB_HORI_RELATION
{
HelpID = "sw:ListBox:TP_FRM_STD:LB_HORI_RELATION";
Pos = MAP_APPFONT ( 183 , SWFRMPG_ROW_11 ) ;
Size = MAP_APPFONT ( 65 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
};
CheckBox CB_MIRROR
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_MIRROR";
Pos = MAP_APPFONT ( SWFRMPG_COL_2 , SWFRMPG_ROW_13 ) ;
Size = MAP_APPFONT ( (260-SWFRMPG_COL_2-1) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Mirror on even pages" ;
};
FixedText FT_VERTICAL
{
Pos = MAP_APPFONT ( 12 , SWFRMPG_ROW_15 ) ;
Size = MAP_APPFONT ( 35 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Left = TRUE ;
Text [ en-US ] = "~Vertical" ;
};
ListBox DLB_VERTICAL
{
HelpID = "sw:ListBox:TP_FRM_STD:DLB_VERTICAL";
Pos = MAP_APPFONT ( 49 , SWFRMPG_ROW_14 ) ;
Size = MAP_APPFONT ( 50 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
};
FixedText FT_AT_VERT_POS
{
Pos = MAP_APPFONT ( 101 , SWFRMPG_ROW_15 ) ;
Size = MAP_APPFONT ( 20 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Center = TRUE ;
Text [ en-US ] = "by" ;
};
MetricField ED_AT_VERT_POS
{
HelpID = "sw:MetricField:TP_FRM_STD:ED_AT_VERT_POS";
Border = TRUE ;
Pos = MAP_APPFONT ( 123 , SWFRMPG_ROW_14 ) ;
Size = MAP_APPFONT ( 35 , RSC_CD_TEXTBOX_HEIGHT ) ;
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = -9999 ;
Maximum = 9999 ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
First = -9999 ;
Last = 9999 ;
SpinSize = 10 ;
};
FixedText FT_VERT_RELATION
{
Pos = MAP_APPFONT ( 160 , SWFRMPG_ROW_15 ) ;
Size = MAP_APPFONT ( 21 , RSC_CD_FIXEDTEXT_HEIGHT ) ;
Center = TRUE ;
Text [ en-US ] = "t~o" ;
};
ListBox LB_VERT_RELATION
{
HelpID = "sw:ListBox:TP_FRM_STD:LB_VERT_RELATION";
Pos = MAP_APPFONT ( 183 , SWFRMPG_ROW_14 ) ;
Size = MAP_APPFONT ( 65 , 60 ) ;
TabStop = TRUE ;
DropDown = TRUE ;
};
CheckBox CB_FOLLOWTEXTFLOW
{
HelpID = "sw:CheckBox:TP_FRM_STD:CB_FOLLOWTEXTFLOW";
Pos = MAP_APPFONT ( SWFRMPG_COL_2 , SWFRMPG_ROW_16 ) ;
Size = MAP_APPFONT ( (260-SWFRMPG_COL_2-1) , RSC_CD_CHECKBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "Follow text flow" ;
};
FixedLine FL_POSITION
{
Pos = MAP_APPFONT ( 6 , SWFRMPG_ROW_10 ) ;
Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ;
Text [ en-US ] = "Position" ;
};
};
TabPage TP_GRF_EXT
{
Hide = TRUE ;

View File

@@ -44,49 +44,50 @@ struct SwPosition;
class SwFrmPage: public SfxTabPage
{
// size
FixedLine aSizeFL;
FixedText aWidthFT;
FixedText aWidthAutoFT;
PercentField aWidthED;
CheckBox aRelWidthCB;
CheckBox aAutoWidthCB;
FixedText aHeightFT;
FixedText aHeightAutoFT;
PercentField aHeightED;
CheckBox aRelHeightCB;
CheckBox aAutoHeightCB;
CheckBox aFixedRatioCB;
PushButton aRealSizeBT;
FixedText* m_pWidthFT;
FixedText* m_pWidthAutoFT;
PercentFieldWrap m_aWidthED;
CheckBox* m_pRelWidthCB;
CheckBox* m_pAutoWidthCB;
FixedText* m_pHeightFT;
FixedText* m_pHeightAutoFT;
PercentFieldWrap m_aHeightED;
CheckBox* m_pRelHeightCB;
CheckBox* m_pAutoHeightCB;
CheckBox* m_pFixedRatioCB;
PushButton* m_pRealSizeBT;
// anchor
FixedLine aTypeSepFL;
FixedLine aTypeFL;
RadioButton aAnchorAtPageRB;
RadioButton aAnchorAtParaRB;
RadioButton aAnchorAtCharRB;
RadioButton aAnchorAsCharRB;
RadioButton aAnchorAtFrameRB;
VclContainer* m_pAnchorFrame;
RadioButton* m_pAnchorAtPageRB;
RadioButton* m_pAnchorAtParaRB;
RadioButton* m_pAnchorAtCharRB;
RadioButton* m_pAnchorAsCharRB;
RadioButton* m_pAnchorAtFrameRB;
// position
FixedLine aPositionFL;
FixedText aHorizontalFT;
ListBox aHorizontalDLB;
FixedText aAtHorzPosFT;
MetricField aAtHorzPosED;
FixedText aHoriRelationFT;
ListBox aHoriRelationLB;
CheckBox aMirrorPagesCB;
FixedText aVerticalFT;
ListBox aVerticalDLB;
FixedText aAtVertPosFT;
MetricField aAtVertPosED;
FixedText aVertRelationFT;
ListBox aVertRelationLB;
// OD 02.10.2003 #i18732# - check box for new option 'FollowTextFlow'
CheckBox aFollowTextFlowCB;
FixedText* m_pHorizontalFT;
ListBox* m_pHorizontalDLB;
FixedText* m_pAtHorzPosFT;
MetricField* m_pAtHorzPosED;
FixedText* m_pHoriRelationFT;
ListBox* m_pHoriRelationLB;
CheckBox* m_pMirrorPagesCB;
FixedText* m_pVerticalFT;
ListBox* m_pVerticalDLB;
FixedText* m_pAtVertPosFT;
MetricField* m_pAtVertPosED;
FixedText* m_pVertRelationFT;
ListBox* m_pVertRelationLB;
// #i18732# - check box for new option 'FollowTextFlow'
CheckBox* m_pFollowTextFlowCB;
// example
SvxSwFrameExample aExampleWN;
SvxSwFrameExample* m_pExampleWN;
//'string provider'
SvxSwFramePosString aFramePosString;
@@ -170,6 +171,9 @@ class SwFrmPage: public SfxTabPage
short GetRelation(FrmMap *pMap, ListBox &rRelationLB);
RndStdIds GetAnchor();
void setOptimalFrmWidth();
void setOptimalRelWidth();
void EnableGraficMode( void ); // hides auto check boxes and re-org controls for "Real Size" button
SwFrmPage(Window *pParent, const SfxItemSet &rSet);

View File

@@ -50,9 +50,11 @@ public:
MetricField* get() { return m_pField; }
void SetUpHdl(const Link& rLink) { m_pField->SetUpHdl(rLink); }
void SetDownHdl(const Link& rLink) { m_pField->SetDownHdl(rLink); }
void SetModifyHdl(const Link& rLink) { m_pField->SetModifyHdl(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); }
void Disable(bool bChild = true) { m_pField->Disable(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); }
@@ -63,7 +65,7 @@ public:
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 SetValue(sal_Int64 nNewValue, FieldUnit eInUnit = FUNIT_NONE) { m_pField->SetValue(nNewValue, eInUnit); }
void SetLast(sal_Int64 nNewLast) { m_pField->SetLast(nNewLast); }
@@ -81,9 +83,15 @@ public:
void SetMin(sal_Int64 nNewMin, FieldUnit eInUnit = FUNIT_NONE);
sal_Int64 GetMin() const { return m_pField->GetMin(); }
sal_Int64 GetMax() const { return m_pField->GetMax(); }
sal_Int64 NormalizePercent(sal_Int64 nValue);
sal_Int64 DenormalizePercent(sal_Int64 nValue);
sal_Int64 Normalize( sal_Int64 nValue ) const { return m_pField->Normalize(nValue); }
sal_Int64 Denormalize( sal_Int64 nValue ) const { return m_pField->Denormalize(nValue); }
void SetRefValue(sal_Int64 nValue);
sal_Int64 GetRefValue() const { return nRefValue; }
sal_Int64 GetRealValue(FieldUnit eOutUnit = FUNIT_NONE);

View File

@@ -258,6 +258,14 @@ void PercentFieldWrap::SetPrcntValue(sal_Int64 nNewValue, FieldUnit eInUnit)
}
}
void PercentFieldWrap::SetBaseValue(sal_Int64 nNewValue, FieldUnit eInUnit)
{
if (m_pField->GetUnit() == FUNIT_CUSTOM)
nOldBaseValue = m_pField->ConvertValue(nNewValue, 0, nOldDigits, eInUnit, eOldUnit);
else
m_pField->SetBaseValue(nNewValue, eInUnit);
}
void PercentField::SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit )
{
if (GetUnit() != FUNIT_CUSTOM || eInUnit == FUNIT_CUSTOM)
@@ -396,6 +404,36 @@ sal_Int64 PercentFieldWrap::DenormalizePercent(sal_Int64 nValue)
return nValue;
}
bool PercentFieldWrap::IsValueModified()
{
if (m_pField->GetUnit() == FUNIT_CUSTOM)
return true;
else
return m_pField->IsValueModified();
}
void PercentFieldWrap::SetUserValue(sal_Int64 nNewValue, FieldUnit eInUnit)
{
if (m_pField->GetUnit() != FUNIT_CUSTOM || eInUnit == FUNIT_CUSTOM)
m_pField->SetUserValue(Convert(nNewValue, eInUnit, m_pField->GetUnit()),FUNIT_NONE);
else
{
// Overwrite output value, do not restore later
sal_Int64 nPercent, nAktWidth;
if (eInUnit == FUNIT_TWIP)
{
nAktWidth = m_pField->ConvertValue(nNewValue, 0, nOldDigits, FUNIT_TWIP, FUNIT_TWIP);
}
else
{
sal_Int64 nValue = Convert(nNewValue, eInUnit, eOldUnit);
nAktWidth = m_pField->ConvertValue(nValue, 0, nOldDigits, eOldUnit, FUNIT_TWIP);
}
nPercent = ((nAktWidth * 10) / nRefValue + 5) / 10;
m_pField->SetUserValue(nPercent,FUNIT_NONE);
}
}
sal_Bool PercentField::IsValueModified()
{
if (GetUnit() == FUNIT_CUSTOM)

View File

@@ -0,0 +1,764 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">0.050000000000000003</property>
<property name="upper">99.989999999999995</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment2">
<property name="lower">-99.989999999999995</property>
<property name="upper">99.989999999999995</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkGrid" id="FrmTypePage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="border_width">6</property>
<property name="row_spacing">18</property>
<child>
<object class="GtkGrid" id="grid3">
<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">3</property>
<property name="column_spacing">18</property>
<child>
<object class="GtkFrame" id="frame2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="hexpand">True</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="hexpand">True</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">12</property>
<child>
<object class="GtkGrid" id="grid5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkSpinButton" id="width:0.00cm">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment1</property>
<property name="digits">2</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>
<child>
<object class="GtkCheckButton" id="relwidth">
<property name="label" translatable="yes">Relat_ive</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_left">12</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="autowidth">
<property name="label" translatable="yes">AutoSize</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_left">12</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<child>
<object class="GtkLabel" id="autowidthft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Width (at least)</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">width:0.00cm</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="GtkLabel" id="widthft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Width</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">width:0.00cm</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>
</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>
</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="GtkGrid" id="grid6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkSpinButton" id="height:0.00cm">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment1</property>
<property name="digits">2</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>
<child>
<object class="GtkCheckButton" id="relheight">
<property name="label" translatable="yes">Re_lative</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_left">12</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="autoheight">
<property name="label" translatable="yes">AutoSize</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_left">12</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="grid7">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<child>
<object class="GtkLabel" id="autoheightft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">H_eight (at least)</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">height:0.00cm</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="GtkLabel" id="heightft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">H_eight</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">height:0.00cm</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>
</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>
</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="ratio">
<property name="label" translatable="yes">_Keep ratio</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">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="origsize">
<property name="label" translatable="yes">_Original Size</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<property name="halign">end</property>
<property name="use_underline">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>
</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">Size</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</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="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="svxlo-SvxSwFrameExample" id="preview">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</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>
</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="GtkFrame" id="anchorframe">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">start</property>
<property name="hexpand">True</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="hexpand">True</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="topage">
<property name="label" translatable="yes">To _page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">topara</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="topara">
<property name="label" translatable="yes">To paragrap_h</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">tochar</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="tochar">
<property name="label" translatable="yes">To cha_racter</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">aschar</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="GtkRadioButton" id="aschar">
<property name="label" translatable="yes">_As character</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">toframe</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="GtkRadioButton" id="toframe">
<property name="label" translatable="yes">To _frame</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">topage</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>
</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">Anchor</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</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">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame4">
<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="alignment4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid10">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkLabel" id="horiposft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Hori_zontal</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">horipos</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="horibyft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">b_y</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">byhori:0.00cm</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="GtkLabel" id="vertbyft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">by</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">byvert:0.00cm</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="GtkLabel" id="horitoft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_to</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">horianchor</property>
</object>
<packing>
<property name="left_attach">4</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="byhori:0.00cm">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment2</property>
<property name="digits">2</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="horianchor">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
</object>
<packing>
<property name="left_attach">5</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="horipos">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</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>
<child>
<object class="GtkLabel" id="vertposft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Vertical</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">vertpos</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="GtkComboBoxText" id="vertpos">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</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="byvert:0.00cm">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment2</property>
<property name="digits">2</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="verttoft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">t_o</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">vertanchor</property>
</object>
<packing>
<property name="left_attach">4</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="vertanchor">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
</object>
<packing>
<property name="left_attach">5</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="mirror">
<property name="label" translatable="yes">_Mirror on even pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_left">12</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">6</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="followtextflow">
<property name="label" translatable="yes">Follow text flow</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="margin_left">12</property>
<property name="use_underline">True</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">6</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Position</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</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>
</object>
<object class="GtkSizeGroup" id="sizegroup1">
<widgets>
<widget name="widthft"/>
<widget name="autowidthft"/>
<widget name="heightft"/>
<widget name="autoheightft"/>
</widgets>
</object>
</interface>