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

ap_Dialog_InsertTable.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 #ifndef AP_DIALOG_INSERTTABLE_H
00021 #define AP_DIALOG_INSERTTABLE_H
00022 
00023 #include "ut_types.h"
00024 #include "xap_Frame.h"
00025 #include "xap_Dialog.h"
00026 #include "xav_View.h"
00027 #include "ut_units.h"
00028 
00029 class XAP_Frame;
00030 
00031 class ABI_EXPORT AP_Dialog_InsertTable : public XAP_Dialog_NonPersistent
00032 {
00033 public:
00034     AP_Dialog_InsertTable(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00035     virtual ~AP_Dialog_InsertTable(void);
00036 
00037     virtual void                    runModal(XAP_Frame * pFrame) = 0;
00038 
00039     typedef enum { a_OK, a_CANCEL } tAnswer;
00040     typedef enum { b_AUTOSIZE = 0, b_FIXEDSIZE } columnType;
00041 
00042     AP_Dialog_InsertTable::tAnswer      getAnswer(void) const;
00043     AP_Dialog_InsertTable::columnType   getColumnType(void) const;
00044     UT_uint32                           getNumRows(void);
00045     UT_uint32                           getNumCols(void);
00046     float                               getColumnWidth(void);
00047     void                                setColumnWidth(float columnWidth);
00048     double                              getSpinIncr (void);
00049     double                              getSpinMin (void);
00050 
00051 protected:
00052 
00053     void                    _doSpin(UT_sint32 amt, double& dValue);
00054 
00055     AP_Dialog_InsertTable::tAnswer      m_answer;
00056     AP_Dialog_InsertTable::columnType   m_columnType;
00057     UT_uint32                           m_numRows;
00058     UT_uint32                           m_numCols;
00059     float                   m_columnWidth;
00060     UT_Dimension            m_dim;
00061 };
00062 
00063 #endif /* AP_DIALOG_INSERTTABLE_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1