コード例 #1
0
        public bool ParseNext()
        {
            try
            {
                if (_documentProperties == null)
                {
                    _documentProperties = ItemFactory.CreateDocumentProperties();
                }
                Output.Initialize(_documentProperties);

                var fileInfo = ItemFactory.CreateFileProperties();
                fileInfo.FileConversionProperties = _fileProperties.FileConversionProperties;
                Output.SetFileProperties(fileInfo);

                // variables for the progress report
                int totalUnitCount   = _document.SelectNodes("//Seg").Count;
                int currentUnitCount = 0;
                foreach (XmlNode item in _document.SelectNodes("//Seg"))
                {
                    Output.ProcessParagraphUnit(CreateParagraphUnit(item));

                    // update the progress report
                    currentUnitCount++;
                    OnProgress(Convert.ToByte(Math.Round(100 * ((decimal)currentUnitCount / totalUnitCount), 0)));
                }

                Output.FileComplete();
                Output.Complete();
            }
            catch (Exception ex)
            {
                Log.Logger.Error($"ParseNext method: {ex.Message}\n {ex.StackTrace}");
            }
            return(false);
        }
コード例 #2
0
 public ExcelFileHandler(IExcelReader reader, IExcelWriter writer, IMeasureString measure = null)
 {
     this._excelReader  = reader;
     this._excelWriter  = writer;
     this._measure      = measure;
     this._documentInfo = new DocumentProperties();
 }
コード例 #3
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // Instanciate the Presentation class that represents the PPTX
            Presentation presentation = new Presentation(dataDir + "AccessModifyingProperties.pptx");

            // Create a reference to DocumentProperties object associated with Prsentation
            IDocumentProperties documentProperties = presentation.DocumentProperties;

            // Access and modify custom properties
            for (int i = 0; i < documentProperties.CountOfCustomProperties; i++)
            {
                // Display names and values of custom properties
                System.Console.WriteLine("Custom Property Name : " + documentProperties.GetCustomPropertyName(i));
                System.Console.WriteLine("Custom Property Value : " + documentProperties[documentProperties.GetCustomPropertyName(i)]);

                // Modify values of custom properties
                documentProperties[documentProperties.GetCustomPropertyName(i)] = "New Value " + (i + 1);
            }

            // Save your presentation to a file
            presentation.Save(dataDir + "CustomDemoModified_out.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
        }
        private static void UpdateByTemplate(string path, IDocumentProperties template)
        {
            IPresentationInfo toUpdate = PresentationFactory.Instance.GetPresentationInfo(path);

            toUpdate.UpdateDocumentProperties(template);
            toUpdate.WriteBindedPresentation(path);
        }
コード例 #5
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            _sourceThousandSeparators += VerificationSettings.SourceThousandsSpace.Value ? " " : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsNobreakSpace.Value ? "\u00A0" : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsThinSpace.Value ? "\u2009" : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsNobreakThinSpace.Value ? "\u202F" : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsComma.Value ? "," : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsPeriod.Value ? "." : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsCustomSeparator.Value
                ? VerificationSettings.GetSourceThousandsCustomSeparator
                : "";

            _targetThousandSeparators += VerificationSettings.TargetThousandsSpace.Value ? " " : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsNobreakSpace.Value ? "\u00A0" : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsThinSpace.Value ? "\u2009" : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsNobreakThinSpace.Value ? "\u202F" : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsComma.Value ? "," : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsPeriod.Value ? "." : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsCustomSeparator.Value
                ? VerificationSettings.GetTargetThousandsCustomSeparator
                : "";

            _sourceDecimalSeparators += VerificationSettings.SourceDecimalComma.Value ? "," : "";
            _sourceDecimalSeparators += VerificationSettings.SourceDecimalPeriod.Value ? "." : "";
            _sourceDecimalSeparators += VerificationSettings.SourceDecimalCustomSeparator.Value
                ? VerificationSettings.GetSourceDecimalCustomSeparator
                : "";

            _targetDecimalSeparators += VerificationSettings.TargetDecimalComma.Value ? "," : "";
            _targetDecimalSeparators += VerificationSettings.TargetDecimalPeriod.Value ? "." : "";
            _targetDecimalSeparators += VerificationSettings.TargetDecimalCustomSeparator.Value
                ? VerificationSettings.GetTargetDecimalCustomSeparator
                : "";
        }
