All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.curs.adocwrapper.block.list.AdocList.kt Maven / Gradle / Ivy

The newest version!
package ru.curs.adocwrapper.block.list

import ru.curs.adocwrapper.block.LIType
import ru.curs.adocwrapper.block.NodeType
import ru.curs.adocwrapper.block.StructuralNode

open class AdocList : StructuralNode() {
    override val type = NodeType.List
    fun li(init: ListItem.() -> Unit): ListItem {
        val listItem = ListItem(if (this is UList) LIType.U else LIType.O)
        listItem.apply(init)
        this.blocks.add(listItem)
        return listItem
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy