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

#include <dinfdlg.hxx>

Collaboration diagram for CustomPropertiesWindow:
[legend]

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
 
CustomPropertyLinem_pCurrentLine
 
SvNumberFormatter m_aNumberFormatter
 
Idle m_aEditLoseFocusIdle
 
Idle m_aBoxLoseFocusIdle
 
Link< void *, void > m_aRemovedHdl
 
weld::Containerm_rBody
 
weld::Labelm_rHeaderAccName
 
weld::Labelm_rHeaderAccType
 
weld::Labelm_rHeaderAccValue
 

Detailed Description

Definition at line 370 of file dinfdlg.hxx.

Constructor & Destructor Documentation

◆ CustomPropertiesWindow()

CustomPropertiesWindow::CustomPropertiesWindow ( weld::Container rParent,
weld::Label rHeaderAccName,
weld::Label rHeaderAccType,
weld::Label rHeaderAccValue 
)

◆ ~CustomPropertiesWindow()

CustomPropertiesWindow::~CustomPropertiesWindow ( )

Definition at line 1425 of file dinfdlg.cxx.

References m_aBoxLoseFocusIdle, m_aEditLoseFocusIdle, m_pCurrentLine, and Task::Stop().

Member Function Documentation

◆ AddLine()

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.

◆ AreAllLinesValid()

bool CustomPropertiesWindow::AreAllLinesValid ( ) const

Definition at line 1598 of file dinfdlg.cxx.

References IsLineValid(), and m_aCustomPropertiesLines.

◆ BoxLoseFocus()

void CustomPropertiesWindow::BoxLoseFocus ( CustomPropertyLine pLine)

Definition at line 1487 of file dinfdlg.cxx.

References m_aBoxLoseFocusIdle, m_pCurrentLine, and Idle::Start().

◆ ClearAllLines()

void CustomPropertiesWindow::ClearAllLines ( )

◆ CreateNewLine()

void CustomPropertiesWindow::CreateNewLine ( )
private

◆ DECL_LINK() [1/2]

