diff --git a/include/wx/msw/taskbarbutton.h b/include/wx/msw/taskbarbutton.h index 444fd8d351..8e25313956 100644 --- a/include/wx/msw/taskbarbutton.h +++ b/include/wx/msw/taskbarbutton.h @@ -18,9 +18,6 @@ namespace { class WXDLLIMPEXP_FWD_CORE ITaskbarList3; -class WXDLLIMPEXP_FWD_CORE IObjectArray; -class WXDLLIMPEXP_FWD_CORE ICustomDestinationList; -class WXDLLIMPEXP_FWD_CORE IApplicationDocumentLists; } class WXDLLIMPEXP_CORE wxTaskBarButtonImpl : public wxTaskBarButton { @@ -66,50 +63,6 @@ private: bool m_hasInitThumbnailToolbar; }; -class WXDLLIMPEXP_CORE wxTaskBarJumpListImpl -{ -public: - wxTaskBarJumpListImpl(wxTaskBarJumpList *jumpList = NULL, - const wxString& appID = wxEmptyString); - virtual ~wxTaskBarJumpListImpl(); - void ShowRecentCategory(bool shown = true); - void HideRecentCategory(); - void ShowFrequentCategory(bool shown = true); - void HideFrequentCategory(); - - wxTaskBarJumpListCategory& GetTasks(); - const wxTaskBarJumpListCategory& GetFrequentCategory(); - const wxTaskBarJumpListCategory& GetRecentCategory(); - const wxTaskBarJumpListCategories& GetCustomCategories() const; - - void AddCustomCategory(wxTaskBarJumpListCategory* category); - wxTaskBarJumpListCategory* RemoveCustomCategory(const wxString& title); - void DeleteCustomCategory(const wxString& title); - void Update(); - -private: - bool BeginUpdate(); - bool CommitUpdate(); - void AddTasksToDestinationList(); - void AddCustomCategoriesToDestionationList(); - void LoadKnownCategory(const wxString& title); - - wxTaskBarJumpList *m_jumpList; - - ICustomDestinationList *m_destinationList; - IObjectArray *m_objectArray; - - wxScopedPtr m_tasks; - wxScopedPtr m_frequent; - wxScopedPtr m_recent; - wxTaskBarJumpListCategories m_customCategories; - bool m_recent_visible; - bool m_frequent_visible; - - // Application User Model ID. - wxString m_appID; -}; - #endif // wxUSE_TASKBARBUTTON #endif // _WX_MSW_TASKBARBUTTON_H_ diff --git a/src/msw/taskbarbutton.cpp b/src/msw/taskbarbutton.cpp index ebc5918daa..158a10f1ab 100644 --- a/src/msw/taskbarbutton.cpp +++ b/src/msw/taskbarbutton.cpp @@ -515,6 +515,54 @@ IObjectCollection* CreateObjectCollection() } // namespace +// ---------------------------------------------------------------------------- +// wxTaskBarJumpListImpl: definition of class for internal taskbar jump list +// implementation. +// ---------------------------------------------------------------------------- +class wxTaskBarJumpListImpl +{ +public: + wxTaskBarJumpListImpl(wxTaskBarJumpList *jumpList = NULL, + const wxString& appID = wxEmptyString); + virtual ~wxTaskBarJumpListImpl(); + void ShowRecentCategory(bool shown = true); + void HideRecentCategory(); + void ShowFrequentCategory(bool shown = true); + void HideFrequentCategory(); + + wxTaskBarJumpListCategory& GetTasks(); + const wxTaskBarJumpListCategory& GetFrequentCategory(); + const wxTaskBarJumpListCategory& GetRecentCategory(); + const wxTaskBarJumpListCategories& GetCustomCategories() const; + + void AddCustomCategory(wxTaskBarJumpListCategory* category); + wxTaskBarJumpListCategory* RemoveCustomCategory(const wxString& title); + void DeleteCustomCategory(const wxString& title); + void Update(); + +private: + bool BeginUpdate(); + bool CommitUpdate(); + void AddTasksToDestinationList(); + void AddCustomCategoriesToDestionationList(); + void LoadKnownCategory(const wxString& title); + + wxTaskBarJumpList *m_jumpList; + + ICustomDestinationList *m_destinationList; + IObjectArray *m_objectArray; + + wxScopedPtr m_tasks; + wxScopedPtr m_frequent; + wxScopedPtr m_recent; + wxTaskBarJumpListCategories m_customCategories; + bool m_recent_visible; + bool m_frequent_visible; + + // Application User Model ID. + wxString m_appID; +}; + // ---------------------------------------------------------------------------- // wxThumbBarButton Implementation. // ----------------------------------------------------------------------------