Source code for ooodev.dialog.search.tree_search.rule_proto

from __future__ import annotations
from typing import Any, Protocol, TYPE_CHECKING

if TYPE_CHECKING:
    from com.sun.star.awt.tree import XTreeNode


[docs]class RuleT(Protocol): """Search rule protocol."""
[docs] def is_match(self, node: XTreeNode, match_value: Any) -> bool: """Protocol for search rule.""" ...