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

ap_QtApp.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 /* AbiWord
00003  * Copyright (C) 2013 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_QT_APP_H__
00022 #define __AP_QT_APP_H__
00023 
00024 #include "ut_types.h"
00025 #include "ap_App.h"
00026 
00027 class AP_QtClipboard;
00028 class AP_DiskStringSet;
00029 class AP_BuiltinStringSet;
00030 
00031 class ABI_EXPORT AP_QtApp
00032     : public AP_App
00033 {
00034 public:
00035     AP_QtApp(const char * szAppName);
00036     virtual ~AP_QtApp();
00037 
00038     virtual bool                                    initialize(bool has_display);
00039     virtual bool                    shutdown(void);
00040 
00041     virtual XAP_Frame *             newFrame(void);
00042     virtual GR_Graphics *           newDefaultScreenGraphics() const;
00043 
00044     virtual const XAP_StringSet *                   getStringSet(void) const;
00045     virtual const char *                    getAbiSuiteAppDir(void) const;
00046 
00047     virtual void                    copyToClipboard(PD_DocumentRange * pDocRange, bool bUseClipboard = true);
00048     virtual void                    pasteFromClipboard(PD_DocumentRange * pDocRange, bool bUseClipboard, bool bHonorFormatting = true);
00049     virtual bool                    canPasteFromClipboard(void);
00050 
00051     virtual void                    cacheCurrentSelection(AV_View *);
00052 
00053     virtual bool                    doWindowlessArgs (const AP_Args *, bool & bSuccess);
00054 
00055     static int main (const char * szAppName, int argc, char ** argv);
00056 
00057     void                            catchSignals(int sig_num) ABI_NORETURN;
00058 
00059 private:
00060 
00061     AP_DiskStringSet * loadStringsFromDisk(const char          * szStringSet,
00062                                            AP_BuiltinStringSet * pFallbackStringSet);
00063 
00064     XAP_StringSet*          m_pStringSet;
00065     AP_QtClipboard*         m_pClipboard;
00066 };
00067 
00068 #endif

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1