LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::OBrowserLine Class Reference

#include <browserline.hxx>

Collaboration diagram for pcr::OBrowserLine:
[legend]

Public Member Functions

 OBrowserLine (OUString aEntryName, weld::Container *pParent, weld::SizeGroup *pLabelGroup, weld::Container *pInitialControlParent)
 
 ~OBrowserLine ()
 
void setControl (const css::uno::Reference< css::inspection::XPropertyControl > &rxControl)
 
const css::uno::Reference< css::inspection::XPropertyControl > & getControl () const
 
weld::WidgetgetControlWindow () const
 
const OUString & GetEntryName () const
 
void SetComponentHelpIds (const OUString &rHelpId)
 
void SetTitle (const OUString &rString)
 
void FullFillTitleString ()
 
OUString GetTitle () const
 
void SetTitleWidth (sal_uInt16)
 
int GetRowHeight () const
 
void Show (bool bFlag=true)
 
void Hide ()
 
bool GrabFocus ()
 
void ShowBrowseButton (const OUString &rImageURL, bool bPrimary)
 
void ShowBrowseButton (const css::uno::Reference< css::graphic::XGraphic > &rGraphic, bool bPrimary)
 
void ShowBrowseButton (bool bPrimary)
 
void HideBrowseButton (bool bPrimary)
 
void EnablePropertyControls (sal_Int16 nControls, bool bEnable)
 
void EnablePropertyLine (bool bEnable)
 
void SetReadOnly (bool bReadOnly)
 
void SetClickListener (IButtonClickListener *pListener)
 
void IndentTitle (bool bIndent)
 

Private Member Functions

 DECL_LINK (OnButtonClicked, weld::Button &, void)
 
 DECL_LINK (OnButtonFocus, weld::Widget &, void)
 
void implHideBrowseButton (bool bPrimary)
 
void implUpdateEnabledDisabled ()
 
weld::Buttonimpl_ensureButton (bool bPrimary)
 

Private Attributes

OUString m_sEntryName
 
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
std::unique_ptr< weld::Labelm_xFtTitle
 
std::unique_ptr< weld::Buttonm_xBrowseButton
 
std::unique_ptr< weld::Buttonm_xAdditionalBrowseButton
 
css::uno::Reference< css::inspection::XPropertyControl > m_xControl
 
weld::Containerm_pInitialControlParent
 
weld::Containerm_pParent
 
weld::Widgetm_pControlWindow
 
weld::Buttonm_pBrowseButton
 
weld::Buttonm_pAdditionalBrowseButton
 
IButtonClickListenerm_pClickListener
 
sal_uInt16 m_nNameWidth
 
sal_uInt16 m_nEnableFlags
 
bool m_bIndentTitle
 
bool m_bReadOnly
 

Detailed Description

Definition at line 48 of file browserline.hxx.

Constructor & Destructor Documentation

◆ OBrowserLine()

pcr::OBrowserLine::OBrowserLine ( OUString  aEntryName,
weld::Container pParent,
weld::SizeGroup pLabelGroup,
weld::Container pInitialControlParent 
)

◆ ~OBrowserLine()

pcr::OBrowserLine::~OBrowserLine ( )

Member Function Documentation

◆ DECL_LINK() [1/2]

