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

#include <standardcontrol.hxx>

Inheritance diagram for pcr::OMultilineEditControl:
[legend]
Collaboration diagram for pcr::OMultilineEditControl:
[legend]

Public Member Functions

 OMultilineEditControl (std::unique_ptr< weld::Container > xWidget, std::unique_ptr< weld::Builder > xBuilder, MultiLineOperationMode eMode, bool bReadOnly)
 
virtual css::uno::Any SAL_CALL getValue () override
 
virtual void SAL_CALL setValue (const css::uno::Any &_value) override
 
virtual css::uno::Type SAL_CALL getValueType () override
 
virtual weld::WidgetgetWidget () override
 
virtual void editChanged () override
 
virtual void SetModifyHandler () override
 
virtual void SAL_CALL disposing () override
 
- Public Member Functions inherited from pcr::CommonBehaviourControlHelper
 CommonBehaviourControlHelper (sal_Int16 nControlType, css::inspection::XPropertyControl &rAntiImpl)
 creates the instance More...
 
virtual ~CommonBehaviourControlHelper ()
 
virtual void setModified ()
 
virtual void editChanged ()
 
::sal_Int16 getControlType () const
 
const css::uno::Reference< css::inspection::XPropertyControlContext > & getControlContext () const
 
void setControlContext (const css::uno::Reference< css::inspection::XPropertyControlContext > &controlcontext)
 
bool isModified () const
 
void notifyModifiedValue ()
 
