LibreOffice Module extensions (master) 1
|
#include <browserline.hxx>
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::Widget * | getControlWindow () 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::Button & | impl_ensureButton (bool bPrimary) |
Private Attributes | |
OUString | m_sEntryName |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
std::unique_ptr< weld::Label > | m_xFtTitle |
std::unique_ptr< weld::Button > | m_xBrowseButton |
std::unique_ptr< weld::Button > | m_xAdditionalBrowseButton |
css::uno::Reference< css::inspection::XPropertyControl > | m_xControl |
weld::Container * | m_pInitialControlParent |
weld::Container * | m_pParent |
weld::Widget * | m_pControlWindow |
weld::Button * | m_pBrowseButton |
weld::Button * | m_pAdditionalBrowseButton |
IButtonClickListener * | m_pClickListener |
sal_uInt16 | m_nNameWidth |
sal_uInt16 | m_nEnableFlags |
bool | m_bIndentTitle |
bool | m_bReadOnly |
Definition at line 48 of file browserline.hxx.
pcr::OBrowserLine::OBrowserLine | ( | OUString | aEntryName, |
weld::Container * | pParent, | ||
weld::SizeGroup * | pLabelGroup, | ||
weld::Container * | pInitialControlParent | ||
) |
Definition at line 54 of file browserline.cxx.
References weld::SizeGroup::add_widget(), aEntryName, m_bReadOnly, m_xContainer, and m_xFtTitle.
pcr::OBrowserLine::~OBrowserLine | ( | ) |
Definition at line 76 of file browserline.cxx.
References implHideBrowseButton(), m_pParent, m_xContainer, and weld::Container::move().
|
private |
|
private |
void pcr::OBrowserLine::EnablePropertyControls | ( | sal_Int16 | nControls, |
bool | bEnable | ||
) |
Definition at line 275 of file browserline.cxx.
References implUpdateEnabledDisabled(), and m_nEnableFlags.
void pcr::OBrowserLine::EnablePropertyLine | ( | bool | bEnable | ) |
Definition at line 268 of file browserline.cxx.
References com::sun::star::inspection::PropertyLineElement::CompleteLine, implUpdateEnabledDisabled(), and m_nEnableFlags.
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().
|
inline |
Definition at line 76 of file browserline.hxx.
References m_xControl.
|
inline |
Definition at line 80 of file browserline.hxx.
References m_pControlWindow.
|
inline |
Definition at line 85 of file browserline.hxx.
References m_sEntryName.
Referenced by pcr::OBrowserListBox::buttonClicked().
|
inline |
Definition at line 94 of file browserline.hxx.
References m_xContainer.
OUString pcr::OBrowserLine::GetTitle | ( | ) | const |
Definition at line 197 of file browserline.cxx.
References AllSettings::GetLayoutRTL(), m_xFtTitle, sDisplayName, and comphelper::string::stripEnd().
Referenced by SetTitle().
bool pcr::OBrowserLine::GrabFocus | ( | ) |
Definition at line 126 of file browserline.cxx.
References weld::Widget::get_sensitive(), weld::Widget::grab_focus(), m_pAdditionalBrowseButton, m_pBrowseButton, and m_pControlWindow.
void pcr::OBrowserLine::Hide | ( | ) |
Definition at line 159 of file browserline.cxx.
References Show().
void pcr::OBrowserLine::HideBrowseButton | ( | bool | bPrimary | ) |
Definition at line 362 of file browserline.cxx.
References implHideBrowseButton().
|
private |
Definition at line 283 of file browserline.cxx.
References weld::Button::connect_clicked(), weld::Widget::connect_focus_in(), LINK, m_pAdditionalBrowseButton, m_pBrowseButton, m_xAdditionalBrowseButton, m_xBrowseButton, and weld::Widget::show().
Referenced by ShowBrowseButton().
|
private |
Definition at line 340 of file browserline.cxx.
References weld::Widget::connect_focus_in(), weld::Widget::hide(), m_pAdditionalBrowseButton, and m_pBrowseButton.
Referenced by HideBrowseButton(), and ~OBrowserLine().
|
private |
Definition at line 250 of file browserline.cxx.
References com::sun::star::inspection::PropertyLineElement::CompleteLine, m_bReadOnly, m_nEnableFlags, m_pAdditionalBrowseButton, m_pBrowseButton, m_pControlWindow, and m_xFtTitle.
Referenced by EnablePropertyControls(), EnablePropertyLine(), and SetReadOnly().
void pcr::OBrowserLine::IndentTitle | ( | bool | bIndent | ) |
Definition at line 83 of file browserline.cxx.
References m_bIndentTitle.
void pcr::OBrowserLine::SetClickListener | ( | IButtonClickListener * | pListener | ) |
Definition at line 375 of file browserline.cxx.
References m_pClickListener.
void pcr::OBrowserLine::SetComponentHelpIds | ( | const OUString & | rHelpId | ) |
Definition at line 91 of file browserline.cxx.
References m_pAdditionalBrowseButton, m_pBrowseButton, m_pControlWindow, and weld::Widget::set_help_id().
void pcr::OBrowserLine::setControl | ( | const css::uno::Reference< css::inspection::XPropertyControl > & | rxControl | ) |
Definition at line 107 of file browserline.cxx.
References DBG_ASSERT, m_pControlWindow, m_pInitialControlParent, m_xContainer, m_xControl, m_xFtTitle, weld::Container::move(), weld::Widget::set_grid_left_attach(), and weld::Widget::show().
void pcr::OBrowserLine::SetReadOnly | ( | bool | bReadOnly | ) |
Definition at line 213 of file browserline.cxx.
References implUpdateEnabledDisabled(), and m_bReadOnly.
void pcr::OBrowserLine::SetTitle | ( | const OUString & | rString | ) |
Definition at line 164 of file browserline.cxx.
References FullFillTitleString(), GetTitle(), m_pBrowseButton, m_pControlWindow, m_xFtTitle, and weld::Widget::set_accessible_name().
void pcr::OBrowserLine::SetTitleWidth | ( | sal_uInt16 | nWidth | ) |
Definition at line 367 of file browserline.cxx.
References FullFillTitleString(), m_nNameWidth, and m_xFtTitle.
void pcr::OBrowserLine::Show | ( | bool | bFlag = true | ) |
Definition at line 148 of file browserline.cxx.
References m_pAdditionalBrowseButton, m_pBrowseButton, m_pControlWindow, m_xFtTitle, and weld::Widget::set_visible().
Referenced by Hide().
void pcr::OBrowserLine::ShowBrowseButton | ( | bool | bPrimary | ) |
Definition at line 335 of file browserline.cxx.
References impl_ensureButton().
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().
void pcr::OBrowserLine::ShowBrowseButton | ( | const OUString & | rImageURL, |
bool | bPrimary | ||
) |
Definition at line 306 of file browserline.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, impl_ensureButton(), comphelper::makePropertyValue(), Sequence, and weld::Button::set_image().
|
private |
Definition at line 67 of file browserline.hxx.
Referenced by IndentTitle().
|
private |
Definition at line 68 of file browserline.hxx.
Referenced by implUpdateEnabledDisabled(), and SetReadOnly().
|
private |
Definition at line 66 of file browserline.hxx.
Referenced by EnablePropertyControls(), EnablePropertyLine(), and implUpdateEnabledDisabled().
|
private |
Definition at line 65 of file browserline.hxx.
Referenced by FullFillTitleString(), and SetTitleWidth().
|
private |
Definition at line 63 of file browserline.hxx.
Referenced by GrabFocus(), impl_ensureButton(), implHideBrowseButton(), implUpdateEnabledDisabled(), SetComponentHelpIds(), and Show().
|
private |
Definition at line 62 of file browserline.hxx.
Referenced by GrabFocus(), impl_ensureButton(), implHideBrowseButton(), implUpdateEnabledDisabled(), SetComponentHelpIds(), SetTitle(), and Show().
|
private |
Definition at line 64 of file browserline.hxx.
Referenced by SetClickListener().
|
private |
Definition at line 61 of file browserline.hxx.
Referenced by getControlWindow(), GrabFocus(), implUpdateEnabledDisabled(), SetComponentHelpIds(), setControl(), SetTitle(), and Show().
|
private |
Definition at line 59 of file browserline.hxx.
Referenced by setControl().
|
private |
Definition at line 60 of file browserline.hxx.
Referenced by ~OBrowserLine().
|
private |
Definition at line 51 of file browserline.hxx.
Referenced by GetEntryName().
|
private |
Definition at line 56 of file browserline.hxx.
Referenced by impl_ensureButton().
|
private |
Definition at line 55 of file browserline.hxx.
Referenced by impl_ensureButton().
|
private |
Definition at line 52 of file browserline.hxx.
|
private |
Definition at line 53 of file browserline.hxx.
Referenced by GetRowHeight(), setControl(), and ~OBrowserLine().
|
private |
Definition at line 58 of file browserline.hxx.
Referenced by getControl(), and setControl().
|
private |
Definition at line 54 of file browserline.hxx.
Referenced by FullFillTitleString(), GetTitle(), implUpdateEnabledDisabled(), OBrowserLine(), setControl(), SetTitle(), SetTitleWidth(), and Show().