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
9a949b9c
Kaydet (Commit)
9a949b9c
authored
May 23, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use new unocrsrs for SwXTextRanges
Change-Id: Id338cfff7bf266878f1287aa964f5e2674428e24
üst
2d80fe10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
unoobj2.cxx
sw/source/core/unocore/unoobj2.cxx
+17
-5
No files found.
sw/source/core/unocore/unoobj2.cxx
Dosyayı görüntüle @
9a949b9c
...
...
@@ -1509,22 +1509,22 @@ class SwXTextRanges::Impl
{
public
:
::
std
::
vector
<
uno
::
Reference
<
text
::
XTextRange
>
>
m_Ranges
;
std
::
shared_ptr
<
SwUnoCrsr
>
m_pUnoCursor
;
Impl
(
SwPaM
*
const
pPaM
)
:
SwClient
(
(
pPaM
)
?
pPaM
->
GetDoc
()
->
CreateUnoCrsr
(
*
pPaM
->
GetPoint
())
:
0
)
{
if
(
pPaM
)
{
m_pUnoCursor
=
pPaM
->
GetDoc
()
->
CreateUnoCrsr2
(
*
pPaM
->
GetPoint
());
m_pUnoCursor
->
Add
(
this
);
::
sw
::
DeepCopyPaM
(
*
pPaM
,
*
GetCursor
());
}
MakeRanges
();
}
virtual
~
Impl
()
{
// Impl owns the cursor; delete it here: SolarMutex is locked
delete
GetRegisteredIn
(
);
if
(
m_pUnoCursor
)
m_pUnoCursor
->
Remove
(
this
);
}
SwUnoCrsr
*
GetCursor
()
{
...
...
@@ -1537,6 +1537,7 @@ public:
protected
:
// SwClient
virtual
void
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
SAL_OVERRIDE
;
virtual
void
SwClientNotify
(
const
SwModify
&
rModify
,
const
SfxHint
&
rHint
)
SAL_OVERRIDE
;
};
void
SwXTextRanges
::
Impl
::
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
...
...
@@ -1544,6 +1545,17 @@ void SwXTextRanges::Impl::Modify( const SfxPoolItem *pOld, const SfxPoolItem *pN
ClientModify
(
this
,
pOld
,
pNew
);
}
void
SwXTextRanges
::
Impl
::
SwClientNotify
(
const
SwModify
&
rModify
,
const
SfxHint
&
rHint
)
{
SwClient
::
SwClientNotify
(
rModify
,
rHint
);
if
(
m_pUnoCursor
&&
typeid
(
rHint
)
==
typeid
(
sw
::
DocDisposingHint
))
{
assert
(
m_pUnoCursor
->
m_bSaneOwnership
);
m_pUnoCursor
->
Remove
(
this
);
m_pUnoCursor
.
reset
();
}
}
void
SwXTextRanges
::
Impl
::
MakeRanges
()
{
if
(
GetCursor
())
...
...
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