# encoding: utf-8
# module wx._richtext
# from D:\project\A_Board\.venv\Lib\site-packages\wx\_richtext.cp313-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import sip as __sip
import wx._adv as __wx__adv
import wx._core as __wx__core
import wx._html as __wx__html


from .RichTextCompositeObject import RichTextCompositeObject

class RichTextParagraphLayoutBox(RichTextCompositeObject):
    """
    RichTextParagraphLayoutBox(parent=None) -> None
    RichTextParagraphLayoutBox(obj) -> None
    
    This class knows how to lay out paragraphs.
    """
    def AcceptsFocus(self): # real signature unknown; restored from __doc__
        """
        AcceptsFocus() -> bool
        
        Returns true if objects of this class can accept the focus, i.e. a
        call to SetFocusObject is possible.
        """
        return False

    def AddImage(self, image, paraStyle=None): # real signature unknown; restored from __doc__
        """
        AddImage(image, paraStyle=None) -> RichTextRange
        
        Convenience function to add an image.
        """
        return RichTextRange

    def AddParagraph(self, text, paraStyle=None): # real signature unknown; restored from __doc__
        """
        AddParagraph(text, paraStyle=None) -> RichTextRange
        
        Convenience function to add a paragraph of text.
        """
        return RichTextRange

    def AddParagraphs(self, text, paraStyle=None): # real signature unknown; restored from __doc__
        """
        AddParagraphs(text, paraStyle=None) -> RichTextRange
        
        Adds multiple paragraphs, based on newlines.
        """
        return RichTextRange

    def ApplyStyleSheet(self, styleSheet): # real signature unknown; restored from __doc__
        """
        ApplyStyleSheet(styleSheet) -> bool
        
        Apply the style sheet to the buffer, for example if the styles have
        changed.
        """
        return False

    def Clear(self): # real signature unknown; restored from __doc__
        """
        Clear() -> None
        
        Clears all the children.
        """
        pass

    def ClearListStyle(self, range, flags=None): # real signature unknown; restored from __doc__
        """
        ClearListStyle(range, flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool
        
        Clears the list style from the given range, clearing list-related
        attributes and applying any named paragraph style associated with each
        paragraph.
        """
        return False

    def Clone(self): # real signature unknown; restored from __doc__
        """
        Clone() -> RichTextObject
        
        Clones the object.
        """
        return RichTextObject

    def CollectStyle(self, currentStyle, style, clashingAttr, absentAttr): # real signature unknown; restored from __doc__
        """
        CollectStyle(currentStyle, style, clashingAttr, absentAttr) -> bool
        
        Combines style with currentStyle for the purpose of summarising the
        attributes of a range of content.
        """
        return False

    def Copy(self, obj): # real signature unknown; restored from __doc__
        """ Copy(obj) -> None """
        pass

    def CopyFragment(self, range, fragment): # real signature unknown; restored from __doc__
        """
        CopyFragment(range, fragment) -> bool
        
        Make a copy of the fragment corresponding to the given range, putting
        it in fragment.
        """
        return False

    def DeleteRange(self, range): # real signature unknown; restored from __doc__
        """
        DeleteRange(range) -> bool
        
        Deletes the given range.
        """
        return False

    def DeleteRangeWithUndo(self, range, ctrl, buffer): # real signature unknown; restored from __doc__
        """
        DeleteRangeWithUndo(range, ctrl, buffer) -> bool
        
        Submits a command to delete this range.
        """
        return False

    def DoGetStyle(self, position, style, combineStyles=True): # real signature unknown; restored from __doc__
        """
        DoGetStyle(position, style, combineStyles=True) -> bool
        
        Implementation helper for GetStyle.
        """
        return False

    def DoInvalidate(self, invalidRange): # real signature unknown; restored from __doc__
        """
        DoInvalidate(invalidRange) -> None
        
        Do the (in)validation for this object only.
        """
        pass

    def DoNumberList(self, range, promotionRange, promoteBy, styleDef, flags=None, startFrom=1, specifiedLevel=-1): # real signature unknown; restored from __doc__
        """
        DoNumberList(range, promotionRange, promoteBy, styleDef, flags=RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) -> bool
        
        Helper for NumberList and PromoteList, that does renumbering and
        promotion simultaneously def can be NULL/empty to indicate that the
        existing list style should be used.
        """
        return False

    def Draw(self, dc, context, range, selection, rect, descent, style): # real signature unknown; restored from __doc__
        """
        Draw(dc, context, range, selection, rect, descent, style) -> bool
        
        Draw the item, within the given range.
        """
        return False

    def DrawFloats(self, dc, context, range, selection, rect, descent, style): # real signature unknown; restored from __doc__
        """
        DrawFloats(dc, context, range, selection, rect, descent, style) -> None
        
        Draws the floating objects in this buffer.
        """
        pass

    def FindNextParagraphNumber(self, previousParagraph, attr): # real signature unknown; restored from __doc__
        """
        FindNextParagraphNumber(previousParagraph, attr) -> bool
        
        Fills in the attributes for numbering a paragraph after
        previousParagraph.
        """
        return False

    def GetBasicStyle(self): # real signature unknown; restored from __doc__
        """
        GetBasicStyle() -> RichTextAttr
        
        Returns the basic (overall) style.
        """
        return RichTextAttr

    def GetDefaultStyle(self): # real signature unknown; restored from __doc__
        """
        GetDefaultStyle() -> RichTextAttr
        
        Returns the current default style, affecting the style currently being
        applied (for example, setting the default style to bold will cause
        subsequently inserted text to be bold).
        """
        return RichTextAttr

    def GetFloatCollector(self): # real signature unknown; restored from __doc__
        """
        GetFloatCollector() -> RichTextFloatCollector
        
        Returns the wxRichTextFloatCollector of this object.
        """
        return RichTextFloatCollector

    def GetFloatingObjectCount(self): # real signature unknown; restored from __doc__
        """
        GetFloatingObjectCount() -> int
        
        Returns the number of floating objects at this level.
        """
        return 0

    def GetFloatingObjects(self, objects): # real signature unknown; restored from __doc__
        """
        GetFloatingObjects(objects) -> bool
        
        Returns a list of floating objects.
        """
        return False

    def GetInvalidRange(self, wholeParagraphs=False): # real signature unknown; restored from __doc__
        """
        GetInvalidRange(wholeParagraphs=False) -> RichTextRange
        
        Get invalid range, rounding to entire paragraphs if argument is true.
        """
        return RichTextRange

    def GetLeafObjectAtPosition(self, position): # real signature unknown; restored from __doc__
        """
        GetLeafObjectAtPosition(position) -> RichTextObject
        
        Returns the leaf object in a paragraph at this position.
        """
        return RichTextObject

    def GetLineAtPosition(self, pos, caretPosition=False): # real signature unknown; restored from __doc__
        """
        GetLineAtPosition(pos, caretPosition=False) -> RichTextLine
        
        Returns the line at the given position.
        """
        return RichTextLine

    def GetLineAtYPosition(self, y): # real signature unknown; restored from __doc__
        """
        GetLineAtYPosition(y) -> RichTextLine
        
        Returns the line at the given y pixel position, or the last line.
        """
        return RichTextLine

    def GetLineCount(self): # real signature unknown; restored from __doc__
        """
        GetLineCount() -> int
        
        Returns the number of visible lines.
        """
        return 0

    def GetLineForVisibleLineNumber(self, lineNumber): # real signature unknown; restored from __doc__
        """
        GetLineForVisibleLineNumber(lineNumber) -> RichTextLine
        
        Given a line number, returns the corresponding wxRichTextLine object.
        """
        return RichTextLine

    def GetLineSizeAtPosition(self, pos, caretPosition=False): # real signature unknown; restored from __doc__
        """
        GetLineSizeAtPosition(pos, caretPosition=False) -> wx.Size
        
        Returns the line size at the given position.
        """
        pass

    def GetParagraphAtLine(self, paragraphNumber): # real signature unknown; restored from __doc__
        """
        GetParagraphAtLine(paragraphNumber) -> RichTextParagraph
        
        Returns the paragraph by number.
        """
        return RichTextParagraph

    def GetParagraphAtPosition(self, pos, caretPosition=False): # real signature unknown; restored from __doc__
        """
        GetParagraphAtPosition(pos, caretPosition=False) -> RichTextParagraph
        
        Returns the paragraph at the given character or caret position.
        """
        return RichTextParagraph

    def GetParagraphCount(self): # real signature unknown; restored from __doc__
        """
        GetParagraphCount() -> int
        
        Returns the number of paragraphs.
        """
        return 0

    def GetParagraphForLine(self, line): # real signature unknown; restored from __doc__
        """
        GetParagraphForLine(line) -> RichTextParagraph
        
        Returns the paragraph for a given line.
        """
        return RichTextParagraph

    def GetParagraphLength(self, paragraphNumber): # real signature unknown; restored from __doc__
        """
        GetParagraphLength(paragraphNumber) -> int
        
        Returns the length of the paragraph.
        """
        return 0

    def GetParagraphText(self, paragraphNumber): # real signature unknown; restored from __doc__
        """
        GetParagraphText(paragraphNumber) -> str
        
        Returns the text of the paragraph.
        """
        return ""

    def GetPartialParagraph(self): # real signature unknown; restored from __doc__
        """
        GetPartialParagraph() -> bool
        
        Returns a flag indicating whether the last paragraph is partial or
        complete.
        """
        return False

    def GetRangeSize(self, range, size, descent, dc, context, flags, position=None, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        GetRangeSize(range, size, descent, dc, context, flags, position=wx.Point(0,0), parentSize=wx.DefaultSize, partialExtents=None) -> bool
        
        Returns the object size for the given range.
        """
        pass

    def GetRichTextCtrl(self): # real signature unknown; restored from __doc__
        """
        GetRichTextCtrl() -> RichTextCtrl
        
        Returns the associated control.
        """
        return RichTextCtrl

    def GetStyle(self, position, style): # real signature unknown; restored from __doc__
        """
        GetStyle(position, style) -> bool
        
        Returns the combined text attributes for this position.
        """
        return False

    def GetStyleForNewParagraph(self, buffer, pos, caretPosition=False, lookUpNewParaStyle=False): # real signature unknown; restored from __doc__
        """
        GetStyleForNewParagraph(buffer, pos, caretPosition=False, lookUpNewParaStyle=False) -> RichTextAttr
        
        Returns the style that is appropriate for a new paragraph at this
        position.
        """
        return RichTextAttr

    def GetStyleForRange(self, range, style): # real signature unknown; restored from __doc__
        """
        GetStyleForRange(range, style) -> bool
        
        This function gets a style representing the common, combined
        attributes in the given range.
        """
        return False

    def GetStyleSheet(self): # real signature unknown; restored from __doc__
        """
        GetStyleSheet() -> RichTextStyleSheet
        
        Returns the style sheet associated with the overall buffer.
        """
        return RichTextStyleSheet

    def GetText(self): # real signature unknown; restored from __doc__
        """
        GetText() -> str
        
        Get all the text.
        """
        return ""

    def GetTextForRange(self, range): # real signature unknown; restored from __doc__
        """
        GetTextForRange(range) -> str
        
        Returns any text in this object for the given range.
        """
        return ""

    def GetUncombinedStyle(self, position, style): # real signature unknown; restored from __doc__
        """
        GetUncombinedStyle(position, style) -> bool
        
        Returns the content (uncombined) attributes for this position.
        """
        return False

    def GetVisibleLineNumber(self, pos, caretPosition=False, startOfLine=False): # real signature unknown; restored from __doc__
        """
        GetVisibleLineNumber(pos, caretPosition=False, startOfLine=False) -> int
        
        Given a position, returns the number of the visible line (potentially
        many to a paragraph), starting from zero at the start of the buffer.
        """
        return 0

    def GetXMLNodeName(self): # real signature unknown; restored from __doc__
        """
        GetXMLNodeName() -> str
        
        Returns the XML node name of this object.
        """
        return ""

    def HasCharacterAttributes(self, range, style): # real signature unknown; restored from __doc__
        """
        HasCharacterAttributes(range, style) -> bool
        
        Test if this whole range has character attributes of the specified
        kind.
        """
        return False

    def HasParagraphAttributes(self, range, style): # real signature unknown; restored from __doc__
        """
        HasParagraphAttributes(range, style) -> bool
        
        Test if this whole range has paragraph attributes of the specified
        kind.
        """
        return False

    def HitTest(self, dc, context, pt, flags=0): # real signature unknown; restored from __doc__
        """
        HitTest(dc, context, pt, flags=0) -> Tuple[int, int, RichTextObject, RichTextObject]
        
        Hit-testing: returns a flag indicating hit test details, plus
        information about position.
        """
        pass

    def ImportFromXML(self, buffer, node, handler, recurse): # real signature unknown; restored from __doc__
        """
        ImportFromXML(buffer, node, handler, recurse) -> bool
        
        Imports this object from XML.
        """
        return False

    def Init(self): # real signature unknown; restored from __doc__
        """
        Init() -> None
        
        Initializes the object.
        """
        pass

    def InsertFieldWithUndo(self, buffer, pos, fieldType, properties, ctrl, flags, textAttr): # real signature unknown; restored from __doc__
        """
        InsertFieldWithUndo(buffer, pos, fieldType, properties, ctrl, flags, textAttr) -> RichTextField
        
        Submits a command to insert the given field.
        """
        return RichTextField

    def InsertFragment(self, position, fragment): # real signature unknown; restored from __doc__
        """
        InsertFragment(position, fragment) -> bool
        
        Insert fragment into this box at the given position.
        """
        return False

    def InsertImageWithUndo(self, buffer, pos, imageBlock, ctrl, flags, textAttr): # real signature unknown; restored from __doc__
        """
        InsertImageWithUndo(buffer, pos, imageBlock, ctrl, flags, textAttr) -> bool
        
        Submits a command to insert the given image.
        """
        return False

    def InsertNewlineWithUndo(self, buffer, pos, ctrl, flags=0): # real signature unknown; restored from __doc__
        """
        InsertNewlineWithUndo(buffer, pos, ctrl, flags=0) -> bool
        
        Submits a command to insert the given text.
        """
        return False

    def InsertObjectWithUndo(self, buffer, pos, p_object, ctrl, flags=0): # real signature unknown; restored from __doc__
        """
        InsertObjectWithUndo(buffer, pos, object, ctrl, flags=0) -> RichTextObject
        
        Inserts an object.
        """
        return RichTextObject

    def InsertParagraphsWithUndo(self, buffer, pos, paragraphs, ctrl, flags=0): # real signature unknown; restored from __doc__
        """
        InsertParagraphsWithUndo(buffer, pos, paragraphs, ctrl, flags=0) -> bool
        
        Submits a command to insert paragraphs.
        """
        return False

    def InsertTextWithUndo(self, buffer, pos, text, ctrl, flags=0): # real signature unknown; restored from __doc__
        """
        InsertTextWithUndo(buffer, pos, text, ctrl, flags=0) -> bool
        
        Submits a command to insert the given text.
        """
        return False

    def Invalidate(self, invalidRange=None): # real signature unknown; restored from __doc__
        """
        Invalidate(invalidRange=RICHTEXT_ALL) -> None
        
        Invalidates the buffer.
        """
        pass

    def InvalidateHierarchy(self, invalidRange=None): # real signature unknown; restored from __doc__
        """
        InvalidateHierarchy(invalidRange=RICHTEXT_ALL) -> None
        
        Do the (in)validation both up and down the hierarchy.
        """
        pass

    def IsDirty(self): # real signature unknown; restored from __doc__
        """
        IsDirty() -> bool
        
        Returns true if this object needs layout.
        """
        return False

    def IsTopLevel(self): # real signature unknown; restored from __doc__
        """
        IsTopLevel() -> bool
        
        Returns true if this object is top-level, i.e. contains its own
        paragraphs, such as a text box.
        """
        return False

    def Layout(self, dc, context, rect, parentRect, style): # real signature unknown; restored from __doc__
        """
        Layout(dc, context, rect, parentRect, style) -> bool
        
        Lay the item out at the specified position with the given size
        constraint.
        """
        return False

    def MoveAnchoredObjectToParagraph(self, from_, to_, obj): # real signature unknown; restored from __doc__
        """
        MoveAnchoredObjectToParagraph(from_, to_, obj) -> None
        
        Moves an anchored object to another paragraph.
        """
        pass

    def NumberList(self, range, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        NumberList(range, _def=None, flags=RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) -> bool
        NumberList(range, defName, flags=RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) -> bool
        
        Numbers the paragraphs in the given range.
        """
        return False

    def PositionToXY(self, pos, x, y): # real signature unknown; restored from __doc__
        """
        PositionToXY(pos, x, y) -> bool
        
        Converts a zero-based position to line column and paragraph number.
        """
        return False

    def PrepareContent(self, container): # real signature unknown; restored from __doc__
        """
        PrepareContent(container) -> None
        
        Prepares the content just before insertion (or after buffer reset).
        """
        pass

    def PromoteList(self, promoteBy, range, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        PromoteList(promoteBy, range, _def=None, flags=RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1) -> bool
        PromoteList(promoteBy, range, defName, flags=RICHTEXT_SETSTYLE_WITH_UNDO, specifiedLevel=-1) -> bool
        
        Promotes the list items within the given range.
        """
        return False

    def Reset(self): # real signature unknown; restored from __doc__
        """
        Reset() -> None
        
        Clears and initializes with one blank paragraph.
        """
        pass

    def SetBasicStyle(self, style): # real signature unknown; restored from __doc__
        """
        SetBasicStyle(style) -> None
        
        Sets the basic (overall) style.
        """
        pass

    def SetDefaultStyle(self, style): # real signature unknown; restored from __doc__
        """
        SetDefaultStyle(style) -> bool
        
        Sets the default style, affecting the style currently being applied
        (for example, setting the default style to bold will cause
        subsequently inserted text to be bold).
        """
        return False

    def SetListStyle(self, range, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        SetListStyle(range, styleDef, flags=RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) -> bool
        SetListStyle(range, defName, flags=RICHTEXT_SETSTYLE_WITH_UNDO, startFrom=1, specifiedLevel=-1) -> bool
        
        Sets the list attributes for the given range, passing flags to
        determine how the attributes are set.
        """
        return False

    def SetObjectPropertiesWithUndo(self, obj, properties, objToSet=None): # real signature unknown; restored from __doc__
        """
        SetObjectPropertiesWithUndo(obj, properties, objToSet=None) -> bool
        
        Sets with undo the properties for the given object.
        """
        return False

    def SetPartialParagraph(self, partialPara): # real signature unknown; restored from __doc__
        """
        SetPartialParagraph(partialPara) -> None
        
        Sets a flag indicating whether the last paragraph is partial or
        complete.
        """
        pass

    def SetProperties(self, range, properties, flags=None): # real signature unknown; restored from __doc__
        """
        SetProperties(range, properties, flags=RICHTEXT_SETPROPERTIES_WITH_UNDO) -> bool
        
        Sets the properties for the given range, passing flags to determine
        how the attributes are set.
        """
        return False

    def SetRichTextCtrl(self, ctrl): # real signature unknown; restored from __doc__
        """
        SetRichTextCtrl(ctrl) -> None
        
        Associates a control with the buffer, for operations that for example
        require refreshing the window.
        """
        pass

    def SetStyle(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        SetStyle(range, style, flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> bool
        SetStyle(obj, textAttr, flags=RICHTEXT_SETSTYLE_WITH_UNDO) -> None
        
        Sets the attributes for the given range.
        """
        return False

    def UpdateFloatingObjects(self, availableRect, untilObj=None): # real signature unknown; restored from __doc__
        """
        UpdateFloatingObjects(availableRect, untilObj=None) -> bool
        
        Gather information about floating objects.
        """
        return False

    def UpdateRanges(self): # real signature unknown; restored from __doc__
        """
        UpdateRanges() -> None
        
        Calculate ranges.
        """
        pass

    def XYToPosition(self, x, y): # real signature unknown; restored from __doc__
        """
        XYToPosition(x, y) -> int
        
        Converts zero-based line column and paragraph number to a position.
        """
        return 0

    def __init__(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        pass

    BasicStyle = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetBasicStyle() -> RichTextAttr

Returns the basic (overall) style."""

    DefaultStyle = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetDefaultStyle() -> RichTextAttr

Returns the current default style, affecting the style currently being
applied (for example, setting the default style to bold will cause
subsequently inserted text to be bold)."""

    FloatCollector = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetFloatCollector() -> RichTextFloatCollector

Returns the wxRichTextFloatCollector of this object."""

    FloatingObjectCount = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetFloatingObjectCount() -> int

Returns the number of floating objects at this level."""

    InvalidRange = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetInvalidRange(wholeParagraphs=False) -> RichTextRange

Get invalid range, rounding to entire paragraphs if argument is true."""

    LineCount = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetLineCount() -> int

Returns the number of visible lines."""

    ParagraphCount = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetParagraphCount() -> int

Returns the number of paragraphs."""

    PartialParagraph = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetPartialParagraph() -> bool

Returns a flag indicating whether the last paragraph is partial or
complete."""

    RichTextCtrl = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetRichTextCtrl() -> RichTextCtrl

Returns the associated control."""

    StyleSheet = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetStyleSheet() -> RichTextStyleSheet

Returns the style sheet associated with the overall buffer."""

    Text = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetText() -> str

Get all the text."""

    XMLNodeName = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetXMLNodeName() -> str

Returns the XML node name of this object."""



