LibreOffice Module sw (master) 1
|
#include <unometa.hxx>
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< 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 rtl::Reference< SwXMeta > | CreateXMeta (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 | |
SwXMeta & | operator= (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< Impl > | m_pImpl |
Definition at line 59 of file unometa.hxx.
|
overrideprotectedvirtual |
Definition at line 659 of file unorefmk.cxx.
|
protecteddelete |
Referenced by CreateXMeta().
|
protected |
pDoc | and pMeta != 0, but not & because of ImplInheritanceHelper |
|
protected |
Definition at line 654 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 834 of file unorefmk.cxx.
References m_pImpl.
Referenced by SwXMetaField::addEventListener().
|
overridevirtual |
Definition at line 966 of file unorefmk.cxx.
References AttachImpl(), and RES_TXTATR_META().
|
protected |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Definition at line 886 of file unorefmk.cxx.
References sw::CreateParentXText(), DONTEXPAND, FORCEHINTEXPAND, SwXTextRange::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::GetMetaFieldManager(), SwPaM::GetPoint(), IDocumentContentOperations::InsertPoolItem(), SwXTextCursor::IsAtEndOfMeta(), m_pImpl, sw::MetaFieldManager::makeMetaField(), RES_TXTATR_META(), and sw::XTextRangeToSwPaM().
Referenced by attach(), and SwXMetaField::attach().
bool SwXMeta::CheckForOwnMemberMeta | ( | const SwPaM & | rPam, |
const bool | bAbsorb | ||
) |
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().
|
overridevirtual |
Definition at line 1130 of file unorefmk.cxx.
References GetParentText(), m_pImpl, and SetContentRange().
|
overridevirtual |
Definition at line 1041 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1048 of file unorefmk.cxx.
References m_pImpl.
|
static |
Referenced by lcl_CreateMetaPortion(), SwXServiceProvider::MakeInstance(), and sw::Meta::MakeUnoObject().
|
static |
Definition at line 664 of file unorefmk.cxx.
References SwXMeta().
|
overridevirtual |
Definition at line 852 of file unorefmk.cxx.
References IDocumentContentOperations::DeleteAndJoin(), SwNode::GetDoc(), SwDoc::getIDocumentContentOperations(), m_pImpl, and SetContentRange().
Referenced by SwXMetaField::dispose().
|
overridevirtual |
Definition at line 972 of file unorefmk.cxx.
References SwXTextRange::CreateXTextRange(), end, SwNode::GetDoc(), m_pImpl, SetContentRange(), and start.
Referenced by SwXMetaField::getAnchor().
|
override |
Definition at line 1167 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1117 of file unorefmk.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 1019 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 812 of file unorefmk.cxx.
|
overridevirtual |
Definition at line 1172 of file unorefmk.cxx.
References SwNode::GetDoc(), SwDoc::GetDocShell(), SfxObjectShell::GetModel(), sw::Meta::GetTextNode(), and m_pImpl.
|
overridevirtual |
Definition at line 1091 of file unorefmk.cxx.
References SwUnoCursorHelper::GetNestedTextContent(), and SetContentRange().
uno::Reference< text::XText > const & SwXMeta::GetParentText | ( | ) | const |
|
overridevirtual |
Definition at line 1012 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1026 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 824 of file unorefmk.cxx.
|
overridevirtual |
Definition at line 1006 of file unorefmk.cxx.
|
overridevirtual |
Definition at line 1122 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1064 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1056 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 1074 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 843 of file unorefmk.cxx.
References m_pImpl.
Referenced by SwXMetaField::removeEventListener().
|
overridevirtual |
Definition at line 1082 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 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().
|
overridevirtual |
Definition at line 1110 of file unorefmk.cxx.
|
overridevirtual |
Definition at line 1033 of file unorefmk.cxx.
References m_pImpl.
|
overridevirtual |
Definition at line 818 of file unorefmk.cxx.
References cppu::supportsService().
|
protected |
Definition at line 69 of file unometa.hxx.
Referenced by addEventListener(), AttachImpl(), createEnumeration(), createTextCursor(), createTextCursorByRange(), dispose(), getAnchor(), GetCoreObject(), getEnd(), GetModel(), GetParentText(), getStart(), getString(), hasElements(), insertControlCharacter(), insertString(), insertTextContent(), removeEventListener(), removeTextContent(), SetContentRange(), and setString().