// serwedoc.h : interface of the CSerwebDoc class // ///////////////////////////////////////////////////////////////////////////// const MAX_LINES = 100; //How many lines to allow class CSerwebDoc : public CDocument { protected: // create from serialization only CSerwebDoc(); DECLARE_DYNCREATE(CSerwebDoc) CSize m_sizeDoc; // Attributes public: CSize GetDocSize() {return m_sizeDoc;} void SetDocSize(int xval, int yval) {m_sizeDoc.cx = xval; m_sizeDoc.cy = yval;} // Operations public: CString data_string[MAX_LINES]; long line_number, column_number; // Implementation public: virtual ~CSerwebDoc(); virtual void Serialize(CArchive& ar); // overridden for document i/o #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: virtual BOOL OnNewDocument(); // Generated message map functions protected: //{{AFX_MSG(CSerwebDoc) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /////////////////////////////////////////////////////////////////////////////