Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
2.0 KiB

// drawdoc.h : interface of the CDrawDoc class
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1993 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and Microsoft
// QuickHelp and/or WinHelp documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#include "drawobj.h"
class CDrawView;
class CMainFrame;
class CDrawDoc : public COleDocument
{
protected: // create from serialization only
CDrawDoc();
DECLARE_DYNCREATE(CDrawDoc)
// Attributes
public:
CDrawObjList* GetObjects() { return &m_objects; }
const CSize& GetSize() const { return m_size; }
void ComputePageSize();
int GetMapMode() const { return m_nMapMode; }
COLORREF GetPaperColor() const { return m_paperColor; }
void CloseEdit();
BOOL StoreForPrinting(CArchive& ar);
// Operations
public:
CDrawObj* ObjectAt(const CPoint& point);
void Draw(CDC* pDC, CDrawView* pView);
void Add(CDrawObj* pObj);
void Remove(CDrawObj* pObj);
// Implementation
public:
virtual ~CDrawDoc();
virtual void Serialize(CArchive& ar); // overridden for document i/o
virtual void DeleteContents(); // overridden clear doc
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
virtual BOOL OnNewDocument();
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual void OnCloseDocument();
CDrawObjList m_objects;
CSize m_size;
int m_nMapMode;
COLORREF m_paperColor;
// Generated message map functions
protected:
//{{AFX_MSG(CDrawDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
afx_msg void OnViewPaperColor();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////