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");
 }