LibreOffice Module extensions (master) 1
|
#include <propertyeditor.hxx>
Classes | |
struct | PropertyPage |
Public Member Functions | |
OPropertyEditor (const css::uno::Reference< css::uno::XComponentContext > &rContext, weld::Builder &rBuilder) | |
~OPropertyEditor () | |
void | SetLineListener (IPropertyLineListener *) |
void | SetControlObserver (IPropertyControlObserver *) |
void | EnableHelpSection (bool _bEnable) |
bool | HasHelpSection () const |
void | SetHelpText (const OUString &_rHelpText) |
void | SetHelpId (const OUString &sHelpId) |
sal_uInt16 | AppendPage (const OUString &r, const OUString &_rHelpId) |
void | SetPage (sal_uInt16) |
void | RemovePage (sal_uInt16 nID) |
sal_uInt16 | GetCurPage () const |
void | ClearAll () |
void | SetPropertyValue (const OUString &_rEntryName, const css::uno::Any &_rValue, bool _bUnknownValue) |
sal_uInt16 | GetPropertyPos (const OUString &rEntryName) const |
css::uno::Reference< css::inspection::XPropertyControl > | GetPropertyControl (const OUString &rEntryName) |
void | EnablePropertyLine (const OUString &_rEntryName, bool _bEnable) |
void | EnablePropertyControls (const OUString &_rEntryName, sal_Int16 _nControls, bool _bEnable) |
void | ShowPropertyPage (sal_uInt16 _nPageId, bool _bShow) |
void | InsertEntry (const OLineDescriptor &, sal_uInt16 _nPageId, sal_uInt16 nPos=EDITOR_LIST_APPEND) |
void | RemoveEntry (const OUString &_rName) |
void | ChangeEntry (const OLineDescriptor &) |
void | setPageActivationHandler (const Link< const OUString &, void > &_rHdl) |
Size | get_preferred_size () const |
weld::Widget * | getWidget () const |
void | Show () |
void | Hide () |
void | GrabFocus () |
void | CommitModified () |
Private Types | |
typedef std::map< OUString, sal_uInt16 > | MapStringToPageId |
typedef void(OPropertyEditor::* | PageOperation) (OBrowserPage &, const void *) |
Private Member Functions | |
OBrowserPage * | getPage (sal_uInt16 _rPageId) |
const OBrowserPage * | getPage (sal_uInt16 _rPageId) const |
OBrowserPage * | getPage (const OUString &_rPropertyName) |
const OBrowserPage * | getPage (const OUString &_rPropertyName) const |
void | forEachPage (PageOperation _pOperation) |
void | setPageLineListener (OBrowserPage &_rPage, const void *) |
void | setPageControlObserver (OBrowserPage &_rPage, const void *) |
void | enableHelpSection (OBrowserPage &_rPage, const void *) |
DECL_LINK (OnPageDeactivate, const OUString &, bool) | |
DECL_LINK (OnPageActivate, const OUString &, void) | |
Static Private Member Functions | |
static void | setHelpSectionText (OBrowserPage &_rPage, const void *_pPointerToOUString) |
Private Attributes | |
std::unique_ptr< weld::Container > | m_xContainer |
std::unique_ptr< weld::Notebook > | m_xTabControl |
std::unique_ptr< weld::Container > | m_xControlHoldingParent |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
IPropertyLineListener * | m_pListener |
IPropertyControlObserver * | m_pObserver |
sal_uInt16 | m_nNextId |
Link< const OUString &, void > | m_aPageActivationHandler |
bool | m_bHasHelpSection |
MapStringToPageId | m_aPropertyPageIds |
std::map< sal_uInt16, PropertyPage > | m_aShownPages |
std::map< sal_uInt16, PropertyPage > | m_aHiddenPages |
Definition at line 39 of file propertyeditor.hxx.
|
private |
Definition at line 42 of file propertyeditor.hxx.
|
private |
Definition at line 117 of file propertyeditor.hxx.
|
explicit |
Definition at line 35 of file propertyeditor.cxx.
References LINK, m_xContainer, m_xControlHoldingParent, m_xTabControl, and pcr::PropertyHandlerHelper::setBuilderParent().
pcr::OPropertyEditor::~OPropertyEditor | ( | ) |
Definition at line 51 of file propertyeditor.cxx.
References ClearAll(), pcr::PropertyHandlerHelper::clearBuilderParent(), and m_xContext.
sal_uInt16 pcr::OPropertyEditor::AppendPage | ( | const OUString & | r, |
const OUString & | _rHelpId | ||
) |
Definition at line 119 of file propertyeditor.cxx.
References m_aShownPages, m_bHasHelpSection, m_nNextId, m_pListener, m_pObserver, m_xControlHoldingParent, m_xTabControl, and nId.
Referenced by pcr::OPropertyBrowserController::impl_buildCategories_throw(), and pcr::OPropertyBrowserController::UpdateUI().
void pcr::OPropertyEditor::ChangeEntry | ( | const OLineDescriptor & | rData | ) |
Definition at line 266 of file propertyeditor.cxx.
References pcr::OBrowserListBox::ChangeEntry(), EDITOR_LIST_REPLACE_EXISTING, pcr::OBrowserPage::getListBox(), getPage(), and pcr::OLineDescriptor::sName.
Referenced by pcr::OPropertyBrowserController::rebuildPropertyUI().
void pcr::OPropertyEditor::ClearAll | ( | ) |
Definition at line 57 of file propertyeditor.cxx.
References i, m_aHiddenPages, m_aPropertyPageIds, m_aShownPages, m_nNextId, m_xTabControl, and nCount.
Referenced by pcr::OPropertyBrowserController::stopInspection(), and ~OPropertyEditor().
void pcr::OPropertyEditor::CommitModified | ( | ) |
Definition at line 80 of file propertyeditor.cxx.
References pcr::OBrowserListBox::CommitModified(), pcr::OBrowserPage::getListBox(), pcr::OBrowserListBox::IsModified(), and m_aShownPages.
Referenced by pcr::OPropertyBrowserController::Clicked(), pcr::OPropertyBrowserController::stopInspection(), and pcr::OPropertyBrowserController::suspend().
|
private |
|
private |
void pcr::OPropertyEditor::EnableHelpSection | ( | bool | _bEnable | ) |
Definition at line 204 of file propertyeditor.cxx.
References enableHelpSection(), forEachPage(), and m_bHasHelpSection.
Referenced by pcr::OPropertyBrowserController::impl_initializeView_nothrow().
|
private |
Definition at line 223 of file propertyeditor.cxx.
References pcr::OBrowserListBox::EnableHelpSection(), pcr::OBrowserPage::getListBox(), and m_bHasHelpSection.
Referenced by EnableHelpSection().
void pcr::OPropertyEditor::EnablePropertyControls | ( | const OUString & | _rEntryName, |
sal_Int16 | _nControls, | ||
bool | _bEnable | ||
) |
Definition at line 320 of file propertyeditor.cxx.
References pcr::OBrowserListBox::EnablePropertyControls(), pcr::OBrowserPage::getListBox(), and m_aShownPages.
Referenced by pcr::OPropertyBrowserController::enablePropertyUIElements().
void pcr::OPropertyEditor::EnablePropertyLine | ( | const OUString & | _rEntryName, |
bool | _bEnable | ||
) |
Definition at line 330 of file propertyeditor.cxx.
References pcr::OBrowserListBox::EnablePropertyLine(), pcr::OBrowserPage::getListBox(), and m_aShownPages.
Referenced by pcr::OPropertyBrowserController::enablePropertyUI().
|
private |
Definition at line 169 of file propertyeditor.cxx.
References getPage(), i, m_xTabControl, and nCount.
Referenced by EnableHelpSection(), SetControlObserver(), and SetLineListener().
Size pcr::OPropertyEditor::get_preferred_size | ( | ) | const |
Definition at line 75 of file propertyeditor.cxx.
References m_xTabControl.
sal_uInt16 pcr::OPropertyEditor::GetCurPage | ( | ) | const |
Definition at line 164 of file propertyeditor.cxx.
References m_xTabControl.
|
private |
Definition at line 91 of file propertyeditor.cxx.
References getPage(), and m_aPropertyPageIds.
|
private |
Definition at line 100 of file propertyeditor.cxx.
References getPage().
|
private |
Definition at line 105 of file propertyeditor.cxx.
References m_aShownPages.
Referenced by ChangeEntry(), forEachPage(), getPage(), GetPropertyControl(), GetPropertyPos(), InsertEntry(), RemoveEntry(), SetHelpText(), and SetPropertyValue().
|
private |
Definition at line 114 of file propertyeditor.cxx.
References getPage().
Reference< XPropertyControl > pcr::OPropertyEditor::GetPropertyControl | ( | const OUString & | rEntryName | ) |
Definition at line 340 of file propertyeditor.cxx.
References pcr::OBrowserPage::getListBox(), getPage(), pcr::OBrowserListBox::GetPropertyControl(), and m_xTabControl.
sal_uInt16 pcr::OPropertyEditor::GetPropertyPos | ( | const OUString & | rEntryName | ) | const |
Definition at line 280 of file propertyeditor.cxx.
References EDITOR_LIST_ENTRY_NOTFOUND, pcr::OBrowserPage::getListBox(), getPage(), and pcr::OBrowserListBox::GetPropertyPos().
Referenced by pcr::OPropertyBrowserController::showPropertyUI().
|
inline |
Definition at line 102 of file propertyeditor.hxx.
References m_xTabControl.
|
inline |
Definition at line 106 of file propertyeditor.hxx.
References m_xTabControl.
|
inline |
Definition at line 75 of file propertyeditor.hxx.
References m_bHasHelpSection.
|
inline |
Definition at line 105 of file propertyeditor.hxx.
References m_xTabControl.
Referenced by pcr::OPropertyBrowserController::stopInspection().
void pcr::OPropertyEditor::InsertEntry | ( | const OLineDescriptor & | rData, |
sal_uInt16 | _nPageId, | ||
sal_uInt16 | nPos = EDITOR_LIST_APPEND |
||
) |
Definition at line 238 of file propertyeditor.cxx.
References DBG_ASSERT, pcr::OBrowserPage::getListBox(), getPage(), pcr::OBrowserListBox::InsertEntry(), m_aPropertyPageIds, nPageId, nPos, and pcr::OLineDescriptor::sName.
Referenced by pcr::OPropertyBrowserController::showPropertyUI(), and pcr::OPropertyBrowserController::UpdateUI().
void pcr::OPropertyEditor::RemoveEntry | ( | const OUString & | _rName | ) |
Definition at line 253 of file propertyeditor.cxx.
References pcr::OBrowserPage::getListBox(), getPage(), m_aPropertyPageIds, and pcr::OBrowserListBox::RemoveEntry().
Referenced by pcr::OPropertyBrowserController::hidePropertyUI().
void pcr::OPropertyEditor::RemovePage | ( | sal_uInt16 | nID | ) |
Definition at line 148 of file propertyeditor.cxx.
References m_aShownPages, and m_xTabControl.
Referenced by pcr::OPropertyBrowserController::stopInspection(), and pcr::OPropertyBrowserController::UpdateUI().
void pcr::OPropertyEditor::SetControlObserver | ( | IPropertyControlObserver * | _pObserver | ) |
Definition at line 198 of file propertyeditor.cxx.
References forEachPage(), m_pObserver, and setPageControlObserver().
Referenced by pcr::OPropertyBrowserController::Construct().
void pcr::OPropertyEditor::SetHelpId | ( | const OUString & | sHelpId | ) |
Definition at line 143 of file propertyeditor.cxx.
References m_xTabControl.
|
staticprivate |
Definition at line 228 of file propertyeditor.cxx.
References pcr::OBrowserPage::getListBox(), and pcr::OBrowserListBox::SetHelpText().
Referenced by SetHelpText().
void pcr::OPropertyEditor::SetHelpText | ( | const OUString & | _rHelpText | ) |
Definition at line 210 of file propertyeditor.cxx.
References getPage(), i, m_xTabControl, nCount, and setHelpSectionText().
Referenced by pcr::OPropertyBrowserController::setHelpSectionText().
void pcr::OPropertyEditor::SetLineListener | ( | IPropertyLineListener * | pListener | ) |
Definition at line 187 of file propertyeditor.cxx.
References forEachPage(), m_pListener, and setPageLineListener().
Referenced by pcr::OPropertyBrowserController::Construct().
void pcr::OPropertyEditor::SetPage | ( | sal_uInt16 | nId | ) |
Definition at line 159 of file propertyeditor.cxx.
References m_xTabControl, and nId.
Referenced by pcr::OPropertyBrowserView::activatePage().
|
inline |
Definition at line 98 of file propertyeditor.hxx.
References m_aPageActivationHandler.
|
private |
Definition at line 193 of file propertyeditor.cxx.
References pcr::OBrowserPage::getListBox(), m_pObserver, and pcr::OBrowserListBox::SetObserver().
Referenced by SetControlObserver().
|
private |
Definition at line 182 of file propertyeditor.cxx.
References pcr::OBrowserPage::getListBox(), m_pListener, and pcr::OBrowserListBox::SetListener().
Referenced by SetLineListener().
void pcr::OPropertyEditor::SetPropertyValue | ( | const OUString & | _rEntryName, |
const css::uno::Any & | _rValue, | ||
bool | _bUnknownValue | ||
) |
Definition at line 273 of file propertyeditor.cxx.
References pcr::OBrowserPage::getListBox(), getPage(), and pcr::OBrowserListBox::SetPropertyValue().
Referenced by pcr::OPropertyBrowserController::Commit(), and pcr::OPropertyBrowserController::propertyChange().
|
inline |
Definition at line 104 of file propertyeditor.hxx.
References m_xTabControl.
Referenced by pcr::OPropertyBrowserController::UpdateUI().
void pcr::OPropertyEditor::ShowPropertyPage | ( | sal_uInt16 | _nPageId, |
bool | _bShow | ||
) |
Definition at line 289 of file propertyeditor.cxx.
References m_aHiddenPages, m_aShownPages, m_xTabControl, and nPageId.
Referenced by pcr::OPropertyBrowserController::showCategory().
|
private |
Definition at line 65 of file propertyeditor.hxx.
Referenced by ClearAll(), and ShowPropertyPage().
|
private |
Definition at line 60 of file propertyeditor.hxx.
Referenced by setPageActivationHandler().
|
private |
Definition at line 63 of file propertyeditor.hxx.
Referenced by ClearAll(), getPage(), InsertEntry(), and RemoveEntry().
|
private |
Definition at line 64 of file propertyeditor.hxx.
Referenced by AppendPage(), ClearAll(), CommitModified(), EnablePropertyControls(), EnablePropertyLine(), getPage(), RemovePage(), and ShowPropertyPage().
|
private |
Definition at line 61 of file propertyeditor.hxx.
Referenced by AppendPage(), EnableHelpSection(), enableHelpSection(), and HasHelpSection().
|
private |
Definition at line 59 of file propertyeditor.hxx.
Referenced by AppendPage(), and ClearAll().
|
private |
Definition at line 57 of file propertyeditor.hxx.
Referenced by AppendPage(), SetLineListener(), and setPageLineListener().
|
private |
Definition at line 58 of file propertyeditor.hxx.
Referenced by AppendPage(), SetControlObserver(), and setPageControlObserver().
|
private |
Definition at line 52 of file propertyeditor.hxx.
|
private |
Definition at line 56 of file propertyeditor.hxx.
Referenced by ~OPropertyEditor().
|
private |
Definition at line 55 of file propertyeditor.hxx.
Referenced by AppendPage(), and OPropertyEditor().
|
private |
Definition at line 53 of file propertyeditor.hxx.
Referenced by AppendPage(), ClearAll(), forEachPage(), get_preferred_size(), GetCurPage(), GetPropertyControl(), getWidget(), GrabFocus(), Hide(), OPropertyEditor(), RemovePage(), SetHelpId(), SetHelpText(), SetPage(), Show(), and ShowPropertyPage().