from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from com.sun.star.frame import XController
from com.sun.star.frame import XDispatchProviderInterception
from com.sun.star.frame import XFrame
from com.sun.star.view import XControlAccess
from com.sun.star.view import XSelectionSupplier
from typing_extensions import Protocol
else:
Protocol = object
[docs]class GuiPartialT(Protocol):
[docs] def get_current_controller(self) -> XController:
"""
Gets controller from document.
Returns:
XController: controller.
"""
...
[docs] def get_frame(self) -> XFrame:
"""
Gets frame from doc.
Returns:
XFrame: document frame.
"""
...
[docs] def get_control_access(self) -> XControlAccess:
"""
Get control access from office document.
Returns:
XControlAccess: control access.
"""
...
[docs] def get_selection_supplier(self) -> XSelectionSupplier:
"""
Gets selection supplier
Returns:
XSelectionSupplier: Selection supplier
"""
...
[docs] def get_dpi(self) -> XDispatchProviderInterception:
"""
Gets Dispatch provider interception.
Returns:
XDispatchProviderInterception: Dispatch provider interception.
"""
...
[docs] def activate(self) -> None:
"""
Activates document window.
"""
...
[docs] def maximize(self) -> None:
"""
Maximizes document window.
"""
...
[docs] def minimize(self) -> None:
"""
Minimizes document window.
"""
...