Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes | Protected Member Functions
CMarginHeaderFooter Class Reference

#include <CMarginHeaderFooter.h>

List of all members.

Public Types

enum  { IDD = IDD_HEADERFOOTER_TAB }

Public Member Functions

 CMarginHeaderFooter ()
 ~CMarginHeaderFooter ()

Public Attributes

CString m_BottomMarginText
CString m_LeftMarginText
CString m_RightMarginText
CString m_TopMarginText
CString m_FooterLeftText
CString m_FooterCenterText
CString m_FooterRightText
CString m_HeaderLeftText
CString m_HeaderCenterText
CString m_HeaderRightText

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
void SetCombobox (int aId, CString &aText)
void SetComboboxValue (int aId, const TCHAR *aValue)
void AddCBXItem (int aId, const TCHAR *aItem)
virtual BOOL OnInitDialog ()
afx_msg void OnEditchangeFTRLeft ()
afx_msg void OnEditchangeFTRCenter ()
afx_msg void OnEditchangeFTRRight ()
afx_msg void OnEditchangeHDRLeft ()
afx_msg void OnEditchangeHDRCenter ()
afx_msg void OnEditchangeHDRRight ()

Detailed Description

Definition at line 44 of file CMarginHeaderFooter.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
IDD 

Definition at line 55 of file CMarginHeaderFooter.h.


Constructor & Destructor Documentation

Definition at line 26 of file CMarginHeaderFooter.cpp.

                                         : CPropertyPage(CMarginHeaderFooter::IDD)
{
         //{{AFX_DATA_INIT(CMarginHeaderFooter)
         m_BottomMarginText = _T("");
         m_LeftMarginText = _T("");
         m_RightMarginText = _T("");
         m_TopMarginText = _T("");
         //}}AFX_DATA_INIT

         m_FooterLeftText = _T("");
         m_FooterCenterText = _T("");
         m_FooterRightText = _T("");
         m_HeaderLeftText = _T("");
         m_HeaderCenterText = _T("");
         m_HeaderRightText = _T("");
}

Definition at line 43 of file CMarginHeaderFooter.cpp.

{
}

Member Function Documentation

void CMarginHeaderFooter::AddCBXItem ( int  aId,
const TCHAR aItem 
) [protected]

Definition at line 92 of file CMarginHeaderFooter.cpp.

{
    CComboBox* cbx = (CComboBox*)GetDlgItem(aId);
    if (cbx) 
    {
        cbx->AddString(aItem);
    }
}

Here is the caller graph for this function:

void CMarginHeaderFooter::DoDataExchange ( CDataExchange *  pDX) [protected, virtual]

Definition at line 47 of file CMarginHeaderFooter.cpp.

{
         CPropertyPage::DoDataExchange(pDX);
         //{{AFX_DATA_MAP(CMarginHeaderFooter)
         DDX_Text(pDX, IDC_BOTTOM_MARGIN_TXT, m_BottomMarginText);
         DDX_Text(pDX, IDC_LEFT_MARGIN_TXT, m_LeftMarginText);
         DDX_Text(pDX, IDC_RIGHT_MARGIN_TXT, m_RightMarginText);
         DDX_Text(pDX, IDC_TOP_MARGIN_TXT, m_TopMarginText);
         //}}AFX_DATA_MAP
}

Definition at line 149 of file CMarginHeaderFooter.cpp.

Here is the call graph for this function:

Definition at line 144 of file CMarginHeaderFooter.cpp.

Here is the call graph for this function:

Definition at line 154 of file CMarginHeaderFooter.cpp.

Here is the call graph for this function:

Definition at line 164 of file CMarginHeaderFooter.cpp.

Here is the call graph for this function:

Definition at line 159 of file CMarginHeaderFooter.cpp.

Here is the call graph for this function:

Definition at line 169 of file CMarginHeaderFooter.cpp.

Here is the call graph for this function:

BOOL CMarginHeaderFooter::OnInitDialog ( ) [protected, virtual]
void CMarginHeaderFooter::SetCombobox ( int  aId,
CString &  aText 
) [protected]

Definition at line 127 of file CMarginHeaderFooter.cpp.

{
    CComboBox* cbx = (CComboBox*)GetDlgItem(aId);
         int inx = cbx->GetCurSel();
    if (inx == 6) 
    {
        CCustomPromptDialog prompt(this);
        prompt.m_CustomText = aText;
        if(prompt.DoModal() == IDOK)
        {
            aText = prompt.m_CustomText;
        }
    } else {
      aText = sCBXValues[inx];
    }
}

Here is the caller graph for this function:

void CMarginHeaderFooter::SetComboboxValue ( int  aId,
const TCHAR aValue 
) [protected]

Definition at line 73 of file CMarginHeaderFooter.cpp.

{
    CComboBox* cbx = (CComboBox*)GetDlgItem(aId);
    if (cbx) 
    {
        int inx = 0;
        while (sCBXValues[inx] != NULL) 
        {
            if (!_tcscmp(sCBXValues[inx], aItem)) 
            {
                cbx->SetCurSel(inx);
                return;
            }
            inx++;
        }
        cbx->SetCurSel(inx-1);
    }
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 56 of file CMarginHeaderFooter.h.

Definition at line 63 of file CMarginHeaderFooter.h.

Definition at line 62 of file CMarginHeaderFooter.h.

Definition at line 64 of file CMarginHeaderFooter.h.

Definition at line 66 of file CMarginHeaderFooter.h.

Definition at line 65 of file CMarginHeaderFooter.h.

Definition at line 67 of file CMarginHeaderFooter.h.

Definition at line 57 of file CMarginHeaderFooter.h.

Definition at line 58 of file CMarginHeaderFooter.h.

Definition at line 59 of file CMarginHeaderFooter.h.


The documentation for this class was generated from the following files: