00001 /* AbiWord 00002 * Copyright (C) 1998 AbiSource, Inc. 00003 * (c) 2002 Jordi Mas i Hernāndez jmas@softcatala.org 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_WIN32STATUSBAR_H 00022 #define AP_WIN32STATUSBAR_H 00023 00024 // Class for dealing with the status bar at the bottom of 00025 // the frame window. 00026 00027 #include "ut_types.h" 00028 #include "ap_StatusBar.h" 00029 00030 class XAP_Frame; 00031 class XAP_Win32App; 00032 00035 00036 class ABI_EXPORT AP_Win32StatusBar : public AP_StatusBar 00037 { 00038 public: 00039 AP_Win32StatusBar(XAP_Frame * pFrame); 00040 virtual ~AP_Win32StatusBar(void); 00041 00042 HWND createWindow(HWND hwndFrame, 00043 UT_uint32 left, UT_uint32 top, 00044 UT_uint32 width); 00045 virtual void setView(AV_View * pView); 00046 00047 WNDPROC getOrgWndProc() { return m_pOrgStatusbarWndProc; } 00048 int getPrevWidth () { return m_iPrevWidth; } 00049 void setPrevWidth (int n) { m_iPrevWidth = n; } 00050 00051 UINT getDir() const {return m_iDIR;} 00052 HWND getProgressBar() const {return m_hwndProgressBar;} 00053 void showProgressBar(void); 00054 void hideProgressBar(void); 00055 protected: 00056 virtual void show(); 00057 virtual void hide(); 00058 00059 HWND m_hwndStatusBar; 00060 HWND m_hwndProgressBar; 00061 WNDPROC m_pOrgStatusbarWndProc; 00062 int m_iPrevWidth; 00063 UINT m_iDIR; 00064 }; 00065 00066 #endif /* AP_WIN32STATUSBAR_H */