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
24587ecb
Kaydet (Commit)
24587ecb
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
sc tiled editing: Implement scaling of drawings and bitmaps in Calc.
Change-Id: I1faa4608047e5a7ce30c317c72babfa44cdd808d
üst
f951ab5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
ITiledRenderable.hxx
include/vcl/ITiledRenderable.hxx
+1
-1
docuno.hxx
sc/inc/docuno.hxx
+3
-0
docuno.cxx
sc/source/ui/unoobj/docuno.cxx
+36
-1
No files found.
include/vcl/ITiledRenderable.hxx
Dosyayı görüntüle @
24587ecb
...
@@ -119,7 +119,7 @@ public:
...
@@ -119,7 +119,7 @@ public:
*
*
* @see lok::Document::setGraphicSelection().
* @see lok::Document::setGraphicSelection().
*/
*/
virtual
void
setGraphicSelection
(
int
/*nType*/
,
int
/*nX*/
,
int
/*nY*/
)
{
}
virtual
void
setGraphicSelection
(
int
nType
,
int
nX
,
int
nY
)
=
0
;
/**
/**
* @see lok::Document::resetSelection().
* @see lok::Document::resetSelection().
...
...
sc/inc/docuno.hxx
Dosyayı görüntüle @
24587ecb
...
@@ -397,6 +397,9 @@ public:
...
@@ -397,6 +397,9 @@ public:
/// @see vcl::ITiledRenderable::setTextSelection().
/// @see vcl::ITiledRenderable::setTextSelection().
virtual
void
setTextSelection
(
int
nType
,
int
nX
,
int
nY
)
SAL_OVERRIDE
;
virtual
void
setTextSelection
(
int
nType
,
int
nX
,
int
nY
)
SAL_OVERRIDE
;
/// @see vcl::ITiledRenderable::setGraphicSelection().
virtual
void
setGraphicSelection
(
int
nType
,
int
nX
,
int
nY
)
SAL_OVERRIDE
;
/// @see vcl::ITiledRenderable::initializeForTiledRendering().
/// @see vcl::ITiledRenderable::initializeForTiledRendering().
virtual
void
initializeForTiledRendering
()
SAL_OVERRIDE
;
virtual
void
initializeForTiledRendering
()
SAL_OVERRIDE
;
};
};
...
...
sc/source/ui/unoobj/docuno.cxx
Dosyayı görüntüle @
24587ecb
...
@@ -598,7 +598,6 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
...
@@ -598,7 +598,6 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
// There seems to be no clear way of getting the grid window for this
// There seems to be no clear way of getting the grid window for this
// particular document, hence we need to hope we get the right window.
// particular document, hence we need to hope we get the right window.
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
ScGridWindow
*
pGridWindow
=
pViewData
->
GetActiveWin
();
ScGridWindow
*
pGridWindow
=
pViewData
->
GetActiveWin
();
if
(
!
pGridWindow
)
if
(
!
pGridWindow
)
...
@@ -608,6 +607,42 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
...
@@ -608,6 +607,42 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
}
}
}
}
void
ScModelObj
::
setGraphicSelection
(
int
nType
,
int
nX
,
int
nY
)
{
SolarMutexGuard
aGuard
;
// There seems to be no clear way of getting the grid window for this
// particular document, hence we need to hope we get the right window.
ScViewData
*
pViewData
=
ScDocShell
::
GetViewData
();
ScGridWindow
*
pGridWindow
=
pViewData
->
GetActiveWin
();
int
nPixelX
=
nX
*
pViewData
->
GetPPTX
();
int
nPixelY
=
nY
*
pViewData
->
GetPPTY
();
switch
(
nType
)
{
case
LOK_SETGRAPHICSELECTION_START
:
{
MouseEvent
aClickEvent
(
Point
(
nPixelX
,
nPixelY
),
1
,
MouseEventModifiers
::
SIMPLECLICK
,
MOUSE_LEFT
);
pGridWindow
->
MouseButtonDown
(
aClickEvent
);
MouseEvent
aMoveEvent
(
Point
(
nPixelX
+
1
,
nPixelY
),
0
,
MouseEventModifiers
::
SIMPLEMOVE
,
MOUSE_LEFT
);
pGridWindow
->
MouseMove
(
aMoveEvent
);
}
break
;
case
LOK_SETGRAPHICSELECTION_END
:
{
MouseEvent
aMoveEvent
(
Point
(
nPixelX
-
1
,
nPixelY
),
0
,
MouseEventModifiers
::
SIMPLEMOVE
,
MOUSE_LEFT
);
pGridWindow
->
MouseMove
(
aMoveEvent
);
MouseEvent
aClickEvent
(
Point
(
nPixelX
,
nPixelY
),
1
,
MouseEventModifiers
::
SIMPLECLICK
,
MOUSE_LEFT
);
pGridWindow
->
MouseButtonUp
(
aClickEvent
);
}
break
;
default
:
assert
(
false
);
break
;
}
}
void
ScModelObj
::
initializeForTiledRendering
()
void
ScModelObj
::
initializeForTiledRendering
()
{
{
SolarMutexGuard
aGuard
;
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