Example #1
0
 public EditHeadingCommand(StructureHead heading, string label_before, uint level_before, StructureStripUserControl control)
 {
     mHeading     = heading;
     mLabelBefore = label_before;
     mLevelBefore = level_before;
     mLabelAfter  = heading.Label;
     mLevelAfter  = heading.Level.Level;
     mControl     = control;
 }
Example #2
0
 public StructureItemDialog(StructureHead heading)
 {
     InitializeComponent();
     mHeading      = heading;
     titleBox.Text = heading.Label;
     for (uint i = 0; i < mHeading.Level.Level; ++i)
     {
         levelBox.Items.Add(new HeadingLevel(i));
     }
     levelBox.Items.Add(mHeading.Level);
     levelBox.Items.Add(new HeadingLevel(mHeading.Level.Level + 1));
     levelBox.SelectedItem = mHeading.Level;
 }
Example #3
0
 public StructureStripModel(string label, ParStripModel parent)
     : base(label, parent)
 {
     mHeading = new StructureHead(Localizer.GetString("default_heading"), 1);
     mPages   = new List <PageItem>();
 }