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
63bd3f53
Kaydet (Commit)
63bd3f53
authored
Tem 19, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: cleanup Application::Foo
üst
91ee8026
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
154 deletions
+0
-154
svapp.hxx
vcl/inc/vcl/svapp.hxx
+0
-14
svapp.cxx
vcl/source/app/svapp.cxx
+0
-140
No files found.
vcl/inc/vcl/svapp.hxx
Dosyayı görüntüle @
63bd3f53
...
@@ -232,8 +232,6 @@ public:
...
@@ -232,8 +232,6 @@ public:
virtual
void
InitFinished
();
virtual
void
InitFinished
();
virtual
void
DeInit
();
virtual
void
DeInit
();
static
void
InitAppRes
(
const
ResId
&
rResId
);
static
sal_uInt16
GetCommandLineParamCount
();
static
sal_uInt16
GetCommandLineParamCount
();
static
XubString
GetCommandLineParam
(
sal_uInt16
nParam
);
static
XubString
GetCommandLineParam
(
sal_uInt16
nParam
);
static
const
XubString
&
GetAppFileName
();
static
const
XubString
&
GetAppFileName
();
...
@@ -256,7 +254,6 @@ public:
...
@@ -256,7 +254,6 @@ public:
static
sal_Bool
IsInMain
();
static
sal_Bool
IsInMain
();
static
sal_Bool
IsInExecute
();
static
sal_Bool
IsInExecute
();
static
sal_Bool
IsShutDown
();
static
sal_Bool
IsInModalMode
();
static
sal_Bool
IsInModalMode
();
static
sal_uInt16
GetModalModeCount
();
static
sal_uInt16
GetModalModeCount
();
...
@@ -264,7 +261,6 @@ public:
...
@@ -264,7 +261,6 @@ public:
static
sal_Bool
AnyInput
(
sal_uInt16
nType
=
INPUT_ANY
);
static
sal_Bool
AnyInput
(
sal_uInt16
nType
=
INPUT_ANY
);
static
sal_uLong
GetLastInputInterval
();
static
sal_uLong
GetLastInputInterval
();
static
sal_Bool
IsUICaptured
();
static
sal_Bool
IsUICaptured
();
static
sal_Bool
IsUserActive
(
sal_uInt16
nTest
=
USERACTIVE_ALL
);
virtual
void
SystemSettingsChanging
(
AllSettings
&
rSettings
,
virtual
void
SystemSettingsChanging
(
AllSettings
&
rSettings
,
Window
*
pFrame
);
Window
*
pFrame
);
...
@@ -300,7 +296,6 @@ public:
...
@@ -300,7 +296,6 @@ public:
static
void
RemoveMouseAndKeyEvents
(
Window
*
pWin
);
static
void
RemoveMouseAndKeyEvents
(
Window
*
pWin
);
static
sal_Bool
IsProcessedMouseOrKeyEvent
(
sal_uLong
nEventId
);
static
sal_Bool
IsProcessedMouseOrKeyEvent
(
sal_uLong
nEventId
);
static
sal_uLong
PostUserEvent
(
sal_uLong
nEvent
,
void
*
pEventData
=
NULL
);
static
sal_uLong
PostUserEvent
(
const
Link
&
rLink
,
void
*
pCaller
=
NULL
);
static
sal_uLong
PostUserEvent
(
const
Link
&
rLink
,
void
*
pCaller
=
NULL
);
static
sal_Bool
PostUserEvent
(
sal_uLong
&
rEventId
,
sal_uLong
nEvent
,
void
*
pEventData
=
NULL
);
static
sal_Bool
PostUserEvent
(
sal_uLong
&
rEventId
,
sal_uLong
nEvent
,
void
*
pEventData
=
NULL
);
static
sal_Bool
PostUserEvent
(
sal_uLong
&
rEventId
,
const
Link
&
rLink
,
void
*
pCaller
=
NULL
);
static
sal_Bool
PostUserEvent
(
sal_uLong
&
rEventId
,
const
Link
&
rLink
,
void
*
pCaller
=
NULL
);
...
@@ -357,16 +352,11 @@ public:
...
@@ -357,16 +352,11 @@ public:
static
sal_Bool
InsertAccel
(
Accelerator
*
pAccel
);
static
sal_Bool
InsertAccel
(
Accelerator
*
pAccel
);
static
void
RemoveAccel
(
Accelerator
*
pAccel
);
static
void
RemoveAccel
(
Accelerator
*
pAccel
);
static
void
FlushAccel
();
static
sal_Bool
CallAccel
(
const
KeyCode
&
rKeyCode
,
sal_uInt16
nRepeat
=
0
);
static
sal_Bool
CallAccel
(
const
KeyCode
&
rKeyCode
,
sal_uInt16
nRepeat
=
0
);
static
sal_uLong
AddHotKey
(
const
KeyCode
&
rKeyCode
,
const
Link
&
rLink
,
void
*
pData
=
NULL
);
static
void
RemoveHotKey
(
sal_uLong
nId
);
static
sal_uLong
AddEventHook
(
VCLEventHookProc
pProc
,
void
*
pData
=
NULL
);
static
sal_uLong
AddEventHook
(
VCLEventHookProc
pProc
,
void
*
pData
=
NULL
);
static
void
RemoveEventHook
(
sal_uLong
nId
);
static
void
RemoveEventHook
(
sal_uLong
nId
);
static
long
CallEventHooks
(
NotifyEvent
&
rEvt
);
static
long
CallEventHooks
(
NotifyEvent
&
rEvt
);
static
long
CallPreNotify
(
NotifyEvent
&
rEvt
);
static
long
CallEvent
(
NotifyEvent
&
rEvt
);
static
void
SetHelp
(
Help
*
pHelp
=
NULL
);
static
void
SetHelp
(
Help
*
pHelp
=
NULL
);
static
Help
*
GetHelp
();
static
Help
*
GetHelp
();
...
@@ -390,9 +380,7 @@ public:
...
@@ -390,9 +380,7 @@ public:
static
sal_uInt16
GetSystemWindowMode
();
static
sal_uInt16
GetSystemWindowMode
();
static
void
SetDialogScaleX
(
short
nScale
);
static
void
SetDialogScaleX
(
short
nScale
);
static
short
GetDialogScaleX
();
static
void
SetFontPath
(
const
String
&
rPath
);
static
const
String
&
GetFontPath
();
static
const
String
&
GetFontPath
();
static
UniqueItemId
CreateUniqueId
();
static
UniqueItemId
CreateUniqueId
();
...
@@ -407,8 +395,6 @@ public:
...
@@ -407,8 +395,6 @@ public:
static
void
SetFilterHdl
(
const
Link
&
rLink
);
static
void
SetFilterHdl
(
const
Link
&
rLink
);
static
const
Link
&
GetFilterHdl
();
static
const
Link
&
GetFilterHdl
();
static
sal_Bool
IsAccessibilityEnabled
();
static
void
EnableHeadlessMode
(
sal_Bool
bEnable
=
sal_True
);
static
void
EnableHeadlessMode
(
sal_Bool
bEnable
=
sal_True
);
static
sal_Bool
IsHeadlessModeEnabled
();
static
sal_Bool
IsHeadlessModeEnabled
();
...
...
vcl/source/app/svapp.cxx
Dosyayı görüntüle @
63bd3f53
...
@@ -241,12 +241,6 @@ Application::~Application()
...
@@ -241,12 +241,6 @@ Application::~Application()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
Application
::
InitAppRes
(
const
ResId
&
)
{
}
// -----------------------------------------------------------------------
sal_Bool
Application
::
QueryExit
()
sal_Bool
Application
::
QueryExit
()
{
{
WorkWindow
*
pAppWin
=
ImplGetSVData
()
->
maWinData
.
mpAppWin
;
WorkWindow
*
pAppWin
=
ImplGetSVData
()
->
maWinData
.
mpAppWin
;
...
@@ -549,13 +543,6 @@ sal_Bool Application::IsInExecute()
...
@@ -549,13 +543,6 @@ sal_Bool Application::IsInExecute()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
sal_Bool
Application
::
IsShutDown
()
{
return
ImplGetSVData
()
->
maAppData
.
mbAppQuit
;
}
// -----------------------------------------------------------------------
sal_Bool
Application
::
IsInModalMode
()
sal_Bool
Application
::
IsInModalMode
()
{
{
return
(
ImplGetSVData
()
->
maAppData
.
mnModalMode
!=
0
);
return
(
ImplGetSVData
()
->
maAppData
.
mnModalMode
!=
0
);
...
@@ -609,34 +596,6 @@ sal_Bool Application::IsUICaptured()
...
@@ -609,34 +596,6 @@ sal_Bool Application::IsUICaptured()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
sal_Bool
Application
::
IsUserActive
(
sal_uInt16
nTest
)
{
if
(
nTest
&
(
USERACTIVE_MOUSEDRAG
|
USERACTIVE_INPUT
)
)
{
if
(
IsUICaptured
()
)
return
sal_True
;
}
if
(
nTest
&
USERACTIVE_INPUT
)
{
if
(
GetLastInputInterval
()
<
500
)
return
sal_True
;
if
(
AnyInput
(
INPUT_KEYBOARD
)
)
return
sal_True
;
}
if
(
nTest
&
USERACTIVE_MODALDIALOG
)
{
if
(
ImplGetSVData
()
->
maAppData
.
mnModalDialog
)
return
sal_True
;
}
return
sal_False
;
}
// -----------------------------------------------------------------------
void
Application
::
SystemSettingsChanging
(
AllSettings
&
/*rSettings*/
,
void
Application
::
SystemSettingsChanging
(
AllSettings
&
/*rSettings*/
,
Window
*
/*pFrame*/
)
Window
*
/*pFrame*/
)
{
{
...
@@ -1064,15 +1023,6 @@ sal_Bool Application::IsProcessedMouseOrKeyEvent( sal_uLong nEventId )
...
@@ -1064,15 +1023,6 @@ sal_Bool Application::IsProcessedMouseOrKeyEvent( sal_uLong nEventId )
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
sal_uLong
Application
::
PostUserEvent
(
sal_uLong
nEvent
,
void
*
pEventData
)
{
sal_uLong
nEventId
;
PostUserEvent
(
nEventId
,
nEvent
,
pEventData
);
return
nEventId
;
}
// -----------------------------------------------------------------------
sal_uLong
Application
::
PostUserEvent
(
const
Link
&
rLink
,
void
*
pCaller
)
sal_uLong
Application
::
PostUserEvent
(
const
Link
&
rLink
,
void
*
pCaller
)
{
{
sal_uLong
nEventId
;
sal_uLong
nEventId
;
...
@@ -1453,16 +1403,6 @@ void Application::RemoveAccel( Accelerator* pAccel )
...
@@ -1453,16 +1403,6 @@ void Application::RemoveAccel( Accelerator* pAccel )
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
Application
::
FlushAccel
()
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
if
(
pSVData
->
maAppData
.
mpAccelMgr
)
pSVData
->
maAppData
.
mpAccelMgr
->
FlushAccel
();
}
// -----------------------------------------------------------------------
sal_Bool
Application
::
CallAccel
(
const
KeyCode
&
rKeyCode
,
sal_uInt16
nRepeat
)
sal_Bool
Application
::
CallAccel
(
const
KeyCode
&
rKeyCode
,
sal_uInt16
nRepeat
)
{
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
@@ -1535,13 +1475,6 @@ void Application::SetDialogScaleX( short nScale )
...
@@ -1535,13 +1475,6 @@ void Application::SetDialogScaleX( short nScale )
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
short
Application
::
GetDialogScaleX
()
{
return
ImplGetSVData
()
->
maAppData
.
mnDialogScaleX
;
}
// -----------------------------------------------------------------------
void
Application
::
SetDefDialogParent
(
Window
*
pWindow
)
void
Application
::
SetDefDialogParent
(
Window
*
pWindow
)
{
{
ImplGetSVData
()
->
maWinData
.
mpDefDialogParent
=
pWindow
;
ImplGetSVData
()
->
maWinData
.
mpDefDialogParent
=
pWindow
;
...
@@ -1663,19 +1596,6 @@ const String& Application::GetFontPath()
...
@@ -1663,19 +1596,6 @@ const String& Application::GetFontPath()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
void
Application
::
SetFontPath
(
const
String
&
rPath
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
// if it doesn't exist create a new one
if
(
!
pSVData
->
maAppData
.
mpFontPath
)
pSVData
->
maAppData
.
mpFontPath
=
new
String
(
rPath
);
else
*
(
pSVData
->
maAppData
.
mpFontPath
)
=
rPath
;
}
// -----------------------------------------------------------------------
UniqueItemId
Application
::
CreateUniqueId
()
UniqueItemId
Application
::
CreateUniqueId
()
{
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
@@ -1801,47 +1721,6 @@ void ImplFreeHotKeyData()
...
@@ -1801,47 +1721,6 @@ void ImplFreeHotKeyData()
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
sal_uIntPtr
Application
::
AddHotKey
(
const
KeyCode
&
rKeyCode
,
const
Link
&
rLink
,
void
*
pData
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
ImplHotKey
*
pHotKeyData
=
new
ImplHotKey
;
pHotKeyData
->
mpUserData
=
pData
;
pHotKeyData
->
maKeyCode
=
rKeyCode
;
pHotKeyData
->
maLink
=
rLink
;
pHotKeyData
->
mpNext
=
pSVData
->
maAppData
.
mpFirstHotKey
;
pSVData
->
maAppData
.
mpFirstHotKey
=
pHotKeyData
;
return
(
sal_uIntPtr
)
pHotKeyData
;
}
// -----------------------------------------------------------------------
void
Application
::
RemoveHotKey
(
sal_uIntPtr
nId
)
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
ImplHotKey
*
pFindHotKeyData
=
(
ImplHotKey
*
)
nId
;
ImplHotKey
*
pPrevHotKeyData
=
NULL
;
ImplHotKey
*
pHotKeyData
=
pSVData
->
maAppData
.
mpFirstHotKey
;
while
(
pHotKeyData
)
{
if
(
pHotKeyData
==
pFindHotKeyData
)
{
if
(
pPrevHotKeyData
)
pPrevHotKeyData
->
mpNext
=
pFindHotKeyData
->
mpNext
;
else
pSVData
->
maAppData
.
mpFirstHotKey
=
pFindHotKeyData
->
mpNext
;
delete
pFindHotKeyData
;
break
;
}
pPrevHotKeyData
=
pHotKeyData
;
pHotKeyData
=
pHotKeyData
->
mpNext
;
}
DBG_ASSERT
(
pHotKeyData
,
"Application::RemoveHotKey() - HotKey is not added"
);
}
// -----------------------------------------------------------------------
void
ImplFreeEventHookData
()
void
ImplFreeEventHookData
()
{
{
ImplSVData
*
pSVData
=
ImplGetSVData
();
ImplSVData
*
pSVData
=
ImplGetSVData
();
...
@@ -1919,20 +1798,6 @@ long Application::CallEventHooks( NotifyEvent& rEvt )
...
@@ -1919,20 +1798,6 @@ long Application::CallEventHooks( NotifyEvent& rEvt )
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
long
Application
::
CallPreNotify
(
NotifyEvent
&
rEvt
)
{
return
ImplCallPreNotify
(
rEvt
);
}
// -----------------------------------------------------------------------
long
Application
::
CallEvent
(
NotifyEvent
&
rEvt
)
{
return
ImplCallEvent
(
rEvt
);
}
// -----------------------------------------------------------------------
const
LocaleDataWrapper
&
Application
::
GetAppLocaleDataWrapper
()
const
LocaleDataWrapper
&
Application
::
GetAppLocaleDataWrapper
()
{
{
return
GetSettings
().
GetLocaleDataWrapper
();
return
GetSettings
().
GetLocaleDataWrapper
();
...
@@ -2008,11 +1873,6 @@ void Application::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const r
...
@@ -2008,11 +1873,6 @@ void Application::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const r
pSVData
->
mpDefInst
->
AddToRecentDocumentList
(
rFileUrl
,
rMimeType
);
pSVData
->
mpDefInst
->
AddToRecentDocumentList
(
rFileUrl
,
rMimeType
);
}
}
sal_Bool
Application
::
IsAccessibilityEnabled
()
{
return
sal_False
;
}
sal_Bool
InitAccessBridge
(
sal_Bool
bShowCancel
,
sal_Bool
&
rCancelled
)
sal_Bool
InitAccessBridge
(
sal_Bool
bShowCancel
,
sal_Bool
&
rCancelled
)
{
{
sal_Bool
bRet
=
true
;
sal_Bool
bRet
=
true
;
...
...
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