コード例 #1
0
        public SourceTextBilder(ListSyntRules _listSyntRules, TextFormatter _textFormatter)
        {
            ListSyntRules = _listSyntRules;
            TextFormatter = _textFormatter;

            TextFormatter.GetBodyBlock += getBodyBlock;
        }
コード例 #2
0
        public TextFormatterForm(TextFormatter _textFormatter)
        {
            InitializeComponent();

            TextFormatter = _textFormatter;
            initIndents();
        }
コード例 #3
0
        public SourceTextBilder()
        {
            TextFormatter = new TextFormatter();
            // todo
            ListSyntRules = new ListSyntRules(
                System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName) + "\\Rules_CS.txt");

            TextFormatter.GetBodyBlock += getBodyBlock;
        }
コード例 #4
0
 public void SaveTextFormater(TextFormatter _TextFormatter)
 {
     _TextFormatter.Indents.BlockBegin = indentsBlockBegin[comboBoxBlockBegin.SelectedItem.ToString()];
     _TextFormatter.Indents.BlockEnd = indentsBlockEnd[comboBoxBlockEnd.SelectedItem.ToString()];
     StringBuilder bodyBlock = new StringBuilder();
     for (int i = 0; i < numericUpDown1.Value; i++)
         bodyBlock.Append(indentsBodyBlock[comboBoxBodyBlock.SelectedItem.ToString()]);
     _TextFormatter.Indents.BlockBody = bodyBlock.ToString();
     _TextFormatter.Indents.BetweenWords = indentsBetweenWords[comboBoxBetweenWords.SelectedItem.ToString()];
 }
コード例 #5
0
 public CSharpSemanticNodeConverter(ListSyntRules _listSyntRules, TextFormatter _textFormatter)
 {
     SourceTextBuilder = new SourceTextBilder(_listSyntRules, _textFormatter);
 }