ImplEntryList Class Reference

#include <ilstbox.hxx>

Collaboration diagram for ImplEntryList:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ImplEntryList (Window *pWindow)
 ~ImplEntryList ()
USHORT InsertEntry (USHORT nPos, ImplEntryType *pNewEntry, BOOL bSort)
void RemoveEntry (USHORT nPos)
const ImplEntryTypeGetEntryPtr (USHORT nPos) const
ImplEntryTypeGetMutableEntryPtr (USHORT nPos) const
void Clear ()
USHORT FindMatchingEntry (const XubString &rStr, USHORT nStart=0, BOOL bForward=TRUE, BOOL bLazy=TRUE) const
USHORT FindEntry (const XubString &rStr, BOOL bSearchMRUArea=FALSE) const
USHORT FindEntry (const void *pData) const
long GetAddedHeight (USHORT nEndIndex, USHORT nBeginIndex=0, long nBeginHeight=0) const
long GetEntryHeight (USHORT nPos) const
USHORT GetEntryCount () const
BOOL HasImages () const
XubString GetEntryText (USHORT nPos) const
BOOL HasEntryImage (USHORT nPos) const
Image GetEntryImage (USHORT nPos) const
void SetEntryData (USHORT nPos, void *pNewData)
void * GetEntryData (USHORT nPos) const
void SetEntryFlags (USHORT nPos, long nFlags)
long GetEntryFlags (USHORT nPos) const
void SelectEntry (USHORT nPos, BOOL bSelect)
USHORT GetSelectEntryCount () const
XubString GetSelectEntry (USHORT nIndex) const
USHORT GetSelectEntryPos (USHORT nIndex) const
BOOL IsEntrySelected (const XubString &rStr) const
BOOL IsEntryPosSelected (USHORT nIndex) const
void SetLastSelected (USHORT nPos)
USHORT GetLastSelected () const
void SetSelectionAnchor (USHORT nPos)
USHORT GetSelectionAnchor () const
void SetSelectionChangedHdl (const Link &rLnk)
void SetCallSelectionChangedHdl (BOOL bCall)
void SetMRUCount (USHORT n)
USHORT GetMRUCount () const
void SetMaxMRUCount (USHORT n)
USHORT GetMaxMRUCount () const
bool IsEntrySelectable (USHORT nPos) const
 An Entry is selectable if its mnFlags does not have the LISTBOX_ENTRY_FLAG_DISABLE_SELECTION flag set.
USHORT FindFirstSelectable (USHORT nPos, bool bForward=true)
 returns the first entry found from the given position nPos that is selectable or LISTBOX_ENTRY_NOTFOUND if non is found.

Private Member Functions

ImplEntryTypeGetEntry (USHORT nPos) const

Private Attributes

WindowmpWindow
USHORT mnLastSelected
USHORT mnSelectionAnchor
USHORT mnImages
USHORT mnMRUCount
USHORT mnMaxMRUCount
Link maSelectionChangedHdl
BOOL mbCallSelectionChangedHdl


Detailed Description

Definition at line 105 of file ilstbox.hxx.


Constructor & Destructor Documentation

ImplEntryList::ImplEntryList ( Window pWindow  ) 

ImplEntryList::~ImplEntryList (  ) 

Definition at line 119 of file ilstbox.cxx.

References Clear().


Member Function Documentation

ImplEntryType* ImplEntryList::GetEntry ( USHORT  nPos  )  const [inline, private]

USHORT ImplEntryList::InsertEntry ( USHORT  nPos,
ImplEntryType pNewEntry,
BOOL  bSort 
)

void ImplEntryList::RemoveEntry ( USHORT  nPos  ) 

Definition at line 255 of file ilstbox.cxx.

References ImplEntryType::maImage, and mnImages.

Referenced by ImplListBoxWindow::RemoveEntry().

const ImplEntryType* ImplEntryList::GetEntryPtr ( USHORT  nPos  )  const [inline]

ImplEntryType* ImplEntryList::GetMutableEntryPtr ( USHORT  nPos  )  const [inline]

void ImplEntryList::Clear (  ) 

Definition at line 126 of file ilstbox.cxx.

References GetEntry(), GetEntryCount(), and mnImages.

