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
5c2811d6
Kaydet (Commit)
5c2811d6
authored
Eyl 17, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: implement per-view LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
Change-Id: Ib4c1caede94d3eac372a3605c430bbbd353755f3
üst
b20de6c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
viewsh.hxx
sw/inc/viewsh.hxx
+1
-1
viscrs.cxx
sw/source/core/crsr/viscrs.cxx
+6
-2
No files found.
sw/inc/viewsh.hxx
Dosyayı görüntüle @
5c2811d6
...
@@ -442,7 +442,7 @@ public:
...
@@ -442,7 +442,7 @@ public:
{
return
mpCareWindow
?
mpCareWindow
.
get
()
:
CareChildWin
(
rVSh
);
}
{
return
mpCareWindow
?
mpCareWindow
.
get
()
:
CareChildWin
(
rVSh
);
}
static
vcl
::
Window
*
CareChildWin
(
SwViewShell
&
rVSh
);
static
vcl
::
Window
*
CareChildWin
(
SwViewShell
&
rVSh
);
inline
SfxViewShell
*
GetSfxViewShell
()
{
return
mpSfxViewShell
;
}
inline
SfxViewShell
*
GetSfxViewShell
()
const
{
return
mpSfxViewShell
;
}
inline
void
SetSfxViewShell
(
SfxViewShell
*
pNew
)
{
mpSfxViewShell
=
pNew
;
}
inline
void
SetSfxViewShell
(
SfxViewShell
*
pNew
)
{
mpSfxViewShell
=
pNew
;
}
// Selection of Draw Engine has been changed.
// Selection of Draw Engine has been changed.
...
...
sw/source/core/crsr/viscrs.cxx
Dosyayı görüntüle @
5c2811d6
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
#include <memory>
#include <memory>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
#include <paintfrm.hxx>
#include <paintfrm.hxx>
// Here static members are defined. They will get changed on alteration of the
// Here static members are defined. They will get changed on alteration of the
...
@@ -178,7 +179,7 @@ void SwVisCrsr::_SetPosAndShow()
...
@@ -178,7 +179,7 @@ void SwVisCrsr::_SetPosAndShow()
m_aTextCrsr
.
SetPos
(
aRect
.
Pos
()
);
m_aTextCrsr
.
SetPos
(
aRect
.
Pos
()
);
if
(
m_pCrsrShell
->
isTiledRendering
())
if
(
comphelper
::
LibreOfficeKit
::
isActive
())
{
{
// notify about page number change (if that happened)
// notify about page number change (if that happened)
sal_uInt16
nPage
,
nVirtPage
;
sal_uInt16
nPage
,
nVirtPage
;
...
@@ -193,7 +194,10 @@ void SwVisCrsr::_SetPosAndShow()
...
@@ -193,7 +194,10 @@ void SwVisCrsr::_SetPosAndShow()
// notify about the cursor position & size
// notify about the cursor position & size
Rectangle
aSVRect
(
aRect
.
Pos
().
getX
(),
aRect
.
Pos
().
getY
(),
aRect
.
Pos
().
getX
()
+
aRect
.
SSize
().
Width
(),
aRect
.
Pos
().
getY
()
+
aRect
.
SSize
().
Height
());
Rectangle
aSVRect
(
aRect
.
Pos
().
getX
(),
aRect
.
Pos
().
getY
(),
aRect
.
Pos
().
getX
()
+
aRect
.
SSize
().
Width
(),
aRect
.
Pos
().
getY
()
+
aRect
.
SSize
().
Height
());
OString
sRect
=
aSVRect
.
toString
();
OString
sRect
=
aSVRect
.
toString
();
m_pCrsrShell
->
libreOfficeKitCallback
(
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
,
sRect
.
getStr
());
if
(
comphelper
::
LibreOfficeKit
::
isViewCallback
())
m_pCrsrShell
->
GetSfxViewShell
()
->
libreOfficeKitViewCallback
(
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
,
sRect
.
getStr
());
else
m_pCrsrShell
->
libreOfficeKitCallback
(
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
,
sRect
.
getStr
());
}
}
if
(
!
m_pCrsrShell
->
IsCrsrReadonly
()
||
m_pCrsrShell
->
GetViewOptions
()
->
IsSelectionInReadonly
()
)
if
(
!
m_pCrsrShell
->
IsCrsrReadonly
()
||
m_pCrsrShell
->
GetViewOptions
()
->
IsSelectionInReadonly
()
)
...
...
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