void IPCommandReceiverBase::Run()
{
	bool writeResultOnFailure = true;

	try {

		ReceiveRequest();

		CallCommand();

		WriteResultSuccess();

		writeResultOnFailure = false;

		SendResponse();

	} catch (pipe_error&) {

		DoWriteResultFailure(writeResultOnFailure);

	} catch (...) {
		DoWriteResultFailure(writeResultOnFailure);
		throw;
	}
}
示例#2
0
 DisableCalculation::~DisableCalculation()
 {
     if(calulationState_ < 3)
     {
         CallCommand(xlcOptionsCalculation, calulationState_, "Set calculation optiosn");
     }
 }
示例#3
0
 DisableCalculation::DisableCalculation()
 {
     calulationState_ = CallFunction(xlfGetDocument, 14, "Get Document properies for calculation").AsInt();
     if(calulationState_ < 3)
     {
         CallCommand(xlcOptionsCalculation, 3, "Set calculation optiosn");
     }
 }
示例#4
0
 void Commands_t::SelectPreviousSheet()
 {
     CallCommand(xlcWorkbookPrev, "Select Previous Sheet");
 }
示例#5
0
 void Commands_t::InsertMacroWorkSheet()
 {
     CallCommand(xlcWorkbookInsert, 3, "Insert Macro Sheet");
 }
示例#6
0
 void Commands_t::InsertWorkSheet()
 {
     CallCommand(xlcWorkbookInsert, 1, "Worksheet Insert");
 }
示例#7
0
 void Commands_t::Select(const XlfOper& ref)
 {
     CallCommand(xlcSelect, ref, "Select Range");
 }
示例#8
0
 void Commands_t::Alert(const std::string& message)
 {
     CallCommand(xlcAlert, message, "Alert Command");
 }
示例#9
0
 void Cell_t::SetContents(const XlfOper& ref, const XlfOper& newValue)
 {
     CallCommand(xlcFormula, newValue, ref, "Set Cell Contents");
 }
示例#10
0
 void Information_t::SetActiveCell(const XlfOper& ref)
 {
     CallCommand(xlcSelect, ref, "Set Active Cell");
 }
示例#11
0
 void Notes_t::ClearNote(const XlfOper& cellRef)
 {
     CallCommand(xlcNote, XlfOper(), cellRef, "Clear Note");
 }
示例#12
0
 void Notes_t::SetNote(const XlfOper& cellRef, const std::string& note)
 {
     CallCommand(xlcNote, note, cellRef, "Set Note");
 }
示例#13
0
 void StatusBar_t::clear()
 {
     CallCommand(xlcMessage, 0, false, "Clear Status Bar");
 }
示例#14
0
 StatusBar_t & StatusBar_t::operator=(const std::string &message)
 {
     CallCommand(xlcMessage, true, message, "Set Status Bar");
     return *this;
 }
示例#15
0
 void Commands_t::SelectNextSheet()
 {
     CallCommand(xlcWorkbookNext, "Select Next Sheet");
 }
示例#16
0
 void Commands_t::SetScreenUpdates(bool doesScreenUpdate)
 {
     CallCommand(xlcEcho, doesScreenUpdate, "Echo");
 }
示例#17
0
 void Cell_t::SetHeight(const XlfOper& ref, double newPoints)
 {
     CallCommand(xlcRowHeight, newPoints, "Set Row Height");
 }
示例#18
0
 void Cell_t::SetWidth(const XlfOper& ref, double newPoints)
 {
     CallCommand(xlcColumnWidth, newPoints, "Set Cell Width");
 }
示例#19
0
 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");
 }