Referenced by ImplListBoxWindow::Clear(), and ~ImplEntryList().

USHORT ImplEntryList::FindMatchingEntry ( const XubString &  rStr,
USHORT  nStart = 0,
BOOL  bForward = TRUE,
BOOL  bLazy = TRUE 
) const

USHORT ImplEntryList::FindEntry ( const XubString &  rStr,
BOOL  bSearchMRUArea = FALSE 
) const

USHORT ImplEntryList::FindEntry ( const void *  pData  )  const

long ImplEntryList::GetAddedHeight ( USHORT  nEndIndex,
USHORT  nBeginIndex = 0,
long  nBeginHeight = 0 
) const

long ImplEntryList::GetEntryHeight ( USHORT  nPos  )  const

USHORT ImplEntryList::GetEntryCount (  )  const [inline]

BOOL ImplEntryList::HasImages (  )  const [inline]

Definition at line 143 of file ilstbox.hxx.

References mnImages.

Referenced by ImplListBoxWindow::DrawEntry(), IMPL_LINK(), and ImplListBoxWindow::ImplGetTextStyle().

XubString ImplEntryList::GetEntryText ( USHORT  nPos  )  const

BOOL ImplEntryList::HasEntryImage ( USHORT  nPos  )  const

Definition at line 378 of file ilstbox.cxx.

References ImplEntryType::maImage.

Referenced by ImplListBoxWindow::DrawEntry().

Image ImplEntryList::GetEntryImage ( USHORT  nPos  )  const

Definition at line 389 of file ilstbox.cxx.

References ImplEntryType::maImage.

Referenced by ImplListBoxWindow::DrawEntry(), and IMPL_LINK().

void ImplEntryList::SetEntryData ( USHORT  nPos,
void *  pNewData 
)

Definition at line 400 of file ilstbox.cxx.

References ImplEntryType::mpUserData.

Referenced by ImplListBox::SetEntryData().

void * ImplEntryList::GetEntryData ( USHORT  nPos  )  const

Definition at line 409 of file ilstbox.cxx.

References ImplEntryType::mpUserData.

Referenced by ListBox::GetEntryData(), and ComboBox::GetEntryData().

void ImplEntryList::SetEntryFlags ( USHORT  nPos,
long  nFlags 
)

Definition at line 417 of file ilstbox.cxx.

References ImplEntryType::mnFlags.

Referenced by ImplListBoxWindow::SetEntryFlags().

long ImplEntryList::GetEntryFlags ( USHORT  nPos  )  const

Definition at line 426 of file ilstbox.cxx.

References ImplEntryType::mnFlags.

Referenced by ListBox::GetEntryFlags(), and ImplListBox::GetEntryFlags().

void ImplEntryList::SelectEntry ( USHORT  nPos,
BOOL  bSelect 
)

USHORT ImplEntryList::GetSelectEntryCount (  )  const

XubString ImplEntryList::GetSelectEntry ( USHORT  nIndex  )  const

Definition at line 448 of file ilstbox.cxx.

References GetEntryText(), and GetSelectEntryPos().

Referenced by IMPL_LINK().

USHORT ImplEntryList::GetSelectEntryPos ( USHORT  nIndex  )  const

BOOL ImplEntryList::IsEntrySelected ( const XubString &  rStr  )  const

Definition at line 480 of file ilstbox.cxx.

References FindEntry(), and IsEntryPosSelected().

BOOL ImplEntryList::IsEntryPosSelected ( USHORT  nIndex  )  const

void ImplEntryList::SetLastSelected ( USHORT  nPos  )  [inline]

Definition at line 164 of file ilstbox.hxx.

References mnLastSelected.

Referenced by ImplListBoxWindow::SelectEntries().

USHORT ImplEntryList::GetLastSelected (  )  const [inline]

Definition at line 165 of file ilstbox.hxx.

References mnLastSelected.

Referenced by ImplListBoxWindow::SelectEntries().

void ImplEntryList::SetSelectionAnchor ( USHORT  nPos  )  [inline]

Definition at line 167 of file ilstbox.hxx.

References mnSelectionAnchor.

Referenced by ImplListBoxWindow::MouseMove(), and ImplListBoxWindow::SelectEntries().

