ciderpress/app/PasteSpecialDialog.cpp
Andy McFadden 63b9996009 Normalize indentation and EOL
This updates all source files to use spaces instead of tabs for
indentation.  It also normalizes the end-of-line markers to be
Windows-style CRLF, and ensures that all files end with EOL.

No substantive changes were made; "diff -w" is empty.
2014-11-03 16:26:53 -08:00

55 lines
1.2 KiB
C++

/*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Support for PasteSpecialDialog.
*/
#include "StdAfx.h"
#include "PasteSpecialDialog.h"
#if 0
BEGIN_MESSAGE_MAP(PasteSpecialDialog, CDialog)
END_MESSAGE_MAP()
BOOL
PasteSpecialDialog::OnInitDialog(void)
{
CString countStr;
CWnd* pWnd;
countStr.Format(IDS_PASTE_SPECIAL_COUNT, 3);
pWnd = GetDlgItem(IDC_PASTE_SPECIAL_COUNT);
pWnd->SetWindowText(countStr);
return CDialog::OnInitDialog();
}
#endif
/*
* Initialize radio control with value from fPasteHow.
*/
void
PasteSpecialDialog::DoDataExchange(CDataExchange* pDX)
{
if (!pDX->m_bSaveAndValidate) {
UINT ctrlId;
if (fPasteHow == kPastePaths)
ctrlId = IDC_PASTE_SPECIAL_PATHS;
else
ctrlId = IDC_PASTE_SPECIAL_NOPATHS;
CButton* pButton = (CButton*) GetDlgItem(ctrlId);
pButton->SetCheck(BST_CHECKED);
} else {
CButton* pButton = (CButton*) GetDlgItem(IDC_PASTE_SPECIAL_PATHS);
if (pButton->GetCheck() == BST_CHECKED)
fPasteHow = kPastePaths;
else
fPasteHow = kPasteNoPaths;
}
}