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
8c7c9465
Kaydet (Commit)
8c7c9465
authored
Tem 09, 2004
tarafından
Gregor Hartmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i31221# #i31229#fix tear-off and context-menu for toolboxes
üst
0348cd8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
35 deletions
+28
-35
statemnt.cxx
automation/source/server/statemnt.cxx
+28
-35
No files found.
automation/source/server/statemnt.cxx
Dosyayı görüntüle @
8c7c9465
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: statemnt.cxx,v $
* $RCSfile: statemnt.cxx,v $
*
*
* $Revision: 1.1
1
$
* $Revision: 1.1
2
$
*
*
* last change: $Author:
obo $ $Date: 2004-07-07 13:47:00
$
* last change: $Author:
gh $ $Date: 2004-07-09 07:42:13
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -4025,21 +4025,32 @@ BOOL StatementControl::HandleCommonMethods( Window *pControl )
...
@@ -4025,21 +4025,32 @@ BOOL StatementControl::HandleCommonMethods( Window *pControl )
aSubMenuId2
=
SmartId
();
aSubMenuId2
=
SmartId
();
pMenuWindow
=
NULL
;
pMenuWindow
=
NULL
;
Point
aPos
;
Point
aPos
;
BOOL
bAtMousePos
=
(
nParams
&
PARAM_BOOL_1
)
&&
bBool1
;
ToolBox
*
pTB
;
if
(
bAtMousePos
)
if
(
(
pControl
->
GetType
()
==
WINDOW_TOOLBOX
)
?
(
pTB
=
(
ToolBox
*
)
pControl
)
->
IsMenuEnabled
()
:
FALSE
)
{
{
aPos
=
pControl
->
GetPointerPosPixel
();
Rectangle
aRect
=
pTB
->
GetMenubuttonRect
();
Window
*
pActualWin
=
pControl
->
FindWindow
(
aPos
);
AnimateMouse
(
pControl
,
aRect
.
Center
()
);
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
if
(
pActualWin
)
ImplMouseButtonDown
(
pTB
,
aMEvnt
);
}
else
{
BOOL
bAtMousePos
=
(
nParams
&
PARAM_BOOL_1
)
&&
bBool1
;
if
(
bAtMousePos
)
{
{
aPos
=
pActualWin
->
AbsoluteScreenToOutputPixel
(
pControl
->
OutputToAbsoluteScreenPixel
(
aPos
)
);
aPos
=
pControl
->
GetPointerPosPixel
();
// aPos = pActualWin->ScreenToOutputPixel( pControl->OutputToScreenPixel ( aPos ) );
Window
*
pActualWin
=
pControl
->
FindWindow
(
aPos
);
pControl
=
pActualWin
;
if
(
pActualWin
)
{
aPos
=
pActualWin
->
AbsoluteScreenToOutputPixel
(
pControl
->
OutputToAbsoluteScreenPixel
(
aPos
)
);
// aPos = pActualWin->ScreenToOutputPixel( pControl->OutputToScreenPixel ( aPos ) );
pControl
=
pActualWin
;
}
}
}
CommandEvent
aEvent
(
aPos
,
COMMAND_CONTEXTMENU
,
bAtMousePos
);
ImplCommand
(
pControl
,
aEvent
);
}
}
CommandEvent
aEvent
(
aPos
,
COMMAND_CONTEXTMENU
,
bAtMousePos
);
ImplCommand
(
pControl
,
aEvent
);
}
}
break
;
break
;
case
M_UseMenu
:
case
M_UseMenu
:
...
@@ -5041,22 +5052,13 @@ BOOL StatementControl::Execute()
...
@@ -5041,22 +5052,13 @@ BOOL StatementControl::Execute()
FIND_HELP
;
FIND_HELP
;
if
(
bBool1
)
// FIND_HELP Erfolgreich
if
(
bBool1
)
// FIND_HELP Erfolgreich
{
{
Rectangle
aRect
=
pTB
->
GetItem
Rect
(
pTB
->
GetItemId
(
nNr1
)
);
Rectangle
aRect
=
pTB
->
GetItem
PosDropDownRect
(
nNr1
);
AnimateMouse
(
pControl
,
aRect
.
Center
()
);
AnimateMouse
(
pControl
,
aRect
.
Center
()
);
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
ImplMouseButtonDown
(
pTB
,
aMEvnt
);
ImplMouseButtonDown
(
pTB
,
aMEvnt
);
Window
*
pWin
=
NULL
;
Window
*
pWin
=
NULL
;
StatementList
::
bExecuting
=
TRUE
;
// Bah ist das ein ekliger Hack
// Wait for the window to open.
{
// Das verhindert, da schon der nchste Befehl ausgefhrt wird.
ULONG
nStart
=
Time
::
GetSystemTicks
();
ULONG
nDelay
=
pControl
->
GetSettings
().
GetMouseSettings
().
GetActionDelay
();
while
(
!
(
pWin
=
GetPopupFloatingWin
())
&&
(
Time
::
GetSystemTicks
()
-
nStart
)
<
nDelay
+
100
)
SafeReschedule
();
}
StatementList
::
bExecuting
=
FALSE
;
// Bah ist das ein ekliger Hack
// Das Fenster ist offen.
StatementList
::
bExecuting
=
TRUE
;
// Bah ist das ein ekliger Hack
StatementList
::
bExecuting
=
TRUE
;
// Bah ist das ein ekliger Hack
{
// Das verhindert, da schon der nchste Befehl ausgefhrt wird.
{
// Das verhindert, da schon der nchste Befehl ausgefhrt wird.
Time
aDelay
;
Time
aDelay
;
...
@@ -5065,7 +5067,7 @@ BOOL StatementControl::Execute()
...
@@ -5065,7 +5067,7 @@ BOOL StatementControl::Execute()
}
}
StatementList
::
bExecuting
=
FALSE
;
// Bah ist das ein ekliger Hack
StatementList
::
bExecuting
=
FALSE
;
// Bah ist das ein ekliger Hack
if
(
pWin
)
if
(
pWin
&&
pWin
->
GetType
()
==
WINDOW_FLOATINGWINDOW
)
{
{
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
ImplMouseButtonUp
(
pTB
,
aMEvnt
);
ImplMouseButtonUp
(
pTB
,
aMEvnt
);
...
@@ -5085,20 +5087,11 @@ BOOL StatementControl::Execute()
...
@@ -5085,20 +5087,11 @@ BOOL StatementControl::Execute()
FIND_HELP
;
FIND_HELP
;
if
(
bBool1
)
// FIND_HELP Erfolgreich
if
(
bBool1
)
// FIND_HELP Erfolgreich
{
{
Rectangle
aRect
=
pTB
->
GetItem
Rect
(
pTB
->
GetItemId
(
nNr1
)
);
Rectangle
aRect
=
pTB
->
GetItem
PosDropDownRect
(
nNr1
);
AnimateMouse
(
pControl
,
aRect
.
Center
()
);
AnimateMouse
(
pControl
,
aRect
.
Center
()
);
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
MouseEvent
aMEvnt
(
aRect
.
Center
(),
1
,
MOUSE_SIMPLECLICK
,
MOUSE_LEFT
);
ImplMouseButtonDown
(
pTB
,
aMEvnt
);
ImplMouseButtonDown
(
pTB
,
aMEvnt
);
StatementList
::
bExecuting
=
TRUE
;
// Bah ist das ein ekliger Hack
{
// Das verhindert, da schon der nchste Befehl ausgefhrt wird.
ULONG
nStart
=
Time
::
GetSystemTicks
();
ULONG
nDelay
=
pControl
->
GetSettings
().
GetMouseSettings
().
GetActionDelay
();
while
(
(
Time
::
GetSystemTicks
()
-
nStart
)
<
nDelay
+
100
)
SafeReschedule
();
}
StatementList
::
bExecuting
=
FALSE
;
// Bah ist das ein ekliger Hack
// Das Fenster ist offen.
// Das Fenster ist offen.
aSubMenuId1
=
SmartId
();
aSubMenuId1
=
SmartId
();
aSubMenuId2
=
SmartId
();
aSubMenuId2
=
SmartId
();
...
...
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