LibreOffice Module sw (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SwXMeta Class Reference

#include <unometa.hxx>

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

Classes

class  Impl
 the Meta has a cached list of text portions for its contents this list is created by SwXTextPortionEnumeration the Meta listens at the SwTextNode and throws away the cache when it changes More...
 

Public Member Functions

bool SetContentRange (SwTextNode *&rpNode, sal_Int32 &rStart, sal_Int32 &rEnd) const
 init params with position of the attribute content (w/out CH_TXTATR) More...
 
css::uno::Reference< css::text::XText > const & GetParentText () const
 
bool CheckForOwnMemberMeta (const SwPaM &rPam, const bool bAbsorb)
 
virtual ::sfx2::Metadatable * GetCoreObject () override
 
virtual css::uno::Reference< css::frame::XModel > GetModel () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () 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 > &xListener) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (css::uno::Reference< css::uno::XInterface > const &xParent) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () 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::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 &rString) 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 > &xTextPosition) 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 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
 

Static Public Member Functions

static rtl::Reference< SwXMetaCreateXMeta (::sw::Meta &rMeta, css::uno::Reference< css::text::XText > const &xParentText=nullptr, std::unique_ptr< TextRangeList_t const > &&pPortions=std::unique_ptr< TextRangeList_t const >())
 
static rtl::Reference< SwXMetaCreateXMeta (SwDoc &rDoc, bool isField)
 

Protected Member Functions

void AttachImpl (const css::uno::Reference< css::text::XTextRange > &xTextRange, const sal_uInt16 nWhich)
 
virtual ~SwXMeta () override
 
 SwXMeta (SwXMeta const &)=delete
 
SwXMetaoperator= (SwXMeta const &)=delete
 
 SwXMeta (SwDoc *const pDoc, ::sw::Meta *const pMeta, css::uno::Reference< css::text::XText > const &xParentText, std::unique_ptr< TextRangeList_t const > pPortions)
 
 SwXMeta (SwDoc *const pDoc)
 

Protected Attributes

::sw::UnoImplPtr< Implm_pImpl
 

Detailed Description

Definition at line 59 of file unometa.hxx.

Constructor & Destructor Documentation

◆ ~SwXMeta()

SwXMeta::~SwXMeta ( )
overrideprotectedvirtual

Definition at line 659 of file unorefmk.cxx.

◆ SwXMeta() [1/3]

SwXMeta::SwXMeta ( SwXMeta const &  )
protecteddelete

Referenced by CreateXMeta().

◆ SwXMeta() [2/3]

SwXMeta::SwXMeta ( SwDoc *const  pDoc,
::sw::Meta *const  pMeta,
css::uno::Reference< css::text::XText > const &  xParentText,
std::unique_ptr< TextRangeList_t const >  pPortions 
)
protected
Parameters
pDocand pMeta != 0, but not & because of ImplInheritanceHelper

◆ SwXMeta() [3/3]

SwXMeta::SwXMeta ( SwDoc *const  pDoc)
protected

Definition at line 654 of file unorefmk.cxx.

References m_pImpl.

Member Function Documentation

◆ addEventListener()

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

Definition at line 834 of file unorefmk.cxx.

References m_pImpl.

Referenced by SwXMetaField::addEventListener().

◆ attach()

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

Definition at line 966 of file unorefmk.cxx.

References AttachImpl(), and RES_TXTATR_META().

◆ AttachImpl()

void SwXMeta::AttachImpl ( const css::uno::Reference< css::text::XTextRange > &  xTextRange,
const sal_uInt16  nWhich 
)
protected

◆ CheckForOwnMemberMeta()

