Beispiel #1
0
        private Hashtable BuildTranslationParameters()
        {
            TranslationParametersBuilder preporator = new TranslationParametersBuilder();

            preporator.WithOutputFile(tBx_Browse.Text)
            .WithTitle(tBx_Title.Text)
            .WithCreator(tBx_Creator.Text)
            .WithPublisher(tBx_Publisher.Text)
            .WithUID(uId == tBx_Uid.Text ? "AUTO-UID-" + tBx_Uid.Text : tBx_Uid.Text)
            .WithSubject(string.Empty)
            .WithTrackChangesFlag(TrackChange())
            .WithVersion(officeVersion)
            .WithMasterSubFlag(masterSubFlag);

            return(preporator.BuildTranslationParameters());
        }
        public void OoxToDaisyWithoutUI(OoxToDaisyParameters parameters, TranslationParametersBuilder parametersBuilder, string outputFilePath, string outputPipeline)
        {
            Hashtable translationParams = parametersBuilder.BuildTranslationParameters();

            ConvertToDaisy(parameters, translationParams, outputFilePath, outputPipeline, new SingleConverter(converter));
        }