void IPCommandReceiverBase::Run() { bool writeResultOnFailure = true; try { ReceiveRequest(); CallCommand(); WriteResultSuccess(); writeResultOnFailure = false; SendResponse(); } catch (pipe_error&) { DoWriteResultFailure(writeResultOnFailure); } catch (...) { DoWriteResultFailure(writeResultOnFailure); throw; } }
DisableCalculation::~DisableCalculation() { if(calulationState_ < 3) { CallCommand(xlcOptionsCalculation, calulationState_, "Set calculation optiosn"); } }
DisableCalculation::DisableCalculation() { calulationState_ = CallFunction(xlfGetDocument, 14, "Get Document properies for calculation").AsInt(); if(calulationState_ < 3) { CallCommand(xlcOptionsCalculation, 3, "Set calculation optiosn"); } }
void Commands_t::SelectPreviousSheet() { CallCommand(xlcWorkbookPrev, "Select Previous Sheet"); }
void Commands_t::InsertMacroWorkSheet() { CallCommand(xlcWorkbookInsert, 3, "Insert Macro Sheet"); }
void Commands_t::InsertWorkSheet() { CallCommand(xlcWorkbookInsert, 1, "Worksheet Insert"); }
void Commands_t::Select(const XlfOper& ref) { CallCommand(xlcSelect, ref, "Select Range"); }
void Commands_t::Alert(const std::string& message) { CallCommand(xlcAlert, message, "Alert Command"); }
void Cell_t::SetContents(const XlfOper& ref, const XlfOper& newValue) { CallCommand(xlcFormula, newValue, ref, "Set Cell Contents"); }
void Information_t::SetActiveCell(const XlfOper& ref) { CallCommand(xlcSelect, ref, "Set Active Cell"); }
void Notes_t::ClearNote(const XlfOper& cellRef) { CallCommand(xlcNote, XlfOper(), cellRef, "Clear Note"); }
void Notes_t::SetNote(const XlfOper& cellRef, const std::string& note) { CallCommand(xlcNote, note, cellRef, "Set Note"); }
void StatusBar_t::clear() { CallCommand(xlcMessage, 0, false, "Clear Status Bar"); }
StatusBar_t & StatusBar_t::operator=(const std::string &message) { CallCommand(xlcMessage, true, message, "Set Status Bar"); return *this; }
void Commands_t::SelectNextSheet() { CallCommand(xlcWorkbookNext, "Select Next Sheet"); }
void Commands_t::SetScreenUpdates(bool doesScreenUpdate) { CallCommand(xlcEcho, doesScreenUpdate, "Echo"); }
void Cell_t::SetHeight(const XlfOper& ref, double newPoints) { CallCommand(xlcRowHeight, newPoints, "Set Row Height"); }
void Cell_t::SetWidth(const XlfOper& ref, double newPoints) { CallCommand(xlcColumnWidth, newPoints, "Set Cell Width"); }
void Cell_t::SetContents(const XlfOper& ref, const XlfOper& newValue) { int flag = (XlfExcel::Instance().isEnglish()?0:xlIntl); CallCommand(xlcFormula | flag, newValue, ref, "Set Cell Contents"); }