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
1c67b7f3
Kaydet (Commit)
1c67b7f3
authored
Nis 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix crash on export of novell606043-1.odt to doc
Change-Id: I91478cf0a9b128f96dab5be67d018af46d75bd4f
üst
bbfe124b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
21 deletions
+26
-21
wrtw8esh.cxx
sw/source/filter/ww8/wrtw8esh.cxx
+26
-21
No files found.
sw/source/filter/ww8/wrtw8esh.cxx
Dosyayı görüntüle @
1c67b7f3
...
...
@@ -367,30 +367,35 @@ bool WW8Export::MiserableFormFieldExportHack(const SwFrmFmt& rFrmFmt)
OSL_ENSURE
(
bWrtWW8
,
"Not allowed"
);
if
(
!
bWrtWW8
)
return
false
;
bool
bHack
=
false
;
const
SdrObject
*
pObject
=
rFrmFmt
.
FindRealSdrObject
();
if
(
pObject
&&
pObject
->
GetObjInventor
()
==
FmFormInventor
)
if
(
!
pObject
||
pObject
->
GetObjInventor
()
!=
FmFormInventor
)
return
false
;
const
SdrUnoObj
*
pFormObj
=
PTR_CAST
(
SdrUnoObj
,
pObject
);
if
(
!
pFormObj
)
return
false
;
uno
::
Reference
<
awt
::
XControlModel
>
xControlModel
=
pFormObj
->
GetUnoControlModel
();
uno
::
Reference
<
lang
::
XServiceInfo
>
xInfo
(
xControlModel
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xControlModel
,
uno
::
UNO_QUERY
);
if
(
!
xInfo
.
is
())
return
false
;
if
(
xInfo
->
supportsService
(
"com.sun.star.form.component.ComboBox"
))
{
if
(
const
SdrUnoObj
*
pFormObj
=
PTR_CAST
(
SdrUnoObj
,
pObject
))
{
uno
::
Reference
<
awt
::
XControlModel
>
xControlModel
=
pFormObj
->
GetUnoControlModel
();
uno
::
Reference
<
lang
::
XServiceInfo
>
xInfo
(
xControlModel
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xControlModel
,
uno
::
UNO_QUERY
);
if
(
xInfo
->
supportsService
(
"com.sun.star.form.component.ComboBox"
))
{
DoComboBox
(
xPropSet
);
bHack
=
true
;
}
else
if
(
xInfo
->
supportsService
(
"com.sun.star.form.component.CheckBox"
))
{
DoCheckBox
(
xPropSet
);
bHack
=
true
;
}
}
DoComboBox
(
xPropSet
);
return
true
;
}
return
bHack
;
if
(
xInfo
->
supportsService
(
"com.sun.star.form.component.CheckBox"
))
{
DoCheckBox
(
xPropSet
);
return
true
;
}
return
false
;
}
void
WW8Export
::
DoComboBox
(
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
)
...
...
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