void Datapicker::printPreview() const { Spreadsheet* s = currentSpreadsheet(); if (s) { s->printPreview(); } else { m_image->printPreview(); } }
bool Datapicker::printPreview() const { Spreadsheet* s = currentSpreadsheet(); bool ret; if (s) { ret = s->printPreview(); } else { ret = m_image->printPreview(); } return ret; }