pcr::OBrowserLine::DECL_LINK ( OnButtonClicked  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

pcr::OBrowserLine::DECL_LINK ( OnButtonFocus  ,
weld::Widget ,
void   
)
private

◆ EnablePropertyControls()

void pcr::OBrowserLine::EnablePropertyControls ( sal_Int16  nControls,
bool  bEnable 
)

Definition at line 275 of file browserline.cxx.

References implUpdateEnabledDisabled(), and m_nEnableFlags.

◆ EnablePropertyLine()

void pcr::OBrowserLine::EnablePropertyLine ( bool  bEnable)

◆ FullFillTitleString()

void pcr::OBrowserLine::FullFillTitleString ( )

Definition at line 176 of file browserline.cxx.

References AllSettings::GetLayoutRTL(), i, m_nNameWidth, and m_xFtTitle.

Referenced by SetTitle(), and SetTitleWidth().

◆ getControl()

const css::uno::Reference< css::inspection::XPropertyControl > & pcr::OBrowserLine::getControl ( ) const
inline

Definition at line 76 of file browserline.hxx.

References m_xControl.

◆ getControlWindow()

weld::Widget * pcr::OBrowserLine::getControlWindow ( ) const
inline

Definition at line 80 of file browserline.hxx.

References m_pControlWindow.

◆ GetEntryName()

const OUString & pcr::OBrowserLine::GetEntryName ( ) const
inline

Definition at line 85 of file browserline.hxx.

References m_sEntryName.

Referenced by pcr::OBrowserListBox::buttonClicked().

◆ GetRowHeight()

int pcr::OBrowserLine::GetRowHeight ( ) const
inline

Definition at line 94 of file browserline.hxx.

References m_xContainer.

◆ GetTitle()

OUString pcr::OBrowserLine::GetTitle ( ) const

◆ GrabFocus()

bool pcr::OBrowserLine::GrabFocus ( )

◆ Hide()

void pcr::OBrowserLine::Hide ( )

Definition at line 159 of file browserline.cxx.

References Show().

◆ HideBrowseButton()

void pcr::OBrowserLine::HideBrowseButton ( bool  bPrimary)

Definition at line 362 of file browserline.cxx.

References implHideBrowseButton().

◆ impl_ensureButton()

weld::Button & pcr::OBrowserLine::impl_ensureButton ( bool  bPrimary)
private

◆ implHideBrowseButton()

void pcr::OBrowserLine::implHideBrowseButton ( bool  bPrimary)
private

◆ implUpdateEnabledDisabled()

void pcr::OBrowserLine::implUpdateEnabledDisabled ( )
private

◆ IndentTitle()

void pcr::OBrowserLine::IndentTitle ( bool  bIndent)

Definition at line 83 of file browserline.cxx.

References m_bIndentTitle.

◆ SetClickListener()

void pcr::OBrowserLine::SetClickListener ( IButtonClickListener pListener)

Definition at line 375 of file browserline.cxx.

References m_pClickListener.

◆ SetComponentHelpIds()

void pcr::OBrowserLine::SetComponentHelpIds ( const OUString &  rHelpId)

◆ setControl()

void pcr::OBrowserLine::setControl ( const css::uno::Reference< css::inspection::XPropertyControl > &  rxControl)

◆ SetReadOnly()

void pcr::OBrowserLine::SetReadOnly ( bool  bReadOnly)

Definition at line 213 of file browserline.cxx.

References implUpdateEnabledDisabled(), and m_bReadOnly.

◆ SetTitle()

void pcr::OBrowserLine::SetTitle ( const OUString &  rString)

◆ SetTitleWidth()

void pcr::OBrowserLine::SetTitleWidth ( sal_uInt16  nWidth)

Definition at line 367 of file browserline.cxx.

References FullFillTitleString(), m_nNameWidth, and m_xFtTitle.

◆ Show()

void pcr::OBrowserLine::Show ( bool  bFlag = true)

◆ ShowBrowseButton() [1/3]

void pcr::OBrowserLine::ShowBrowseButton ( bool  bPrimary)

Definition at line 335 of file browserline.cxx.

References impl_ensureButton().

◆ ShowBrowseButton() [2/3]

void pcr::OBrowserLine::ShowBrowseButton ( const css::uno::Reference< css::graphic::XGraphic > &  rGraphic,
bool  bPrimary 
)

Definition at line 329 of file browserline.cxx.

References impl_ensureButton(), and weld::Button::set_image().

◆ ShowBrowseButton() [3/3]

void pcr::OBrowserLine::ShowBrowseButton ( const OUString &  rImageURL,
bool  bPrimary 
)

Member Data Documentation

◆ m_bIndentTitle

bool pcr::OBrowserLine::m_bIndentTitle
private

Definition at line 67 of file browserline.hxx.

Referenced by IndentTitle().

◆ m_bReadOnly

bool pcr::OBrowserLine::m_bReadOnly
private

Definition at line 68 of file browserline.hxx.

Referenced by implUpdateEnabledDisabled(), and SetReadOnly().

◆ m_nEnableFlags

sal_uInt16 pcr::OBrowserLine::m_nEnableFlags
private

◆ m_nNameWidth

sal_uInt16 pcr::OBrowserLine::m_nNameWidth
private

Definition at line 65 of file browserline.hxx.

Referenced by FullFillTitleString(), and SetTitleWidth().

◆ m_pAdditionalBrowseButton

weld::Button* pcr::OBrowserLine::m_pAdditionalBrowseButton
private

◆ m_pBrowseButton

weld::Button* pcr::OBrowserLine::m_pBrowseButton
private

◆ m_pClickListener

IButtonClickListener* pcr::OBrowserLine::m_pClickListener
private

Definition at line 64 of file browserline.hxx.

Referenced by SetClickListener().

◆ m_pControlWindow

weld::Widget* pcr::OBrowserLine::m_pControlWindow
private

◆ m_pInitialControlParent

weld::Container* pcr::OBrowserLine::m_pInitialControlParent
private

Definition at line 59 of file browserline.hxx.

Referenced by setControl().

◆ m_pParent

weld::Container* pcr::OBrowserLine::m_pParent
private

Definition at line 60 of file browserline.hxx.

Referenced by ~OBrowserLine().

◆ m_sEntryName

OUString pcr::OBrowserLine::m_sEntryName
private

Definition at line 51 of file browserline.hxx.

Referenced by GetEntryName().

◆ m_xAdditionalBrowseButton

std::unique_ptr<weld::Button> pcr::OBrowserLine::m_xAdditionalBrowseButton
private

Definition at line 56 of file browserline.hxx.

Referenced by impl_ensureButton().

◆ m_xBrowseButton

std::unique_ptr<weld::Button> pcr::OBrowserLine::m_xBrowseButton
private

Definition at line 55 of file browserline.hxx.

Referenced by impl_ensureButton().

◆ m_xBuilder

std::unique_ptr<weld::Builder> pcr::OBrowserLine::m_xBuilder
private

Definition at line 52 of file browserline.hxx.

◆ m_xContainer

std::unique_ptr<weld::Container> pcr::OBrowserLine::m_xContainer
private

Definition at line 53 of file browserline.hxx.

Referenced by GetRowHeight(), setControl(), and ~OBrowserLine().

◆ m_xControl

css::uno::Reference< css::inspection::XPropertyControl > pcr::OBrowserLine::m_xControl
private

Definition at line 58 of file browserline.hxx.

Referenced by getControl(), and setControl().

◆ m_xFtTitle

std::unique_ptr<weld::Label> pcr::OBrowserLine::m_xFtTitle
private

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