Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
CUrlBar Class Reference

#include <BrowserFrm.h>

Collaboration diagram for CUrlBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void GetEnteredURL (CString &url)
void GetSelectedURL (CString &url)
void SetCurrentURL (LPCTSTR pUrl)
void AddURLToList (CString &url, bool bAddToMRUList=true)
void LoadMRUList ()
BOOL EditCtrlHasFocus ()
BOOL EditCtrlHasSelection ()
BOOL CanCutToClipboard ()
void CutToClipboard ()
BOOL CanCopyToClipboard ()
void CopyToClipboard ()
BOOL CanPasteFromClipboard ()
void PasteFromClipboard ()
BOOL CanUndoEditOp ()
void UndoEditOp ()
void GetEnteredURL (CString &url)
void GetSelectedURL (CString &url)
void SetCurrentURL (LPCTSTR pUrl)
void AddURLToList (CString &url, bool bAddToMRUList=true)
void LoadMRUList ()
BOOL EditCtrlHasFocus ()
BOOL EditCtrlHasSelection ()
BOOL CanCutToClipboard ()
void CutToClipboard ()
BOOL CanCopyToClipboard ()
void CopyToClipboard ()
BOOL CanPasteFromClipboard ()
void PasteFromClipboard ()
BOOL CanUndoEditOp ()
void UndoEditOp ()

Protected Attributes

CMostRecentUrls m_MRUList

Detailed Description

Definition at line 56 of file BrowserFrm.h.


Member Function Documentation

void CUrlBar::AddURLToList ( CString &  url,
bool  bAddToMRUList = true 
) [inline]

Definition at line 61 of file BrowserFrm.h.

                                                                      {
        USES_CONVERSION;
        COMBOBOXEXITEM ci;
        ci.mask = CBEIF_TEXT; ci.iItem = -1;
        ci.pszText = const_cast<TCHAR *>((LPCTSTR)url);
        InsertItem(&ci);

        if(bAddToMRUList)
            m_MRUList.AddURL(T2CA(url));
    }

Here is the call graph for this function:

void CUrlBar::AddURLToList ( CString &  url,
bool  bAddToMRUList = true 
) [inline]

