LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScEditFieldObj Class Referencefinal

#include <fielduno.hxx>

Inheritance diagram for ScEditFieldObj:
[legend]
Collaboration diagram for ScEditFieldObj:
[legend]

Public Member Functions

 ScEditFieldObj (css::uno::Reference< css::text::XTextRange > xContent, std::unique_ptr< ScEditSource > pEditSrc, sal_Int32 eType, const ESelection &rSel)
 
virtual ~ScEditFieldObj () override
 
sal_Int32 GetFieldType () const
 
void DeleteField ()
 
bool IsInserted () const
 
SvxFieldItem CreateFieldItem ()
 
void InitDoc (const css::uno::Reference< css::text::XTextRange > &rContent, std::unique_ptr< ScEditSource > pEditSrc, const ESelection &rSel)
 
virtual OUString SAL_CALL getPresentation (sal_Bool bShowCommand) override
 
virtual void SAL_CALL attach (const css::uno::Reference< css::text::XTextRange > &xTextRange) override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getAnchor () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

 ScEditFieldObj ()=delete
 
 ScEditFieldObj (const ScEditFieldObj &)=delete
 
const ScEditFieldObjoperator= (const ScEditFieldObj &)=delete
 
SvxFieldDatagetData ()
 
void setPropertyValueURL (const OUString &rName, const css::uno::Any &rVal)
 
css::uno::Any getPropertyValueURL (const OUString &rName)
 
void setPropertyValueFile (const OUString &rName, const css::uno::Any &rVal)
 
css::uno::Any getPropertyValueFile (const OUString &rName)
 
void setPropertyValueDateTime (const OUString &rName, const css::uno::Any &rVal)
 
css::uno::Any getPropertyValueDateTime (const OUString &rName)
 
void setPropertyValueSheet (const OUString &rName, const css::uno::Any &rVal)
 

Private Attributes

const SfxItemPropertySetpPropSet
 
std::unique_ptr< ScEditSourcempEditSource
 
ESelection aSelection
 
sal_Int32 meType
 
std::unique_ptr< SvxFieldDatampData
 
css::uno::Reference< css::text::XTextRange > mpContent
 
css::util::DateTime maDateTime
 
sal_Int32 mnNumFormat
 
bool mbIsDate:1
 
bool mbIsFixed:1
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 163 of file fielduno.hxx.

Constructor & Destructor Documentation

◆ ScEditFieldObj() [1/3]

ScEditFieldObj::ScEditFieldObj ( )
privatedelete

◆ ScEditFieldObj() [2/3]

ScEditFieldObj::ScEditFieldObj ( const ScEditFieldObj )
privatedelete

◆ ScEditFieldObj() [3/3]

ScEditFieldObj::ScEditFieldObj ( css::uno::Reference< css::text::XTextRange >  xContent,
std::unique_ptr< ScEditSource pEditSrc,
sal_Int32  eType,
const ESelection rSel 
)

◆ ~ScEditFieldObj()

ScEditFieldObj::~ScEditFieldObj ( )
overridevirtual

Definition at line 1075 of file fielduno.cxx.

Member Function Documentation

◆ addPropertyChangeListener()

virtual void SAL_CALL ScEditFieldObj::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

◆ addVetoableChangeListener()

virtual void SAL_CALL ScEditFieldObj::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ attach()

void SAL_CALL ScEditFieldObj::attach ( const css::uno::Reference< css::text::XTextRange > &  xTextRange)
overridevirtual

Definition at line 1146 of file fielduno.cxx.

◆ CreateFieldItem()

SvxFieldItem ScEditFieldObj::CreateFieldItem ( )

◆ DeleteField()

void ScEditFieldObj::DeleteField ( )

Broadcast in order to adjust selection in other objects (also for other actions)

Definition at line 1085 of file fielduno.cxx.

References aSelection, mpEditSource, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, and SvxTextForwarder::QuickInsertText().

Referenced by ScCellObj::removeTextContent(), and ScHeaderFooterTextObj::removeTextContent().

◆ getAnchor()

uno::Reference< text::XTextRange > SAL_CALL ScEditFieldObj::getAnchor ( )
overridevirtual

Definition at line 1159 of file fielduno.cxx.

References mpContent.

◆ getData()

SvxFieldData & ScEditFieldObj::getData ( )
private

◆ GetFieldType()

sal_Int32 ScEditFieldObj::GetFieldType ( ) const
inline

Definition at line 202 of file fielduno.hxx.

References meType.

Referenced by ScCellObj::insertTextContent().

◆ getImplementationId()

