• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Win32Dialog_CollaborationAddAccount.h

Go to the documentation of this file.
00001 /* AbiCollab - Code to enable the modification of remote documents.
00002  * Copyright (C) 2007 by Ryan Pavlik <abiryan@ryand.net>
00003  * Copyright (C) 2006 by Marc Maurer <uwog@uwog.net>
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 
00021 #ifndef AP_WIN32DIALOG_COLLABORATIONADDACCOUNT_H
00022 #define AP_WIN32DIALOG_COLLABORATIONADDACCOUNT_H
00023 
00024 #include <vector>
00025 
00026 #include "xap_Win32DialogHelper.h"
00027 #include "ut_assert.h"
00028 
00029 #include <dialogs/xp/ap_Dialog_CollaborationAddAccount.h>
00030 #include "ap_Win32Res_DlgCollaborationAddAccount.rc2"
00031 
00032 class XAP_Frame;
00033 
00034 class AP_Win32Dialog_CollaborationAddAccount : public AP_Dialog_CollaborationAddAccount
00035 {
00036 public:
00037     AP_Win32Dialog_CollaborationAddAccount(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00038     static XAP_Dialog *         static_constructor(XAP_DialogFactory * pFactory, XAP_Dialog_Id id);
00039 
00040     void                        runModal(XAP_Frame * pFrame);
00041     static BOOL CALLBACK        s_dlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00042     static BOOL CALLBACK        s_detailsProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00043     BOOL                        _onInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam);
00044     BOOL                        _onCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
00045     BOOL                        _onDetailsCommand(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00046     BOOL                        detailsProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
00047     static LRESULT              s_detailsGetMsgProc(int nCode, WPARAM wParam, LPARAM lParam);
00048     LRESULT                     detailsGetMsgProc(int nCode, WPARAM wParam, LPARAM lParam);
00049     void                        setBackendValidity(bool valid);
00050 
00051 protected:
00052     XAP_Win32DialogHelper *     m_pWin32Dialog;
00053 
00054     virtual void*               _getEmbeddingParent();
00055     virtual AccountHandler*     _getActiveAccountHandler();
00056 
00057     // Handles
00058     HINSTANCE                   m_hInstance;
00059     HWND                        m_hOk;
00060     LONG_PTR                    m_pOldDetailsProc;
00061     HWND                        m_hWnd;
00062     HWND                        m_hDetails;
00063     HHOOK                       m_hDetailsHook;
00064 
00065     // Data
00066     std::vector<AccountHandler*>    m_vAccountTypeCombo;
00067 
00068 private:
00069 
00070     void                        _populateWindowData(void);
00071 };
00072 
00073 #endif /* AP_WIN32DIALOG_COLLABORATIONADDACCOUNT_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1