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
efbf462e
Kaydet (Commit)
efbf462e
authored
Mar 24, 2015
tarafından
Jan Holesovsky
Kaydeden (comit)
Miklos Vajna
Mar 30, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc tiled editing: Implement moving of the selection handles.
Change-Id: I724f1693a03194426dfe233c1be08f1fbec1242d
üst
c14a2662
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
docuno.hxx
sc/inc/docuno.hxx
+3
-0
docuno.cxx
sc/source/ui/unoobj/docuno.cxx
+34
-0
No files found.
sc/inc/docuno.hxx
Dosyayı görüntüle @
efbf462e
...
...
@@ -394,6 +394,9 @@ public:
/// @see vcl::ITiledRenderable::postMouseEvent().
virtual
void
postMouseEvent
(
int
nType
,
int
nX
,
int
nY
,
int
nCount
)
SAL_OVERRIDE
;
/// @see vcl::ITiledRenderable::setTextSelection().
virtual
void
setTextSelection
(
int
nType
,
int
nX
,
int
nY
)
SAL_OVERRIDE
;
/// @see vcl::ITiledRenderable::initializeForTiledRendering().
virtual
void
initializeForTiledRendering
()
SAL_OVERRIDE
;
};
...
...
sc/source/ui/unoobj/docuno.cxx
Dosyayı görüntüle @
efbf462e
...
...
@@ -20,6 +20,7 @@
#include <config_features.h>
#include "scitems.hxx"
#include <editeng/editview.hxx>
#include <svx/fmdpage.hxx>
#include <svx/fmview.hxx>
#include <svx/svditer.hxx>
...
...
@@ -81,6 +82,7 @@
#include "formulagroup.hxx"
#include "gridwin.hxx"
#include "hints.hxx"
#include <inputhdl.hxx>
#include <inputopt.hxx>
#include "interpre.hxx"
#include "linkuno.hxx"
...
...
@@ -555,6 +557,38 @@ void ScModelObj::postMouseEvent(int nType, int nX, int nY, int nCount)
}
}
void
ScModelObj
::
setTextSelection
(
int
nType
,
int
nX
,
int
nY
)
{
SolarMutexGuard
aGuard
;
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
ScInputHandler
*
pInputHandler
=
SC_MOD
()
->
GetInputHdl
(
pViewData
->
GetViewShell
());
if
(
!
pInputHandler
)
return
;
EditView
*
pTableView
=
pInputHandler
->
GetTableView
();
if
(
!
pTableView
)
return
;
Point
aPoint
(
convertTwipToMm100
(
nX
),
convertTwipToMm100
(
nY
));
switch
(
nType
)
{
case
LOK_SETTEXTSELECTION_START
:
pTableView
->
SetCursorLogicPosition
(
aPoint
,
/*bPoint=*/
false
,
/*bClearMark=*/
false
);
break
;
case
LOK_SETTEXTSELECTION_END
:
pTableView
->
SetCursorLogicPosition
(
aPoint
,
/*bPoint=*/
true
,
/*bClearMark=*/
false
);
break
;
case
LOK_SETTEXTSELECTION_RESET
:
pTableView
->
SetCursorLogicPosition
(
aPoint
,
/*bPoint=*/
true
,
/*bClearMark=*/
true
);
break
;
default
:
assert
(
false
);
break
;
}
}
void
ScModelObj
::
initializeForTiledRendering
()
{
SolarMutexGuard
aGuard
;
...
...
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