Page setup
The final section describes page setup functionality, divided into the PageSetupInfo
class, which handles page setup information, the PageSetupDialog
, which is a subclass of Dialog
displayed for the user to input page setup information, and the Template
function, which translates code input by the user in the Page Setup dialog to actual values.
Page setup information
The PageSetupInfo
class holds information about the page: portrait or landscape orientation, the margins, the text and font of the header and footer, whether the header and footer will be present on the first page, and whether the pages will be enclosed by a frame.
PageSetupInfo.h
namespace SmallWindows { enum Orientation {Portrait, Landscape}; class PageSetupInfo { public: PageSetupInfo(); PageSetupInfo(const PageSetupInfo& pageSetupInfo); bool operator==(const PageSetupInfo& pageSetupInfo); bool operator!=(const PageSetupInfo& pageSetupInfo); void ClearPageSetupInfo...