Back to index

lightning-sunbird  0.9+nobinonly
LdapView.h
Go to the documentation of this file.
00001 // LdapView.h : interface of the LdapView class
00002 //
00004 
00005 class LdapView : public CView
00006 {
00007 protected: // create from serialization only
00008        LdapView();
00009        DECLARE_DYNCREATE(LdapView)
00010 
00011 // Attributes
00012 public:
00013        LdapDoc* GetDocument();
00014 
00015 private:
00016        CListBox m_list;
00017 
00018 // Operations
00019 public:
00020        void AddLine( LPCSTR line, const char *dn=NULL );
00021        void ClearLines();
00022 
00023 private:
00024        void showProperties( LDAP *ld, char *dn );
00025 
00026 // Overrides
00027        // ClassWizard generated virtual function overrides
00028        //{{AFX_VIRTUAL(LdapView)
00029        public:
00030        virtual void OnDraw(CDC* pDC);  // overridden to draw this view
00031        virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00032        protected:
00033        virtual void OnInitialUpdate(); // called first time after construct
00034        //}}AFX_VIRTUAL
00035 
00036 // Implementation
00037 public:
00038        virtual ~LdapView();
00039 #ifdef _DEBUG
00040        virtual void AssertValid() const;
00041        virtual void Dump(CDumpContext& dc) const;
00042 #endif
00043 
00044 protected:
00045 
00046 // Generated message map functions
00047 protected:
00048        //{{AFX_MSG(LdapView)
00049        afx_msg void OnSize(UINT nType, int cx, int cy);
00050        afx_msg void OnListDoubleClick();
00051        //}}AFX_MSG
00052        DECLARE_MESSAGE_MAP()
00053 };
00054 
00055 #ifndef _DEBUG  // debug version in LdapView.cpp
00056 inline LdapDoc* LdapView::GetDocument()
00057    { return (LdapDoc*)m_pDocument; }
00058 #endif
00059