bool SwXMeta::CheckForOwnMemberMeta ( const SwPaM rPam,
const bool  bAbsorb 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 749 of file unorefmk.cxx.

References SwPaM::End(), SwPosition::GetContentIndex(), SwPosition::GetNode(), SwPaM::HasMark(), SetContentRange(), and SwPaM::Start().

◆ createEnumeration()

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

Definition at line 1130 of file unorefmk.cxx.

References GetParentText(), m_pImpl, and SetContentRange().

◆ createTextCursor()

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

Definition at line 1041 of file unorefmk.cxx.

References m_pImpl.

◆ createTextCursorByRange()

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

Definition at line 1048 of file unorefmk.cxx.

References m_pImpl.

◆ CreateXMeta() [1/2]

static rtl::Reference< SwXMeta > SwXMeta::CreateXMeta ( ::sw::Meta rMeta,
css::uno::Reference< css::text::XText > const &  xParentText = nullptr,
std::unique_ptr< TextRangeList_t const > &&  pPortions = std::unique_ptr< TextRangeList_t const >() 
)
static

◆ CreateXMeta() [2/2]

rtl::Reference< SwXMeta > SwXMeta::CreateXMeta ( SwDoc rDoc,
bool  isField 
)
static

Definition at line 664 of file unorefmk.cxx.

References SwXMeta().

◆ dispose()

void SAL_CALL SwXMeta::dispose ( void  )
overridevirtual

◆ getAnchor()

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

◆ GetCoreObject()

sfx2::Metadatable * SwXMeta::GetCoreObject ( )
override

Definition at line 1167 of file unorefmk.cxx.

References m_pImpl.

◆ getElementType()

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

Definition at line 1117 of file unorefmk.cxx.

References cppu::UnoType< typename T >::get().

◆ getEnd()

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

Definition at line 1019 of file unorefmk.cxx.

References m_pImpl.

◆ getImplementationName()

OUString SAL_CALL SwXMeta::getImplementationName ( )
overridevirtual

Definition at line 812 of file unorefmk.cxx.

◆ GetModel()

uno::Reference< frame::XModel > SwXMeta::GetModel ( )
overridevirtual

◆ getParent()

uno::Reference< uno::XInterface > SAL_CALL SwXMeta::getParent ( )
overridevirtual

Definition at line 1091 of file unorefmk.cxx.

References SwUnoCursorHelper::GetNestedTextContent(), and SetContentRange().

◆ GetParentText()

uno::Reference< text::XText > const & SwXMeta::GetParentText ( ) const

Definition at line 642 of file unorefmk.cxx.

References m_pImpl.

Referenced by createEnumeration().

◆ getStart()

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

Definition at line 1012 of file unorefmk.cxx.

References m_pImpl.

◆ getString()

OUString SAL_CALL SwXMeta::getString ( )
overridevirtual

Definition at line 1026 of file unorefmk.cxx.

References m_pImpl.

◆ getSupportedServiceNames()

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

Definition at line 824 of file unorefmk.cxx.

◆ getText()

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

Definition at line 1006 of file unorefmk.cxx.

◆ hasElements()

sal_Bool SAL_CALL SwXMeta::hasElements ( )
overridevirtual

Definition at line 1122 of file unorefmk.cxx.

References m_pImpl.

◆ insertControlCharacter()

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

Definition at line 1064 of file unorefmk.cxx.

References m_pImpl.

◆ insertString()

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

Definition at line 1056 of file unorefmk.cxx.

References m_pImpl.

◆ insertTextContent()

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

Definition at line 1074 of file unorefmk.cxx.

References m_pImpl.

◆ operator=()

SwXMeta & SwXMeta::operator= ( SwXMeta const &  )
protecteddelete

◆ removeEventListener()

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

Definition at line 843 of file unorefmk.cxx.

References m_pImpl.

Referenced by SwXMetaField::removeEventListener().

◆ removeTextContent()

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

Definition at line 1082 of file unorefmk.cxx.

References m_pImpl.

◆ SetContentRange()

bool SwXMeta::SetContentRange ( SwTextNode *&  rpNode,
sal_Int32 &  rStart,
sal_Int32 &  rEnd 
) const

init params with position of the attribute content (w/out CH_TXTATR)

Definition at line 727 of file unorefmk.cxx.

References SwTextAttr::End(), SwTextAttr::GetStart(), sw::Meta::GetTextAttr(), sw::Meta::GetTextNode(), and m_pImpl.

Referenced by CheckForOwnMemberMeta(), createEnumeration(), dispose(), getAnchor(), getParent(), SwXTextCursor::IsAtEndOfMeta(), and lcl_ForceIntoMeta().

◆ setParent()

void SAL_CALL SwXMeta::setParent ( css::uno::Reference< css::uno::XInterface > const &  xParent)
overridevirtual

Definition at line 1110 of file unorefmk.cxx.

◆ setString()

void SAL_CALL SwXMeta::setString ( const OUString &  rString)
overridevirtual

Definition at line 1033 of file unorefmk.cxx.

References m_pImpl.

◆ supportsService()

sal_Bool SAL_CALL SwXMeta::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 818 of file unorefmk.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_pImpl

::sw::UnoImplPtr<Impl> SwXMeta::m_pImpl
protected

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