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
ef58e108
Kaydet (Commit)
ef58e108
authored
Eyl 26, 2014
tarafından
Samuel Mehrbrodt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#83808 Scale images proportionally by default in Impress/Draw
Change-Id: I16cacb90150aef3aa2ad4607e05298f0bc47c1ae
üst
173e0172
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
fudraw.cxx
sd/source/ui/func/fudraw.cxx
+15
-6
fudraw.hxx
sd/source/ui/inc/fudraw.hxx
+1
-0
No files found.
sd/source/ui/func/fudraw.cxx
Dosyayı görüntüle @
ef58e108
...
@@ -93,11 +93,21 @@ bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt)
...
@@ -93,11 +93,21 @@ bool FuDraw::MouseButtonDown(const MouseEvent& rMEvt)
SetMouseButtonCode
(
rMEvt
.
GetButtons
());
SetMouseButtonCode
(
rMEvt
.
GetButtons
());
bool
bReturn
=
false
;
bool
bReturn
=
false
;
bDragHelpLine
=
false
;
bDragHelpLine
=
false
;
aMDPos
=
mpWindow
->
PixelToLogic
(
rMEvt
.
GetPosPixel
()
);
aMDPos
=
mpWindow
->
PixelToLogic
(
rMEvt
.
GetPosPixel
()
);
// Check whether an image is selected
bIsImageSelected
=
false
;
if
(
mpView
->
AreObjectsMarked
())
{
const
SdrMarkList
&
rMarkList
=
mpView
->
GetMarkedObjectList
();
if
(
rMarkList
.
GetMarkCount
()
==
1
)
{
SdrMark
*
pMark
=
rMarkList
.
GetMark
(
0
);
bIsImageSelected
=
pMark
->
GetMarkedSdrObj
()
->
GetObjIdentifier
()
==
OBJ_GRAF
;
}
}
if
(
rMEvt
.
IsLeft
()
)
if
(
rMEvt
.
IsLeft
()
)
{
{
FrameView
*
pFrameView
=
mpViewShell
->
GetFrameView
();
FrameView
*
pFrameView
=
mpViewShell
->
GetFrameView
();
...
@@ -217,7 +227,6 @@ bool FuDraw::MouseMove(const MouseEvent& rMEvt)
...
@@ -217,7 +227,6 @@ bool FuDraw::MouseMove(const MouseEvent& rMEvt)
Point
aPos
=
mpWindow
->
PixelToLogic
(
rMEvt
.
GetPosPixel
()
);
Point
aPos
=
mpWindow
->
PixelToLogic
(
rMEvt
.
GetPosPixel
()
);
bool
bOrtho
=
false
;
bool
bOrtho
=
false
;
bool
bRestricted
=
true
;
bool
bRestricted
=
true
;
if
(
mpView
->
IsDragObj
())
if
(
mpView
->
IsDragObj
())
...
@@ -235,10 +244,10 @@ bool FuDraw::MouseMove(const MouseEvent& rMEvt)
...
@@ -235,10 +244,10 @@ bool FuDraw::MouseMove(const MouseEvent& rMEvt)
if
(
mpView
->
IsAction
())
if
(
mpView
->
IsAction
())
{
{
// #i33136#
// #i33136#
if
(
b
Restricted
&&
doConstructOrthogonal
(
))
if
(
b
IsImageSelected
||
(
bRestricted
&&
doConstructOrthogonal
()
))
{
{
//
Restrict movemen
t:
//
Scale proportionally by defaul
t:
// rectangle->quadrat, ellipse->circle etc.
// rectangle->quadrat, ellipse->circle
, Images
etc.
bOrtho
=
!
rMEvt
.
IsShift
();
bOrtho
=
!
rMEvt
.
IsShift
();
}
}
else
else
...
...
sd/source/ui/inc/fudraw.hxx
Dosyayı görüntüle @
ef58e108
...
@@ -78,6 +78,7 @@ protected:
...
@@ -78,6 +78,7 @@ protected:
bool
bDragHelpLine
;
bool
bDragHelpLine
;
sal_uInt16
nHelpLine
;
sal_uInt16
nHelpLine
;
bool
bPermanent
;
bool
bPermanent
;
bool
bIsImageSelected
;
};
};
...
...
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