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
a84fca9a
Kaydet (Commit)
a84fca9a
authored
Haz 12, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
set mnemonic widget and replace 24 with optimal height request
Change-Id: I86bb00f134aaf95a48ac0a5d594c632d03f0e9d5
üst
c165b1d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
mmaddressblockpage.cxx
sw/source/ui/dbui/mmaddressblockpage.cxx
+18
-5
No files found.
sw/source/ui/dbui/mmaddressblockpage.cxx
Dosyayı görüntüle @
a84fca9a
...
@@ -906,17 +906,25 @@ void SwAssignFieldsControl::Init(SwMailMergeConfigItem& rConfigItem)
...
@@ -906,17 +906,25 @@ void SwAssignFieldsControl::Init(SwMailMergeConfigItem& rConfigItem)
//fill the controls
//fill the controls
long
nControlWidth
=
aOutputSize
.
Width
()
/
3
;
long
nControlWidth
=
aOutputSize
.
Width
()
/
3
;
long
nControlHeight
=
24
;
long
nControlHeight
=
-
1
;
for
(
sal_uInt32
i
=
0
;
i
<
rHeaders
.
Count
();
++
i
)
for
(
sal_uInt32
i
=
0
;
i
<
rHeaders
.
Count
();
++
i
)
{
{
const
OUString
rHeader
=
rHeaders
.
GetString
(
i
);
const
OUString
rHeader
=
rHeaders
.
GetString
(
i
);
FixedText
*
pNewText
=
new
FixedText
(
&
m_aWindow
,
WB_VCENTER
);
FixedText
*
pNewText
=
new
FixedText
(
&
m_aWindow
,
WB_VCENTER
);
pNewText
->
SetText
(
"<"
+
rHeader
+
">"
);
pNewText
->
SetText
(
"<"
+
rHeader
+
">"
);
ListBox
*
pNewLB
=
new
ListBox
(
&
m_aWindow
,
WB_DROPDOWN
|
WB_VCENTER
|
WB_TABSTOP
);
ListBox
*
pNewLB
=
new
ListBox
(
&
m_aWindow
,
WB_DROPDOWN
|
WB_VCENTER
|
WB_TABSTOP
);
pNewText
->
set_mnemonic_widget
(
pNewLB
);
pNewLB
->
InsertEntry
(
SW_RESSTR
(
SW_STR_NONE
));
pNewLB
->
InsertEntry
(
SW_RESSTR
(
SW_STR_NONE
));
pNewLB
->
SetHelpId
(
aHIDs
[
i
]
);
pNewLB
->
SetHelpId
(
aHIDs
[
i
]
);
pNewLB
->
SelectEntryPos
(
0
);
pNewLB
->
SelectEntryPos
(
0
);
pNewLB
->
SetDropDownLineCount
(
5
);
pNewLB
->
SetDropDownLineCount
(
5
);
if
(
nControlHeight
==
-
1
)
//first time
{
nControlHeight
=
std
::
max
(
pNewLB
->
get_preferred_size
().
Height
(),
pNewText
->
get_preferred_size
().
Height
());
}
for
(
sal_Int32
nField
=
0
;
nField
<
aFields
.
getLength
();
++
nField
)
for
(
sal_Int32
nField
=
0
;
nField
<
aFields
.
getLength
();
++
nField
)
pNewLB
->
InsertEntry
(
pFields
[
nField
]);
pNewLB
->
InsertEntry
(
pFields
[
nField
]);
FixedText
*
pNewPreview
=
new
FixedText
(
&
m_aWindow
,
WB_VCENTER
);
FixedText
*
pNewPreview
=
new
FixedText
(
&
m_aWindow
,
WB_VCENTER
);
...
@@ -997,7 +1005,6 @@ void SwAssignFieldsControl::Resize()
...
@@ -997,7 +1005,6 @@ void SwAssignFieldsControl::Resize()
Size
aOutputSize
=
GetOutputSize
();
Size
aOutputSize
=
GetOutputSize
();
long
nHBHeight
=
m_aHeaderHB
.
CalcWindowSizePixel
().
Height
();
long
nHBHeight
=
m_aHeaderHB
.
CalcWindowSizePixel
().
Height
();
long
nControlHeight
=
24
;
m_aWindow
.
SetSizePixel
(
Size
(
aOutputSize
.
Width
()
-
m_aVScroll
.
GetSizePixel
().
Width
(),
aOutputSize
.
Height
()
-
nHBHeight
));
m_aWindow
.
SetSizePixel
(
Size
(
aOutputSize
.
Width
()
-
m_aVScroll
.
GetSizePixel
().
Width
(),
aOutputSize
.
Height
()
-
nHBHeight
));
...
@@ -1010,9 +1017,15 @@ void SwAssignFieldsControl::Resize()
...
@@ -1010,9 +1017,15 @@ void SwAssignFieldsControl::Resize()
sal_Int32
nColWidth
=
aOutputSize
.
Width
()
/
3
;
sal_Int32
nColWidth
=
aOutputSize
.
Width
()
/
3
;
m_aHeaderHB
.
SetSizePixel
(
Size
(
aOutputSize
.
Width
(),
nHBHeight
));
m_aHeaderHB
.
SetSizePixel
(
Size
(
aOutputSize
.
Width
(),
nHBHeight
));
m_aHeaderHB
.
SetItemSize
(
1
,
nColWidth
);
m_aHeaderHB
.
SetItemSize
(
1
,
nColWidth
);
m_aHeaderHB
.
SetItemSize
(
2
,
nColWidth
);
m_aHeaderHB
.
SetItemSize
(
2
,
nColWidth
);
m_aHeaderHB
.
SetItemSize
(
3
,
nColWidth
);
m_aHeaderHB
.
SetItemSize
(
3
,
nColWidth
);
if
(
m_aFieldNames
.
empty
()
||
m_aMatches
.
empty
())
return
;
long
nControlHeight
=
std
::
max
(
m_aFieldNames
[
0
]
->
get_preferred_size
().
Height
(),
m_aMatches
[
0
]
->
get_preferred_size
().
Height
());
::
std
::
vector
<
FixedText
*>::
iterator
aFIIter
;
::
std
::
vector
<
FixedText
*>::
iterator
aFIIter
;
for
(
aFIIter
=
m_aFieldNames
.
begin
();
aFIIter
!=
m_aFieldNames
.
end
();
++
aFIIter
)
for
(
aFIIter
=
m_aFieldNames
.
begin
();
aFIIter
!=
m_aFieldNames
.
end
();
++
aFIIter
)
...
...
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