pub struct ITextDocument2Old(/* private fields */);

Implementations§

§

impl ITextDocument2Old

pub unsafe fn GetName(&self) -> Result<BSTR>

pub unsafe fn GetSelection(&self) -> Result<ITextSelection>

pub unsafe fn GetStoryCount(&self) -> Result<i32>

pub unsafe fn GetStoryRanges(&self) -> Result<ITextStoryRanges>

pub unsafe fn GetSaved(&self) -> Result<i32>

pub unsafe fn SetSaved(&self, value: tomConstants) -> Result<()>

pub unsafe fn GetDefaultTabStop(&self) -> Result<f32>

pub unsafe fn SetDefaultTabStop(&self, value: f32) -> Result<()>

pub unsafe fn New(&self) -> Result<()>

pub unsafe fn Open( &self, pvar: *const VARIANT, flags: tomConstants, codepage: i32 ) -> Result<()>

pub unsafe fn Save( &self, pvar: *const VARIANT, flags: tomConstants, codepage: i32 ) -> Result<()>

pub unsafe fn Freeze(&self) -> Result<i32>

pub unsafe fn Unfreeze(&self) -> Result<i32>

pub unsafe fn BeginEditCollection(&self) -> Result<()>

pub unsafe fn EndEditCollection(&self) -> Result<()>

pub unsafe fn Undo(&self, count: i32) -> Result<i32>

pub unsafe fn Redo(&self, count: i32) -> Result<i32>

pub unsafe fn Range(&self, cpactive: i32, cpanchor: i32) -> Result<ITextRange>

pub unsafe fn RangeFromPoint(&self, x: i32, y: i32) -> Result<ITextRange>

pub unsafe fn AttachMsgFilter<P0>(&self, pfilter: P0) -> Result<()>
where P0: IntoParam<IUnknown>,

pub unsafe fn SetEffectColor<P0>(&self, index: i32, cr: P0) -> Result<()>
where P0: IntoParam<COLORREF>,

pub unsafe fn GetEffectColor(&self, index: i32) -> Result<COLORREF>

pub unsafe fn GetCaretType(&self) -> Result<i32>

pub unsafe fn SetCaretType(&self, carettype: i32) -> Result<()>

pub unsafe fn GetImmContext(&self) -> Result<i64>

pub unsafe fn ReleaseImmContext(&self, context: i64) -> Result<()>

pub unsafe fn GetPreferredFont( &self, cp: i32, charrep: i32, option: i32, charrepcur: i32, curfontsize: i32, pbstr: *mut BSTR, ppitchandfamily: *mut i32, pnewfontsize: *mut i32 ) -> Result<()>

pub unsafe fn GetNotificationMode(&self) -> Result<i32>

pub unsafe fn SetNotificationMode(&self, mode: i32) -> Result<()>

pub unsafe fn GetClientRect( &self, type: i32, pleft: *mut i32, ptop: *mut i32, pright: *mut i32, pbottom: *mut i32 ) -> Result<()>

pub unsafe fn GetSelection2(&self) -> Result<ITextSelection>

pub unsafe fn GetWindow(&self) -> Result<i32>

pub unsafe fn GetFEFlags(&self) -> Result<i32>

pub unsafe fn UpdateWindow(&self) -> Result<()>

pub unsafe fn CheckTextLimit(&self, cch: i32, pcch: *const i32) -> Result<()>

pub unsafe fn IMEInProgress(&self, value: i32) -> Result<()>

pub unsafe fn SysBeep(&self) -> Result<()>

pub unsafe fn Update(&self, mode: i32) -> Result<()>

pub unsafe fn Notify(&self, notify: i32) -> Result<()>

pub unsafe fn GetDocumentFont(&self) -> Result<ITextFont>

pub unsafe fn GetDocumentPara(&self) -> Result<ITextPara>

pub unsafe fn GetCallManager(&self) -> Result<IUnknown>

pub unsafe fn ReleaseCallManager<P0>(&self, pvoid: P0) -> Result<()>
where P0: IntoParam<IUnknown>,

Trait Implementations§

§

impl Clone for ITextDocument2Old

§

fn clone(&self) -> ITextDocument2Old

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ITextDocument2Old

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<&ITextDocument2Old> for &IDispatch

§

fn from(value: &ITextDocument2Old) -> Self

Converts to this type from the input type.
§

impl From<&ITextDocument2Old> for &ITextDocument

§

fn from(value: &ITextDocument2Old) -> Self

Converts to this type from the input type.
§

impl From<&ITextDocument2Old> for &IUnknown

§

fn from(value: &ITextDocument2Old) -> Self

Converts to this type from the input type.
§

impl From<ITextDocument2Old> for IDispatch

§

fn from(value: ITextDocument2Old) -> Self

Converts to this type from the input type.
§

impl From<ITextDocument2Old> for ITextDocument

§

fn from(value: ITextDocument2Old) -> Self

Converts to this type from the input type.
§

impl From<ITextDocument2Old> for IUnknown

§

fn from(value: ITextDocument2Old) -> Self

Converts to this type from the input type.
§

impl Interface for ITextDocument2Old

§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a Weak reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

impl PartialEq for ITextDocument2Old

§

fn eq(&self, other: &ITextDocument2Old) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ITextDocument2Old

§

impl StructuralPartialEq for ITextDocument2Old

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.