LibreOffice Module sc (master) 1
|
#include <fielduno.hxx>
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 ScEditFieldObj & | operator= (const ScEditFieldObj &)=delete |
SvxFieldData & | getData () |
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 SfxItemPropertySet * | pPropSet |
std::unique_ptr< ScEditSource > | mpEditSource |
ESelection | aSelection |
sal_Int32 | meType |
std::unique_ptr< SvxFieldData > | mpData |
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 |
Definition at line 163 of file fielduno.hxx.
|
privatedelete |
|
privatedelete |
ScEditFieldObj::ScEditFieldObj | ( | css::uno::Reference< css::text::XTextRange > | xContent, |
std::unique_ptr< ScEditSource > | pEditSrc, | ||
sal_Int32 | eType, | ||
const ESelection & | rSel | ||
) |
|
overridevirtual |
Definition at line 1075 of file fielduno.cxx.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 1146 of file fielduno.cxx.
SvxFieldItem ScEditFieldObj::CreateFieldItem | ( | ) |
Definition at line 1079 of file fielduno.cxx.
References EE_FEATURE_FIELD(), getData(), and mpEditSource.
Referenced by ScCellObj::insertTextContent(), and ScHeaderFooterTextObj::insertTextContent().
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().
|
overridevirtual |
Definition at line 1159 of file fielduno.cxx.
References mpContent.
|
private |
Definition at line 564 of file fielduno.cxx.
References condformat::entry::DATE, mbIsDate, meType, mpData, and TABLE.
Referenced by CreateFieldItem(), getPropertyValueFile(), getPropertyValueURL(), setPropertyValueFile(), setPropertyValueSheet(), and setPropertyValueURL().
|
inline |
Definition at line 202 of file fielduno.hxx.
References meType.
Referenced by ScCellObj::insertTextContent().
|
overridevirtual |
Reimplemented from comphelper::WeakComponentImplHelper< typename... Ifc >.
Definition at line 1284 of file fielduno.cxx.
|
overridevirtual |
Definition at line 1255 of file fielduno.cxx.
|
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.
|
overridevirtual |
Definition at line 1167 of file fielduno.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and pPropSet.
|
overridevirtual |
Definition at line 1206 of file fielduno.cxx.
References aSeq, condformat::entry::DATE, getPropertyValueDateTime(), getPropertyValueFile(), getPropertyValueURL(), meType, mpContent, SC_UNONAME_ANCHOR, SC_UNONAME_ANCTYPE, SC_UNONAME_ANCTYPES, SC_UNONAME_TEXTFIELD_TYPE, and SC_UNONAME_TEXTWRAP.
|
private |
Definition at line 883 of file fielduno.cxx.
References aSelection, condformat::entry::DATE, Date::GetDay(), tools::Time::GetHour(), tools::Time::GetMin(), Date::GetMonth(), tools::Time::GetNanoSec(), tools::Time::GetSec(), Date::GetYear(), maDateTime, mbIsDate, mbIsFixed, meType, mnNumFormat, mpEditSource, ESelection::nStartPara, ESelection::nStartPos, p, SC_UNONAME_DATETIME, SC_UNONAME_ISDATE, SC_UNONAME_ISFIXED, and SC_UNONAME_NUMFMT.
Referenced by getPropertyValue().
|
private |
Definition at line 759 of file fielduno.cxx.
References aSelection, getData(), SvxExtFileField::GetFormat(), mpEditSource, ESelection::nStartPara, ESelection::nStartPos, and SC_UNONAME_FILEFORM.
Referenced by getPropertyValue().
|
private |
Field functions have to be passed to the forwarder !!!
Definition at line 677 of file fielduno.cxx.
References aSelection, SvxFieldData::GetClassId(), getData(), SvxURLField::GetRepresentation(), SvxURLField::GetTargetFrame(), SvxURLField::GetURL(), mpEditSource, ESelection::nStartPara, ESelection::nStartPos, SC_UNONAME_REPR, SC_UNONAME_TARGET, and SC_UNONAME_URL.
Referenced by getPropertyValue().
|
overridevirtual |
Definition at line 1265 of file fielduno.cxx.
|
overridevirtual |
Reimplemented from comphelper::WeakComponentImplHelper< typename... Ifc >.
Definition at line 1271 of file fielduno.cxx.
References comphelper::concatSequences(), cppu::UnoType< typename T >::get(), and comphelper::WeakComponentImplHelper< typename... Ifc >::getTypes().
void ScEditFieldObj::InitDoc | ( | const css::uno::Reference< css::text::XTextRange > & | rContent, |
std::unique_ptr< ScEditSource > | pEditSrc, | ||
const ESelection & | rSel | ||
) |
Definition at line 1062 of file fielduno.cxx.
References aSelection, mpContent, mpData, and mpEditSource.
Referenced by ScCellObj::insertTextContent(), and ScHeaderFooterTextObj::insertTextContent().
bool ScEditFieldObj::IsInserted | ( | ) | const |
Definition at line 1101 of file fielduno.cxx.
References mpEditSource.
Referenced by ScCellObj::insertTextContent(), ScHeaderFooterTextObj::insertTextContent(), ScCellObj::removeTextContent(), and ScHeaderFooterTextObj::removeTextContent().
|
privatedelete |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 1174 of file fielduno.cxx.
References condformat::entry::DATE, meType, mpContent, SC_UNONAME_ANCHOR, setPropertyValueDateTime(), setPropertyValueFile(), setPropertyValueSheet(), setPropertyValueURL(), and TABLE.
Referenced by ScCellObj::insertTextContent().
|
private |
Definition at line 789 of file fielduno.cxx.
References aSelection, condformat::entry::DATE, eType, maDateTime, mbIsDate, mbIsFixed, meType, mnNumFormat, mpEditSource, ESelection::nStartPara, ESelection::nStartPos, p, SC_UNONAME_DATETIME, SC_UNONAME_ISDATE, SC_UNONAME_ISFIXED, and SC_UNONAME_NUMFMT.
Referenced by setPropertyValue().
|
private |
Definition at line 726 of file fielduno.cxx.
References aSelection, EE_FEATURE_FIELD(), getData(), mpEditSource, ESelection::nStartPara, ESelection::nStartPos, EditEngine::QuickInsertField(), SC_UNONAME_FILEFORM, and SvxExtFileField::SetFormat().
Referenced by setPropertyValue().
|
private |
Definition at line 988 of file fielduno.cxx.
References aSelection, EE_FEATURE_FIELD(), SvxFieldData::GetClassId(), getData(), mpEditSource, ESelection::nStartPara, ESelection::nStartPos, p, EditEngine::QuickInsertField(), SC_UNONAME_TABLEPOS, SvxTableField::SetTab(), and TABLE.
Referenced by setPropertyValue().
|
private |
Definition at line 611 of file fielduno.cxx.
References aSelection, EE_FEATURE_FIELD(), SvxFieldData::GetClassId(), getData(), mpEditSource, ESelection::nStartPara, ESelection::nStartPos, EditEngine::QuickInsertField(), SC_UNONAME_REPR, SC_UNONAME_TARGET, SC_UNONAME_URL, SvxURLField::SetRepresentation(), SvxURLField::SetTargetFrame(), and SvxURLField::SetURL().
Referenced by setPropertyValue().
|
overridevirtual |
Definition at line 1260 of file fielduno.cxx.
References cppu::supportsService().
|
private |
Definition at line 171 of file fielduno.hxx.
Referenced by DeleteField(), getPresentation(), getPropertyValueDateTime(), getPropertyValueFile(), getPropertyValueURL(), InitDoc(), setPropertyValueDateTime(), setPropertyValueFile(), setPropertyValueSheet(), and setPropertyValueURL().
|
private |
Definition at line 177 of file fielduno.hxx.
Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().
|
private |
Definition at line 179 of file fielduno.hxx.
Referenced by getData(), getPropertyValueDateTime(), and setPropertyValueDateTime().
|
private |
Definition at line 180 of file fielduno.hxx.
Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().
|
private |
Definition at line 173 of file fielduno.hxx.
Referenced by getData(), GetFieldType(), getPresentation(), getPropertyValue(), getPropertyValueDateTime(), setPropertyValue(), and setPropertyValueDateTime().
|
private |
Definition at line 178 of file fielduno.hxx.
Referenced by getPropertyValueDateTime(), and setPropertyValueDateTime().
|
private |
Definition at line 175 of file fielduno.hxx.
Referenced by getAnchor(), getPropertyValue(), InitDoc(), and setPropertyValue().
|
private |
Definition at line 174 of file fielduno.hxx.
|
private |
Definition at line 170 of file fielduno.hxx.
Referenced by CreateFieldItem(), DeleteField(), getPresentation(), getPropertyValueDateTime(), getPropertyValueFile(), getPropertyValueURL(), InitDoc(), IsInserted(), setPropertyValueDateTime(), setPropertyValueFile(), setPropertyValueSheet(), and setPropertyValueURL().
|
private |
Definition at line 169 of file fielduno.hxx.
Referenced by getPropertySetInfo().