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
3aed864e
Kaydet (Commit)
3aed864e
authored
Mar 26, 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
Make SetCellSelection work in pixels, and change the name accordingly.
Change-Id: Ic08f436b8196f29bb958845505a517cebba09f4b
üst
16d8839c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
gridwin.hxx
sc/source/ui/inc/gridwin.hxx
+3
-3
docuno.cxx
sc/source/ui/unoobj/docuno.cxx
+1
-1
gridwin4.cxx
sc/source/ui/view/gridwin4.cxx
+2
-2
No files found.
sc/source/ui/inc/gridwin.hxx
Dosyayı görüntüle @
3aed864e
...
@@ -331,9 +331,9 @@ public:
...
@@ -331,9 +331,9 @@ public:
void
LogicMouseButtonUp
(
const
MouseEvent
&
rMouseEvent
);
void
LogicMouseButtonUp
(
const
MouseEvent
&
rMouseEvent
);
/// Update the cell selection according to what handles have been dragged.
/// Update the cell selection according to what handles have been dragged.
///
Uses the same parameteres as vcl::ITiledRenderable::setTextSelection()
///
@see vcl::ITiledRenderable::setTextSelection() for the values of nType.
///
(ie. they are in twips here)
.
///
Coordinates are in pixels
.
void
SetCellSelection
(
int
nType
,
int
nX
,
int
n
Y
);
void
SetCellSelection
Pixel
(
int
nType
,
int
nPixelX
,
int
nPixel
Y
);
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
CreateAccessible
()
SAL_OVERRIDE
;
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
CreateAccessible
()
SAL_OVERRIDE
;
...
...
sc/source/ui/unoobj/docuno.cxx
Dosyayı görüntüle @
3aed864e
...
@@ -598,7 +598,7 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
...
@@ -598,7 +598,7 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
if
(
!
pGridWindow
)
if
(
!
pGridWindow
)
return
;
return
;
pGridWindow
->
SetCellSelection
(
nType
,
nX
,
nY
);
pGridWindow
->
SetCellSelection
Pixel
(
nType
,
nX
*
pViewData
->
GetPPTX
(),
nY
*
pViewData
->
GetPPTY
()
);
}
}
}
}
...
...
sc/source/ui/view/gridwin4.cxx
Dosyayı görüntüle @
3aed864e
...
@@ -991,7 +991,7 @@ void ScGridWindow::LogicInvalidate(const Rectangle* pRectangle)
...
@@ -991,7 +991,7 @@ void ScGridWindow::LogicInvalidate(const Rectangle* pRectangle)
pViewData
->
GetDocument
()
->
GetDrawLayer
()
->
libreOfficeKitCallback
(
LOK_CALLBACK_INVALIDATE_TILES
,
sRectangle
.
getStr
());
pViewData
->
GetDocument
()
->
GetDrawLayer
()
->
libreOfficeKitCallback
(
LOK_CALLBACK_INVALIDATE_TILES
,
sRectangle
.
getStr
());
}
}
void
ScGridWindow
::
SetCellSelection
(
int
nType
,
int
nX
,
int
n
Y
)
void
ScGridWindow
::
SetCellSelection
Pixel
(
int
nType
,
int
nPixelX
,
int
nPixel
Y
)
{
{
ScTabView
*
pTabView
=
pViewData
->
GetView
();
ScTabView
*
pTabView
=
pViewData
->
GetView
();
...
@@ -1020,7 +1020,7 @@ void ScGridWindow::SetCellSelection(int nType, int nX, int nY)
...
@@ -1020,7 +1020,7 @@ void ScGridWindow::SetCellSelection(int nType, int nX, int nY)
SCsCOL
nNewPosX
;
SCsCOL
nNewPosX
;
SCsROW
nNewPosY
;
SCsROW
nNewPosY
;
SCTAB
nTab
=
pViewData
->
GetTabNo
();
SCTAB
nTab
=
pViewData
->
GetTabNo
();
pViewData
->
GetPosFromPixel
(
n
X
*
pViewData
->
GetPPTX
(),
nY
*
pViewData
->
GetPPTY
()
,
eWhich
,
nNewPosX
,
nNewPosY
);
pViewData
->
GetPosFromPixel
(
n
PixelX
,
nPixelY
,
eWhich
,
nNewPosX
,
nNewPosY
);
// change the selection
// change the selection
switch
(
nType
)
switch
(
nType
)
...
...
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