pub struct DocApiSelection<'a, I: Invoker> { /* private fields */ }Implementations§
Source§impl<'a, I: Invoker> DocApiSelection<'a, I>
impl<'a, I: Invoker> DocApiSelection<'a, I>
pub fn new(invoker: &'a I) -> Self
Sourcepub fn current<'call>(
&'call self,
params: &'call DocSelectionCurrentBoundParams,
) -> impl Future<Output = Result<DocSelectionCurrentResult>> + Send + 'call
pub fn current<'call>( &'call self, params: &'call DocSelectionCurrentBoundParams, ) -> impl Future<Output = Result<DocSelectionCurrentResult>> + Send + 'call
Read the editor’s current selection as a portable SelectionInfo with text targets or V2 browser table/cell metadata. Primitive for building custom comments UIs, floating toolbars, and other selection-driven components without reaching into ProseMirror internals.
Sourcepub async fn current_with_options(
&self,
params: &DocSelectionCurrentBoundParams,
options: InvokeOptions,
) -> Result<DocSelectionCurrentResult>
pub async fn current_with_options( &self, params: &DocSelectionCurrentBoundParams, options: InvokeOptions, ) -> Result<DocSelectionCurrentResult>
Read the editor’s current selection as a portable SelectionInfo with text targets or V2 browser table/cell metadata. Primitive for building custom comments UIs, floating toolbars, and other selection-driven components without reaching into ProseMirror internals.
Sourcepub fn extract_ooxml<'call>(
&'call self,
params: &'call DocSelectionExtractOoxmlBoundParams,
) -> impl Future<Output = Result<DocSelectionExtractOoxmlResult>> + Send + 'call
pub fn extract_ooxml<'call>( &'call self, params: &'call DocSelectionExtractOoxmlBoundParams, ) -> impl Future<Output = Result<DocSelectionExtractOoxmlResult>> + Send + 'call
Capture a nonempty current or addressed selection as portable OOXML with native dependencies. Optional retain:true keeps an exact same-session restoration handle for one complete standalone body paragraph; release it when unused. Unsupported retained contexts and collaboration reject.
Sourcepub async fn extract_ooxml_with_options(
&self,
params: &DocSelectionExtractOoxmlBoundParams,
options: InvokeOptions,
) -> Result<DocSelectionExtractOoxmlResult>
pub async fn extract_ooxml_with_options( &self, params: &DocSelectionExtractOoxmlBoundParams, options: InvokeOptions, ) -> Result<DocSelectionExtractOoxmlResult>
Capture a nonempty current or addressed selection as portable OOXML with native dependencies. Optional retain:true keeps an exact same-session restoration handle for one complete standalone body paragraph; release it when unused. Unsupported retained contexts and collaboration reject.
Sourcepub fn release_snapshot<'call>(
&'call self,
params: &'call DocSelectionReleaseSnapshotBoundParams,
) -> impl Future<Output = Result<DocSelectionReleaseSnapshotResult>> + Send + 'call
pub fn release_snapshot<'call>( &'call self, params: &'call DocSelectionReleaseSnapshotBoundParams, ) -> impl Future<Output = Result<DocSelectionReleaseSnapshotResult>> + Send + 'call
Release a retained exact-selection snapshot without changing document content or Undo history.
Sourcepub async fn release_snapshot_with_options(
&self,
params: &DocSelectionReleaseSnapshotBoundParams,
options: InvokeOptions,
) -> Result<DocSelectionReleaseSnapshotResult>
pub async fn release_snapshot_with_options( &self, params: &DocSelectionReleaseSnapshotBoundParams, options: InvokeOptions, ) -> Result<DocSelectionReleaseSnapshotResult>
Release a retained exact-selection snapshot without changing document content or Undo history.