コード例 #6
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // Instantiate the Presentation class
            Presentation presentation = new Presentation();

            // Getting Document Properties
            IDocumentProperties documentProperties = presentation.DocumentProperties;

            // Adding Custom properties
            documentProperties["New Custom"] = 12;
            documentProperties["My Name"]    = "Mudassir";
            documentProperties["Custom"]     = 124;

            // Getting property name at particular index
            String getPropertyName = documentProperties.GetCustomPropertyName(2);

            // Removing selected property
            documentProperties.RemoveCustomProperty(getPropertyName);

            // Saving presentation
            presentation.Save(dataDir + "CustomDocumentProperties_out.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
        }
コード例 #7
0
ファイル: TXMLParser.cs プロジェクト: desautel/Sdl-Community
        public bool ParseNext()
        {
            if (_documentProperties == null)
            {
                _documentProperties = ItemFactory.CreateDocumentProperties();
            }
            Output.Initialize(_documentProperties);

            IFileProperties fileInfo = ItemFactory.CreateFileProperties();
            fileInfo.FileConversionProperties = _fileProperties.FileConversionProperties;
            Output.SetFileProperties(fileInfo);

            // variables for the progress report
            var xmlNodeList = _document.SelectNodes("//translatable");
            if (xmlNodeList != null)
            {
                int totalUnitCount = xmlNodeList.Count;
                int currentUnitCount = 0;
                foreach (XmlNode item in xmlNodeList)
                {
                    Output.ProcessParagraphUnit(CreateParagraphUnit(item));

                    // update the progress report   
                    currentUnitCount++;
                    OnProgress(Convert.ToByte(Math.Round(100 * ((decimal)currentUnitCount / totalUnitCount), 0)));
                }
            }

            Output.FileComplete();
            Output.Complete();
            return false;
        }
コード例 #8
0
 public void Initialize(IDocumentProperties documentInfo)
 {
     // Through the document properties you can access information that is
     // common to ALL bilingual files in a master bilingual document, e.g. the
     // source/target language, the repetition/source count, etc.
     // This is not required for this implementation.
 }
コード例 #9
0
        public static void Run()
        {
            //ExStart:AccessBuiltinProperties

            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // Instantiate the Presentation class that represents the presentation
            Presentation pres = new Presentation(dataDir + "AccessBuiltin Properties.pptx");

            // Create a reference to IDocumentProperties object associated with Presentation
            IDocumentProperties documentProperties = pres.DocumentProperties;

            // Display the builtin properties
            System.Console.WriteLine("Category : " + documentProperties.Category);
            System.Console.WriteLine("Current Status : " + documentProperties.ContentStatus);
            System.Console.WriteLine("Creation Date : " + documentProperties.CreatedTime);
            System.Console.WriteLine("Author : " + documentProperties.Author);
            System.Console.WriteLine("Description : " + documentProperties.Comments);
            System.Console.WriteLine("KeyWords : " + documentProperties.Keywords);
            System.Console.WriteLine("Last Modified By : " + documentProperties.LastSavedBy);
            System.Console.WriteLine("Supervisor : " + documentProperties.Manager);
            System.Console.WriteLine("Modified Date : " + documentProperties.LastSavedTime);
            System.Console.WriteLine("Presentation Format : " + documentProperties.PresentationFormat);
            System.Console.WriteLine("Last Print Date : " + documentProperties.LastPrinted);
            System.Console.WriteLine("Is Shared between producers : " + documentProperties.SharedDoc);
            System.Console.WriteLine("Subject : " + documentProperties.Subject);
            System.Console.WriteLine("Title : " + documentProperties.Title);
            //ExEnd:AccessBuiltinProperties
        }
