Beispiel #1
0
 internal string GetListTag(DeltaInsertOp op)
 {
     return(op.IsOrderedList() ? _options.OrderedListTag :
            op.IsBulletList() ? _options.BulletListTag :
            op.IsCheckedList() ? _options.BulletListTag :
            op.IsUncheckedList() ? _options.BulletListTag :
            "");
 }
Beispiel #2
0
 public OpToHtmlConverter(DeltaInsertOp op, OpToHtmlConverterOptions options = null) :
     base(op, options ?? new OpToHtmlConverterOptions())
 {
 }
Beispiel #3
0
 public bool HasHigherIndentThan(DeltaInsertOp op)
 {
     return((Attributes.Indent ?? 0) > (op.Attributes.Indent ?? 0));
 }
Beispiel #4
0
 public bool HasSameIndentationAs(DeltaInsertOp op)
 {
     return(Attributes.Indent == op.Attributes.Indent);
 }
Beispiel #5
0
 // adi: alignment direction indentation
 public bool HasSameAdiAs(DeltaInsertOp op)
 {
     return(Attributes.Align == op.Attributes.Align &&
            Attributes.Direction == op.Attributes.Direction &&
            Attributes.Indent == op.Attributes.Indent);
 }
Beispiel #6
0
 public bool IsSameHeaderAs(DeltaInsertOp op)
 {
     return(Attributes.Header == op.Attributes.Header && IsHeader());
 }
Beispiel #7
0
 public bool IsSameListAs(DeltaInsertOp op)
 {
     return(op.Attributes.List.HasValue &&
            (Attributes.List == op.Attributes.List ||
             op.IsACheckList() && IsACheckList()));
 }
Beispiel #8
0
 public OpConverter(DeltaInsertOp op, OpConverterOptions options)
 {
     _op      = op;
     _options = options;
 }
Beispiel #9
0
 static bool IsInlineData(DeltaInsertOp op) =>
 op.IsInline();
Beispiel #10
0
 static bool CanBeInBlock(DeltaInsertOp op) =>
 !(op.IsJustNewline() || op.IsCustomBlock() || op.IsVideo() || op.IsContainerBlock());
Beispiel #11
0
 public BlockGroup(DeltaInsertOp op, IList <DeltaInsertOp> ops)
 {
     Op  = op;
     Ops = ops;
 }
Beispiel #12
0
 public BlotBlock(DeltaInsertOp op) :
     base(op)
 {
 }
Beispiel #13
0
 public VideoItem(DeltaInsertOp op) :
     base(op)
 {
 }
Beispiel #14
0
 public SingleItem(DeltaInsertOp op)
 {
     Op = op;
 }