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
c61e3c94
Kaydet (Commit)
c61e3c94
authored
Tem 15, 2012
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#47947 Data Form dialog layout fix
Change-Id: Ifa1689ff9be7afa14f5694825c506f7c8c3eff43
üst
8d0c1804
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
31 deletions
+35
-31
datafdlg.hxx
sc/source/ui/inc/datafdlg.hxx
+7
-6
datafdlg.cxx
sc/source/ui/miscdlgs/datafdlg.cxx
+11
-6
datafdlg.src
sc/source/ui/src/datafdlg.src
+17
-19
No files found.
sc/source/ui/inc/datafdlg.hxx
Dosyayı görüntüle @
c61e3c94
...
@@ -43,12 +43,13 @@
...
@@ -43,12 +43,13 @@
#define MAX_DATAFORM_COLS 256
#define MAX_DATAFORM_COLS 256
#define MAX_DATAFORM_ROWS 32000
#define MAX_DATAFORM_ROWS 32000
#define CTRL_HEIGHT 22
#define FIXED_WIDTH 54
#define FIXED_WIDTH 60
#define EDIT_WIDTH 86
#define EDIT_WIDTH 140
#define FIXED_HEIGHT 10
#define FIXED_LEFT 12
#define EDIT_HEIGHT 12
#define EDIT_LEFT 78
#define FIXED_LEFT 6
#define LINE_HEIGHT 30
#define EDIT_LEFT 62
#define LINE_HEIGHT 16
//zhangyun
//zhangyun
class
ScDataFormDlg
:
public
ModalDialog
class
ScDataFormDlg
:
public
ModalDialog
...
...
sc/source/ui/miscdlgs/datafdlg.cxx
Dosyayı görüntüle @
c61e3c94
...
@@ -163,10 +163,15 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri
...
@@ -163,10 +163,15 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri
String
aFieldName
;
String
aFieldName
;
int
nTop
=
12
;
//align with LAB_DATAFORM_RECORDNO
int
nTop
=
LogicToPixel
(
Size
(
1
,
6
),
MapMode
(
MAP_APPFONT
)
).
getHeight
();
const
int
nOne
=
LogicToPixel
(
Size
(
1
,
1
),
MapMode
(
MAP_APPFONT
)
).
getHeight
();
const
int
nLineHeight
=
LogicToPixel
(
Size
(
1
,
LINE_HEIGHT
),
MapMode
(
MAP_APPFONT
)
).
getHeight
();
const
int
nFixedLeft
=
LogicToPixel
(
Size
(
FIXED_LEFT
,
1
),
MapMode
(
MAP_APPFONT
)
).
getWidth
();
const
int
nEditLeft
=
LogicToPixel
(
Size
(
EDIT_LEFT
,
1
),
MapMode
(
MAP_APPFONT
)
).
getWidth
();
Size
nFixedSize
(
FIXED_WIDTH
,
CTRL_HEIGHT
);
Size
nFixedSize
(
LogicToPixel
(
Size
(
FIXED_WIDTH
,
FIXED_HEIGHT
),
MapMode
(
MAP_APPFONT
)
)
);
Size
nEditSize
(
EDIT_WIDTH
,
CTRL_HEIGHT
);
Size
nEditSize
(
LogicToPixel
(
Size
(
EDIT_WIDTH
,
EDIT_HEIGHT
),
MapMode
(
MAP_APPFONT
)
)
);
aColLength
=
nEndCol
-
nStartCol
+
1
;
aColLength
=
nEndCol
-
nStartCol
+
1
;
...
@@ -185,13 +190,13 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri
...
@@ -185,13 +190,13 @@ ScDataFormDlg::ScDataFormDlg( Window* pParent, ScTabViewShell* pTabViewShellOri
maFixedTexts
[
nIndex
].
SetSizePixel
(
nFixedSize
);
maFixedTexts
[
nIndex
].
SetSizePixel
(
nFixedSize
);
maEdits
[
nIndex
].
SetSizePixel
(
nEditSize
);
maEdits
[
nIndex
].
SetSizePixel
(
nEditSize
);
maFixedTexts
[
nIndex
].
SetPosPixel
(
Point
(
FIXED_LEFT
,
nTop
));
maFixedTexts
[
nIndex
].
SetPosPixel
(
Point
(
nFixedLeft
,
nTop
+
nOne
));
maEdits
[
nIndex
].
SetPosPixel
(
Point
(
EDIT_LEFT
,
nTop
));
maEdits
[
nIndex
].
SetPosPixel
(
Point
(
nEditLeft
,
nTop
));
maFixedTexts
[
nIndex
].
SetText
(
aFieldName
);
maFixedTexts
[
nIndex
].
SetText
(
aFieldName
);
maFixedTexts
[
nIndex
].
Show
();
maFixedTexts
[
nIndex
].
Show
();
maEdits
[
nIndex
].
Show
();
maEdits
[
nIndex
].
Show
();
nTop
+=
LINE_HEIGHT
;
nTop
+=
nLineHeight
;
}
}
else
else
{
{
...
...
sc/source/ui/src/datafdlg.src
Dosyayı görüntüle @
c61e3c94
...
@@ -26,67 +26,66 @@
...
@@ -26,67 +26,66 @@
*/
*/
#include "datafdlg.hrc"
#include "datafdlg.hrc"
//zhangyun, dataform
ModalDialog RID_SCDLG_DATAFORM
ModalDialog RID_SCDLG_DATAFORM
{
{
OutputSize = TRUE ;
OutputSize = TRUE ;
SVLook = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT (
191
, 180 ) ;
Size = MAP_APPFONT (
257
, 180 ) ;
Text [ en-US ] = "Data Form" ;
Text [ en-US ] = "Data Form" ;
Moveable = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Closeable = TRUE ;
FixedText LAB_DATAFORM_RECORDNO
FixedText LAB_DATAFORM_RECORDNO
{
{
Pos = MAP_APPFONT ( 1
36
, 6 ) ;
Pos = MAP_APPFONT ( 1
62
, 6 ) ;
Size = MAP_APPFONT (
5
0 , 12 ) ;
Size = MAP_APPFONT (
6
0 , 12 ) ;
Text
[ en-US ] = "/" ;
Text
= "/" ; //placeholder only
};
};
PushButton BTN_DATAFORM_NEW
PushButton BTN_DATAFORM_NEW
{
{
Pos = MAP_APPFONT ( 1
35
, 23 ) ;
Pos = MAP_APPFONT ( 1
61
, 23 ) ;
Size = MAP_APPFONT (
5
0 , 14 ) ;
Size = MAP_APPFONT (
9
0 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
DefButton = TRUE ;
DefButton = TRUE ;
Text [ en-US ] = "New" ;
Text [ en-US ] = "New" ;
};
};
PushButton BTN_DATAFORM_DELETE
PushButton BTN_DATAFORM_DELETE
{
{
Pos = MAP_APPFONT ( 1
35
, 40 ) ;
Pos = MAP_APPFONT ( 1
61
, 40 ) ;
Size = MAP_APPFONT (
5
0 , 14 ) ;
Size = MAP_APPFONT (
9
0 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
Text [ en-US ] = "Delete" ;
Text [ en-US ] = "Delete" ;
};
};
PushButton BTN_DATAFORM_RESTORE
PushButton BTN_DATAFORM_RESTORE
{
{
Pos = MAP_APPFONT ( 1
35
, 57 ) ;
Pos = MAP_APPFONT ( 1
61
, 57 ) ;
Size = MAP_APPFONT (
5
0 , 14 ) ;
Size = MAP_APPFONT (
9
0 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
Text [ en-US ] = "Restore" ;
Text [ en-US ] = "Restore" ;
};
};
PushButton BTN_DATAFORM_PREV
PushButton BTN_DATAFORM_PREV
{
{
Pos = MAP_APPFONT ( 1
35
, 82 ) ;
Pos = MAP_APPFONT ( 1
61
, 82 ) ;
Size = MAP_APPFONT (
5
0 , 14 ) ;
Size = MAP_APPFONT (
9
0 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
Text [ en-US ] = "Previous Record" ;
Text [ en-US ] = "Previous Record" ;
};
};
PushButton BTN_DATAFORM_NEXT
PushButton BTN_DATAFORM_NEXT
{
{
Pos = MAP_APPFONT ( 1
35
, 99 ) ;
Pos = MAP_APPFONT ( 1
61
, 99 ) ;
Size = MAP_APPFONT (
5
0 , 14 ) ;
Size = MAP_APPFONT (
9
0 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
Text [ en-US ] = "Next Record" ;
Text [ en-US ] = "Next Record" ;
};
};
PushButton BTN_DATAFORM_CLOSE
PushButton BTN_DATAFORM_CLOSE
{
{
Pos = MAP_APPFONT ( 1
35
, 116 ) ;
Pos = MAP_APPFONT ( 1
61
, 116 ) ;
Size = MAP_APPFONT (
5
0 , 14 ) ;
Size = MAP_APPFONT (
9
0 , 14 ) ;
TabStop = TRUE ;
TabStop = TRUE ;
Text [ en-US ] = "Close" ;
Text [ en-US ] = "Close" ;
};
};
ScrollBar WND_DATAFORM_SCROLLBAR
ScrollBar WND_DATAFORM_SCROLLBAR
{
{
Pos = MAP_APPFONT ( 1
24
, 6 ) ;
Pos = MAP_APPFONT ( 1
50
, 6 ) ;
Size = MAP_APPFONT ( 8 , 135 ) ;
Size = MAP_APPFONT ( 8 , 135 ) ;
HScroll = FALSE ;
HScroll = FALSE ;
TabStop = FALSE ;
TabStop = FALSE ;
...
@@ -96,4 +95,3 @@ ModalDialog RID_SCDLG_DATAFORM
...
@@ -96,4 +95,3 @@ ModalDialog RID_SCDLG_DATAFORM
Text [ en-US ] = "New Record" ;
Text [ en-US ] = "New Record" ;
};
};
};
};
//end
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