virtual weld::WidgetgetWidget ()=0
 
 DECL_LINK (ModifiedHdl, weld::ComboBox &, void)
 may be used by derived classes, they forward the event to the PropCtrListener More...
 
 DECL_LINK (ColorModifiedHdl, ColorListBox &, void)
 
 DECL_LINK (EditModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (MetricModifiedHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (FormattedModifiedHdl, weld::FormattedSpinButton &, void)
 
 DECL_LINK (TimeModifiedHdl, weld::FormattedSpinButton &, void)
 
 DECL_LINK (DateModifiedHdl, SvtCalendarBox &, void)
 
 DECL_LINK (GetFocusHdl, weld::Widget &, void)
 
 DECL_LINK (LoseFocusHdl, weld::Widget &, void)
 

Private Member Functions

void SetTextValue (const OUString &rText)
 
OUString GetTextValue () const
 
void SetStringListValue (const StlSyntaxSequence< OUString > &_rStrings)
 
StlSyntaxSequence< OUString > GetStringListValue () const
 
 DECL_LINK (ButtonHandler, weld::Button &, void)
 
 DECL_LINK (TextViewModifiedHdl, weld::TextView &, void)
 
void CheckEntryTextViewMisMatch ()
 

Private Attributes

MultiLineOperationMode m_nOperationMode
 
std::unique_ptr< weld::Entrym_xEntry
 
std::unique_ptr< weld::MenuButtonm_xButton
 
std::unique_ptr< weld::Widgetm_xPopover
 
std::unique_ptr< weld::TextViewm_xTextView
 
std::unique_ptr< weld::Buttonm_xOk
 

Additional Inherited Members

- Protected Types inherited from pcr::CommonBehaviourControl< TControlInterface, TControlWindow >
typedef ::cppu::WeakComponentImplHelper< TControlInterface > ComponentBaseClass
 
- Protected Member Functions inherited from pcr::CommonBehaviourControl< TControlInterface, TControlWindow >
 CommonBehaviourControl (sal_Int16 nControlType, std::unique_ptr< weld::Builder > xBuilder, std::unique_ptr< TControlWindow > xWidget, bool bReadOnly)
 
virtual ~CommonBehaviourControl () override
 
virtual ::sal_Int16 SAL_CALL getControlType () override
 
virtual css::uno::Reference< css::inspection::XPropertyControlContext > SAL_CALL getControlContext () override
 
virtual void SAL_CALL setControlContext (const css::uno::Reference< css::inspection::XPropertyControlContext > &controlcontext) override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getControlWindow () override
 
virtual sal_Bool SAL_CALL isModified () override
 
virtual void SAL_CALL notifyModifiedValue () override
 
void clear_widgetry ()
 
virtual void SAL_CALL disposing () override
 
TControlWindow * getTypedControlWindow ()
 
const TControlWindow * getTypedControlWindow () const
 
virtual void SetModifyHandler ()
 
void impl_checkDisposed_throw ()
 checks whether the instance is already disposed More...
 
- Protected Attributes inherited from pcr::CommonBehaviourControl< TControlInterface, TControlWindow >
std::unique_ptr< weld::Builderm_xBuilder
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 355 of file standardcontrol.hxx.

Constructor & Destructor Documentation

◆ OMultilineEditControl()

pcr::OMultilineEditControl::OMultilineEditControl ( std::unique_ptr< weld::Container xWidget,
std::unique_ptr< weld::Builder xBuilder,
MultiLineOperationMode  eMode,
bool  bReadOnly 
)

Definition at line 769 of file standardcontrol.cxx.

References bReadOnly, eMode, LINK, m_xButton, m_xOk, m_xPopover, and m_xTextView.

Member Function Documentation

◆ CheckEntryTextViewMisMatch()

void pcr::OMultilineEditControl::CheckEntryTextViewMisMatch ( )
private

Definition at line 734 of file standardcontrol.cxx.

References m_xEntry, and m_xTextView.

Referenced by editChanged(), SetStringListValue(), and SetTextValue().

◆ DECL_LINK() [1/2]

pcr::OMultilineEditControl::DECL_LINK ( ButtonHandler  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

pcr::OMultilineEditControl::DECL_LINK ( TextViewModifiedHdl  ,
weld::TextView ,
void   
)
private

◆ disposing()

virtual void SAL_CALL pcr::OMultilineEditControl::disposing ( )
inlineoverridevirtual

◆ editChanged()

void pcr::OMultilineEditControl::editChanged ( )
overridevirtual

◆ GetStringListValue()

StlSyntaxSequence< OUString > pcr::OMultilineEditControl::GetStringListValue ( ) const
private

Definition at line 748 of file standardcontrol.cxx.

References m_xTextView.

Referenced by getValue().

◆ GetTextValue()

OUString pcr::OMultilineEditControl::GetTextValue ( ) const
private

Definition at line 762 of file standardcontrol.cxx.

References pcr::eMultiLineText, m_nOperationMode, and m_xTextView.

Referenced by getValue().

◆ getValue()

Any SAL_CALL pcr::OMultilineEditControl::getValue ( )
overridevirtual

◆ getValueType()

Type SAL_CALL pcr::OMultilineEditControl::getValueType ( )
overridevirtual

Definition at line 855 of file standardcontrol.cxx.

References pcr::eMultiLineText, and m_nOperationMode.

◆ getWidget()

virtual weld::Widget * pcr::OMultilineEditControl::getWidget ( )
inlineoverridevirtual

◆ SetModifyHandler()

virtual void pcr::OMultilineEditControl::SetModifyHandler ( )
inlineoverridevirtual

◆ SetStringListValue()

void pcr::OMultilineEditControl::SetStringListValue ( const StlSyntaxSequence< OUString > &  _rStrings)
private

Definition at line 741 of file standardcontrol.cxx.

References CheckEntryTextViewMisMatch(), m_xEntry, and m_xTextView.

Referenced by setValue().

◆ SetTextValue()

void pcr::OMultilineEditControl::SetTextValue ( const OUString &  rText)
private

◆ setValue()

void SAL_CALL pcr::OMultilineEditControl::setValue ( const css::uno::Any &  _value)
overridevirtual

Member Data Documentation

◆ m_nOperationMode

MultiLineOperationMode pcr::OMultilineEditControl::m_nOperationMode
private

Definition at line 358 of file standardcontrol.hxx.

Referenced by GetTextValue(), getValue(), getValueType(), SetTextValue(), and setValue().

◆ m_xButton

std::unique_ptr<weld::MenuButton> pcr::OMultilineEditControl::m_xButton
private

Definition at line 360 of file standardcontrol.hxx.

Referenced by disposing(), OMultilineEditControl(), and SetModifyHandler().

◆ m_xEntry

std::unique_ptr<weld::Entry> pcr::OMultilineEditControl::m_xEntry
private

◆ m_xOk

std::unique_ptr<weld::Button> pcr::OMultilineEditControl::m_xOk
private

Definition at line 363 of file standardcontrol.hxx.

Referenced by disposing(), and OMultilineEditControl().

◆ m_xPopover

std::unique_ptr<weld::Widget> pcr::OMultilineEditControl::m_xPopover
private

Definition at line 361 of file standardcontrol.hxx.

Referenced by OMultilineEditControl().

◆ m_xTextView

std::unique_ptr<weld::TextView> pcr::OMultilineEditControl::m_xTextView
private

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