コード例 #10
0
        public override void Initialize(IDocumentProperties documentInfo)
        {
            SourceLanguage = documentInfo.SourceLanguage.CultureInfo;
            TargetLanguage = documentInfo.TargetLanguage?.CultureInfo ?? SourceLanguage;

            base.Initialize(documentInfo);
        }
コード例 #11
0
        public bool ParseNext()
        {
            if (_documentProperties == null)
            {
                _documentProperties = ItemFactory.CreateDocumentProperties();
            }
            Output.Initialize(_documentProperties);

            IFileProperties fileInfo = ItemFactory.CreateFileProperties();

            fileInfo.FileConversionProperties = _fileProperties.FileConversionProperties;
            Output.SetFileProperties(fileInfo);

            // variables for the progress report
            var xmlNodeList = _document.SelectNodes("//translatable");

            if (xmlNodeList != null)
            {
                int totalUnitCount   = xmlNodeList.Count;
                int currentUnitCount = 0;
                foreach (XmlNode item in xmlNodeList)
                {
                    Output.ProcessParagraphUnit(CreateParagraphUnit(item));

                    // update the progress report
                    currentUnitCount++;
                    OnProgress(Convert.ToByte(Math.Round(100 * ((decimal)currentUnitCount / totalUnitCount), 0)));
                }
            }

            Output.FileComplete();
            Output.Complete();
            return(false);
        }
コード例 #12
0
        public static void Run()
        {
            //ExStart:AccessProperties
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // Accessing the Document Properties of a Password Protected Presentation without Password
            // creating instance of load options to set the presentation access password
            LoadOptions loadOptions = new LoadOptions();

            // Setting the access password to null
            loadOptions.Password = null;

            // Setting the access to document properties
            loadOptions.OnlyLoadDocumentProperties = true;

            // Opening the presentation file by passing the file path and load options to the constructor of Presentation class
            Presentation pres = new Presentation(dataDir + "AccessProperties.pptx", loadOptions);

            // Getting Document Properties
            IDocumentProperties docProps = pres.DocumentProperties;

            System.Console.WriteLine("Name of Application : " + docProps.NameOfApplication);
            //ExEnd:AccessProperties
        }
コード例 #13
0
        public override void Initialize(IDocumentProperties documentInfo)
        {
            _documentProperties = documentInfo;

            SourceLanguage = documentInfo.SourceLanguage.CultureInfo;
            TargetLanguage = documentInfo.TargetLanguage?.CultureInfo ?? new CultureInfo(_targetLanguage);

            //base.Initialize(documentInfo);
        }
コード例 #14
0
        public override void Initialize(IDocumentProperties documentInfo)
        {
            // This MUST be called
            base.Initialize(documentInfo);

            repTable    = documentInfo.Repetitions;
            language[0] = documentInfo.SourceLanguage;
            language[1] = documentInfo.TargetLanguage;
        }
コード例 #15
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            //get output file name
            var info           = new FileInfo(_originalFilePath);
            var targetfilename = info.DirectoryName + Path.DirectorySeparatorChar + _convertSettings.FileNamePrefix +
                                 info.Name.Substring(0, info.Name.IndexOf(info.Extension, StringComparison.Ordinal));

            //initialize Excel writer
            _excelSuperWriter = new ExcelSuperWriter();
            _excelSuperWriter.Initialize(targetfilename + ".Preview.xlsx", _convertSettings);
        }
コード例 #16
0
 public void Initialize(IDocumentProperties documentInfo)
 {
     SourceLanguageCultureInfo = documentInfo.SourceLanguage.CultureInfo;
     if (documentInfo.TargetLanguage != null && documentInfo.TargetLanguage.CultureInfo != null)
     {
         TargetLanguageCultureInfo = documentInfo.TargetLanguage.CultureInfo;
     }
     else
     {
         TargetLanguageCultureInfo = SourceLanguageCultureInfo;
     }
 }
