Kaydet (Commit) 0cdf0908 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make ImplSVData private to vcl

Change-Id: I1df6ba8a269be3e165ff5948af1dd12e0bdc6f7d
üst e1df21cf
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <vcl/dllapi.h> #include <vcl/dllapi.h>
class Scheduler; class Scheduler;
struct ImplSVData;
struct ImplSchedulerData; struct ImplSchedulerData;
enum class SchedulerPriority { enum class SchedulerPriority {
...@@ -39,9 +38,6 @@ enum class SchedulerPriority { ...@@ -39,9 +38,6 @@ enum class SchedulerPriority {
class VCL_DLLPUBLIC Scheduler class VCL_DLLPUBLIC Scheduler
{ {
private:
static void InitSystemTimer(ImplSVData* pSVData);
protected: protected:
ImplSchedulerData* mpSchedulerData; /// Pointer to element in scheduler list ImplSchedulerData* mpSchedulerData; /// Pointer to element in scheduler list
const sal_Char *mpDebugName; /// Useful for debugging const sal_Char *mpDebugName; /// Useful for debugging
...@@ -50,7 +46,6 @@ protected: ...@@ -50,7 +46,6 @@ protected:
// These should be constexpr static, when supported. // These should be constexpr static, when supported.
static const sal_uInt64 ImmediateTimeoutMs = 1; static const sal_uInt64 ImmediateTimeoutMs = 1;
static const sal_uInt64 MaximumTimeoutMs = 1000 * 60; // 1 minute
static void ImplStartTimer(sal_uInt64 nMS, bool bForce = false); static void ImplStartTimer(sal_uInt64 nMS, bool bForce = false);
......
...@@ -1450,9 +1450,6 @@ public: ...@@ -1450,9 +1450,6 @@ public:
static void setDeInitHook(Link<LinkParamNone*,void> const & hook); static void setDeInitHook(Link<LinkParamNone*,void> const & hook);
private: private:
static void InitSettings(ImplSVData* pSVData);
DECL_STATIC_LINK_TYPED( Application, PostEventHandler, void*, void ); DECL_STATIC_LINK_TYPED( Application, PostEventHandler, void*, void );
}; };
......
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
#include <svdata.hxx> #include <svdata.hxx>
#include <salinst.hxx> #include <salinst.hxx>
namespace {
const sal_uInt64 MaximumTimeoutMs = 1000 * 60; // 1 minute
void InitSystemTimer(ImplSVData* pSVData);
}
void ImplSchedulerData::Invoke() void ImplSchedulerData::Invoke()
{ {
if (mbDelete || mbInScheduler ) if (mbDelete || mbInScheduler )
...@@ -135,21 +140,25 @@ void Scheduler::ImplStartTimer(sal_uInt64 nMS, bool bForce) ...@@ -135,21 +140,25 @@ void Scheduler::ImplStartTimer(sal_uInt64 nMS, bool bForce)
} }
} }
namespace {
/** /**
* Initialize the platform specific timer on which all the * Initialize the platform specific timer on which all the
* platform independent timers are built * platform independent timers are built
*/ */
void Scheduler::InitSystemTimer(ImplSVData* pSVData) void InitSystemTimer(ImplSVData* pSVData)
{ {
assert(pSVData != nullptr); assert(pSVData != nullptr);
if (!pSVData->mpSalTimer) if (!pSVData->mpSalTimer)
{ {
pSVData->mnTimerPeriod = MaximumTimeoutMs; pSVData->mnTimerPeriod = MaximumTimeoutMs;
pSVData->mpSalTimer = pSVData->mpDefInst->CreateSalTimer(); pSVData->mpSalTimer = pSVData->mpDefInst->CreateSalTimer();
pSVData->mpSalTimer->SetCallback(CallbackTaskScheduling); pSVData->mpSalTimer->SetCallback(Scheduler::CallbackTaskScheduling);
} }
} }
}
void Scheduler::CallbackTaskScheduling(bool ignore) void Scheduler::CallbackTaskScheduling(bool ignore)
{ {
// this function is for the saltimer callback // this function is for the saltimer callback
......
...@@ -80,6 +80,10 @@ ...@@ -80,6 +80,10 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
namespace {
void InitSettings(ImplSVData* pSVData);
}
// keycodes handled internally by VCL // keycodes handled internally by VCL
class ImplReservedKey class ImplReservedKey
{ {
...@@ -769,7 +773,9 @@ const AllSettings& Application::GetSettings() ...@@ -769,7 +773,9 @@ const AllSettings& Application::GetSettings()
return *(pSVData->maAppData.mpSettings); return *(pSVData->maAppData.mpSettings);
} }
void Application::InitSettings(ImplSVData* pSVData) namespace {
void InitSettings(ImplSVData* pSVData)
{ {
assert(!pSVData->maAppData.mpSettings && "initialization should not happen twice!"); assert(!pSVData->maAppData.mpSettings && "initialization should not happen twice!");
...@@ -781,6 +787,8 @@ void Application::InitSettings(ImplSVData* pSVData) ...@@ -781,6 +787,8 @@ void Application::InitSettings(ImplSVData* pSVData)
} }
} }
}
void Application::NotifyAllWindows( DataChangedEvent& rDCEvt ) void Application::NotifyAllWindows( DataChangedEvent& rDCEvt )
{ {
ImplSVData* pSVData = ImplGetSVData(); ImplSVData* pSVData = ImplGetSVData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment