19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_UNOATXT_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_UNOATXT_HXX
22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <com/sun/star/container/XNamed.hpp>
24#include <com/sun/star/document/XEventsSupplier.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/text/XAutoTextGroup.hpp>
27#include <com/sun/star/text/XAutoTextEntry.hpp>
28#include <com/sun/star/text/XAutoTextContainer2.hpp>
29#include <com/sun/star/text/XText.hpp>
43#ifndef SW_DECL_SWDOCSHELL_DEFINED
44#define SW_DECL_SWDOCSHELL_DEFINED
51 css::text::XAutoTextContainer2,
52 css::lang::XServiceInfo
63 virtual sal_Int32 SAL_CALL
getCount( )
override;
64 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex)
override;
67 virtual css::uno::Any SAL_CALL
getByName(
const OUString& Name)
override;
68 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
76 virtual css::uno::Reference< css::text::XAutoTextGroup > SAL_CALL
insertNewByName(
const OUString& aGroupName)
override;
77 virtual void SAL_CALL
removeByName(
const OUString& aGroupName)
override;
88 css::text::XAutoTextGroup,
89 css::beans::XPropertySet,
90 css::lang::XServiceInfo,
91 css::container::XIndexAccess,
92 css::container::XNamed
106 virtual css::uno::Sequence< OUString > SAL_CALL
getTitles()
override;
107 virtual void SAL_CALL
renameByName(
const OUString& aElementName,
const OUString& aNewElementName,
const OUString& aNewElementTitle)
override;
108 virtual css::uno::Reference< css::text::XAutoTextEntry > SAL_CALL
insertNewByName(
const OUString& aName,
const OUString& aTitle,
const css::uno::Reference< css::text::XTextRange > & xTextRange)
override;
109 virtual void SAL_CALL
removeByName(
const OUString& aEntryName)
override;
112 virtual OUString SAL_CALL
getName()
override;
113 virtual void SAL_CALL
setName(
const OUString& Name_)
override;
116 virtual sal_Int32 SAL_CALL
getCount( )
override;
117 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex)
override;
120 virtual css::uno::Any SAL_CALL
getByName(
const OUString& Name)
override;
121 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
134 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo( )
override;
135 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
136 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
137 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
138 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
139 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
140 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
149 css::text::XAutoTextEntry,
150 css::lang::XServiceInfo,
152 css::document::XEventsSupplier
169 void disposing(std::unique_lock<std::mutex>&)
override;
193 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL
createTextCursor()
override;
194 virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL
createTextCursorByRange(
const css::uno::Reference< css::text::XTextRange > & aTextPosition)
override;
195 virtual void SAL_CALL
insertString(
const css::uno::Reference< css::text::XTextRange > & xRange,
const OUString& aString,
sal_Bool bAbsorb)
override;
196 virtual void SAL_CALL
insertControlCharacter(
const css::uno::Reference< css::text::XTextRange > & xRange, sal_Int16 nControlCharacter,
sal_Bool bAbsorb)
override;
197 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;
198 virtual void SAL_CALL
removeTextContent(
const css::uno::Reference< css::text::XTextContent > & xContent)
override;
201 virtual css::uno::Reference< css::text::XText > SAL_CALL
getText()
override;
202 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getStart()
override;
203 virtual css::uno::Reference< css::text::XTextRange > SAL_CALL
getEnd()
override;
204 virtual OUString SAL_CALL
getString()
override;
205 virtual void SAL_CALL
setString(
const OUString& aString)
override;
208 virtual void SAL_CALL
applyTo(
const css::uno::Reference< css::text::XTextRange > & xRange)
override;
216 virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL
getEvents( )
override;
virtual void SAL_CALL replaceByName(const OUString &rName, const css::uno::Any &rElement) override
virtual css::uno::Any SAL_CALL getByName(const OUString &rName) override
Implement the XNameAccess for the AutoText events.
SwXAutoTextEntry & m_rAutoTextEntry
virtual void getByName(SvxMacro &rMacro, const SvMacroItemId nEvent) override
item ID of event
SwAutoTextEventDescriptor(SwXAutoTextEntry &rAutoText)
virtual void replaceByName(const SvMacroItemId nEvent, const SvxMacro &rMacro) override
event (will be copied)
virtual ~SwAutoTextEventDescriptor() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Reference< css::text::XAutoTextGroup > SAL_CALL insertNewByName(const OUString &aGroupName) override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
SwGlossaries * m_pGlossaries
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL removeByName(const OUString &aGroupName) override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~SwXAutoTextContainer() override
virtual OUString SAL_CALL getImplementationName() override
void implFlushDocument(bool _bCloseDoc=false)
ensure that the current content (which may only be in-memory so far) is flushed to the auto text grou...
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getStart() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
virtual OUString SAL_CALL getString() override
rtl::Reference< SwXBodyText > mxBodyText
const OUString & GetGroupName() const
virtual css::uno::Reference< css::text::XTextRange > SAL_CALL getEnd() 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 applyTo(const css::uno::Reference< css::text::XTextRange > &xRange) override
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursor() override
void disposing(std::unique_lock< std::mutex > &) override
const OUString & GetEntryName() const
SwXAutoTextEntry(SwGlossaries *, OUString aGroupName, OUString aEntryName)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() 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
const SwGlossaries * GetGlossaries() const
SwGlossaries * m_pGlossaries
virtual void SAL_CALL setString(const OUString &aString) override
virtual css::uno::Reference< css::text::XTextCursor > SAL_CALL createTextCursorByRange(const css::uno::Reference< css::text::XTextRange > &aTextPosition) override
virtual void SAL_CALL removeTextContent(const css::uno::Reference< css::text::XTextContent > &xContent) override
virtual void SAL_CALL insertString(const css::uno::Reference< css::text::XTextRange > &xRange, const OUString &aString, sal_Bool bAbsorb) override
virtual ~SwXAutoTextEntry() override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
SwXAutoTextGroup(const OUString &rName, SwGlossaries *pGloss)
virtual void SAL_CALL setName(const OUString &Name_) override
const SfxItemPropertySet * m_pPropSet
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
SwGlossaries * m_pGlossaries
virtual css::uno::Type SAL_CALL getElementType() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getTitles() override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual sal_Int32 SAL_CALL getCount() override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removeByName(const OUString &aEntryName) override
virtual css::uno::Reference< css::text::XAutoTextEntry > SAL_CALL insertNewByName(const OUString &aName, const OUString &aTitle, const css::uno::Reference< css::text::XTextRange > &xTextRange) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
virtual ~SwXAutoTextGroup() override
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual OUString SAL_CALL getName() override
virtual void SAL_CALL renameByName(const OUString &aElementName, const OUString &aNewElementName, const OUString &aNewElementTitle) override
tools::SvRef< SwDocShell > SwDocShellRef