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
1b15f486
Kaydet (Commit)
1b15f486
authored
Şub 06, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOK: add LOK_CALLBACK_TEXT_SELECTION and implement it in sw
Change-Id: I31662cb06add0d1a1c517b5f5416703aeaae1e77
üst
17be6dab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
+30
-3
LibreOfficeKit.h
include/LibreOfficeKit/LibreOfficeKit.h
+11
-2
viscrs.cxx
sw/source/core/crsr/viscrs.cxx
+14
-0
trvlfrm.cxx
sw/source/core/layout/trvlfrm.cxx
+5
-1
No files found.
include/LibreOfficeKit/LibreOfficeKit.h
Dosyayı görüntüle @
1b15f486
...
@@ -57,7 +57,7 @@ typedef enum
...
@@ -57,7 +57,7 @@ typedef enum
* Any tiles which are over the rectangle described in the payload are no
* Any tiles which are over the rectangle described in the payload are no
* longer valid.
* longer valid.
*
*
* Rectangle format: "width,
height,x,
y", where all numbers are document
* Rectangle format: "width,
height, x,
y", where all numbers are document
* coordinates, in twips.
* coordinates, in twips.
*/
*/
LOK_CALLBACK_INVALIDATE_TILES
,
LOK_CALLBACK_INVALIDATE_TILES
,
...
@@ -66,7 +66,16 @@ typedef enum
...
@@ -66,7 +66,16 @@ typedef enum
*
*
* Rectangle format is the same as LOK_CALLBACK_INVALIDATE_TILES.
* Rectangle format is the same as LOK_CALLBACK_INVALIDATE_TILES.
*/
*/
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR
,
/**
* The list of rectangles representing the current text selection changed.
*
* List format is "rectangle1[; rectangle2[; ...]]" (without quotes and
* brackets), where rectangleN has the same format as
* LOK_CALLBACK_INVALIDATE_TILES. When there is no selection, an empty
* string is provided.
*/
LOK_CALLBACK_TEXT_SELECTION
}
}
LibreOfficeKitCallbackType
;
LibreOfficeKitCallbackType
;
...
...
sw/source/core/crsr/viscrs.cxx
Dosyayı görüntüle @
1b15f486
...
@@ -314,6 +314,20 @@ void SwSelPaintRects::Show()
...
@@ -314,6 +314,20 @@ void SwSelPaintRects::Show()
}
}
}
}
if
(
GetShell
()
->
isTiledRendering
())
{
std
::
stringstream
ss
;
for
(
size_type
i
=
0
;
i
<
size
();
++
i
)
{
const
SwRect
&
rRect
=
(
*
this
)[
i
];
if
(
i
)
ss
<<
"; "
;
ss
<<
rRect
.
Width
()
<<
", "
<<
rRect
.
Height
()
<<
", "
<<
rRect
.
Left
()
<<
", "
<<
rRect
.
Top
();
}
OString
sRect
=
ss
.
str
().
c_str
();
GetShell
()
->
libreOfficeKitCallback
(
LOK_CALLBACK_TEXT_SELECTION
,
sRect
.
getStr
());
}
HighlightInputFld
();
HighlightInputFld
();
#else
#else
...
...
sw/source/core/layout/trvlfrm.cxx
Dosyayı görüntüle @
1b15f486
...
@@ -2007,8 +2007,12 @@ void SwRootFrm::CalcFrmRects(SwShellCrsr &rCrsr)
...
@@ -2007,8 +2007,12 @@ void SwRootFrm::CalcFrmRects(SwShellCrsr &rCrsr)
SwViewShell
*
pSh
=
GetCurrShell
();
SwViewShell
*
pSh
=
GetCurrShell
();
bool
bIgnoreVisArea
=
false
;
if
(
pSh
)
bIgnoreVisArea
=
pSh
->
GetViewOptions
()
->
IsPDFExport
()
||
pSh
->
isTiledRendering
();
// #i12836# enhanced pdf
// #i12836# enhanced pdf
SwRegionRects
aRegion
(
pSh
&&
!
pSh
->
GetViewOptions
()
->
IsPDFExport
()
?
SwRegionRects
aRegion
(
!
bIgnoreVisArea
?
pSh
->
VisArea
()
:
pSh
->
VisArea
()
:
Frm
()
);
Frm
()
);
if
(
!
pStartPos
->
nNode
.
GetNode
().
IsCntntNode
()
||
if
(
!
pStartPos
->
nNode
.
GetNode
().
IsCntntNode
()
||
...
...
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