USHORT ImplEntryList::GetSelectionAnchor (  )  const [inline]

Definition at line 168 of file ilstbox.hxx.

References mnSelectionAnchor.

Referenced by ImplListBoxWindow::MouseMove(), and ImplListBoxWindow::SelectEntries().

void ImplEntryList::SetSelectionChangedHdl ( const Link &  rLnk  )  [inline]

Definition at line 171 of file ilstbox.hxx.

References maSelectionChangedHdl.

Referenced by ImplListBox::SetSelectionChangedHdl().

void ImplEntryList::SetCallSelectionChangedHdl ( BOOL  bCall  )  [inline]

Definition at line 172 of file ilstbox.hxx.

References mbCallSelectionChangedHdl.

Referenced by ImplListBox::SetCallSelectionChangedHdl().

void ImplEntryList::SetMRUCount ( USHORT  n  )  [inline]

USHORT ImplEntryList::GetMRUCount (  )  const [inline]

void ImplEntryList::SetMaxMRUCount ( USHORT  n  )  [inline]

Definition at line 177 of file ilstbox.hxx.

References mnMaxMRUCount.

Referenced by ImplListBox::SetMaxMRUCount().

USHORT ImplEntryList::GetMaxMRUCount (  )  const [inline]

Definition at line 178 of file ilstbox.hxx.

References mnMaxMRUCount.

Referenced by ImplListBox::GetMaxMRUCount().

bool ImplEntryList::IsEntrySelectable ( USHORT  nPos  )  const

An Entry is selectable if its mnFlags does not have the LISTBOX_ENTRY_FLAG_DISABLE_SELECTION flag set.

Definition at line 495 of file ilstbox.cxx.

References GetEntry(), LISTBOX_ENTRY_FLAG_DISABLE_SELECTION, and ImplEntryType::mnFlags.

Referenced by FindFirstSelectable(), ImplListBoxWindow::MouseMove(), ImplListBoxWindow::SelectEntries(), and ImplListBoxWindow::SelectEntry().

USHORT ImplEntryList::FindFirstSelectable ( USHORT  nPos,
bool  bForward = true 
)

returns the first entry found from the given position nPos that is selectable or LISTBOX_ENTRY_NOTFOUND if non is found.

If the entry at nPos is not selectable, it returns the first selectable entry after nPos if bForward is true and the first selectable entry after nPos is bForward is false.

Definition at line 503 of file ilstbox.cxx.

References GetEntryCount(), IsEntrySelectable(), and LISTBOX_ENTRY_NOTFOUND.

Referenced by ImplListBoxWindow::ProcessKeyInput().


Member Data Documentation

Definition at line 108 of file ilstbox.hxx.

Referenced by FindMatchingEntry(), and ImplEntryList().

Definition at line 109 of file ilstbox.hxx.

Referenced by GetLastSelected(), ImplEntryList(), and SetLastSelected().

Definition at line 110 of file ilstbox.hxx.

Referenced by GetSelectionAnchor(), ImplEntryList(), and SetSelectionAnchor().

USHORT ImplEntryList::mnImages [private]

Definition at line 111 of file ilstbox.hxx.

Referenced by Clear(), HasImages(), ImplEntryList(), InsertEntry(), and RemoveEntry().

USHORT ImplEntryList::mnMRUCount [private]

Definition at line 113 of file ilstbox.hxx.

Referenced by GetMRUCount(), ImplEntryList(), InsertEntry(), and SetMRUCount().

USHORT ImplEntryList::mnMaxMRUCount [private]

Definition at line 114 of file ilstbox.hxx.

Referenced by GetMaxMRUCount(), ImplEntryList(), and SetMaxMRUCount().

Definition at line 116 of file ilstbox.hxx.

Referenced by SelectEntry(), and SetSelectionChangedHdl().

Definition at line 117 of file ilstbox.hxx.

Referenced by ImplEntryList(), SelectEntry(), and SetCallSelectionChangedHdl().


The documentation for this class was generated from the following files:

Generated on Thu Apr 29 13:59:55 2010 for ooo-build Module vcl (ooo/OOO320_m15) by  doxygen 1.5.6