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

ap_CocoaPreview_Annotation.h

Go to the documentation of this file.
00001 /* AbiSource Application Framework
00002  * Copyright (C) 1998-2000 AbiSource, Inc.
00003  * Copyright (C) 2009 Hubert Figuiere
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_COCOAPREVIEW_ANNOTATION_H
00022 #define AP_COCOAPREVIEW_ANNOTATION_H
00023 
00024 #include <Cocoa/Cocoa.h>
00025 
00026 #include "ap_Preview_Annotation.h"
00027 
00028 class XAP_Frame;
00029 class GR_CairoGraphics;
00030 @class XAP_CocoaNSView;
00031 
00032 class AP_CocoaPreview_Annotation : public AP_Preview_Annotation
00033 {
00034 public:
00035   AP_CocoaPreview_Annotation(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id dlgid);
00036     virtual ~AP_CocoaPreview_Annotation(void);
00037 
00038     virtual void            runModeless(XAP_Frame * pFrame);
00039     virtual void            destroy(void);
00040     virtual void            activate(void);
00041     virtual void            notifyActiveFrame(XAP_Frame *pFrame);
00042 
00043     static XAP_Dialog *     static_constructor(XAP_DialogFactory *, XAP_Dialog_Id dlgid);
00044     void                    _constructWindow(void);
00045 
00046 /*protected:
00047     void    _bringToTop(void);*/
00048 
00049 private:
00050     // parent frame
00051     GR_CairoGraphics *  m_gc;
00052     NSWindow *          m_pPreviewWindow;
00053     XAP_CocoaNSView *           m_pDrawingArea;
00054 };
00055 
00056 #endif /* AP_COCOAPREVIEW_ANNOTATION_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1