コード例 #17
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            _documentProperties = documentInfo;

            SourceLanguage = documentInfo.SourceLanguage.CultureInfo;
            TargetLanguage = documentInfo.TargetLanguage?.CultureInfo ?? SourceLanguage;

            Xliff.DocInfo.Created        = DateTime.UtcNow;
            Xliff.DocInfo.Source         = _inputPath;
            Xliff.DocInfo.ProjectId      = _projectId;
            Xliff.DocInfo.SourceLanguage = SourceLanguage.Name;
            Xliff.DocInfo.TargetLanguage = TargetLanguage.Name;
        }
コード例 #18
0
        public static IDocumentProperties SetDocumentProperties(string documentType)
        {
            IDocumentProperties result = null;

            switch (documentType)
            {
            case Constants.DocumentType.Book:
                result = new BookProperties();
                break;
            }

            return(result);
        }
コード例 #19
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            SourceLanguageId = string.Empty;
            TargetLanguageId = string.Empty;

            if (documentInfo.SourceLanguage != null && documentInfo.SourceLanguage.CultureInfo != null)
            {
                SourceLanguageId = documentInfo.SourceLanguage.CultureInfo.Name;
            }

            if (documentInfo.TargetLanguage != null && documentInfo.TargetLanguage.CultureInfo != null)
            {
                TargetLanguageId = documentInfo.TargetLanguage.CultureInfo.Name;
            }
        }
コード例 #20
0
        public static void Run()
        {
            //ExStart:CheckPresentationCreatedorModifed

            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            IPresentationInfo info =
                PresentationFactory.Instance.GetPresentationInfo(Path.Combine(RootFolder, "props.pptx"));

            IDocumentProperties props = info.ReadDocumentProperties();

            string app = props.NameOfApplication;
            string ver = props.AppVersion;
            //ExEnd:CheckPresentationCreatedorModifed
        }
コード例 #21
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            _sourceMatchingThousandSeparators = string.Concat(VerificationSettings.GetSourceThousandSeparators());
            _targetMatchingThousandSeparators = string.Concat(VerificationSettings.GetTargetThousandSeparators());
            _sourceMatchingDecimalSeparators  = string.Concat(VerificationSettings.GetSourceDecimalSeparators());
            _targetMatchingDecimalSeparators  = string.Concat(VerificationSettings.GetTargetDecimalSeparators());

            _targetMatchingDecimalSeparators += VerificationSettings.TargetDecimalComma ? @"\u002C" : string.Empty;
            _targetMatchingDecimalSeparators += VerificationSettings.TargetDecimalPeriod ? @"\u002E" : string.Empty;
            _targetMatchingDecimalSeparators += VerificationSettings.TargetDecimalCustomSeparator
                ? VerificationSettings.GetTargetDecimalCustomSeparator
                : string.Empty;


            //used in NoSeparator method, we need the character chosed not the code.
            _sourceThousandSeparators += VerificationSettings.SourceThousandsSpace ? " " : string.Empty;
            _sourceThousandSeparators += VerificationSettings.SourceThousandsNobreakSpace ? " " : string.Empty;
            _sourceThousandSeparators += VerificationSettings.SourceThousandsThinSpace ? " " : string.Empty;
            _sourceThousandSeparators += VerificationSettings.SourceThousandsNobreakThinSpace ? " " : string.Empty;
            _sourceThousandSeparators += VerificationSettings.SourceThousandsComma ? "," : string.Empty;
            _sourceThousandSeparators += VerificationSettings.SourceThousandsPeriod ? "." : string.Empty;
            _sourceThousandSeparators += VerificationSettings.SourceThousandsCustomSeparator
                ? VerificationSettings.GetSourceThousandsCustomSeparator
                : string.Empty;

            _sourceDecimalSeparators += VerificationSettings.SourceDecimalComma ? "," : string.Empty;
            _sourceDecimalSeparators += VerificationSettings.SourceDecimalPeriod ? "." : string.Empty;
            _sourceDecimalSeparators += VerificationSettings.SourceDecimalCustomSeparator
                ? VerificationSettings.GetSourceDecimalCustomSeparator
                : string.Empty;

            _targetThousandSeparators += VerificationSettings.TargetThousandsSpace ? " " : string.Empty;
            _targetThousandSeparators += VerificationSettings.TargetThousandsNobreakSpace ? " " : string.Empty;
            _targetThousandSeparators += VerificationSettings.TargetThousandsThinSpace ? " " : string.Empty;
            _targetThousandSeparators += VerificationSettings.TargetThousandsNobreakThinSpace ? " " : string.Empty;
            _targetThousandSeparators += VerificationSettings.TargetThousandsComma ? "," : string.Empty;
            _targetThousandSeparators += VerificationSettings.TargetThousandsPeriod ? "." : string.Empty;
            _targetThousandSeparators += VerificationSettings.TargetThousandsCustomSeparator
                ? VerificationSettings.GetTargetThousandsCustomSeparator
                : string.Empty;
            _targetDecimalSeparators += VerificationSettings.TargetDecimalComma ? "," : string.Empty;
            _targetDecimalSeparators += VerificationSettings.TargetDecimalPeriod ? "." : string.Empty;
            _targetDecimalSeparators += VerificationSettings.TargetDecimalCustomSeparator
                ? VerificationSettings.GetSourceDecimalCustomSeparator
                : string.Empty;
        }
