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::MetadatableGetCoreObject () override
 
virtual css::uno::Reference< css::frame::XModel > GetModel () override
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &Identifier) 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 css::uno::Reference< css::rdf::XMetadatable > 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 css::uno::Reference< css::rdf::XMetadatable > CreateXMeta (SwDoc &rDoc, bool isField)
 
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

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 61 of file unometa.hxx.

Constructor & Destructor Documentation

SwXMeta::~SwXMeta ( )
overrideprotectedvirtual

Definition at line 684 of file unorefmk.cxx.

SwXMeta::SwXMeta ( SwXMeta const &  )
protecteddelete

Referenced by CreateXMeta().

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::SwXMeta ( SwDoc *const  pDoc)
protected

Definition at line 679 of file unorefmk.cxx.

References m_pImpl.

Member Function Documentation

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

Definition at line 877 of file unorefmk.cxx.

References m_pImpl.

Referenced by SwXMetaField::addEventListener().

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

Definition at line 1018 of file unorefmk.cxx.

References AttachImpl(), and RES_TXTATR_META().

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

Definition at line 929 of file unorefmk.cxx.

References sw::CreateParentXText(), DONTEXPAND, FORCEHINTEXPAND, OTextCursorHelper::GetDoc(), SwXTextRange::GetDoc(), SwPaM::GetPoint(), SwXTextCursor::IsAtEndOfMeta(), m_pImpl, meta, RES_TXTATR_META(), and sw::XTextRangeToSwPaM().

Referenced by attach(), and SwXMetaField::attach().

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

Definition at line 779 of file unorefmk.cxx.

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

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

Definition at line 1182 of file unorefmk.cxx.

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

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

Definition at line 1093 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 1100 of file unorefmk.cxx.

References m_pImpl.

static css::uno::Reference< css::rdf::XMetadatable > 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
uno::Reference< rdf::XMetadatable > SwXMeta::CreateXMeta ( SwDoc rDoc,
bool  isField 
)
static

Definition at line 689 of file unorefmk.cxx.

References m_pImpl, and SwXMeta().

void SAL_CALL SwXMeta::dispose ( void  )
overridevirtual
uno::Reference< text::XTextRange > SAL_CALL SwXMeta::getAnchor ( )
overridevirtual
sfx2::Metadatable * SwXMeta::GetCoreObject ( )
override

Definition at line 1219 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 1169 of file unorefmk.cxx.

References cppu::UnoType< class >::get().

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

Definition at line 1071 of file unorefmk.cxx.

References m_pImpl.

OUString SAL_CALL SwXMeta::getImplementationName ( )
overridevirtual

Definition at line 855 of file unorefmk.cxx.

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

Definition at line 1143 of file unorefmk.cxx.

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

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

Definition at line 667 of file unorefmk.cxx.

References m_pImpl.

Referenced by createEnumeration().

sal_Int64 SAL_CALL SwXMeta::getSomething ( const css::uno::Sequence< sal_Int8 > &  Identifier)
overridevirtual

Definition at line 848 of file unorefmk.cxx.

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

Definition at line 1064 of file unorefmk.cxx.

References m_pImpl.

OUString SAL_CALL SwXMeta::getString ( )
overridevirtual

Definition at line 1078 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 867 of file unorefmk.cxx.

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

Definition at line 1058 of file unorefmk.cxx.

const uno::Sequence< sal_Int8 > & SwXMeta::getUnoTunnelId ( )
static

Definition at line 840 of file unorefmk.cxx.

References comphelper::UnoIdInit::getSeq().

sal_Bool SAL_CALL SwXMeta::hasElements ( )
overridevirtual

Definition at line 1174 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 1116 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 1108 of file unorefmk.cxx.

References m_pImpl.

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 1126 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 886 of file unorefmk.cxx.

References m_pImpl.

Referenced by SwXMetaField::removeEventListener().

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

Definition at line 1134 of file unorefmk.cxx.

References m_pImpl.

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 757 of file unorefmk.cxx.

References SwNode::GetTextNode(), and m_pImpl.

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

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

Definition at line 1162 of file unorefmk.cxx.

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

Definition at line 1085 of file unorefmk.cxx.

References m_pImpl.

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

Definition at line 861 of file unorefmk.cxx.

References cppu::supportsService().

Member Data Documentation

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

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