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 59 of file findtxt.cxx.

Member Enumeration Documentation

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

Definition at line 65 of file findtxt.cxx.

Constructor & Destructor Documentation

AmbiguousIndex::AmbiguousIndex ( )
inline

Definition at line 70 of file findtxt.cxx.

References Any.

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

Definition at line 75 of file findtxt.cxx.

References tag, and value.

Member Function Documentation

sal_Int32& AmbiguousIndex::GetAnyIndex ( )
inline

for arithmetic

Definition at line 85 of file findtxt.cxx.

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

sal_Int32 const& AmbiguousIndex::GetAnyIndex ( ) const
inline

for arithmetic

Definition at line 86 of file findtxt.cxx.

TextFrameIndex AmbiguousIndex::GetFrameIndex ( ) const
inline

Definition at line 87 of file findtxt.cxx.

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

sal_Int32 AmbiguousIndex::GetModelIndex ( ) const
inline

Definition at line 92 of file findtxt.cxx.

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

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

Definition at line 127 of file findtxt.cxx.

References m_tag, and m_value.

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

Definition at line 122 of file findtxt.cxx.

References m_tag, and m_value.

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

Definition at line 117 of file findtxt.cxx.

References m_tag, and m_value.

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

Definition at line 112 of file findtxt.cxx.

References m_tag, and m_value.

void AmbiguousIndex::SetFrameIndex ( TextFrameIndex const  value)
inline

Definition at line 97 of file findtxt.cxx.

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

void AmbiguousIndex::SetModelIndex ( sal_Int32 const  value)
inline

Definition at line 104 of file findtxt.cxx.

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

Member Data Documentation

tags AmbiguousIndex::m_tag
private

Definition at line 66 of file findtxt.cxx.

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

sal_Int32 AmbiguousIndex::m_value
private

Definition at line 62 of file findtxt.cxx.

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


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