#include <ap_Win32Dialog_CollaborationJoin.h>
Public Member Functions | |
AP_Win32Dialog_CollaborationJoin (XAP_DialogFactory *pDlgFactory, XAP_Dialog_Id id) | |
void | runModal (XAP_Frame *pFrame) |
BOOL | _onInitDialog (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onCommand (HWND hWnd, WPARAM wParam, LPARAM lParam) |
BOOL | _onNotify (HWND hWnd, WPARAM wParam, LPARAM lParam) |
Static Public Member Functions | |
static XAP_Dialog * | static_constructor (XAP_DialogFactory *pFactory, XAP_Dialog_Id id) |
static BOOL CALLBACK | s_dlgProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
Private Member Functions | |
HTREEITEM | _addBuddyToTree (BuddyPtr pBuddy) |
HTREEITEM | _addDocumentToBuddy (HTREEITEM buddyItem, BuddyPtr pBuddy, DocHandle *pDocHandle) |
void | _populateWindowData () |
void | _refreshWindow () |
void | _enableBuddyAddition (bool bEnabled) |
ShareListItem * | _getSelectedItem () |
void | _updateSelection () |
void | _eventOpen () |
void | _addDocument (BuddyPtr pBuddy, DocHandle *pDocHandle) |
void | _freeBuddyList () |
Private Attributes | |
XAP_Win32DialogHelper * | p_win32Dialog |
HINSTANCE | m_hInstance |
HWND | m_hDocumentTreeview |
AP_Win32Dialog_CollaborationJoin::AP_Win32Dialog_CollaborationJoin | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References AbiCollabSessionManager::getManager(), m_hInstance, and UT_DEBUGMSG.
Referenced by static_constructor().
HTREEITEM AP_Win32Dialog_CollaborationJoin::_addBuddyToTree | ( | BuddyPtr | pBuddy | ) | [private] |
References UT_Win32LocaleString::c_str(), m_hDocumentTreeview, AP_Win32App::s_fromUTF8ToWinLocale(), and UT_UTF8String::utf8_str().
Referenced by _addDocument(), and _populateWindowData().
void AP_Win32Dialog_CollaborationJoin::_addDocument | ( | BuddyPtr | pBuddy, | |
DocHandle * | pDocHandle | |||
) | [private, virtual] |
Implements AP_Dialog_CollaborationJoin.
References _addBuddyToTree(), _addDocumentToBuddy(), m_hDocumentTreeview, ShareListItem::pBuddy, UT_ASSERT_HARMLESS, UT_DEBUGMSG, and UT_return_if_fail.
HTREEITEM AP_Win32Dialog_CollaborationJoin::_addDocumentToBuddy | ( | HTREEITEM | buddyItem, | |
BuddyPtr | pBuddy, | |||
DocHandle * | pDocHandle | |||
) | [private] |
References UT_Win32LocaleString::c_str(), DocHandle::getName(), m_hDocumentTreeview, AP_Win32App::s_fromUTF8ToWinLocale(), UT_return_val_if_fail, and UT_UTF8String::utf8_str().
Referenced by _addDocument(), and _populateWindowData().
void AP_Win32Dialog_CollaborationJoin::_enableBuddyAddition | ( | bool | bEnabled | ) | [private, virtual] |
Implements AP_Dialog_CollaborationJoin.
References XAP_Win32DialogHelper::enableControl(), and p_win32Dialog.
void AP_Win32Dialog_CollaborationJoin::_eventOpen | ( | ) | [private] |
void AP_Win32Dialog_CollaborationJoin::_freeBuddyList | ( | ) | [private] |
References m_hDocumentTreeview, s_treeview_delete_lparam(), and UT_DEBUGMSG.
Referenced by _populateWindowData(), and s_dlgProc().
ShareListItem * AP_Win32Dialog_CollaborationJoin::_getSelectedItem | ( | ) | [private] |
References XAP_Win32DialogHelper::enableControl(), m_hDocumentTreeview, p_win32Dialog, and UT_return_val_if_fail.
Referenced by _eventOpen(), and _updateSelection().
BOOL AP_Win32Dialog_CollaborationJoin::_onCommand | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
References AP_Dialog_CollaborationJoin::_eventAddBuddy(), _eventOpen(), and AP_Dialog_CollaborationJoin::_refreshAllDocHandlesAsync().
Referenced by s_dlgProc().
BOOL AP_Win32Dialog_CollaborationJoin::_onInitDialog | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
BOOL AP_Win32Dialog_CollaborationJoin::_onNotify | ( | HWND | hWnd, | |
WPARAM | wParam, | |||
LPARAM | lParam | |||
) |
References _updateSelection(), and code.
Referenced by s_dlgProc().
void AP_Win32Dialog_CollaborationJoin::_populateWindowData | ( | void | ) | [private] |
References _addBuddyToTree(), _addDocumentToBuddy(), _freeBuddyList(), _updateSelection(), AbiCollabSessionManager::getAccounts(), AbiCollabSessionManager::getManager(), m_hDocumentTreeview, DocTreeItem::m_next, UT_continue_if_fail, and UT_return_if_fail.
Referenced by _onInitDialog(), and _refreshWindow().
void AP_Win32Dialog_CollaborationJoin::_refreshWindow | ( | ) | [private, virtual] |
Implements AP_Dialog_CollaborationJoin.
References _populateWindowData().
void AP_Win32Dialog_CollaborationJoin::_updateSelection | ( | ) | [private] |
References _getSelectedItem(), XAP_Win32DialogHelper::enableControl(), p_win32Dialog, ShareListItem::pDocHandle, and UT_DEBUGMSG.
Referenced by _onNotify(), and _populateWindowData().
void AP_Win32Dialog_CollaborationJoin::runModal | ( | XAP_Frame * | pFrame | ) | [virtual] |
Implements AP_Dialog_CollaborationJoin.
References XAP_Frame::getFrameImpl(), m_hInstance, s_dlgProc(), this, UT_DEBUGMSG, and UT_return_if_fail.
BOOL CALLBACK AP_Win32Dialog_CollaborationJoin::s_dlgProc | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static] |
References _freeBuddyList(), _onCommand(), _onInitDialog(), _onNotify(), DELETEP, p_win32Dialog, and UT_return_val_if_fail.
Referenced by runModal().
XAP_Dialog * AP_Win32Dialog_CollaborationJoin::static_constructor | ( | XAP_DialogFactory * | pFactory, | |
XAP_Dialog_Id | id | |||
) | [static] |
References AP_Win32Dialog_CollaborationJoin().
HWND AP_Win32Dialog_CollaborationJoin::m_hDocumentTreeview [private] |
Referenced by _addBuddyToTree(), _addDocument(), _addDocumentToBuddy(), _freeBuddyList(), _getSelectedItem(), _onInitDialog(), and _populateWindowData().
HINSTANCE AP_Win32Dialog_CollaborationJoin::m_hInstance [private] |
Referenced by AP_Win32Dialog_CollaborationJoin(), and runModal().
Referenced by _enableBuddyAddition(), _getSelectedItem(), _onInitDialog(), _updateSelection(), and s_dlgProc().