CustomPropertiesWindow::DECL_LINK ( BoxTimeoutHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [2/2]

CustomPropertiesWindow::DECL_LINK ( EditTimeoutHdl  ,
Timer ,
void   
)
private

◆ DoScroll()

void CustomPropertiesWindow::DoScroll ( sal_Int32  nNewPos)

Definition at line 1624 of file dinfdlg.cxx.

References m_nScrollPos, ReloadLinesContent(), and StoreCustomProperties().

◆ EditLoseFocus()

void CustomPropertiesWindow::EditLoseFocus ( CustomPropertyLine pLine)

Definition at line 1473 of file dinfdlg.cxx.

References m_aEditLoseFocusIdle, m_pCurrentLine, and Idle::Start().

◆ GetCurrentDataModelPosition()

sal_uInt32 CustomPropertiesWindow::GetCurrentDataModelPosition ( ) const
inlineprivate

Definition at line 396 of file dinfdlg.hxx.

Referenced by ReloadLinesContent(), Remove(), and StoreCustomProperties().

◆ GetCustomProperties()

Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties ( )

Definition at line 1631 of file dinfdlg.cxx.

References GetTotalLineCount(), m_aCustomProperties, and StoreCustomProperties().

◆ GetExistingLineCount()

sal_uInt16 CustomPropertiesWindow::GetExistingLineCount ( ) const
inline

Definition at line 403 of file dinfdlg.hxx.

Referenced by ReloadLinesContent(), SetVisibleLineCount(), and StoreCustomProperties().

◆ GetHeight()

sal_Int32 CustomPropertiesWindow::GetHeight ( ) const
inline

Definition at line 406 of file dinfdlg.hxx.

◆ GetLineHeight()

sal_Int32 CustomPropertiesWindow::GetLineHeight ( ) const
inline

Definition at line 408 of file dinfdlg.hxx.

◆ GetTotalLineCount()

sal_uInt16 CustomPropertiesWindow::GetTotalLineCount ( ) const
inline

Definition at line 404 of file dinfdlg.hxx.

Referenced by GetCustomProperties(), ReloadLinesContent(), and StoreCustomProperties().

◆ IsLineValid()

bool CustomPropertiesWindow::IsLineValid ( CustomPropertyLine pLine) const
private

◆ ReloadLinesContent()

void CustomPropertiesWindow::ReloadLinesContent ( )

◆ Remove()

void CustomPropertiesWindow::Remove ( const CustomPropertyLine pLine)

◆ SetCustomProperties()

void CustomPropertiesWindow::SetCustomProperties ( std::vector< std::unique_ptr< CustomProperty > > &&  rProperties)

Definition at line 1765 of file dinfdlg.cxx.

References m_aCustomProperties, and ReloadLinesContent().

◆ SetHeight()

void CustomPropertiesWindow::SetHeight ( int  nHeight)
inline

Definition at line 407 of file dinfdlg.hxx.

◆ SetLineHeight()

void CustomPropertiesWindow::SetLineHeight ( sal_Int32  nLineHeight)
inline

Definition at line 409 of file dinfdlg.hxx.

◆ SetRemovedHdl()

void CustomPropertiesWindow::SetRemovedHdl ( const Link< void *, void > &  rLink)
inline

Definition at line 419 of file dinfdlg.hxx.

◆ SetVisibleLineCount()

void CustomPropertiesWindow::SetVisibleLineCount ( sal_uInt32  nCount)

Definition at line 1555 of file dinfdlg.cxx.

References CreateNewLine(), GetExistingLineCount(), and nCount.

◆ StoreCustomProperties()

void CustomPropertiesWindow::StoreCustomProperties ( )
private

◆ ValidateLine()

void CustomPropertiesWindow::ValidateLine ( CustomPropertyLine pLine,
bool  bIsFromTypeBox 
)
private

Member Data Documentation

◆ m_aBoxLoseFocusIdle

Idle CustomPropertiesWindow::m_aBoxLoseFocusIdle
private

Definition at line 381 of file dinfdlg.hxx.

Referenced by BoxLoseFocus(), CustomPropertiesWindow(), and ~CustomPropertiesWindow().

◆ m_aCustomProperties

std::vector<std::unique_ptr<CustomProperty> > CustomPropertiesWindow::m_aCustomProperties
private

◆ m_aCustomPropertiesLines

std::vector<std::unique_ptr<CustomPropertyLine> > CustomPropertiesWindow::m_aCustomPropertiesLines
private

◆ m_aEditLoseFocusIdle

Idle CustomPropertiesWindow::m_aEditLoseFocusIdle
private

Definition at line 380 of file dinfdlg.hxx.

Referenced by CustomPropertiesWindow(), EditLoseFocus(), and ~CustomPropertiesWindow().

◆ m_aNumberFormatter

SvNumberFormatter CustomPropertiesWindow::m_aNumberFormatter
private

Definition at line 379 of file dinfdlg.hxx.

Referenced by IsLineValid(), ReloadLinesContent(), and StoreCustomProperties().

◆ m_aRemovedHdl

Link<void*,void> CustomPropertiesWindow::m_aRemovedHdl
private

Definition at line 382 of file dinfdlg.hxx.

Referenced by Remove().

◆ m_nHeight

sal_Int32 CustomPropertiesWindow::m_nHeight
private

Definition at line 373 of file dinfdlg.hxx.

◆ m_nLineHeight

sal_Int32 CustomPropertiesWindow::m_nLineHeight
private

Definition at line 374 of file dinfdlg.hxx.

◆ m_nScrollPos

sal_Int32 CustomPropertiesWindow::m_nScrollPos
private

Definition at line 375 of file dinfdlg.hxx.

Referenced by ClearAllLines(), and DoScroll().

◆ m_pCurrentLine

CustomPropertyLine* CustomPropertiesWindow::m_pCurrentLine
private

Definition at line 378 of file dinfdlg.hxx.

Referenced by BoxLoseFocus(), ClearAllLines(), EditLoseFocus(), and ~CustomPropertiesWindow().

◆ m_rBody

weld::Container& CustomPropertiesWindow::m_rBody
private

Definition at line 384 of file dinfdlg.hxx.

Referenced by CreateNewLine(), and ValidateLine().

◆ m_rHeaderAccName

weld::Label& CustomPropertiesWindow::m_rHeaderAccName
private

Definition at line 385 of file dinfdlg.hxx.

Referenced by CreateNewLine().

◆ m_rHeaderAccType

weld::Label& CustomPropertiesWindow::m_rHeaderAccType
private

Definition at line 386 of file dinfdlg.hxx.

Referenced by CreateNewLine().

◆ m_rHeaderAccValue

weld::Label& CustomPropertiesWindow::m_rHeaderAccValue
private

Definition at line 387 of file dinfdlg.hxx.

Referenced by CreateNewLine().


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