Exemplo n.º 1
0
        public SourceTextBilder(ListSyntRules _listSyntRules, TextFormatter _textFormatter)
        {
            ListSyntRules = _listSyntRules;
            TextFormatter = _textFormatter;

            TextFormatter.GetBodyBlock += getBodyBlock;
        }
Exemplo n.º 2
0
        public TextFormatterForm(TextFormatter _textFormatter)
        {
            InitializeComponent();

            TextFormatter = _textFormatter;
            initIndents();
        }
Exemplo n.º 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;
        }
Exemplo n.º 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()];
 }
 public CSharpSemanticNodeConverter(ListSyntRules _listSyntRules, TextFormatter _textFormatter)
 {
     SourceTextBuilder = new SourceTextBilder(_listSyntRules, _textFormatter);
 }