コード例 #22
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Presentations();

            //Instantiate the Presentation class that represents the Presentation
            Presentation pres = new Presentation(dataDir + "ModifyBuiltinProperties.pptx");

            //Create a reference to IDocumentProperties object associated with Presentation
            IDocumentProperties dp = pres.DocumentProperties;

            //Set the builtin properties
            dp.Author   = "Aspose.Slides for .NET";
            dp.Title    = "Modifying Presentation Properties";
            dp.Subject  = "Aspose Subject";
            dp.Comments = "Aspose Description";
            dp.Manager  = "Aspose Manager";

            //Save your presentation to a file
            pres.Save(dataDir + "DocProps.pptx", Aspose.Slides.Export.SaveFormat.Pptx);
        }
コード例 #23
0
        public void Initialize(IDocumentProperties documentInfo)
        {
            SourceLanguageId = string.Empty;
            TargetLanguageId = string.Empty;

            if (documentInfo.SourceLanguage != null && documentInfo.SourceLanguage.CultureInfo != null)
            {
                SourceLanguageId = documentInfo.SourceLanguage.CultureInfo.Name;
            }
            if (documentInfo.TargetLanguage != null && documentInfo.TargetLanguage.CultureInfo != null)
            {
                TargetLanguageId = documentInfo.TargetLanguage.CultureInfo.Name;
            }


            var st         = new Settings();
            var tmName     = "TM_" + SourceLanguageId + ".sdltm";
            var tmFullPath = Path.Combine(st.ApplicationSettingsPathTm, tmName);

            TM.Tm.SetTm(tmFullPath, SourceLanguageId, "it-IT");
        }
        public static void Run()
        {
            // For complete examples and data files, please go to https:// Github.com/aspose-slides/Aspose.Slides-for-.NET

            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // read the info of presentation
            IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(dataDir + "ModifyBuiltinProperties1.pptx");

            // obtain the current properties
            IDocumentProperties props = info.ReadDocumentProperties();

            // set the new values of Author and Title fields
            props.Author = "New Author";
            props.Title  = "New Title";

            // update the presentation with a new values
            info.UpdateDocumentProperties(props);
            info.WriteBindedPresentation(dataDir + "ModifyBuiltinProperties1.pptx");
        }
        public static void Run()
        {
            //ExStart:UpdatePresentationProperties

            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // read the info of presentation
            IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo(dataDir + "ModifyBuiltinProperties1.pptx");

            // obtain the current properties
            IDocumentProperties props = info.ReadDocumentProperties();

            // set the new values of Author and Title fields
            props.Author = "New Author";
            props.Title  = "New Title";

            // update the presentation with a new values
            info.UpdateDocumentProperties(props);
            info.WriteBindedPresentation(dataDir + "ModifyBuiltinProperties1.pptx");
            //ExEnd:UpdatePresentationProperties
        }
