LibreOffice Module fpicker (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Breadcrumb Class Reference

#include <breadcrumb.hxx>

Collaboration diagram for Breadcrumb:
[legend]

Public Member Functions

 Breadcrumb (weld::Container *pParent)
 
 ~Breadcrumb ()
 
void EnableFields (bool bEnable)
 
void connect_clicked (const Link< Breadcrumb *, bool > &rLink)
 
const OUString & GetHdlURL () const
 
void SetRootName (const OUString &rURL)
 
void SetURL (const OUString &rURL)
 
void SetMode (SvtBreadcrumbMode eMode)
 

Private Member Functions

void appendField ()
 
bool showField (unsigned int nIndex, unsigned int nWidthMax)
 
 DECL_LINK (SizeAllocHdl, const Size &, void)
 
 DECL_LINK (ClickLinkHdl, weld::LinkButton &, bool)
 

Private Attributes

weld::Containerm_pParent
 
int m_nMaxWidth
 
std::vector< std::unique_ptr< BreadcrumbPath > > m_aSegments
 
std::map< weld::LinkButton *, OUString > m_aUris
 
OUString m_sRootName
 
OUString m_sClickedURL
 
OUString m_aCurrentURL
 
SvtBreadcrumbMode m_eMode
 
Link< Breadcrumb *, bool > m_aClickHdl
 

Detailed Description

Definition at line 34 of file breadcrumb.hxx.

Constructor & Destructor Documentation

Breadcrumb::Breadcrumb ( weld::Container pParent)
Breadcrumb::~Breadcrumb ( )

Definition at line 28 of file breadcrumb.cxx.

References weld::Widget::connect_size_allocate(), and m_pParent.

Member Function Documentation

void Breadcrumb::appendField ( )
private

Definition at line 211 of file breadcrumb.cxx.

References LINK, m_aSegments, m_pParent, and nIndex.

Referenced by Breadcrumb(), and SetURL().

void Breadcrumb::connect_clicked ( const Link< Breadcrumb *, bool > &  rLink)

Definition at line 43 of file breadcrumb.cxx.

References m_aClickHdl.

Breadcrumb::DECL_LINK ( SizeAllocHdl  ,
const Size ,
void   
)
private
Breadcrumb::DECL_LINK ( ClickLinkHdl  ,
weld::LinkButton ,
bool   
)
private
void Breadcrumb::EnableFields ( bool  bEnable)

Definition at line 33 of file breadcrumb.cxx.

References aURL, INetURLObject::getSegmentCount(), m_aCurrentURL, and m_aSegments.

const OUString & Breadcrumb::GetHdlURL ( ) const

Definition at line 48 of file breadcrumb.cxx.

References m_sClickedURL.

void Breadcrumb::SetMode ( SvtBreadcrumbMode  eMode)

Definition at line 206 of file breadcrumb.cxx.

References m_eMode.

void Breadcrumb::SetRootName ( const OUString &  rURL)

Definition at line 53 of file breadcrumb.cxx.

References i, m_aSegments, and m_sRootName.

void Breadcrumb::SetURL ( const OUString &  rURL)
bool Breadcrumb::showField ( unsigned int  nIndex,
unsigned int  nWidthMax 
)
private

Definition at line 221 of file breadcrumb.cxx.

References m_aSegments, and SPACING.

Referenced by SetURL().

Member Data Documentation

Link<Breadcrumb*,bool> Breadcrumb::m_aClickHdl
private

Definition at line 49 of file breadcrumb.hxx.

Referenced by connect_clicked().

OUString Breadcrumb::m_aCurrentURL
private

Definition at line 45 of file breadcrumb.hxx.

Referenced by EnableFields(), and SetURL().

std::vector<std::unique_ptr<BreadcrumbPath> > Breadcrumb::m_aSegments
private

Definition at line 40 of file breadcrumb.hxx.

Referenced by appendField(), EnableFields(), SetRootName(), SetURL(), and showField().

std::map<weld::LinkButton*, OUString> Breadcrumb::m_aUris
private

Definition at line 41 of file breadcrumb.hxx.

Referenced by SetURL().

SvtBreadcrumbMode Breadcrumb::m_eMode
private

Definition at line 47 of file breadcrumb.hxx.

Referenced by Breadcrumb(), SetMode(), and SetURL().

int Breadcrumb::m_nMaxWidth
private

Definition at line 38 of file breadcrumb.hxx.

Referenced by SetURL().

weld::Container* Breadcrumb::m_pParent
private

Definition at line 37 of file breadcrumb.hxx.

Referenced by appendField(), Breadcrumb(), and ~Breadcrumb().

OUString Breadcrumb::m_sClickedURL
private

Definition at line 44 of file breadcrumb.hxx.

Referenced by GetHdlURL().

OUString Breadcrumb::m_sRootName
private

Definition at line 43 of file breadcrumb.hxx.

Referenced by SetRootName(), and SetURL().


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