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
c844a15c
Kaydet (Commit)
c844a15c
authored
May 20, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use new unocrsrs in SwXTextTableCursor
Change-Id: I7389794f1ca493a1f7e04c7b24d650223443bf7e
üst
5f5e1568
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
21 deletions
+24
-21
unotbl.hxx
sw/inc/unotbl.hxx
+3
-3
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+21
-18
No files found.
sw/inc/unotbl.hxx
Dosyayı görüntüle @
c844a15c
...
@@ -213,8 +213,6 @@ class SW_DLLPUBLIC SwXTextTableCursor : public SwXTextTableCursor_Base
...
@@ -213,8 +213,6 @@ class SW_DLLPUBLIC SwXTextTableCursor : public SwXTextTableCursor_Base
SwDepend
aCrsrDepend
;
SwDepend
aCrsrDepend
;
const
SfxItemPropertySet
*
m_pPropSet
;
const
SfxItemPropertySet
*
m_pPropSet
;
protected
:
virtual
~
SwXTextTableCursor
();
public
:
public
:
SwXTextTableCursor
(
SwFrameFormat
*
pFormat
,
SwTableBox
*
pBox
);
SwXTextTableCursor
(
SwFrameFormat
*
pFormat
,
SwTableBox
*
pBox
);
SwXTextTableCursor
(
SwFrameFormat
&
rTableFormat
,
SwXTextTableCursor
(
SwFrameFormat
&
rTableFormat
,
...
@@ -265,7 +263,8 @@ public:
...
@@ -265,7 +263,8 @@ public:
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
SAL_OVERRIDE
;
//SwClient
//SwClient
virtual
void
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
SAL_OVERRIDE
;
virtual
void
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
SAL_OVERRIDE
;
virtual
void
SwClientNotify
(
const
SwModify
&
,
const
SfxHint
&
)
SAL_OVERRIDE
;
// ITextCursorHelper
// ITextCursorHelper
virtual
const
SwPaM
*
GetPaM
()
const
SAL_OVERRIDE
;
virtual
const
SwPaM
*
GetPaM
()
const
SAL_OVERRIDE
;
...
@@ -275,6 +274,7 @@ public:
...
@@ -275,6 +274,7 @@ public:
const
SwUnoCrsr
*
GetCrsr
()
const
;
const
SwUnoCrsr
*
GetCrsr
()
const
;
SwUnoCrsr
*
GetCrsr
();
SwUnoCrsr
*
GetCrsr
();
std
::
shared_ptr
<
SwUnoCrsr
>
m_pUnoCrsr
;
SwFrameFormat
*
GetFrameFormat
()
const
{
return
const_cast
<
SwFrameFormat
*>
(
static_cast
<
const
SwFrameFormat
*>
(
GetRegisteredIn
()));
}
SwFrameFormat
*
GetFrameFormat
()
const
{
return
const_cast
<
SwFrameFormat
*>
(
static_cast
<
const
SwFrameFormat
*>
(
GetRegisteredIn
()));
}
};
};
...
...
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
c844a15c
...
@@ -1417,10 +1417,10 @@ SwXTextTableCursor::SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox* pBox)
...
@@ -1417,10 +1417,10 @@ SwXTextTableCursor::SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox* pBox)
SwDoc
*
pDoc
=
pFormat
->
GetDoc
();
SwDoc
*
pDoc
=
pFormat
->
GetDoc
();
const
SwStartNode
*
pSttNd
=
pBox
->
GetSttNd
();
const
SwStartNode
*
pSttNd
=
pBox
->
GetSttNd
();
SwPosition
aPos
(
*
pSttNd
);
SwPosition
aPos
(
*
pSttNd
);
SwUnoCrsr
*
pUnoCrsr
=
pDoc
->
CreateUnoCrsr
(
aPos
,
true
);
m_pUnoCrsr
=
pDoc
->
CreateUnoCrsr2
(
aPos
,
true
);
pUnoCrsr
->
Move
(
fnMoveForward
,
fnGoNode
);
m_
pUnoCrsr
->
Move
(
fnMoveForward
,
fnGoNode
);
pUnoCrsr
->
Add
(
&
aCrsrDepend
);
m_
pUnoCrsr
->
Add
(
&
aCrsrDepend
);
SwUnoTableCrsr
&
rTableCrsr
=
dynamic_cast
<
SwUnoTableCrsr
&>
(
*
pUnoCrsr
);
SwUnoTableCrsr
&
rTableCrsr
=
dynamic_cast
<
SwUnoTableCrsr
&>
(
*
m_pUnoCrsr
.
get
()
);
rTableCrsr
.
MakeBoxSels
();
rTableCrsr
.
MakeBoxSels
();
}
}
...
@@ -1429,26 +1429,18 @@ SwXTextTableCursor::SwXTextTableCursor(SwFrameFormat& rTableFormat, const SwTabl
...
@@ -1429,26 +1429,18 @@ SwXTextTableCursor::SwXTextTableCursor(SwFrameFormat& rTableFormat, const SwTabl
aCrsrDepend
(
this
,
0
),
aCrsrDepend
(
this
,
0
),
m_pPropSet
(
aSwMapProvider
.
GetPropertySet
(
PROPERTY_MAP_TEXT_TABLE_CURSOR
))
m_pPropSet
(
aSwMapProvider
.
GetPropertySet
(
PROPERTY_MAP_TEXT_TABLE_CURSOR
))
{
{
SwUnoCrsr
*
pUnoCrsr
=
pTableSelection
->
GetDoc
()
->
CreateUnoCrsr
(
*
pTableSelection
->
GetPoint
(),
true
);
m_pUnoCrsr
=
pTableSelection
->
GetDoc
()
->
CreateUnoCrsr2
(
*
pTableSelection
->
GetPoint
(),
true
);
if
(
pTableSelection
->
HasMark
())
if
(
pTableSelection
->
HasMark
())
{
{
pUnoCrsr
->
SetMark
();
m_
pUnoCrsr
->
SetMark
();
*
pUnoCrsr
->
GetMark
()
=
*
pTableSelection
->
GetMark
();
*
m_
pUnoCrsr
->
GetMark
()
=
*
pTableSelection
->
GetMark
();
}
}
const
SwSelBoxes
&
rBoxes
=
pTableSelection
->
GetSelectedBoxes
();
const
SwSelBoxes
&
rBoxes
=
pTableSelection
->
GetSelectedBoxes
();
Sw
TableCursor
&
rTableCrsr
=
dynamic_cast
<
SwTableCursor
&>
(
*
pUnoCrsr
);
Sw
UnoTableCrsr
&
rTableCrsr
=
dynamic_cast
<
SwUnoTableCrsr
&>
(
*
m_
pUnoCrsr
);
for
(
auto
pBox
:
rBoxes
)
for
(
auto
pBox
:
rBoxes
)
rTableCrsr
.
InsertBox
(
*
pBox
);
rTableCrsr
.
InsertBox
(
*
pBox
);
pUnoCrsr
->
Add
(
&
aCrsrDepend
);
m_pUnoCrsr
->
Add
(
&
aCrsrDepend
);
SwUnoTableCrsr
&
rUnoTableCursor
=
dynamic_cast
<
SwUnoTableCrsr
&>
(
*
pUnoCrsr
);
rTableCrsr
.
MakeBoxSels
();
rUnoTableCursor
.
MakeBoxSels
();
}
SwXTextTableCursor
::~
SwXTextTableCursor
()
{
SolarMutexGuard
aGuard
;
SwUnoCrsr
*
pUnoCrsr
=
GetCrsr
();
delete
pUnoCrsr
;
}
}
OUString
SwXTextTableCursor
::
getRangeName
()
OUString
SwXTextTableCursor
::
getRangeName
()
...
@@ -1747,6 +1739,17 @@ void SwXTextTableCursor::removeVetoableChangeListener(const OUString& /*rPropert
...
@@ -1747,6 +1739,17 @@ void SwXTextTableCursor::removeVetoableChangeListener(const OUString& /*rPropert
void
SwXTextTableCursor
::
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
void
SwXTextTableCursor
::
Modify
(
const
SfxPoolItem
*
pOld
,
const
SfxPoolItem
*
pNew
)
{
ClientModify
(
this
,
pOld
,
pNew
);
}
{
ClientModify
(
this
,
pOld
,
pNew
);
}
void
SwXTextTableCursor
::
SwClientNotify
(
const
SwModify
&
rModify
,
const
SfxHint
&
rHint
)
{
SwClient
::
SwClientNotify
(
rModify
,
rHint
);
if
(
m_pUnoCrsr
&&
typeid
(
rHint
)
==
typeid
(
sw
::
DocDisposingHint
))
{
assert
(
m_pUnoCrsr
->
m_bSaneOwnership
);
m_pUnoCrsr
->
Remove
(
&
aCrsrDepend
);
m_pUnoCrsr
.
reset
();
}
}
class
SwXTextTable
::
Impl
class
SwXTextTable
::
Impl
{
{
private
:
private
:
...
...
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