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
fb43bca9
Kaydet (Commit)
fb43bca9
authored
Nis 25, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make GetObjectByIndex_Impl consistent.
üst
a863285a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
fielduno.hxx
sc/inc/fielduno.hxx
+3
-1
fielduno.cxx
sc/source/ui/unoobj/fielduno.cxx
+15
-13
No files found.
sc/inc/fielduno.hxx
Dosyayı görüntüle @
fb43bca9
...
...
@@ -146,7 +146,9 @@ private:
/// mutex to lock the InterfaceContainerHelper
osl
::
Mutex
aMutex
;
ScEditFieldObj
*
GetObjectByIndex_Impl
(
sal_Int32
Index
)
const
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
text
::
XTextField
>
GetObjectByIndex_Impl
(
sal_Int32
Index
)
const
;
public
:
ScHeaderFieldsObj
(
ScHeaderFooterTextData
&
rData
);
...
...
sc/source/ui/unoobj/fielduno.cxx
Dosyayı görüntüle @
fb43bca9
...
...
@@ -293,18 +293,17 @@ uno::Reference<text::XTextField> ScCellFieldsObj::GetObjectByIndex_Impl(sal_Int3
//! Feld-Funktionen muessen an den Forwarder !!!
ScEditEngineDefaulter
*
pEditEngine
=
mpEditSource
->
GetEditEngine
();
ScUnoEditEngine
aTempEngine
(
pEditEngine
);
SvxFieldData
*
pData
=
aTempEngine
.
FindByIndex
(
static_cast
<
sal_uInt16
>
(
Index
),
0
);
if
(
!
pData
)
return
uno
::
Reference
<
text
::
XTextField
>
();
if
(
aTempEngine
.
FindByIndex
(
(
sal_uInt16
)
Index
,
NULL
)
)
// in der Zelle ist der Typ egal
{
sal_uInt16
nPar
=
aTempEngine
.
GetFieldPar
();
xub_StrLen
nPos
=
aTempEngine
.
GetFieldPos
();
ESelection
aSelection
(
nPar
,
nPos
,
nPar
,
nPos
+
1
);
// Feld ist 1 Zeichen
uno
::
Reference
<
text
::
XTextRange
>
xContent
(
new
ScCellObj
(
pDocShell
,
aCellPos
));
uno
::
Reference
<
text
::
XTextField
>
xRet
(
new
ScEditFieldObj
(
xContent
,
new
ScCellEditSource
(
pDocShell
,
aCellPos
),
ScEditFieldObj
::
URL
,
aSelection
));
return
xRet
;
}
return
uno
::
Reference
<
text
::
XTextField
>
();
sal_uInt16
nPar
=
aTempEngine
.
GetFieldPar
();
xub_StrLen
nPos
=
aTempEngine
.
GetFieldPos
();
ESelection
aSelection
(
nPar
,
nPos
,
nPar
,
nPos
+
1
);
// Feld ist 1 Zeichen
uno
::
Reference
<
text
::
XTextRange
>
xContent
(
new
ScCellObj
(
pDocShell
,
aCellPos
));
uno
::
Reference
<
text
::
XTextField
>
xRet
(
new
ScEditFieldObj
(
xContent
,
new
ScCellEditSource
(
pDocShell
,
aCellPos
),
ScEditFieldObj
::
URL
,
aSelection
));
return
xRet
;
}
sal_Int32
SAL_CALL
ScCellFieldsObj
::
getCount
()
throw
(
uno
::
RuntimeException
)
...
...
@@ -489,7 +488,7 @@ ScEditFieldObj::FieldType getFieldType(sal_uInt16 nOldType)
}
ScEditFieldObj
*
ScHeaderFieldsObj
::
GetObjectByIndex_Impl
(
sal_Int32
Index
)
const
uno
::
Reference
<
text
::
XTextField
>
ScHeaderFieldsObj
::
GetObjectByIndex_Impl
(
sal_Int32
Index
)
const
{
//! Feld-Funktionen muessen an den Forwarder !!!
ScEditEngineDefaulter
*
pEditEngine
=
mpEditSource
->
GetEditEngine
();
...
...
@@ -517,7 +516,10 @@ ScEditFieldObj* ScHeaderFieldsObj::GetObjectByIndex_Impl(sal_Int32 Index) const
uno
::
Reference
<
text
::
XTextRange
>
xTemp
(
xText
,
uno
::
UNO_QUERY
);
xTextRange
=
xTemp
;
ScEditFieldObj
::
FieldType
eRealType
=
getFieldType
(
pData
->
GetClassId
());
return
new
ScEditFieldObj
(
xTextRange
,
new
ScHeaderFooterEditSource
(
mrData
),
eRealType
,
aSelection
);
uno
::
Reference
<
text
::
XTextField
>
xRet
(
new
ScEditFieldObj
(
xTextRange
,
new
ScHeaderFooterEditSource
(
mrData
),
eRealType
,
aSelection
));
return
xRet
;
}
sal_Int32
SAL_CALL
ScHeaderFieldsObj
::
getCount
()
throw
(
uno
::
RuntimeException
)
...
...
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