Kaydet (Commit) d30aedb2 authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: Id5be64f38fa448271a5364c86c32ffddfc309bbf
üst 7beefb1f
...@@ -747,7 +747,7 @@ private: ...@@ -747,7 +747,7 @@ private:
boost::ptr_vector<ContentNode> maContents; boost::ptr_vector<ContentNode> maContents;
SfxItemPool* pItemPool; SfxItemPool* pItemPool;
Link<> aModifyHdl; Link<LinkParamNone*,void> aModifyHdl;
SvxFont aDefFont; //faster than ever from the pool!! SvxFont aDefFont; //faster than ever from the pool!!
sal_uInt16 nDefTab; sal_uInt16 nDefTab;
...@@ -769,7 +769,7 @@ public: ...@@ -769,7 +769,7 @@ public:
bool IsModified() const { return bModified; } bool IsModified() const { return bModified; }
void SetModified( bool b ); void SetModified( bool b );
void SetModifyHdl( const Link<>& rLink ) { aModifyHdl = rLink; } void SetModifyHdl( const Link<LinkParamNone*,void>& rLink ) { aModifyHdl = rLink; }
void CreateDefFont( bool bUseStyles ); void CreateDefFont( bool bUseStyles );
const SvxFont& GetDefFont() { return aDefFont; } const SvxFont& GetDefFont() { return aDefFont; }
......
...@@ -657,10 +657,10 @@ private: ...@@ -657,10 +657,10 @@ private:
inline VirtualDevice* GetVirtualDevice( const MapMode& rMapMode, DrawModeFlags nDrawMode ); inline VirtualDevice* GetVirtualDevice( const MapMode& rMapMode, DrawModeFlags nDrawMode );
inline void EraseVirtualDevice() { pVirtDev.disposeAndClear(); } inline void EraseVirtualDevice() { pVirtDev.disposeAndClear(); }
DECL_LINK_TYPED(StatusTimerHdl, Timer *, void); DECL_LINK_TYPED( StatusTimerHdl, Timer *, void);
DECL_LINK_TYPED(IdleFormatHdl, Idle *, void); DECL_LINK_TYPED( IdleFormatHdl, Idle *, void);
DECL_LINK_TYPED(OnlineSpellHdl, Timer *, void); DECL_LINK_TYPED( OnlineSpellHdl, Timer *, void);
DECL_LINK( DocModified, void* ); DECL_LINK_TYPED( DocModified, LinkParamNone*, void );
void CheckIdleFormatter(); void CheckIdleFormatter();
......
...@@ -4370,10 +4370,9 @@ void ImpEditEngine::LeaveBlockNotifications() ...@@ -4370,10 +4370,9 @@ void ImpEditEngine::LeaveBlockNotifications()
} }
} }
IMPL_LINK_NOARG(ImpEditEngine, DocModified) IMPL_LINK_NOARG_TYPED(ImpEditEngine, DocModified, LinkParamNone*, void)
{ {
aModifyHdl.Call( NULL /*GetEditEnginePtr()*/ ); // NULL, because also used for Outliner aModifyHdl.Call( NULL /*GetEditEnginePtr()*/ ); // NULL, because also used for Outliner
return 0;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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