コード例 #26
0
        public static void Run()
        {
            // For complete examples and data files, please go to https:// Github.com/aspose-slides/Aspose.Slides-for-.NET

            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationProperties();

            // Instantiate the Presentation class that represents the Presentation
            Presentation presentation = new Presentation(dataDir + "ModifyBuiltinProperties.pptx");

            // Create a reference to IDocumentProperties object associated with Presentation
            IDocumentProperties documentProperties = presentation.DocumentProperties;

            // Set the builtin properties
            documentProperties.Author   = "Aspose.Slides for .NET";
            documentProperties.Title    = "Modifying Presentation Properties";
            documentProperties.Subject  = "Aspose Subject";
            documentProperties.Comments = "Aspose Description";
            documentProperties.Manager  = "Aspose Manager";

            // Save your presentation to a file
            presentation.Save(dataDir + "DocumentProperties_out.pptx", SaveFormat.Pptx);
        }
コード例 #27
0
ファイル: TransitWriter.cs プロジェクト: sybrk/Sdl-Community
 public void Initialize(IDocumentProperties documentInfo)
 {
     _textExtractor = new TransitTextExtractor();
 }
コード例 #28
0
 public void Initialize(IDocumentProperties documentInfo)
 {
     //not needed for this implementation
 }
コード例 #29
0
 public void Initialize(IDocumentProperties documentInfo)
 {
     // Not required for this implementation.
 }
コード例 #30
0
 public void Initialize(IDocumentProperties documentInfo)
 {
 }
コード例 #31
0
        public void Initialize(IDocumentProperties documentInfo)
        {

            _sourceThousandSeparators += VerificationSettings.SourceThousandsSpace.Value ? " " : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsNobreakSpace.Value ? "\u00A0" : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsThinSpace.Value ? "\u2009" : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsNobreakThinSpace.Value ? "\u202F" : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsComma.Value ? "," : "";
            _sourceThousandSeparators += VerificationSettings.SourceThousandsPeriod.Value ? "." : "";

            _targetThousandSeparators += VerificationSettings.TargetThousandsSpace.Value ? " " : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsNobreakSpace.Value ? "\u00A0" : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsThinSpace.Value ? "\u2009" : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsNobreakThinSpace.Value ? "\u202F" : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsComma.Value ? "," : "";
            _targetThousandSeparators += VerificationSettings.TargetThousandsPeriod.Value ? "." : "";

            _sourceDecimalSeparators += VerificationSettings.SourceDecimalComma.Value ? "," : "";
            _sourceDecimalSeparators += VerificationSettings.SourceDecimalPeriod.Value ? "." : "";

            _targetDecimalSeparators += VerificationSettings.TargetDecimalComma.Value ? "," : "";
            _targetDecimalSeparators += VerificationSettings.TargetDecimalPeriod.Value ? "." : "";

        }
 private static void UpdateByTemplate(string path, IDocumentProperties template)
 {
     IPresentationInfo toUpdate = PresentationFactory.Instance.GetPresentationInfo(path);
     toUpdate.UpdateDocumentProperties(template);
     toUpdate.WriteBindedPresentation(path);
 }
コード例 #33
0
 public void Initialize(IDocumentProperties documentInfo)
 {
     //not needed for this implementation
 }
コード例 #34
0
 public override void Initialize(IDocumentProperties documentInfo)
 {
     reporter = MessageReporter;
 }
コード例 #35
0
ファイル: TXMLWriter.cs プロジェクト: desautel/Sdl-Community
 public void Initialize(IDocumentProperties documentInfo)
 {
     _textExtractor = new TxmlTextExtractor();
 }