# 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


class RichTextAction(__wx__core.Object):
    """
    RichTextAction(cmd, name, id, buffer, container, ctrl, ignoreFirstTime=False) -> None
    
    Implements a part of a command.
    """
    def ApplyParagraphs(self, fragment): # real signature unknown; restored from __doc__
        """
        ApplyParagraphs(fragment) -> None
        
        Replaces the buffer paragraphs with the given fragment.
        """
        pass

    def CalculateRefreshOptimizations(self, optimizationLineCharPositions, optimizationLineYPositions, oldFloatRect): # real signature unknown; restored from __doc__
        """
        CalculateRefreshOptimizations(optimizationLineCharPositions, optimizationLineYPositions, oldFloatRect) -> None
        
        Calculate arrays for refresh optimization.
        """
        pass

    def Do(self): # real signature unknown; restored from __doc__
        """
        Do() -> bool
        
        Performs the action.
        """
        return False

    def GetAttributes(self): # real signature unknown; restored from __doc__
        """
        GetAttributes() -> RichTextAttr
        
        Returns the attributes, for single-object commands.
        """
        return RichTextAttr

    def GetContainer(self): # real signature unknown; restored from __doc__
        """
        GetContainer() -> RichTextParagraphLayoutBox
        
        Returns the container that this action refers to, using the container
        address and top-level buffer.
        """
        return RichTextParagraphLayoutBox

    def GetContainerAddress(self): # real signature unknown; restored from __doc__
        """
        GetContainerAddress() -> RichTextObjectAddress
        
        Returns the address (nested position) of the container within the
        buffer being manipulated.
        """
        return RichTextObjectAddress

    def GetIgnoreFirstTime(self): # real signature unknown; restored from __doc__
        """
        GetIgnoreFirstTime() -> bool
        
        Returns true if the first Do() command should be skipped as it's
        already been applied.
        """
        return False

    def GetName(self): # real signature unknown; restored from __doc__
        """
        GetName() -> str
        
        Returns the action name.
        """
        return ""

    def GetNewParagraphs(self): # real signature unknown; restored from __doc__
        """
        GetNewParagraphs() -> RichTextParagraphLayoutBox
        
        Returns the new fragments.
        """
        return RichTextParagraphLayoutBox

    def GetObject(self): # real signature unknown; restored from __doc__
        """
        GetObject() -> RichTextObject
        
        Returns the object to replace the one at the position defined by the
        container address and the action's range start position.
        """
        return RichTextObject

    def GetOldParagraphs(self): # real signature unknown; restored from __doc__
        """
        GetOldParagraphs() -> RichTextParagraphLayoutBox
        
        Returns the old fragments.
        """
        return RichTextParagraphLayoutBox

    def GetPosition(self): # real signature unknown; restored from __doc__
        """
        GetPosition() -> int
        
        Returns the position used for e.g.
        """
        return 0

    def GetRange(self): # real signature unknown; restored from __doc__
        """
        GetRange() -> RichTextRange
        
        Returns the range for e.g.
        """
        return RichTextRange

    def MakeObject(self, obj): # real signature unknown; restored from __doc__
        """
        MakeObject(obj) -> None
        
        Makes an address from the given object.
        """
        pass

    def SetContainerAddress(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        SetContainerAddress(address) -> None
        SetContainerAddress(container, obj) -> None
        
        Sets the address (nested position) of the container within the buffer
        being manipulated.
        """
        pass

    def SetIgnoreFirstTime(self, b): # real signature unknown; restored from __doc__
        """
        SetIgnoreFirstTime(b) -> None
        
        Instructs the first Do() command should be skipped as it's already
        been applied.
        """
        pass

    def SetObject(self, obj): # real signature unknown; restored from __doc__
        """
        SetObject(obj) -> None
        
        Sets the object to replace the one at the position defined by the
        container address and the action's range start position.
        """
        pass

    def SetOldAndNewObjects(self, oldObj, newObj): # real signature unknown; restored from __doc__
        """
        SetOldAndNewObjects(oldObj, newObj) -> None
        
        Sets the existing and new objects, for use with
        wxRICHTEXT_CHANGE_OBJECT.
        """
        pass

    def SetPosition(self, pos): # real signature unknown; restored from __doc__
        """
        SetPosition(pos) -> None
        
        Sets the position used for e.g.
        """
        pass

    def SetRange(self, range): # real signature unknown; restored from __doc__
        """
        SetRange(range) -> None
        
        Sets the range for e.g.
        """
        pass

    def StoreObject(self, obj): # real signature unknown; restored from __doc__
        """
        StoreObject(obj) -> None
        
        Stores the object to replace the one at the position defined by the
        container address without making an address for it.
        """
        pass

    def Undo(self): # real signature unknown; restored from __doc__
        """
        Undo() -> bool
        
        Undoes the action.
        """
        return False

    def UpdateAppearance(self, caretPosition, sendUpdateEvent=False, oldFloatRect=None, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        UpdateAppearance(caretPosition, sendUpdateEvent=False, oldFloatRect=wx.Rect(), optimizationLineCharPositions=None, optimizationLineYPositions=None, isDoCmd=True) -> None
        
        Updates the control appearance, optimizing if possible given
        information from the call to Layout.
        """
        pass

    def __init__(self, cmd, name, id, buffer, container, ctrl, ignoreFirstTime=False): # real signature unknown; restored from __doc__
        pass

    Attributes = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetAttributes() -> RichTextAttr

Returns the attributes, for single-object commands."""

    Container = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetContainer() -> RichTextParagraphLayoutBox

Returns the container that this action refers to, using the container
address and top-level buffer."""

    ContainerAddress = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetContainerAddress() -> RichTextObjectAddress

Returns the address (nested position) of the container within the
buffer being manipulated."""

    IgnoreFirstTime = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetIgnoreFirstTime() -> bool

Returns true if the first Do() command should be skipped as it's
already been applied."""

    Name = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetName() -> str

Returns the action name."""

    NewParagraphs = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetNewParagraphs() -> RichTextParagraphLayoutBox

Returns the new fragments."""

    Object = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetObject() -> RichTextObject

Returns the object to replace the one at the position defined by the
container address and the action's range start position."""

    OldParagraphs = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetOldParagraphs() -> RichTextParagraphLayoutBox

Returns the old fragments."""

    Position = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetPosition() -> int

Returns the position used for e.g."""

    Range = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """GetRange() -> RichTextRange

Returns the range for e.g."""



