Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
05dab8ae
Kaydet (Commit)
05dab8ae
authored
Agu 12, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert label layout tab to .ui
Change-Id: Ice1a9b365426059704438da5fee2e4470cfb3f72
üst
9f32bf9b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
625 additions
and
506 deletions
+625
-506
libreoffice-catalog.xml.in
extras/source/glade/libreoffice-catalog.xml.in
+3
-0
UIConfig_swriter.mk
sw/UIConfig_swriter.mk
+1
-0
helpid.h
sw/inc/helpid.h
+0
-1
labfmt.cxx
sw/source/ui/envelp/labfmt.cxx
+187
-195
labfmt.hrc
sw/source/ui/envelp/labfmt.hrc
+0
-28
labfmt.hxx
sw/source/ui/envelp/labfmt.hxx
+19
-38
labfmt.src
sw/source/ui/envelp/labfmt.src
+1
-244
labelformatpage.ui
sw/uiconfig/swriter/ui/labelformatpage.ui
+414
-0
No files found.
extras/source/glade/libreoffice-catalog.xml.in
Dosyayı görüntüle @
05dab8ae
...
@@ -314,6 +314,9 @@
...
@@ -314,6 +314,9 @@
<glade-widget-class
title=
"NUP Preview"
name=
"vcllo-ShowNupOrderWindow"
<glade-widget-class
title=
"NUP Preview"
name=
"vcllo-ShowNupOrderWindow"
generic-name=
"NUP Preview"
parent=
"GtkDrawingArea"
generic-name=
"NUP Preview"
parent=
"GtkDrawingArea"
icon-name=
"widget-gtk-drawingarea"
/>
icon-name=
"widget-gtk-drawingarea"
/>
<glade-widget-class
title=
"Label Preview"
name=
"swuilo-SwLabPreview"
generic-name=
"Label Preview"
parent=
"GtkDrawingArea"
icon-name=
"widget-gtk-drawingarea"
/>
<glade-widget-class
title=
"Rectangle Control"
name=
"svxlo-SvxRectCtl"
<glade-widget-class
title=
"Rectangle Control"
name=
"svxlo-SvxRectCtl"
generic-name=
"Rectangle Control"
parent=
"GtkDrawingArea"
generic-name=
"Rectangle Control"
parent=
"GtkDrawingArea"
icon-name=
"widget-gtk-drawingarea"
/>
icon-name=
"widget-gtk-drawingarea"
/>
...
...
sw/UIConfig_swriter.mk
Dosyayı görüntüle @
05dab8ae
...
@@ -103,6 +103,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
...
@@ -103,6 +103,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/insertsectiondialog \
sw/uiconfig/swriter/ui/insertsectiondialog \
sw/uiconfig/swriter/ui/insertscript \
sw/uiconfig/swriter/ui/insertscript \
sw/uiconfig/swriter/ui/inserttable \
sw/uiconfig/swriter/ui/inserttable \
sw/uiconfig/swriter/ui/labelformatpage \
sw/uiconfig/swriter/ui/labeloptionspage \
sw/uiconfig/swriter/ui/labeloptionspage \
sw/uiconfig/swriter/ui/linenumbering \
sw/uiconfig/swriter/ui/linenumbering \
sw/uiconfig/swriter/ui/mailconfigpage \
sw/uiconfig/swriter/ui/mailconfigpage \
...
...
sw/inc/helpid.h
Dosyayı görüntüle @
05dab8ae
...
@@ -145,7 +145,6 @@
...
@@ -145,7 +145,6 @@
#define HID_FRM_STD "SW_HID_FRM_STD"
#define HID_FRM_STD "SW_HID_FRM_STD"
#define HID_GRF_EXT "SW_HID_GRF_EXT"
#define HID_GRF_EXT "SW_HID_GRF_EXT"
#define HID_ENV_PRT "SW_HID_ENV_PRT"
#define HID_ENV_PRT "SW_HID_ENV_PRT"
#define HID_LAB_FMT "SW_HID_LAB_FMT"
#define HID_ENV_ENV "SW_HID_ENV_ENV"
#define HID_ENV_ENV "SW_HID_ENV_ENV"
#define HID_ENV_FMT "SW_HID_ENV_FMT"
#define HID_ENV_FMT "SW_HID_ENV_FMT"
#define HID_COND_COLL "SW_HID_COND_COLL"
#define HID_COND_COLL "SW_HID_COND_COLL"
...
...
sw/source/ui/envelp/labfmt.cxx
Dosyayı görüntüle @
05dab8ae
...
@@ -40,22 +40,19 @@ using namespace ::com::sun::star::beans;
...
@@ -40,22 +40,19 @@ using namespace ::com::sun::star::beans;
#define ROUND(x) ((sal_uInt16) ((x) + .5))
#define ROUND(x) ((sal_uInt16) ((x) + .5))
SwLabPreview
::
SwLabPreview
(
const
SwLabFmtPage
*
pParent
,
const
ResId
&
rResID
)
:
SwLabPreview
::
SwLabPreview
(
Window
*
pParent
)
:
Window
(
pParent
,
0
)
Window
((
Window
*
)
pParent
,
rResID
),
,
aGrayColor
(
COL_LIGHTGRAY
)
,
aHDistStr
(
SW_RESSTR
(
STR_HDIST
))
aGrayColor
(
COL_LIGHTGRAY
),
,
aVDistStr
(
SW_RESSTR
(
STR_VDIST
))
,
aWidthStr
(
SW_RESSTR
(
STR_WIDTH
))
aHDistStr
(
SW_RES
(
STR_HDIST
)),
,
aHeightStr
(
SW_RESSTR
(
STR_HEIGHT
))
aVDistStr
(
SW_RES
(
STR_VDIST
)),
,
aLeftStr
(
SW_RESSTR
(
STR_LEFT
))
aWidthStr
(
SW_RES
(
STR_WIDTH
)),
,
aUpperStr
(
SW_RESSTR
(
STR_UPPER
))
aHeightStr
(
SW_RES
(
STR_HEIGHT
)),
,
aColsStr
(
SW_RESSTR
(
STR_COLS
))
aLeftStr
(
SW_RES
(
STR_LEFT
)),
,
aRowsStr
(
SW_RESSTR
(
STR_ROWS
))
aUpperStr
(
SW_RES
(
STR_UPPER
)),
,
aPWidthStr
(
SW_RESSTR
(
STR_PWIDTH
))
aColsStr
(
SW_RES
(
STR_COLS
)),
,
aPHeightStr
(
SW_RESSTR
(
STR_PHEIGHT
))
aRowsStr
(
SW_RES
(
STR_ROWS
)),
aPWidthStr
(
SW_RES
(
STR_PWIDTH
)),
aPHeightStr
(
SW_RES
(
STR_PHEIGHT
))
{
{
SetMapMode
(
MAP_PIXEL
);
SetMapMode
(
MAP_PIXEL
);
...
@@ -68,12 +65,6 @@ SwLabPreview::SwLabPreview( const SwLabFmtPage* pParent, const ResId& rResID ) :
...
@@ -68,12 +65,6 @@ SwLabPreview::SwLabPreview( const SwLabFmtPage* pParent, const ResId& rResID ) :
aFont
.
SetWeight
(
WEIGHT_NORMAL
);
aFont
.
SetWeight
(
WEIGHT_NORMAL
);
SetFont
(
aFont
);
SetFont
(
aFont
);
const
Size
aSz
(
GetOutputSizePixel
());
lOutWPix
=
aSz
.
Width
();
lOutHPix
=
aSz
.
Height
();
lHDistWidth
=
GetTextWidth
(
aHDistStr
);
lHDistWidth
=
GetTextWidth
(
aHDistStr
);
lVDistWidth
=
GetTextWidth
(
aVDistStr
);
lVDistWidth
=
GetTextWidth
(
aVDistStr
);
lHeightWidth
=
GetTextWidth
(
aHeightStr
);
lHeightWidth
=
GetTextWidth
(
aHeightStr
);
...
@@ -84,20 +75,31 @@ SwLabPreview::SwLabPreview( const SwLabFmtPage* pParent, const ResId& rResID ) :
...
@@ -84,20 +75,31 @@ SwLabPreview::SwLabPreview( const SwLabFmtPage* pParent, const ResId& rResID ) :
lPHeightWidth
=
GetTextWidth
(
aPHeightStr
);
lPHeightWidth
=
GetTextWidth
(
aPHeightStr
);
lXHeight
=
GetTextHeight
();
lXHeight
=
GetTextHeight
();
lXWidth
=
GetTextWidth
(
OUString
(
'X'
));
lXWidth
=
GetTextWidth
(
OUString
(
'X'
));
}
// Scale factor
Size
SwLabPreview
::
GetOptimalSize
()
const
float
fx
=
(
float
)(
lOutWPix
-
(
2
*
(
lLeftWidth
+
15
)))
/
(
float
)
lOutWPix
;
{
return
LogicToPixel
(
Size
(
146
,
161
),
MapMode
(
MAP_APPFONT
));
lOutWPix23
=
(
long
)((
float
)
lOutWPix
*
fx
);
lOutHPix23
=
(
long
)((
float
)
lOutHPix
*
fx
);
}
}
SwLabPreview
::~
SwLabPreview
(
)
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSwLabPreview
(
Window
*
pParent
,
VclBuilder
::
stringmap
&
)
{
{
return
new
SwLabPreview
(
pParent
);
}
}
void
SwLabPreview
::
Paint
(
const
Rectangle
&
)
void
SwLabPreview
::
Paint
(
const
Rectangle
&
)
{
{
const
Size
aSz
(
GetOutputSizePixel
());
long
lOutWPix
=
aSz
.
Width
();
long
lOutHPix
=
aSz
.
Height
();
// Scale factor
float
fxpix
=
(
float
)(
lOutWPix
-
(
2
*
(
lLeftWidth
+
15
)))
/
(
float
)
lOutWPix
;
long
lOutWPix23
=
(
long
)((
float
)
lOutWPix
*
fxpix
);
long
lOutHPix23
=
(
long
)((
float
)
lOutHPix
*
fxpix
);
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
const
Color
&
rWinColor
=
rStyleSettings
.
GetWindowColor
();
const
Color
&
rWinColor
=
rStyleSettings
.
GetWindowColor
();
const
Color
&
rFieldTextColor
=
SwViewOption
::
GetFontColor
();
const
Color
&
rFieldTextColor
=
SwViewOption
::
GetFontColor
();
...
@@ -282,82 +284,72 @@ void SwLabPreview::DrawArrow(const Point &rP1, const Point &rP2, bool bArrow)
...
@@ -282,82 +284,72 @@ void SwLabPreview::DrawArrow(const Point &rP1, const Point &rP2, bool bArrow)
}
}
}
}
void
SwLabPreview
::
Update
(
const
SwLabItem
&
rItem
)
void
SwLabPreview
::
Update
Item
(
const
SwLabItem
&
rItem
)
{
{
aItem
=
rItem
;
aItem
=
rItem
;
Invalidate
();
Invalidate
();
}
}
SwLabFmtPage
::
SwLabFmtPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
:
SwLabFmtPage
::
SwLabFmtPage
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
:
SfxTabPage
(
pParent
,
"LabelFormatPage"
,
SfxTabPage
(
pParent
,
SW_RES
(
TP_LAB_FMT
),
rSet
),
"modules/swriter/ui/labelformatpage.ui"
,
rSet
)
aMakeFI
(
this
,
SW_RES
(
FI_MAKE
)),
,
bModified
(
false
)
aTypeFI
(
this
,
SW_RES
(
FI_TYPE
)),
,
aItem
((
const
SwLabItem
&
)
rSet
.
Get
(
FN_LABEL
))
aPreview
(
this
,
SW_RES
(
WIN_PREVIEW
)),
aHDistText
(
this
,
SW_RES
(
TXT_HDIST
)),
aHDistField
(
this
,
SW_RES
(
FLD_HDIST
)),
aVDistText
(
this
,
SW_RES
(
TXT_VDIST
)),
aVDistField
(
this
,
SW_RES
(
FLD_VDIST
)),
aWidthText
(
this
,
SW_RES
(
TXT_WIDTH
)),
aWidthField
(
this
,
SW_RES
(
FLD_WIDTH
)),
aHeightText
(
this
,
SW_RES
(
TXT_HEIGHT
)),
aHeightField
(
this
,
SW_RES
(
FLD_HEIGHT
)),
aLeftText
(
this
,
SW_RES
(
TXT_LEFT
)),
aLeftField
(
this
,
SW_RES
(
FLD_LEFT
)),
aUpperText
(
this
,
SW_RES
(
TXT_UPPER
)),
aUpperField
(
this
,
SW_RES
(
FLD_UPPER
)),
aColsText
(
this
,
SW_RES
(
TXT_COLUMNS
)),
aColsField
(
this
,
SW_RES
(
FLD_COLUMNS
)),
aRowsText
(
this
,
SW_RES
(
TXT_ROWS
)),
aRowsField
(
this
,
SW_RES
(
FLD_ROWS
)),
aPWidthText
(
this
,
SW_RES
(
TXT_PWIDTH
)),
aPWidthField
(
this
,
SW_RES
(
FLD_PWIDTH
)),
aPHeightText
(
this
,
SW_RES
(
TXT_PHEIGHT
)),
aPHeightField
(
this
,
SW_RES
(
FLD_PHEIGHT
)),
aSavePB
(
this
,
SW_RES
(
PB_SAVE
)),
bModified
(
false
),
aItem
((
const
SwLabItem
&
)
rSet
.
Get
(
FN_LABEL
))
{
{
FreeResource
();
SetExchangeSupport
();
SetExchangeSupport
();
get
(
m_pMakeFI
,
"make"
);
get
(
m_pTypeFI
,
"type"
);
get
(
m_pPreview
,
"preview"
);
get
(
m_pHDistField
,
"hori"
);
get
(
m_pVDistField
,
"vert"
);
get
(
m_pWidthField
,
"width"
);
get
(
m_pHeightField
,
"height"
);
get
(
m_pLeftField
,
"left"
);
get
(
m_pUpperField
,
"top"
);
get
(
m_pColsField
,
"cols"
);
get
(
m_pRowsField
,
"rows"
);
get
(
m_pPWidthField
,
"pagewidth"
);
get
(
m_pPHeightField
,
"pageheight"
);
get
(
m_pSavePB
,
"save"
);
// Metrics
// Metrics
FieldUnit
aMetric
=
::
GetDfltMetric
(
sal_False
);
FieldUnit
aMetric
=
::
GetDfltMetric
(
sal_False
);
SetMetric
(
aHDistField
,
aMetric
);
SetMetric
(
*
m_pHDistField
,
aMetric
);
SetMetric
(
a
VDistField
,
aMetric
);
SetMetric
(
*
m_p
VDistField
,
aMetric
);
SetMetric
(
a
WidthField
,
aMetric
);
SetMetric
(
*
m_p
WidthField
,
aMetric
);
SetMetric
(
a
HeightField
,
aMetric
);
SetMetric
(
*
m_p
HeightField
,
aMetric
);
SetMetric
(
a
LeftField
,
aMetric
);
SetMetric
(
*
m_p
LeftField
,
aMetric
);
SetMetric
(
a
UpperField
,
aMetric
);
SetMetric
(
*
m_p
UpperField
,
aMetric
);
SetMetric
(
a
PWidthField
,
aMetric
);
SetMetric
(
*
m_p
PWidthField
,
aMetric
);
SetMetric
(
a
PHeightField
,
aMetric
);
SetMetric
(
*
m_p
PHeightField
,
aMetric
);
// Install handlers
// Install handlers
Link
aLk
=
LINK
(
this
,
SwLabFmtPage
,
ModifyHdl
);
Link
aLk
=
LINK
(
this
,
SwLabFmtPage
,
ModifyHdl
);
aHDistField
.
SetModifyHdl
(
aLk
);
m_pHDistField
->
SetModifyHdl
(
aLk
);
aVDistField
.
SetModifyHdl
(
aLk
);
m_pVDistField
->
SetModifyHdl
(
aLk
);
aWidthField
.
SetModifyHdl
(
aLk
);
m_pWidthField
->
SetModifyHdl
(
aLk
);
aHeightField
.
SetModifyHdl
(
aLk
);
m_pHeightField
->
SetModifyHdl
(
aLk
);
aLeftField
.
SetModifyHdl
(
aLk
);
m_pLeftField
->
SetModifyHdl
(
aLk
);
aUpperField
.
SetModifyHdl
(
aLk
);
m_pUpperField
->
SetModifyHdl
(
aLk
);
aColsField
.
SetModifyHdl
(
aLk
);
m_pColsField
->
SetModifyHdl
(
aLk
);
aRowsField
.
SetModifyHdl
(
aLk
);
m_pRowsField
->
SetModifyHdl
(
aLk
);
aPWidthField
.
SetModifyHdl
(
aLk
);
m_pPWidthField
->
SetModifyHdl
(
aLk
);
aPHeightField
.
SetModifyHdl
(
aLk
);
m_pPHeightField
->
SetModifyHdl
(
aLk
);
aLk
=
LINK
(
this
,
SwLabFmtPage
,
LoseFocusHdl
);
aLk
=
LINK
(
this
,
SwLabFmtPage
,
LoseFocusHdl
);
aHDistField
.
SetLoseFocusHdl
(
aLk
);
m_pHDistField
->
SetLoseFocusHdl
(
aLk
);
aVDistField
.
SetLoseFocusHdl
(
aLk
);
m_pVDistField
->
SetLoseFocusHdl
(
aLk
);
aWidthField
.
SetLoseFocusHdl
(
aLk
);
m_pWidthField
->
SetLoseFocusHdl
(
aLk
);
aHeightField
.
SetLoseFocusHdl
(
aLk
);
m_pHeightField
->
SetLoseFocusHdl
(
aLk
);
aLeftField
.
SetLoseFocusHdl
(
aLk
);
m_pLeftField
->
SetLoseFocusHdl
(
aLk
);
aUpperField
.
SetLoseFocusHdl
(
aLk
);
m_pUpperField
->
SetLoseFocusHdl
(
aLk
);
aColsField
.
SetLoseFocusHdl
(
aLk
);
m_pColsField
->
SetLoseFocusHdl
(
aLk
);
aRowsField
.
SetLoseFocusHdl
(
aLk
);
m_pRowsField
->
SetLoseFocusHdl
(
aLk
);
aPWidthField
.
SetLoseFocusHdl
(
aLk
);
m_pPWidthField
->
SetLoseFocusHdl
(
aLk
);
aPHeightField
.
SetLoseFocusHdl
(
aLk
);
m_pPHeightField
->
SetLoseFocusHdl
(
aLk
);
aSavePB
.
SetClickHdl
(
LINK
(
this
,
SwLabFmtPage
,
SaveHdl
));
m_pSavePB
->
SetClickHdl
(
LINK
(
this
,
SwLabFmtPage
,
SaveHdl
));
// Set timer
// Set timer
aPreviewTimer
.
SetTimeout
(
1000
);
aPreviewTimer
.
SetTimeout
(
1000
);
aPreviewTimer
.
SetTimeoutHdl
(
LINK
(
this
,
SwLabFmtPage
,
PreviewHdl
));
aPreviewTimer
.
SetTimeoutHdl
(
LINK
(
this
,
SwLabFmtPage
,
PreviewHdl
));
...
@@ -382,7 +374,7 @@ IMPL_LINK_NOARG_INLINE_START(SwLabFmtPage, PreviewHdl)
...
@@ -382,7 +374,7 @@ IMPL_LINK_NOARG_INLINE_START(SwLabFmtPage, PreviewHdl)
aPreviewTimer
.
Stop
();
aPreviewTimer
.
Stop
();
ChangeMinMax
();
ChangeMinMax
();
FillItem
(
aItem
);
FillItem
(
aItem
);
aPreview
.
Update
(
aItem
);
m_pPreview
->
UpdateItem
(
aItem
);
return
0
;
return
0
;
}
}
...
@@ -404,76 +396,76 @@ void SwLabFmtPage::ChangeMinMax()
...
@@ -404,76 +396,76 @@ void SwLabFmtPage::ChangeMinMax()
// Min and Max
// Min and Max
int
nCols
=
aColsField
.
GetValue
(),
int
nCols
=
m_pColsField
->
GetValue
(),
nRows
=
aRowsField
.
GetValue
();
nRows
=
m_pRowsField
->
GetValue
();
long
lLeft
=
static_cast
<
long
>
(
GETFLDVAL
(
a
LeftField
)),
long
lLeft
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
LeftField
)),
lUpper
=
static_cast
<
long
>
(
GETFLDVAL
(
a
UpperField
)),
lUpper
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
UpperField
)),
lHDist
=
static_cast
<
long
>
(
GETFLDVAL
(
a
HDistField
)),
lHDist
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
HDistField
)),
lVDist
=
static_cast
<
long
>
(
GETFLDVAL
(
a
VDistField
)),
lVDist
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
VDistField
)),
lWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
a
WidthField
)),
lWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
WidthField
)),
lHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
a
HeightField
)),
lHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
HeightField
)),
lMinPWidth
=
lLeft
+
(
nCols
-
1
)
*
lHDist
+
lWidth
,
lMinPWidth
=
lLeft
+
(
nCols
-
1
)
*
lHDist
+
lWidth
,
lMinPHeight
=
lUpper
+
(
nRows
-
1
)
*
lVDist
+
lHeight
;
lMinPHeight
=
lUpper
+
(
nRows
-
1
)
*
lVDist
+
lHeight
;
aHDistField
.
SetMin
(
nMinSize
,
FUNIT_CM
);
m_pHDistField
->
SetMin
(
nMinSize
,
FUNIT_CM
);
aVDistField
.
SetMin
(
nMinSize
,
FUNIT_CM
);
m_pVDistField
->
SetMin
(
nMinSize
,
FUNIT_CM
);
aHDistField
.
SetMax
((
long
)
100
*
((
lMax
-
lLeft
)
/
std
::
max
(
1L
,
(
long
)
nCols
)),
FUNIT_TWIP
);
m_pHDistField
->
SetMax
((
long
)
100
*
((
lMax
-
lLeft
)
/
std
::
max
(
1L
,
(
long
)
nCols
)),
FUNIT_TWIP
);
aVDistField
.
SetMax
((
long
)
100
*
((
lMax
-
lUpper
)
/
std
::
max
(
1L
,
(
long
)
nRows
)),
FUNIT_TWIP
);
m_pVDistField
->
SetMax
((
long
)
100
*
((
lMax
-
lUpper
)
/
std
::
max
(
1L
,
(
long
)
nRows
)),
FUNIT_TWIP
);
aWidthField
.
SetMin
(
nMinSize
,
FUNIT_CM
);
m_pWidthField
->
SetMin
(
nMinSize
,
FUNIT_CM
);
aHeightField
.
SetMin
(
nMinSize
,
FUNIT_CM
);
m_pHeightField
->
SetMin
(
nMinSize
,
FUNIT_CM
);
aWidthField
.
SetMax
((
long
)
100
*
(
lHDist
),
FUNIT_TWIP
);
m_pWidthField
->
SetMax
((
long
)
100
*
(
lHDist
),
FUNIT_TWIP
);
aHeightField
.
SetMax
((
long
)
100
*
(
lVDist
),
FUNIT_TWIP
);
m_pHeightField
->
SetMax
((
long
)
100
*
(
lVDist
),
FUNIT_TWIP
);
aLeftField
.
SetMax
((
long
)
100
*
(
lMax
-
nCols
*
lHDist
),
FUNIT_TWIP
);
m_pLeftField
->
SetMax
((
long
)
100
*
(
lMax
-
nCols
*
lHDist
),
FUNIT_TWIP
);
aUpperField
.
SetMax
((
long
)
100
*
(
lMax
-
nRows
*
lVDist
),
FUNIT_TWIP
);
m_pUpperField
->
SetMax
((
long
)
100
*
(
lMax
-
nRows
*
lVDist
),
FUNIT_TWIP
);
aColsField
.
SetMin
(
1
);
m_pColsField
->
SetMin
(
1
);
aRowsField
.
SetMin
(
1
);
m_pRowsField
->
SetMin
(
1
);
aColsField
.
SetMax
((
lMax
-
lLeft
)
/
std
::
max
(
1L
,
lHDist
));
m_pColsField
->
SetMax
((
lMax
-
lLeft
)
/
std
::
max
(
1L
,
lHDist
));
aRowsField
.
SetMax
((
lMax
-
lUpper
)
/
std
::
max
(
1L
,
lVDist
));
m_pRowsField
->
SetMax
((
lMax
-
lUpper
)
/
std
::
max
(
1L
,
lVDist
));
aPWidthField
.
SetMin
(
(
long
)
100
*
lMinPWidth
,
FUNIT_TWIP
);
m_pPWidthField
->
SetMin
(
(
long
)
100
*
lMinPWidth
,
FUNIT_TWIP
);
aPHeightField
.
SetMin
(
(
long
)
100
*
lMinPHeight
,
FUNIT_TWIP
);
m_pPHeightField
->
SetMin
(
(
long
)
100
*
lMinPHeight
,
FUNIT_TWIP
);
aPWidthField
.
SetMax
(
(
long
)
100
*
lMax
,
FUNIT_TWIP
);
m_pPWidthField
->
SetMax
(
(
long
)
100
*
lMax
,
FUNIT_TWIP
);
aPHeightField
.
SetMax
(
(
long
)
100
*
lMax
,
FUNIT_TWIP
);
m_pPHeightField
->
SetMax
(
(
long
)
100
*
lMax
,
FUNIT_TWIP
);
// First and Last
// First and Last
aHDistField
.
SetFirst
(
aHDistField
.
GetMin
());
m_pHDistField
->
SetFirst
(
m_pHDistField
->
GetMin
());
aVDistField
.
SetFirst
(
aVDistField
.
GetMin
());
m_pVDistField
->
SetFirst
(
m_pVDistField
->
GetMin
());
aHDistField
.
SetLast
(
aHDistField
.
GetMax
());
m_pHDistField
->
SetLast
(
m_pHDistField
->
GetMax
());
aVDistField
.
SetLast
(
aVDistField
.
GetMax
());
m_pVDistField
->
SetLast
(
m_pVDistField
->
GetMax
());
aWidthField
.
SetFirst
(
aWidthField
.
GetMin
());
m_pWidthField
->
SetFirst
(
m_pWidthField
->
GetMin
());
aHeightField
.
SetFirst
(
aHeightField
.
GetMin
());
m_pHeightField
->
SetFirst
(
m_pHeightField
->
GetMin
());
aWidthField
.
SetLast
(
aWidthField
.
GetMax
());
m_pWidthField
->
SetLast
(
m_pWidthField
->
GetMax
());
aHeightField
.
SetLast
(
aHeightField
.
GetMax
());
m_pHeightField
->
SetLast
(
m_pHeightField
->
GetMax
());
aLeftField
.
SetLast
(
aLeftField
.
GetMax
());
m_pLeftField
->
SetLast
(
m_pLeftField
->
GetMax
());
aUpperField
.
SetLast
(
aUpperField
.
GetMax
());
m_pUpperField
->
SetLast
(
m_pUpperField
->
GetMax
());
aColsField
.
SetLast
(
aColsField
.
GetMax
());
m_pColsField
->
SetLast
(
m_pColsField
->
GetMax
());
aRowsField
.
SetLast
(
aRowsField
.
GetMax
());
m_pRowsField
->
SetLast
(
m_pRowsField
->
GetMax
());
aPWidthField
.
SetFirst
(
aPWidthField
.
GetMin
());
m_pPWidthField
->
SetFirst
(
m_pPWidthField
->
GetMin
());
aPHeightField
.
SetFirst
(
aPHeightField
.
GetMin
());
m_pPHeightField
->
SetFirst
(
m_pPHeightField
->
GetMin
());
aPWidthField
.
SetLast
(
aPWidthField
.
GetMax
());
m_pPWidthField
->
SetLast
(
m_pPWidthField
->
GetMax
());
aPHeightField
.
SetLast
(
aPHeightField
.
GetMax
());
m_pPHeightField
->
SetLast
(
m_pPHeightField
->
GetMax
());
aHDistField
.
Reformat
();
m_pHDistField
->
Reformat
();
aVDistField
.
Reformat
();
m_pVDistField
->
Reformat
();
aWidthField
.
Reformat
();
m_pWidthField
->
Reformat
();
aHeightField
.
Reformat
();
m_pHeightField
->
Reformat
();
aLeftField
.
Reformat
();
m_pLeftField
->
Reformat
();
aUpperField
.
Reformat
();
m_pUpperField
->
Reformat
();
aColsField
.
Reformat
();
m_pColsField
->
Reformat
();
aRowsField
.
Reformat
();
m_pRowsField
->
Reformat
();
aPWidthField
.
Reformat
();
m_pPWidthField
->
Reformat
();
aPHeightField
.
Reformat
();
m_pPHeightField
->
Reformat
();
}
}
SfxTabPage
*
SwLabFmtPage
::
Create
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
SfxTabPage
*
SwLabFmtPage
::
Create
(
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
...
@@ -502,16 +494,16 @@ void SwLabFmtPage::FillItem(SwLabItem& rItem)
...
@@ -502,16 +494,16 @@ void SwLabFmtPage::FillItem(SwLabItem& rItem)
rItem
.
aMake
=
rItem
.
aType
=
SW_RESSTR
(
STR_CUSTOM
);
rItem
.
aMake
=
rItem
.
aType
=
SW_RESSTR
(
STR_CUSTOM
);
SwLabRec
&
rRec
=
*
GetParentSwLabDlg
()
->
Recs
()[
0
];
SwLabRec
&
rRec
=
*
GetParentSwLabDlg
()
->
Recs
()[
0
];
rItem
.
lHDist
=
rRec
.
lHDist
=
static_cast
<
long
>
(
GETFLDVAL
(
a
HDistField
));
rItem
.
lHDist
=
rRec
.
lHDist
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
HDistField
));
rItem
.
lVDist
=
rRec
.
lVDist
=
static_cast
<
long
>
(
GETFLDVAL
(
a
VDistField
));
rItem
.
lVDist
=
rRec
.
lVDist
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
VDistField
));
rItem
.
lWidth
=
rRec
.
lWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
a
WidthField
));
rItem
.
lWidth
=
rRec
.
lWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
WidthField
));
rItem
.
lHeight
=
rRec
.
lHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
a
HeightField
));
rItem
.
lHeight
=
rRec
.
lHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
HeightField
));
rItem
.
lLeft
=
rRec
.
lLeft
=
static_cast
<
long
>
(
GETFLDVAL
(
a
LeftField
));
rItem
.
lLeft
=
rRec
.
lLeft
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
LeftField
));
rItem
.
lUpper
=
rRec
.
lUpper
=
static_cast
<
long
>
(
GETFLDVAL
(
a
UpperField
));
rItem
.
lUpper
=
rRec
.
lUpper
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
UpperField
));
rItem
.
nCols
=
rRec
.
nCols
=
(
sal_uInt16
)
aColsField
.
GetValue
();
rItem
.
nCols
=
rRec
.
nCols
=
(
sal_uInt16
)
m_pColsField
->
GetValue
();
rItem
.
nRows
=
rRec
.
nRows
=
(
sal_uInt16
)
aRowsField
.
GetValue
();
rItem
.
nRows
=
rRec
.
nRows
=
(
sal_uInt16
)
m_pRowsField
->
GetValue
();
rItem
.
lPWidth
=
rRec
.
lPWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
a
PWidthField
));
rItem
.
lPWidth
=
rRec
.
lPWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
PWidthField
));
rItem
.
lPHeight
=
rRec
.
lPHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
a
PHeightField
));
rItem
.
lPHeight
=
rRec
.
lPHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
PHeightField
));
}
}
}
}
...
@@ -528,47 +520,47 @@ void SwLabFmtPage::Reset(const SfxItemSet& )
...
@@ -528,47 +520,47 @@ void SwLabFmtPage::Reset(const SfxItemSet& )
// Initialise fields
// Initialise fields
GetParentSwLabDlg
()
->
GetLabItem
(
aItem
);
GetParentSwLabDlg
()
->
GetLabItem
(
aItem
);
aHDistField
.
SetMax
(
100
*
aItem
.
lHDist
,
FUNIT_TWIP
);
m_pHDistField
->
SetMax
(
100
*
aItem
.
lHDist
,
FUNIT_TWIP
);
aVDistField
.
SetMax
(
100
*
aItem
.
lVDist
,
FUNIT_TWIP
);
m_pVDistField
->
SetMax
(
100
*
aItem
.
lVDist
,
FUNIT_TWIP
);
aWidthField
.
SetMax
(
100
*
aItem
.
lWidth
,
FUNIT_TWIP
);
m_pWidthField
->
SetMax
(
100
*
aItem
.
lWidth
,
FUNIT_TWIP
);
aHeightField
.
SetMax
(
100
*
aItem
.
lHeight
,
FUNIT_TWIP
);
m_pHeightField
->
SetMax
(
100
*
aItem
.
lHeight
,
FUNIT_TWIP
);
aLeftField
.
SetMax
(
100
*
aItem
.
lLeft
,
FUNIT_TWIP
);
m_pLeftField
->
SetMax
(
100
*
aItem
.
lLeft
,
FUNIT_TWIP
);
aUpperField
.
SetMax
(
100
*
aItem
.
lUpper
,
FUNIT_TWIP
);
m_pUpperField
->
SetMax
(
100
*
aItem
.
lUpper
,
FUNIT_TWIP
);
aPWidthField
.
SetMax
(
100
*
aItem
.
lPWidth
,
FUNIT_TWIP
);
m_pPWidthField
->
SetMax
(
100
*
aItem
.
lPWidth
,
FUNIT_TWIP
);
aPHeightField
.
SetMax
(
100
*
aItem
.
lPHeight
,
FUNIT_TWIP
);
m_pPHeightField
->
SetMax
(
100
*
aItem
.
lPHeight
,
FUNIT_TWIP
);
SETFLDVAL
(
aHDistField
,
aItem
.
lHDist
);
SETFLDVAL
(
*
m_pHDistField
,
aItem
.
lHDist
);
SETFLDVAL
(
a
VDistField
,
aItem
.
lVDist
);
SETFLDVAL
(
*
m_p
VDistField
,
aItem
.
lVDist
);
SETFLDVAL
(
a
WidthField
,
aItem
.
lWidth
);
SETFLDVAL
(
*
m_p
WidthField
,
aItem
.
lWidth
);
SETFLDVAL
(
a
HeightField
,
aItem
.
lHeight
);
SETFLDVAL
(
*
m_p
HeightField
,
aItem
.
lHeight
);
SETFLDVAL
(
a
LeftField
,
aItem
.
lLeft
);
SETFLDVAL
(
*
m_p
LeftField
,
aItem
.
lLeft
);
SETFLDVAL
(
a
UpperField
,
aItem
.
lUpper
);
SETFLDVAL
(
*
m_p
UpperField
,
aItem
.
lUpper
);
SETFLDVAL
(
a
PWidthField
,
aItem
.
lPWidth
);
SETFLDVAL
(
*
m_p
PWidthField
,
aItem
.
lPWidth
);
SETFLDVAL
(
a
PHeightField
,
aItem
.
lPHeight
);
SETFLDVAL
(
*
m_p
PHeightField
,
aItem
.
lPHeight
);
aColsField
.
SetMax
(
aItem
.
nCols
);
m_pColsField
->
SetMax
(
aItem
.
nCols
);
aRowsField
.
SetMax
(
aItem
.
nRows
);
m_pRowsField
->
SetMax
(
aItem
.
nRows
);
aColsField
.
SetValue
(
aItem
.
nCols
);
m_pColsField
->
SetValue
(
aItem
.
nCols
);
aRowsField
.
SetValue
(
aItem
.
nRows
);
m_pRowsField
->
SetValue
(
aItem
.
nRows
);
aMakeFI
.
SetText
(
aItem
.
aMake
);
m_pMakeFI
->
SetText
(
aItem
.
aMake
);
aTypeFI
.
SetText
(
aItem
.
aType
);
m_pTypeFI
->
SetText
(
aItem
.
aType
);
PreviewHdl
(
0
);
PreviewHdl
(
0
);
}
}
IMPL_LINK_NOARG
(
SwLabFmtPage
,
SaveHdl
)
IMPL_LINK_NOARG
(
SwLabFmtPage
,
SaveHdl
)
{
{
SwLabRec
aRec
;
SwLabRec
aRec
;
aRec
.
lHDist
=
static_cast
<
long
>
(
GETFLDVAL
(
aHDistField
));
aRec
.
lHDist
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_pHDistField
));
aRec
.
lVDist
=
static_cast
<
long
>
(
GETFLDVAL
(
a
VDistField
));
aRec
.
lVDist
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
VDistField
));
aRec
.
lWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
a
WidthField
));
aRec
.
lWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
WidthField
));
aRec
.
lHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
a
HeightField
));
aRec
.
lHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
HeightField
));
aRec
.
lLeft
=
static_cast
<
long
>
(
GETFLDVAL
(
a
LeftField
));
aRec
.
lLeft
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
LeftField
));
aRec
.
lUpper
=
static_cast
<
long
>
(
GETFLDVAL
(
a
UpperField
));
aRec
.
lUpper
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
UpperField
));
aRec
.
nCols
=
(
sal_uInt16
)
aColsField
.
GetValue
();
aRec
.
nCols
=
(
sal_uInt16
)
m_pColsField
->
GetValue
();
aRec
.
nRows
=
(
sal_uInt16
)
aRowsField
.
GetValue
();
aRec
.
nRows
=
(
sal_uInt16
)
m_pRowsField
->
GetValue
();
aRec
.
lPWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
a
PWidthField
));
aRec
.
lPWidth
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
PWidthField
));
aRec
.
lPHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
a
PHeightField
));
aRec
.
lPHeight
=
static_cast
<
long
>
(
GETFLDVAL
(
*
m_p
PHeightField
));
aRec
.
bCont
=
aItem
.
bCont
;
aRec
.
bCont
=
aItem
.
bCont
;
SwSaveLabelDlg
*
pSaveDlg
=
new
SwSaveLabelDlg
(
this
,
aRec
);
SwSaveLabelDlg
*
pSaveDlg
=
new
SwSaveLabelDlg
(
this
,
aRec
);
pSaveDlg
->
SetLabel
(
aItem
.
aLstMake
,
aItem
.
aLstType
);
pSaveDlg
->
SetLabel
(
aItem
.
aLstMake
,
aItem
.
aLstType
);
...
@@ -582,8 +574,8 @@ IMPL_LINK_NOARG(SwLabFmtPage, SaveHdl)
...
@@ -582,8 +574,8 @@ IMPL_LINK_NOARG(SwLabFmtPage, SaveHdl)
{
{
rMakes
=
rMan
;
rMakes
=
rMan
;
}
}
aMakeFI
.
SetText
(
aItem
.
aMake
);
m_pMakeFI
->
SetText
(
aItem
.
aMake
);
aTypeFI
.
SetText
(
aItem
.
aType
);
m_pTypeFI
->
SetText
(
aItem
.
aType
);
}
}
delete
pSaveDlg
;
delete
pSaveDlg
;
return
0
;
return
0
;
...
...
sw/source/ui/envelp/labfmt.hrc
Dosyayı görüntüle @
05dab8ae
...
@@ -22,34 +22,6 @@
...
@@ -22,34 +22,6 @@
#include "envelp.hrc"
#include "envelp.hrc"
// local resources *********************************************************
#define WIN_PREVIEW 1
#define TXT_HDIST 2
#define FLD_HDIST 3
#define TXT_VDIST 4
#define FLD_VDIST 5
#define TXT_WIDTH 6
#define FLD_WIDTH 7
#define TXT_HEIGHT 8
#define FLD_HEIGHT 9
#define TXT_LEFT 10
#define FLD_LEFT 11
#define TXT_UPPER 12
#define FLD_UPPER 13
#define TXT_COLUMNS 14
#define FLD_COLUMNS 15
#define TXT_ROWS 16
#define FLD_ROWS 17
#define TXT_PWIDTH 18
#define FLD_PWIDTH 19
#define TXT_PHEIGHT 20
#define FLD_PHEIGHT 21
#define FL_NONAME 22
#define PB_SAVE 23
#define FI_MAKE 24
#define FI_TYPE 25
// global resources ********************************************************
// global resources ********************************************************
#define STR_HDIST (RC_LABFMT_BEGIN + 1)
#define STR_HDIST (RC_LABFMT_BEGIN + 1)
...
...
sw/source/ui/envelp/labfmt.hxx
Dosyayı görüntüle @
05dab8ae
...
@@ -28,11 +28,6 @@ class SwLabFmtPage;
...
@@ -28,11 +28,6 @@ class SwLabFmtPage;
class
SwLabPreview
:
public
Window
class
SwLabPreview
:
public
Window
{
{
long
lOutWPix
;
long
lOutHPix
;
long
lOutWPix23
;
long
lOutHPix23
;
Color
aGrayColor
;
Color
aGrayColor
;
String
aHDistStr
;
String
aHDistStr
;
...
@@ -60,51 +55,37 @@ class SwLabPreview : public Window
...
@@ -60,51 +55,37 @@ class SwLabPreview : public Window
SwLabItem
aItem
;
SwLabItem
aItem
;
void
Paint
(
const
Rectangle
&
);
virtual
void
Paint
(
const
Rectangle
&
);
void
DrawArrow
(
const
Point
&
rP1
,
const
Point
&
rP2
,
bool
bArrow
);
using
Window
::
GetParent
;
virtual
Size
GetOptimalSize
()
const
;
SwLabFmtPage
*
GetParent
()
{
return
(
SwLabFmtPage
*
)
Window
::
GetParent
();}
using
Window
::
Update
;
void
DrawArrow
(
const
Point
&
rP1
,
const
Point
&
rP2
,
bool
bArrow
)
;
public
:
public
:
SwLabPreview
(
const
SwLabFmtPage
*
pParent
,
const
ResId
&
rResID
);
SwLabPreview
(
Window
*
pParent
);
~
SwLabPreview
();
void
Update
(
const
SwLabItem
&
rItem
);
void
Update
Item
(
const
SwLabItem
&
rItem
);
};
};
// class SwLabFmtPage -------------------------------------------------------
// class SwLabFmtPage -------------------------------------------------------
class
SwLabFmtPage
:
public
SfxTabPage
class
SwLabFmtPage
:
public
SfxTabPage
{
{
FixedInfo
aMakeFI
;
FixedText
*
m_pMakeFI
;
FixedInfo
aTypeFI
;
FixedText
*
m_pTypeFI
;
SwLabPreview
aPreview
;
SwLabPreview
*
m_pPreview
;
FixedText
aHDistText
;
MetricField
*
m_pHDistField
;
MetricField
aHDistField
;
MetricField
*
m_pVDistField
;
FixedText
aVDistText
;
MetricField
*
m_pWidthField
;
MetricField
aVDistField
;
MetricField
*
m_pHeightField
;
FixedText
aWidthText
;
MetricField
*
m_pLeftField
;
MetricField
aWidthField
;
MetricField
*
m_pUpperField
;
FixedText
aHeightText
;
NumericField
*
m_pColsField
;
MetricField
aHeightField
;
NumericField
*
m_pRowsField
;
FixedText
aLeftText
;
MetricField
*
m_pPWidthField
;
MetricField
aLeftField
;
MetricField
*
m_pPHeightField
;
FixedText
aUpperText
;
PushButton
*
m_pSavePB
;
MetricField
aUpperField
;
FixedText
aColsText
;
NumericField
aColsField
;
FixedText
aRowsText
;
NumericField
aRowsField
;
FixedText
aPWidthText
;
MetricField
aPWidthField
;
FixedText
aPHeightText
;
MetricField
aPHeightField
;
PushButton
aSavePB
;
Timer
aPreviewTimer
;
Timer
aPreviewTimer
;
bool
bModified
;
bool
bModified
;
...
...
sw/source/ui/envelp/labfmt.src
Dosyayı görüntüle @
05dab8ae
...
@@ -19,250 +19,7 @@
...
@@ -19,250 +19,7 @@
#include "labfmt.hrc"
#include "labfmt.hrc"
#include "helpid.h"
#include "helpid.h"
// TP_LAB_FMT ---------------------------------------------------------------
TabPage TP_LAB_FMT
{
HelpID = HID_LAB_FMT ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
FixedText FI_MAKE
{
Pos = MAP_APPFONT ( 108 , 6 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
};
FixedText FI_TYPE
{
Pos = MAP_APPFONT ( 162 , 6 ) ;
Size = MAP_APPFONT ( 92 , 8 ) ;
};
Window WIN_PREVIEW
{
Border = TRUE ;
Pos = MAP_APPFONT ( 108 , 17 ) ;
Size = MAP_APPFONT ( 146 , 161 ) ;
};
FixedText TXT_HDIST
{
Pos = MAP_APPFONT ( 6 , 6 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "Hori~zontal pitch" ;
Group = TRUE ;
Left = TRUE ;
};
MetricField FLD_HDIST
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_HDIST";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 4 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
SpinSize = 10 ;
};
FixedText TXT_VDIST
{
Pos = MAP_APPFONT ( 6 , 22 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "~Vertical pitch" ;
Left = TRUE ;
};
MetricField FLD_VDIST
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_VDIST";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 20 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
SpinSize = 10 ;
};
FixedText TXT_WIDTH
{
Pos = MAP_APPFONT ( 6 , 38 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "~Width" ;
Left = TRUE ;
};
MetricField FLD_WIDTH
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_WIDTH";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 36 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
SpinSize = 10 ;
};
FixedText TXT_HEIGHT
{
Pos = MAP_APPFONT ( 6 , 54 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "~Height" ;
Left = TRUE ;
};
MetricField FLD_HEIGHT
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_HEIGHT";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 52 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
SpinSize = 10 ;
};
FixedText TXT_LEFT
{
Pos = MAP_APPFONT ( 6 , 70 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "~Left margin" ;
Left = TRUE ;
};
MetricField FLD_LEFT
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_LEFT";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 68 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
Minimum = 0 ;
First = 0 ;
SpinSize = 10 ;
};
FixedText TXT_UPPER
{
Pos = MAP_APPFONT ( 6 , 86 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "~Top margin" ;
Left = TRUE ;
};
MetricField FLD_UPPER
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_UPPER";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 84 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
Minimum = 0 ;
First = 0 ;
SpinSize = 10 ;
};
FixedText TXT_COLUMNS
{
Pos = MAP_APPFONT ( 6 , 102 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "~Columns" ;
Left = TRUE ;
};
NumericField FLD_COLUMNS
{
HelpID = "sw:NumericField:TP_LAB_FMT:FLD_COLUMNS";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 100 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 1 ;
First = 1 ;
};
FixedText TXT_ROWS
{
Pos = MAP_APPFONT ( 6 , 118 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "R~ows" ;
Left = TRUE ;
};
NumericField FLD_ROWS
{
HelpID = "sw:NumericField:TP_LAB_FMT:FLD_ROWS";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 116 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 1 ;
First = 1 ;
};
FixedText TXT_PWIDTH
{
Pos = MAP_APPFONT ( 6 , 134 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "P~age Width" ;
Left = TRUE ;
};
MetricField FLD_PWIDTH
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_PWIDTH";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 132 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
SpinSize = 10 ;
};
FixedText TXT_PHEIGHT
{
Pos = MAP_APPFONT ( 6 , 150 ) ;
Size = MAP_APPFONT ( 50 , 8 ) ;
Text [ en-US ] = "Pa~ge Height" ;
Left = TRUE ;
};
MetricField FLD_PHEIGHT
{
HelpID = "sw:MetricField:TP_LAB_FMT:FLD_PHEIGHT";
Border = TRUE ;
Pos = MAP_APPFONT ( 60 , 148 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Left = TRUE ;
Spin = TRUE ;
DecimalDigits = 2 ;
Unit = FUNIT_CM ;
Repeat = TRUE ;
SpinSize = 10 ;
};
PushButton PB_SAVE
{
HelpID = "sw:PushButton:TP_LAB_FMT:PB_SAVE";
Pos = MAP_APPFONT ( 50 , 167 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Save...";
};
};
// String *******************************************************************
String STR_HDIST
String STR_HDIST
{
{
Text [ en-US ] = "H. Pitch" ;
Text [ en-US ] = "H. Pitch" ;
...
...
sw/uiconfig/swriter/ui/labelformatpage.ui
0 → 100644
Dosyayı görüntüle @
05dab8ae
<?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"
>
1
</property>
<property
name=
"upper"
>
100
</property>
<property
name=
"value"
>
1
</property>
<property
name=
"step_increment"
>
1
</property>
<property
name=
"page_increment"
>
10
</property>
</object>
<object
class=
"GtkBox"
id=
"LabelFormatPage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkGrid"
id=
"grid1"
>
<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=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Hori_zontal pitch
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
hori: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>
<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"
>
_Vertical pitch
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
vert: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=
"label3"
>
<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"
>
2
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label4"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_Height
</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"
>
3
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label5"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_Left margin
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
left:0.00cm
</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>
<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"
>
_Top margin
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
top:0.00cm
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
5
</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"
>
_Columns
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
cols
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
6
</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=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
R_ows
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
rows
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
7
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label9"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
P_age Width
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
pagewidth:0.00cm
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
8
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label10"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Pa_ge Height
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
pageheight:0.00cm
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
9
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"save"
>
<property
name=
"label"
translatable=
"yes"
>
_Save...
</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=
"use_underline"
>
True
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
10
</property>
<property
name=
"width"
>
2
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"hori:0.00cm"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</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=
"GtkSpinButton"
id=
"vert: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=
"digits"
>
2
</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>
<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=
"digits"
>
2
</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=
"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=
"digits"
>
2
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
3
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"left: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=
"digits"
>
2
</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>
<child>
<object
class=
"GtkSpinButton"
id=
"top: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=
"digits"
>
2
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
5
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"cols"
>
<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>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
6
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"rows"
>
<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>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
7
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"pagewidth: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=
"digits"
>
2
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
8
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"pageheight: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=
"digits"
>
2
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
9
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkGrid"
id=
"grid2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"swuilo-SwLabPreview"
id=
"preview"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
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=
"GtkLabel"
id=
"make"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
top: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>
<child>
<object
class=
"GtkLabel"
id=
"type"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
top:0.00cm
</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>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</interface>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment