LibreOffice Module sw (master)  1
Public Member Functions | Private Types | Private Attributes | List of all members
AmbiguousIndex Struct Reference

because the Find may be called on the View or the Model, we need an index afflicted by multiple personality disorder More...

Public Member Functions

 AmbiguousIndex ()
 
 AmbiguousIndex (sal_Int32 const value, tags const tag)
 
sal_Int32 & GetAnyIndex ()
 for arithmetic More...
 
sal_Int32 const & GetAnyIndex () const
 for arithmetic More...
 
TextFrameIndex GetFrameIndex () const
 
sal_Int32 GetModelIndex () const
 
void SetFrameIndex (TextFrameIndex const value)
 
void SetModelIndex (sal_Int32 const value)
 
bool operator== (AmbiguousIndex const &rOther) const
 
bool operator<= (AmbiguousIndex const &rOther) const
 
bool operator< (AmbiguousIndex const &rOther) const
 
AmbiguousIndex operator- (AmbiguousIndex const &rOther) const
 

Private Types

enum  tags : char {
  tags::Any,
  tags::Frame,
  tags::Model
}
 

Private Attributes

sal_Int32 m_value
 
tags m_tag
 

Detailed Description

because the Find may be called on the View or the Model, we need an index afflicted by multiple personality disorder

Definition at line 62 of file findtxt.cxx.

Member Enumeration Documentation

enum AmbiguousIndex::tags : char
strongprivate
Enumerator
Any 
Frame 
Model 

Definition at line 68 of file findtxt.cxx.

Constructor & Destructor Documentation

AmbiguousIndex::AmbiguousIndex ( )
inline

Definition at line 73 of file findtxt.cxx.

References Any.

AmbiguousIndex::AmbiguousIndex ( sal_Int32 const  value,
tags const  tag 
)
inlineexplicit

Definition at line 78 of file findtxt.cxx.

References tag, and value.

Member Function Documentation

sal_Int32& AmbiguousIndex::GetAnyIndex ( )
inline

for arithmetic

Definition at line 88 of file findtxt.cxx.

Referenced by DoSearch(), lcl_CleanStr(), and sw::ReplaceBackReferences().

sal_Int32 const& AmbiguousIndex::GetAnyIndex ( ) const
inline

for arithmetic

Definition at line 89 of file findtxt.cxx.

TextFrameIndex AmbiguousIndex::GetFrameIndex ( ) const
inline

Definition at line 90 of file findtxt.cxx.

Referenced by DoSearch(), and sw::FindTextImpl().

sal_Int32 AmbiguousIndex::GetModelIndex ( ) const
inline

Definition at line 95 of file findtxt.cxx.

Referenced by DoSearch(), and sw::FindTextImpl().

AmbiguousIndex AmbiguousIndex::operator- ( AmbiguousIndex const &  rOther) const
inline

Definition at line 130 of file findtxt.cxx.

References m_tag, and m_value.

bool AmbiguousIndex::operator< ( AmbiguousIndex const &  rOther) const
inline

Definition at line 125 of file findtxt.cxx.

References m_tag, and m_value.

bool AmbiguousIndex::operator<= ( AmbiguousIndex const &  rOther) const
inline

Definition at line 120 of file findtxt.cxx.

References m_tag, and m_value.

bool AmbiguousIndex::operator== ( AmbiguousIndex const &  rOther) const
inline

Definition at line 115 of file findtxt.cxx.

References m_tag, and m_value.

void AmbiguousIndex::SetFrameIndex ( TextFrameIndex const  value)
inline

Definition at line 100 of file findtxt.cxx.

Referenced by sw::FindTextImpl(), lcl_CleanStr(), and sw::ReplaceBackReferences().

void AmbiguousIndex::SetModelIndex ( sal_Int32 const  value)
inline

Definition at line 107 of file findtxt.cxx.

Referenced by sw::FindTextImpl(), lcl_CleanStr(), and sw::ReplaceBackReferences().

Member Data Documentation

tags AmbiguousIndex::m_tag
private

Definition at line 69 of file findtxt.cxx.

Referenced by operator-(), operator<(), operator<=(), and operator==().

sal_Int32 AmbiguousIndex::m_value
private

Definition at line 65 of file findtxt.cxx.

Referenced by operator-(), operator<(), operator<=(), and operator==().


The documentation for this struct was generated from the following file: