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
502e11b2
Kaydet (Commit)
502e11b2
authored
Nis 26, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Pass ScCellObj instance to ScCellFieldsObj instead of creating a new one.
üst
109e2a78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
fielduno.hxx
sc/inc/fielduno.hxx
+5
-2
cellsuno.cxx
sc/source/ui/unoobj/cellsuno.cxx
+4
-1
fielduno.cxx
sc/source/ui/unoobj/fielduno.cxx
+5
-5
No files found.
sc/inc/fielduno.hxx
Dosyayı görüntüle @
502e11b2
...
...
@@ -69,6 +69,7 @@ class ScCellFieldsObj : public cppu::WeakImplHelper5<
public
SfxListener
{
private
:
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
text
::
XTextRange
>
mxContent
;
ScDocShell
*
pDocShell
;
ScAddress
aCellPos
;
ScEditSource
*
mpEditSource
;
...
...
@@ -82,8 +83,10 @@ private:
GetObjectByIndex_Impl
(
sal_Int32
Index
)
const
;
public
:
ScCellFieldsObj
(
ScDocShell
*
pDocSh
,
const
ScAddress
&
rPos
);
virtual
~
ScCellFieldsObj
();
ScCellFieldsObj
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
text
::
XTextRange
>&
xContent
,
ScDocShell
*
pDocSh
,
const
ScAddress
&
rPos
);
virtual
~
ScCellFieldsObj
();
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
);
...
...
sc/source/ui/unoobj/cellsuno.cxx
Dosyayı görüntüle @
502e11b2
...
...
@@ -6704,7 +6704,10 @@ uno::Reference<container::XEnumerationAccess> SAL_CALL ScCellObj::getTextFields(
SolarMutexGuard aGuard;
ScDocShell* pDocSh = GetDocShell();
if ( pDocSh )
return new ScCellFieldsObj( pDocSh, aCellPos );
{
uno::Reference<text::XTextRange> xContent(this);
return new ScCellFieldsObj(xContent, pDocSh, aCellPos);
}
return NULL;
}
...
...
sc/source/ui/unoobj/fielduno.cxx
Dosyayı görüntüle @
502e11b2
...
...
@@ -295,7 +295,10 @@ SvxFieldData* ScUnoEditEngine::FindByPos(sal_uInt16 nPar, xub_StrLen nPos, TypeI
//------------------------------------------------------------------------
ScCellFieldsObj
::
ScCellFieldsObj
(
ScDocShell
*
pDocSh
,
const
ScAddress
&
rPos
)
:
ScCellFieldsObj
::
ScCellFieldsObj
(
const
uno
::
Reference
<
text
::
XTextRange
>&
xContent
,
ScDocShell
*
pDocSh
,
const
ScAddress
&
rPos
)
:
mxContent
(
xContent
),
pDocShell
(
pDocSh
),
aCellPos
(
rPos
),
mpRefreshListeners
(
NULL
)
...
...
@@ -353,16 +356,13 @@ uno::Reference<text::XTextField> ScCellFieldsObj::GetObjectByIndex_Impl(sal_Int3
if
(
!
pData
)
return
uno
::
Reference
<
text
::
XTextField
>
();
// Get the parent text range instance.
uno
::
Reference
<
text
::
XTextRange
>
xContent
(
new
ScCellObj
(
pDocShell
,
aCellPos
));
sal_uInt16
nPar
=
aTempEngine
.
GetFieldPar
();
xub_StrLen
nPos
=
aTempEngine
.
GetFieldPos
();
ESelection
aSelection
(
nPar
,
nPos
,
nPar
,
nPos
+
1
);
// Feld ist 1 Zeichen
ScEditFieldObj
::
FieldType
eType
=
getFieldType
(
pData
->
GetClassId
());
uno
::
Reference
<
text
::
XTextField
>
xRet
(
new
ScEditFieldObj
(
xContent
,
new
ScCellEditSource
(
pDocShell
,
aCellPos
),
eType
,
aSelection
));
new
ScEditFieldObj
(
m
xContent
,
new
ScCellEditSource
(
pDocShell
,
aCellPos
),
eType
,
aSelection
));
return
xRet
;
}
...
...
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