Definition at line 68 of file BrowserFrm.h.

                                                                         {
              COMBOBOXEXITEM ci;
              ci.mask = CBEIF_TEXT; ci.iItem = -1;
              ci.pszText = (LPTSTR)(LPCTSTR)url;
              InsertItem(&ci);

        if(bAddToMRUList)
            m_MRUList.AddURL((LPTSTR)(LPCTSTR)url);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 94 of file BrowserFrm.h.

                                     {
        return EditCtrlHasSelection();
    }

Here is the call graph for this function:

Definition at line 99 of file BrowserFrm.h.

                                     {
        return EditCtrlHasSelection();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 88 of file BrowserFrm.h.

                                    {
        return EditCtrlHasSelection();
    }

Here is the call graph for this function:

Definition at line 93 of file BrowserFrm.h.

                                    {
        return EditCtrlHasSelection();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 100 of file BrowserFrm.h.

                                        {
        return EditCtrlHasFocus();
    }

Here is the call graph for this function:

Definition at line 105 of file BrowserFrm.h.

                                        {
        return EditCtrlHasFocus();
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 106 of file BrowserFrm.h.

                                {
        return EditCtrlHasFocus() ? GetEditCtrl()->CanUndo() : FALSE;
    }

Here is the call graph for this function:

Definition at line 111 of file BrowserFrm.h.

                                {
        return EditCtrlHasFocus() ? GetEditCtrl()->CanUndo() : FALSE;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 97 of file BrowserFrm.h.

                                  {
        GetEditCtrl()->Copy();
    }

Definition at line 102 of file BrowserFrm.h.

                                  {
        GetEditCtrl()->Copy();
    }

Here is the caller graph for this function:

Definition at line 91 of file BrowserFrm.h.

                                 {
        GetEditCtrl()->Cut();
    }

Definition at line 96 of file BrowserFrm.h.

                                 {
        GetEditCtrl()->Cut();
    }

Here is the caller graph for this function:

Definition at line 79 of file BrowserFrm.h.

                                   {
        return (GetEditCtrl()->m_hWnd == CWnd::GetFocus()->m_hWnd);
    }

Definition at line 84 of file BrowserFrm.h.

                                   {
        return (GetEditCtrl()->m_hWnd == CWnd::GetFocus()->m_hWnd);
    }

Here is the caller graph for this function:

Definition at line 82 of file BrowserFrm.h.

                                       {
        int nStartChar = 0, nEndChar = 0;
        if(EditCtrlHasFocus())
            GetEditCtrl()->GetSel(nStartChar, nEndChar);
        return (nEndChar > nStartChar) ? TRUE : FALSE;
    }

Here is the call graph for this function:

Definition at line 87 of file BrowserFrm.h.

                                       {
        int nStartChar = 0, nEndChar = 0;
        if(EditCtrlHasFocus())
            GetEditCtrl()->GetSel(nStartChar, nEndChar);
        return (nEndChar > nStartChar) ? TRUE : FALSE;
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void CUrlBar::GetEnteredURL ( CString &  url) [inline]

Definition at line 52 of file BrowserFrm.h.

                                            {
        GetEditCtrl()->GetWindowText(url);
    }
void CUrlBar::GetEnteredURL ( CString &  url) [inline]

Definition at line 59 of file BrowserFrm.h.

                                               {
              GetEditCtrl()->GetWindowText(url);
       }

Here is the caller graph for this function:

void CUrlBar::GetSelectedURL ( CString &  url) [inline]

Definition at line 55 of file BrowserFrm.h.

                                             {
        GetLBText(GetCurSel(), url);
    }
void CUrlBar::GetSelectedURL ( CString &  url) [inline]

Definition at line 62 of file BrowserFrm.h.

                                                {
              GetLBText(GetCurSel(), url);
       }

Here is the caller graph for this function:

void CUrlBar::LoadMRUList ( ) [inline]

Definition at line 71 of file BrowserFrm.h.

                              {
        for (int i=0;i<m_MRUList.GetNumURLs();i++) 
        {
            USES_CONVERSION;
            CString urlStr(A2CT(m_MRUList.GetURL(i)));
            AddURLToList(urlStr, false); 
        }
    }

Here is the call graph for this function:

void CUrlBar::LoadMRUList ( ) [inline]

Definition at line 77 of file BrowserFrm.h.

                              {
        for (int i=0;i<m_MRUList.GetNumURLs();i++) 
        {
            CString urlStr(_T(m_MRUList.GetURL(i)));
            AddURLToList(urlStr, false); 
        }
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 103 of file BrowserFrm.h.

                                     {
        GetEditCtrl()->Paste();
    }

Definition at line 108 of file BrowserFrm.h.

                                     {
        GetEditCtrl()->Paste();
    }

Here is the caller graph for this function:

void CUrlBar::SetCurrentURL ( LPCTSTR  pUrl) [inline]

Definition at line 58 of file BrowserFrm.h.

                                            {
        SetWindowText(pUrl);
    }
void CUrlBar::SetCurrentURL ( LPCTSTR  pUrl) [inline]

Definition at line 65 of file BrowserFrm.h.

                                               {
              SetWindowText(pUrl);
       }
void CUrlBar::UndoEditOp ( ) [inline]

Definition at line 109 of file BrowserFrm.h.

                             {        
        if(EditCtrlHasFocus())
            GetEditCtrl()->Undo();
    }

Here is the call graph for this function:

void CUrlBar::UndoEditOp ( ) [inline]

Definition at line 114 of file BrowserFrm.h.

                             {        
        if(EditCtrlHasFocus())
            GetEditCtrl()->Undo();
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 120 of file BrowserFrm.h.


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