LibreOffice Module sfx2 (master) 1
|
#include <dinfdlg.hxx>
Public Member Functions | |
CustomPropertiesWindow (weld::Container &rParent, weld::Label &rHeaderAccName, weld::Label &rHeaderAccType, weld::Label &rHeaderAccValue) | |
~CustomPropertiesWindow () | |
sal_uInt16 | GetExistingLineCount () const |
sal_uInt16 | GetTotalLineCount () const |
void | SetVisibleLineCount (sal_uInt32 nCount) |
sal_Int32 | GetHeight () const |
void | SetHeight (int nHeight) |
sal_Int32 | GetLineHeight () const |
void | SetLineHeight (sal_Int32 nLineHeight) |
void | AddLine (const OUString &sName, css::uno::Any const &rAny) |
bool | AreAllLinesValid () const |
void | ClearAllLines () |
void | DoScroll (sal_Int32 nNewPos) |
void | ReloadLinesContent () |
css::uno::Sequence< css::beans::PropertyValue > | GetCustomProperties () |
void | SetCustomProperties (std::vector< std::unique_ptr< CustomProperty > > &&rProperties) |
void | SetRemovedHdl (const Link< void *, void > &rLink) |
void | BoxLoseFocus (CustomPropertyLine *pLine) |
void | EditLoseFocus (CustomPropertyLine *pLine) |
void | Remove (const CustomPropertyLine *pLine) |
Private Member Functions | |
DECL_LINK (EditTimeoutHdl, Timer *, void) | |
DECL_LINK (BoxTimeoutHdl, Timer *, void) | |
bool | IsLineValid (CustomPropertyLine *pLine) const |
void | ValidateLine (CustomPropertyLine *pLine, bool bIsFromTypeBox) |
void | CreateNewLine () |
void | StoreCustomProperties () |
sal_uInt32 | GetCurrentDataModelPosition () const |
Private Attributes | |
sal_Int32 | m_nHeight |
sal_Int32 | m_nLineHeight |
sal_Int32 | m_nScrollPos |
std::vector< std::unique_ptr< CustomProperty > > | m_aCustomProperties |
std::vector< std::unique_ptr< CustomPropertyLine > > | m_aCustomPropertiesLines |
CustomPropertyLine * | m_pCurrentLine |
SvNumberFormatter | m_aNumberFormatter |
Idle | m_aEditLoseFocusIdle |
Idle | m_aBoxLoseFocusIdle |
Link< void *, void > | m_aRemovedHdl |
weld::Container & | m_rBody |
weld::Label & | m_rHeaderAccName |
weld::Label & | m_rHeaderAccType |
weld::Label & | m_rHeaderAccValue |
Definition at line 370 of file dinfdlg.hxx.
CustomPropertiesWindow::CustomPropertiesWindow | ( | weld::Container & | rParent, |
weld::Label & | rHeaderAccName, | ||
weld::Label & | rHeaderAccType, | ||
weld::Label & | rHeaderAccValue | ||
) |
Definition at line 1404 of file dinfdlg.cxx.
References getProcessComponentContext(), LINK, m_aBoxLoseFocusIdle, m_aEditLoseFocusIdle, Timer::SetInvokeHandler(), and Task::SetPriority().
CustomPropertiesWindow::~CustomPropertiesWindow | ( | ) |
Definition at line 1425 of file dinfdlg.cxx.
References m_aBoxLoseFocusIdle, m_aEditLoseFocusIdle, m_pCurrentLine, and Task::Stop().
void CustomPropertiesWindow::AddLine | ( | const OUString & | sName, |
css::uno::Any const & | rAny | ||
) |
Definition at line 1563 of file dinfdlg.cxx.
References m_aCustomProperties, ReloadLinesContent(), and sName.
bool CustomPropertiesWindow::AreAllLinesValid | ( | ) | const |
Definition at line 1598 of file dinfdlg.cxx.
References IsLineValid(), and m_aCustomPropertiesLines.
void CustomPropertiesWindow::BoxLoseFocus | ( | CustomPropertyLine * | pLine | ) |
Definition at line 1487 of file dinfdlg.cxx.
References m_aBoxLoseFocusIdle, m_pCurrentLine, and Idle::Start().
void CustomPropertiesWindow::ClearAllLines | ( | ) |
Definition at line 1613 of file dinfdlg.cxx.
References m_aCustomProperties, m_aCustomPropertiesLines, m_nScrollPos, and m_pCurrentLine.
|
private |
Definition at line 1569 of file dinfdlg.cxx.
References CustomPropertyLine::DoTypeHdl(), weld::Label::get_label(), comphelper::LibreOfficeKit::isActive(), m_aCustomPropertiesLines, m_rBody, m_rHeaderAccName, m_rHeaderAccType, m_rHeaderAccValue, CustomPropertyLine::m_xNameBox, CustomPropertyLine::m_xRemoveButton, CustomPropertyLine::m_xTypeBox, and CustomPropertyLine::m_xValueEdit.
Referenced by SetVisibleLineCount().
|
private |
|
private |
void CustomPropertiesWindow::DoScroll | ( | sal_Int32 | nNewPos | ) |
Definition at line 1624 of file dinfdlg.cxx.
References m_nScrollPos, ReloadLinesContent(), and StoreCustomProperties().
void CustomPropertiesWindow::EditLoseFocus | ( | CustomPropertyLine * | pLine | ) |
Definition at line 1473 of file dinfdlg.cxx.
References m_aEditLoseFocusIdle, m_pCurrentLine, and Idle::Start().
|
inlineprivate |
Definition at line 396 of file dinfdlg.hxx.
Referenced by ReloadLinesContent(), Remove(), and StoreCustomProperties().
Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties | ( | ) |
Definition at line 1631 of file dinfdlg.cxx.
References GetTotalLineCount(), m_aCustomProperties, and StoreCustomProperties().
|
inline |
Definition at line 403 of file dinfdlg.hxx.
Referenced by ReloadLinesContent(), SetVisibleLineCount(), and StoreCustomProperties().
|
inline |
Definition at line 406 of file dinfdlg.hxx.
|
inline |
Definition at line 408 of file dinfdlg.hxx.
|
inline |
Definition at line 404 of file dinfdlg.hxx.
Referenced by GetCustomProperties(), ReloadLinesContent(), and StoreCustomProperties().
|
private |
Definition at line 1508 of file dinfdlg.cxx.
References m_aNumberFormatter, CustomPropertyLine::m_bTypeLostFocus, CustomPropertyLine::m_xTypeBox, CustomPropertyLine::m_xValueEdit, NF_DATE_SYS_DDMMYYYY, NF_SCIENTIFIC_000E00, nIndex, nType, and NUMBERFORMAT_ENTRY_NOT_FOUND.
Referenced by AreAllLinesValid(), and ValidateLine().
void CustomPropertiesWindow::ReloadLinesContent | ( | ) |
Definition at line 1771 of file dinfdlg.cxx.
References CustomPropertyLine::Clear(), CustomPropertyLine::DoTypeHdl(), GetCurrentDataModelPosition(), GetExistingLineCount(), LocaleDataWrapper::getFalseWord(), SvNumberFormatter::GetFormatIndex(), SvNumberFormatter::GetInputLineString(), SvtSysLocale::GetLocaleData(), GetTotalLineCount(), LocaleDataWrapper::getTrueWord(), CustomPropertyLine::Hide(), i, m_aCustomProperties, m_aCustomPropertiesLines, m_aNumberFormatter, m_sName, CustomPropertyLine::m_xDateField, CustomPropertyLine::m_xDurationField, CustomPropertyLine::m_xLine, CustomPropertyLine::m_xNameBox, CustomPropertyLine::m_xTimeField, CustomPropertyLine::m_xTypeBox, CustomPropertyLine::m_xValueEdit, CustomPropertyLine::m_xYesNoButton, NF_NUMBER_SYSTEM, nIndex, and nType.
Referenced by AddLine(), DoScroll(), Remove(), and SetCustomProperties().
void CustomPropertiesWindow::Remove | ( | const CustomPropertyLine * | pLine | ) |
Definition at line 1450 of file dinfdlg.cxx.
References Link< typename Arg, typename Ret >::Call(), GetCurrentDataModelPosition(), m_aCustomProperties, m_aCustomPropertiesLines, m_aRemovedHdl, p, ReloadLinesContent(), and StoreCustomProperties().
void CustomPropertiesWindow::SetCustomProperties | ( | std::vector< std::unique_ptr< CustomProperty > > && | rProperties | ) |
Definition at line 1765 of file dinfdlg.cxx.
References m_aCustomProperties, and ReloadLinesContent().
|
inline |
Definition at line 407 of file dinfdlg.hxx.
|
inline |
Definition at line 409 of file dinfdlg.hxx.
|
inline |
Definition at line 419 of file dinfdlg.hxx.
void CustomPropertiesWindow::SetVisibleLineCount | ( | sal_uInt32 | nCount | ) |
Definition at line 1555 of file dinfdlg.cxx.
References CreateNewLine(), GetExistingLineCount(), and nCount.
|
private |
Definition at line 1692 of file dinfdlg.cxx.
References GetCurrentDataModelPosition(), Date::GetDay(), GetExistingLineCount(), SvNumberFormatter::GetFormatIndex(), tools::Time::GetHour(), tools::Time::GetMin(), Date::GetMonth(), tools::Time::GetNanoSec(), tools::Time::GetSec(), GetTotalLineCount(), Date::GetYear(), i, m_aCustomProperties, m_aCustomPropertiesLines, m_aNumberFormatter, CustomPropertyLine::m_xDateField, CustomPropertyLine::m_xDurationField, CustomPropertyLine::m_xNameBox, CustomPropertyLine::m_xTimeField, CustomPropertyLine::m_xTypeBox, CustomPropertyLine::m_xValueEdit, CustomPropertyLine::m_xYesNoButton, NF_NUMBER_SYSTEM, nIndex, nType, and nValue.
Referenced by DoScroll(), GetCustomProperties(), and Remove().
|
private |
Definition at line 1540 of file dinfdlg.cxx.
References Application::CreateMessageDialog(), IsLineValid(), CustomPropertyLine::m_bTypeLostFocus, m_rBody, CustomPropertyLine::m_xTypeBox, CustomPropertyLine::m_xValueEdit, RET_OK, and SfxResId().
|
private |
Definition at line 381 of file dinfdlg.hxx.
Referenced by BoxLoseFocus(), CustomPropertiesWindow(), and ~CustomPropertiesWindow().
|
private |
Definition at line 376 of file dinfdlg.hxx.
Referenced by AddLine(), ClearAllLines(), GetCustomProperties(), ReloadLinesContent(), Remove(), SetCustomProperties(), and StoreCustomProperties().
|
private |
Definition at line 377 of file dinfdlg.hxx.
Referenced by AreAllLinesValid(), ClearAllLines(), CreateNewLine(), ReloadLinesContent(), Remove(), and StoreCustomProperties().
|
private |
Definition at line 380 of file dinfdlg.hxx.
Referenced by CustomPropertiesWindow(), EditLoseFocus(), and ~CustomPropertiesWindow().
|
private |
Definition at line 379 of file dinfdlg.hxx.
Referenced by IsLineValid(), ReloadLinesContent(), and StoreCustomProperties().
|
private |
Definition at line 382 of file dinfdlg.hxx.
Referenced by Remove().
|
private |
Definition at line 373 of file dinfdlg.hxx.
|
private |
Definition at line 374 of file dinfdlg.hxx.
|
private |
Definition at line 375 of file dinfdlg.hxx.
Referenced by ClearAllLines(), and DoScroll().
|
private |
Definition at line 378 of file dinfdlg.hxx.
Referenced by BoxLoseFocus(), ClearAllLines(), EditLoseFocus(), and ~CustomPropertiesWindow().
|
private |
Definition at line 384 of file dinfdlg.hxx.
Referenced by CreateNewLine(), and ValidateLine().
|
private |
Definition at line 385 of file dinfdlg.hxx.
Referenced by CreateNewLine().
|
private |
Definition at line 386 of file dinfdlg.hxx.
Referenced by CreateNewLine().
|
private |
Definition at line 387 of file dinfdlg.hxx.
Referenced by CreateNewLine().