//########################################### CPAGE_FUNC(uint32_t) CPAGE_GetCurrentPage( ) { PROLOG; uint32_t rc = CPAGE_GetNumberPage(hCurPage); EPILOG; return rc; }
void PageMarker::restoreLayout() { image_data_->hCPAGE = CPAGE_RestorePage(TRUE, layout_filename_.c_str()); if (image_data_->hCPAGE == NULL) { Debug() << BOOST_CURRENT_FUNCTION << " CPAGE_RestorePage failed with code: " << CPAGE_GetReturnCode() << std::endl; throw Exception("CPAGE_RestorePage failed"); } CPAGE_SetCurrentPage(CPAGE_GetNumberPage(image_data_->hCPAGE)); Debug() << "Layout restored from file: \"" << layout_filename_ << "\"\n"; }