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
04688482
Kaydet (Commit)
04688482
authored
Eki 05, 2011
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add hackery re. EditControls, FormattedField & ImageControls from msocximex
üst
52d60647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
olehelper.cxx
oox/source/ole/olehelper.cxx
+26
-2
No files found.
oox/source/ole/olehelper.cxx
Dosyayı görüntüle @
04688482
...
...
@@ -138,6 +138,7 @@ struct IdCntrlData
};
const
sal_Int16
TOGGLEBUTTON
=
-
1
;
const
sal_Int16
FIELDCONTROL
=
-
2
;
typedef
std
::
map
<
sal_Int16
,
GUIDCNamePair
>
GUIDCNamePairMap
;
class
classIdToGUIDCNamePairMap
...
...
@@ -196,6 +197,9 @@ classIdToGUIDCNamePairMap::classIdToGUIDCNamePairMap()
{
FormComponentType
::
PATTERNFIELD
,
{
AX_GUID_TEXTBOX
,
"TextBox"
},
},
{
FormComponentType
::
FORMULAFIELD
,
{
AX_GUID_TEXTBOX
,
"TextBox"
},
},
{
FormComponentType
::
IMAGEBUTTON
,
{
AX_GUID_COMMANDBUTTON
,
"CommandButton"
},
},
...
...
@@ -501,14 +505,34 @@ OleFormCtrlExportHelper::OleFormCtrlExportHelper( const Reference< XComponentCo
PropertySet
aPropSet
(
mxControlModel
);
if
(
aPropSet
.
getProperty
(
nClassId
,
PROP_ClassId
)
)
{
// psuedo ripped from legacy msocximex
if
(
nClassId
==
FormComponentType
::
COMMANDBUTTON
)
/* psuedo ripped from legacy msocximex:
"There is a truly horrible thing with EditControls and FormattedField
Controls, they both pretend to have an EDITBOX ClassId for compability
reasons, at some stage in the future hopefully there will be a proper
FormulaField ClassId rather than this piggybacking two controls onto the
same ClassId, cmc."
*/
if
(
nClassId
==
FormComponentType
::
TEXTFIELD
)
{
if
(
xInfo
->
supportsService
(
CREATE_OUSTRING
(
"com.sun.star.form.component.FormattedField"
)
)
)
nClassId
=
FormComponentType
::
FORMULAFIELD
;
}
else
if
(
nClassId
==
FormComponentType
::
COMMANDBUTTON
)
{
bool
bToggle
=
false
;
aPropSet
.
getProperty
(
bToggle
,
PROP_Toggle
);
if
(
bToggle
)
nClassId
=
TOGGLEBUTTON
;
}
else
if
(
nClassId
==
FormComponentType
::
CONTROL
)
{
Reference
<
XServiceInfo
>
xInfo
(
xCntrlModel
,
UNO_QUERY
);
if
(
xInfo
->
supportsService
(
OUString
(
CREATE_OUSTRING
(
"com.sun.star.form.component.ImageControl"
)
)
)
)
nClassId
=
FormComponentType
::
IMAGECONTROL
;
}
GUIDCNamePairMap
&
cntrlMap
=
classIdToGUIDCNamePairMap
::
get
();
GUIDCNamePairMap
::
iterator
it
=
cntrlMap
.
find
(
nClassId
);
...
...
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