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

Each of these instances represent, the left, center or right part of the header of footer of a page. More...

#include <textuno.hxx>

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

Public Member Functions

 ScHeaderFooterTextObj (const css::uno::WeakReference< css::sheet::XHeaderFooterContent > &xContent, ScHeaderFooterPart nP, const EditTextObject *pTextObj)
 
virtual ~ScHeaderFooterTextObj () override
 
const EditTextObjectGetTextObject () const
 
const SvxUnoTextGetUnoText ()
 
virtual void SAL_CALL insertTextContent (const css::uno::Reference< css::text::XTextRange > &xRange, const css::uno::Reference< css::text::XTextContent > &xContent, sal_Bool bAbsorb) override
 
virtual void SAL_CALL removeTextContent (const css::uno::Reference< css::text::XTextContent > &xContent) override
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor () override
 
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange (const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
 
virtual void SAL_CALL insertString (const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
 
virtual void SAL_CALL insertControlCharacter (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nControlCharacter, sal_Bool bAbsorb) override
 
virtual css::uno::Reference< css::text::XText > SAL_CALL getText () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart () override
 
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd () override
 
virtual OUString SAL_CALL getString () override
 
virtual void SAL_CALL setString (const OUString &aString) override
 
virtual void SAL_CALL moveTextRange (const css::uno::Reference< css::text::XTextRange > &xRange, sal_Int16 nParagraphs) override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL getTextFields () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTextFieldMasters () 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
 

Static Public Member Functions

static void FillDummyFieldData (ScHeaderFieldData &rData)
 

Private Member Functions

void CreateUnoText_Impl ()
 

Private Attributes

ScHeaderFooterTextData aTextData
 
rtl::Reference< SvxUnoTextmxUnoText
 

Detailed Description

Each of these instances represent, the left, center or right part of the header of footer of a page.

ScHeaderFooterTextObj changes the text in a ScHeaderFooterContentObj.

Definition at line 130 of file textuno.hxx.

Constructor & Destructor Documentation

◆ ScHeaderFooterTextObj()

ScHeaderFooterTextObj::ScHeaderFooterTextObj ( const css::uno::WeakReference< css::sheet::XHeaderFooterContent > &  xContent,
ScHeaderFooterPart  nP,
const EditTextObject pTextObj 
)

Definition at line 219 of file textuno.cxx.

◆ ~ScHeaderFooterTextObj()

ScHeaderFooterTextObj::~ScHeaderFooterTextObj ( )
overridevirtual

Definition at line 237 of file textuno.cxx.

Member Function Documentation

◆ createEnumeration()

uno::Reference< container::XEnumeration > SAL_CALL ScHeaderFooterTextObj::createEnumeration ( )
overridevirtual

Definition at line 494 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ createTextCursor()

uno::Reference< text::XTextCursor > SAL_CALL ScHeaderFooterTextObj::createTextCursor ( )
overridevirtual

Definition at line 253 of file textuno.cxx.

◆ createTextCursorByRange()

uno::Reference< text::XTextCursor > SAL_CALL ScHeaderFooterTextObj::createTextCursorByRange ( const css::uno::Reference< css::text::XTextRange > &  aTextPosition)
overridevirtual

like ScCellObj::createTextCursorByRange, if SvxUnoTextRange_getReflection available

Definition at line 259 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ CreateUnoText_Impl()

void ScHeaderFooterTextObj::CreateUnoText_Impl ( )
private

◆ FillDummyFieldData()

void ScHeaderFooterTextObj::FillDummyFieldData ( ScHeaderFieldData rData)
static

◆ getElementType()

uno::Type SAL_CALL ScHeaderFooterTextObj::getElementType ( )
overridevirtual

Definition at line 504 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ getEnd()

uno::Reference< text::XTextRange > SAL_CALL ScHeaderFooterTextObj::getEnd ( )
overridevirtual

Definition at line 457 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ getImplementationName()

virtual OUString SAL_CALL ScHeaderFooterTextObj::getImplementationName ( )
overridevirtual

◆ getStart()

uno::Reference< text::XTextRange > SAL_CALL ScHeaderFooterTextObj::getStart ( )
overridevirtual

Definition at line 449 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ getString()

OUString SAL_CALL ScHeaderFooterTextObj::getString ( )
overridevirtual

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL ScHeaderFooterTextObj::getSupportedServiceNames ( )
overridevirtual

◆ getText()

uno::Reference< text::XText > SAL_CALL ScHeaderFooterTextObj::getText ( )
overridevirtual

Definition at line 441 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ getTextFieldMasters()

uno::Reference< container::XNameAccess > SAL_CALL ScHeaderFooterTextObj::getTextFieldMasters ( )
overridevirtual

Definition at line 474 of file textuno.cxx.

◆ getTextFields()

uno::Reference< container::XEnumerationAccess > SAL_CALL ScHeaderFooterTextObj::getTextFields ( )
overridevirtual

Definition at line 467 of file textuno.cxx.

References aTextData.

◆ GetTextObject()

const EditTextObject * ScHeaderFooterTextObj::GetTextObject ( ) const

Definition at line 239 of file textuno.cxx.

References aTextData, and ScHeaderFooterTextData::GetTextObject().

◆ GetUnoText()

const SvxUnoText & ScHeaderFooterTextObj::GetUnoText ( )

Definition at line 244 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ hasElements()

sal_Bool SAL_CALL ScHeaderFooterTextObj::hasElements ( )
overridevirtual

Definition at line 512 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ insertControlCharacter()

void SAL_CALL ScHeaderFooterTextObj::insertControlCharacter ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Int16  nControlCharacter,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 343 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ insertString()

void SAL_CALL ScHeaderFooterTextObj::insertString ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const OUString &  aString,
sal_Bool  bAbsorb 
)
overridevirtual

Definition at line 334 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ insertTextContent()

void SAL_CALL ScHeaderFooterTextObj::insertTextContent ( const css::uno::Reference< css::text::XTextRange > &  xRange,
const css::uno::Reference< css::text::XTextContent > &  xContent,
sal_Bool  bAbsorb 
)
overridevirtual

◆ moveTextRange()

void SAL_CALL ScHeaderFooterTextObj::moveTextRange ( const css::uno::Reference< css::text::XTextRange > &  xRange,
sal_Int16  nParagraphs 
)
overridevirtual

Definition at line 482 of file textuno.cxx.

References CreateUnoText_Impl(), and mxUnoText.

◆ removeTextContent()

void SAL_CALL ScHeaderFooterTextObj::removeTextContent ( const css::uno::Reference< css::text::XTextContent > &  xContent)
overridevirtual

check if the field is in this cell

Definition at line 422 of file textuno.cxx.

References CreateUnoText_Impl(), ScEditFieldObj::DeleteField(), ScEditFieldObj::IsInserted(), and mxUnoText.

◆ setString()

void SAL_CALL ScHeaderFooterTextObj::setString ( const OUString &  aString)
overridevirtual

◆ supportsService()

virtual sal_Bool SAL_CALL ScHeaderFooterTextObj::supportsService ( const OUString &  ServiceName)
overridevirtual

Member Data Documentation

◆ aTextData

ScHeaderFooterTextData ScHeaderFooterTextObj::aTextData
private

◆ mxUnoText

rtl::Reference<SvxUnoText> ScHeaderFooterTextObj::mxUnoText
private

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