/// <summary> /// Funcion that launch the conversion of a "parameters.inputFile" to daisy /// </summary> /// <param name="parameters"></param> /// <param name="translateParams"></param> /// <param name="outputFilePath"></param> /// <param name="outputPipeline"></param> /// <param name="singleConverter"></param> public void ConvertToDaisy(OoxToDaisyParameters parameters, Hashtable translateParams, string outputFilePath, string outputPipeline, SingleConverter singleConverter) { if (parameters.MasterSubFlag == "No" || parameters.MasterSubFlag == "NoMasterSub") { //outputFilePath = AddInHelper.buttonIsSingleWordToXMLConversion(parameters.ControlName) ? // outputFilePath + parameters.GetInputFileNameWithoutExtension + ".xml" : // Path.Combine(outputFilePath, "convertedDocument" + ".xml"); outputFilePath = (outputFilePath + parameters.GetInputFileNameWithoutExtension + ".xml").Replace(',', '_'); singleConverter.OoxToDaisy( parameters.InputFile, outputFilePath, parameters.ListMathMl, translateParams, parameters.ControlName, outputPipeline); } else if (parameters.MasterSubFlag == "Yes") { singleConverter.OoxToDaisyOwn( parameters.TempInputFile, parameters.TempInputA, parameters.InputFile, outputFilePath, translateParams, parameters.ControlName, parameters.ListMathMl, outputPipeline); } }