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

Generic UNO wrapper for edit engine's field item in cells, headers, and footers. More...

#include <fielduno.hxx>

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

Public Member Functions

 ScEditFieldObj (const css::uno::Reference< css::text::XTextRange > &rContent, 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 void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) 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 ScMutexHelper
::osl::Mutex & getMutex ()
 
- Public Member Functions inherited from cppu::OComponentHelper
 OComponentHelper (::osl::Mutex &rMutex)
 
virtual ~OComponentHelper () SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

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 cppu::OComponentHelper
virtual void SAL_CALL disposing ()
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Generic UNO wrapper for edit engine's field item in cells, headers, and footers.

Definition at line 163 of file fielduno.hxx.

Constructor & Destructor Documentation

ScEditFieldObj::ScEditFieldObj ( )
privatedelete
ScEditFieldObj::ScEditFieldObj ( const ScEditFieldObj )
privatedelete
ScEditFieldObj::ScEditFieldObj ( const css::uno::Reference< css::text::XTextRange > &  rContent,
std::unique_ptr< ScEditSource pEditSrc,
sal_Int32  eType,
const ESelection rSel 
)
ScEditFieldObj::~ScEditFieldObj ( )
overridevirtual

Definition at line 1087 of file fielduno.cxx.

Member Function Documentation

void SAL_CALL ScEditFieldObj::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 1184 of file fielduno.cxx.

virtual void SAL_CALL ScEditFieldObj::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual
virtual void SAL_CALL ScEditFieldObj::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual
void SAL_CALL ScEditFieldObj::attach ( const css::uno::Reference< css::text::XTextRange > &  xTextRange)
overridevirtual

Definition at line 1158 of file fielduno.cxx.

SvxFieldItem ScEditFieldObj::CreateFieldItem ( )
void ScEditFieldObj::DeleteField ( )

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

Definition at line 1097 of file fielduno.cxx.

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

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

void SAL_CALL ScEditFieldObj::dispose ( void  )
overridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 1179 of file fielduno.cxx.

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

Definition at line 1171 of file fielduno.cxx.

References mpContent.

SvxFieldData & ScEditFieldObj::getData ( )
private
sal_Int32 ScEditFieldObj::GetFieldType ( ) const
inline

Definition at line 208 of file fielduno.hxx.

References meType.

Referenced by ScCellObj::insertTextContent().

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

Implements cppu::OComponentHelper.

Definition at line 1320 of file fielduno.cxx.

OUString SAL_CALL ScEditFieldObj::getImplementationName ( )
overridevirtual

Definition at line 1291 of file fielduno.cxx.

OUString SAL_CALL ScEditFieldObj::getPresentation ( sal_Bool  bShowCommand)
overridevirtual

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

Definition at line 1120 of file fielduno.cxx.

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

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

Definition at line 1198 of file fielduno.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and pPropSet.

uno::Any SAL_CALL ScEditFieldObj::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
uno::Any ScEditFieldObj::getPropertyValueDateTime ( const OUString &  rName)
private
uno::Any ScEditFieldObj::getPropertyValueFile ( const OUString &  rName)
private
uno::Any ScEditFieldObj::getPropertyValueURL ( const OUString &  rName)
private
uno::Sequence< OUString > SAL_CALL ScEditFieldObj::getSupportedServiceNames ( )
overridevirtual

Definition at line 1301 of file fielduno.cxx.

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

Reimplemented from cppu::OComponentHelper.

Definition at line 1307 of file fielduno.cxx.

References comphelper::concatSequences(), and cppu::UnoType< class >::get().

void ScEditFieldObj::InitDoc ( const css::uno::Reference< css::text::XTextRange > &  rContent,
std::unique_ptr< ScEditSource pEditSrc,
const ESelection rSel 
)
bool ScEditFieldObj::IsInserted ( ) const
const ScEditFieldObj& ScEditFieldObj::operator= ( const ScEditFieldObj )
privatedelete
void SAL_CALL ScEditFieldObj::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Reimplemented from cppu::OComponentHelper.

Definition at line 1190 of file fielduno.cxx.

virtual void SAL_CALL ScEditFieldObj::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual
virtual void SAL_CALL ScEditFieldObj::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual
void SAL_CALL ScEditFieldObj::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
void ScEditFieldObj::setPropertyValueDateTime ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private
void ScEditFieldObj::setPropertyValueFile ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private
void ScEditFieldObj::setPropertyValueSheet ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private
void ScEditFieldObj::setPropertyValueURL ( const OUString &  rName,
const css::uno::Any &  rVal 
)
private
sal_Bool SAL_CALL ScEditFieldObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1296 of file fielduno.cxx.

References cppu::supportsService().

Member Data Documentation

ESelection ScEditFieldObj::aSelection
private
css::util::DateTime ScEditFieldObj::maDateTime
private

Definition at line 183 of file fielduno.hxx.

Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().

bool ScEditFieldObj::mbIsDate
private

Definition at line 185 of file fielduno.hxx.

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

bool ScEditFieldObj::mbIsFixed
private

Definition at line 186 of file fielduno.hxx.

Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().

sal_Int32 ScEditFieldObj::meType
private
sal_Int32 ScEditFieldObj::mnNumFormat
private

Definition at line 184 of file fielduno.hxx.

Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().

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

Definition at line 181 of file fielduno.hxx.

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

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

Definition at line 180 of file fielduno.hxx.

Referenced by getData(), and InitDoc().

std::unique_ptr<ScEditSource> ScEditFieldObj::mpEditSource
private
const SfxItemPropertySet* ScEditFieldObj::pPropSet
private

Definition at line 175 of file fielduno.hxx.

Referenced by getPropertySetInfo().


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