uno::Sequence< sal_Int8 > SAL_CALL ScEditFieldObj::getImplementationId ( )
overridevirtual

Reimplemented from comphelper::WeakComponentImplHelper< typename... Ifc >.

Definition at line 1284 of file fielduno.cxx.

◆ getImplementationName()

OUString SAL_CALL ScEditFieldObj::getImplementationName ( )
overridevirtual

Definition at line 1255 of file fielduno.cxx.

◆ getPresentation()

OUString SAL_CALL ScEditFieldObj::getPresentation ( sal_Bool  bShowCommand)
overridevirtual

Field functions have to be passed to the forwarder !!!

Definition at line 1108 of file fielduno.cxx.

References aSelection, SvxFieldData::GetClassId(), SvxURLField::GetRepresentation(), SvxURLField::GetURL(), meType, mpEditSource, ESelection::nStartPara, and ESelection::nStartPos.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL ScEditFieldObj::getPropertySetInfo ( )
overridevirtual

Definition at line 1167 of file fielduno.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and pPropSet.

◆ getPropertyValue()

uno::Any SAL_CALL ScEditFieldObj::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getPropertyValueDateTime()

uno::Any ScEditFieldObj::getPropertyValueDateTime ( const OUString &  rName)
private

◆ getPropertyValueFile()

uno::Any ScEditFieldObj::getPropertyValueFile ( const OUString &  rName)
private

◆ getPropertyValueURL()

uno::Any ScEditFieldObj::getPropertyValueURL ( const OUString &  rName)
private

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL ScEditFieldObj::getSupportedServiceNames ( )
overridevirtual

Definition at line 1265 of file fielduno.cxx.

◆ getTypes()

uno::Sequence< uno::Type > SAL_CALL ScEditFieldObj::getTypes ( )
overridevirtual

◆ InitDoc()

void ScEditFieldObj::InitDoc ( const css::uno::Reference< css::text::XTextRange > &  rContent,
std::unique_ptr< ScEditSource pEditSrc,
const ESelection rSel 
)

◆ IsInserted()

bool ScEditFieldObj::IsInserted ( ) const

◆ operator=()

const ScEditFieldObj & ScEditFieldObj::operator= ( const ScEditFieldObj )
privatedelete

◆ removePropertyChangeListener()

virtual void SAL_CALL ScEditFieldObj::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

◆ removeVetoableChangeListener()

virtual void SAL_CALL ScEditFieldObj::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

◆ setPropertyValue()

void SAL_CALL ScEditFieldObj::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ setPropertyValueDateTime()

void ScEditFieldObj::setPropertyValueDateTime ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private

◆ setPropertyValueFile()

void ScEditFieldObj::setPropertyValueFile ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private

◆ setPropertyValueSheet()

void ScEditFieldObj::setPropertyValueSheet ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private

◆ setPropertyValueURL()

void ScEditFieldObj::setPropertyValueURL ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private

◆ supportsService()

sal_Bool SAL_CALL ScEditFieldObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1260 of file fielduno.cxx.

References cppu::supportsService().

Member Data Documentation

◆ aSelection

ESelection ScEditFieldObj::aSelection
private

◆ maDateTime

css::util::DateTime ScEditFieldObj::maDateTime
private

Definition at line 177 of file fielduno.hxx.

Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().

◆ mbIsDate

bool ScEditFieldObj::mbIsDate
private

Definition at line 179 of file fielduno.hxx.

Referenced by getData(), getPropertyValueDateTime(), and setPropertyValueDateTime().

◆ mbIsFixed

bool ScEditFieldObj::mbIsFixed
private

Definition at line 180 of file fielduno.hxx.

Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().

◆ meType

sal_Int32 ScEditFieldObj::meType
private

◆ mnNumFormat

sal_Int32 ScEditFieldObj::mnNumFormat
private

Definition at line 178 of file fielduno.hxx.

Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().

◆ mpContent

css::uno::Reference<css::text::XTextRange> ScEditFieldObj::mpContent
private

Definition at line 175 of file fielduno.hxx.

Referenced by getAnchor(), getPropertyValue(), InitDoc(), and setPropertyValue().

◆ mpData

std::unique_ptr<SvxFieldData> ScEditFieldObj::mpData
private

Definition at line 174 of file fielduno.hxx.

Referenced by getData(), and InitDoc().

◆ mpEditSource

std::unique_ptr<ScEditSource> ScEditFieldObj::mpEditSource
private

◆ pPropSet

const SfxItemPropertySet* ScEditFieldObj::pPropSet
private

Definition at line 169 of file fielduno.hxx.

Referenced by getPropertySetInfo().


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