20#include <config_features.h>
34#include <com/sun/star/text/XTextTable.hpp>
42#include <unofield.hxx>
64#include <com/sun/star/document/XCodeNameQuery.hpp>
65#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
66#include <com/sun/star/form/XFormsSupplier.hpp>
67#include <com/sun/star/script/ModuleInfo.hpp>
68#include <com/sun/star/script/ModuleType.hpp>
69#include <com/sun/star/script/vba/XVBAModuleInfo.hpp>
70#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
85#if HAVE_FEATURE_SCRIPTING
89class SwVbaCodeNameProvider :
public ::cppu::WeakImplHelper< document::XCodeNameQuery >
92 OUString msThisDocumentCodeName;
94 explicit SwVbaCodeNameProvider(
SwDocShell* pDocShell ) : mpDocShell( pDocShell ) {}
97 OUString SAL_CALL getCodeNameForContainer(
const uno::Reference< uno::XInterface >& )
override
103 OUString SAL_CALL getCodeNameForObject(
const uno::Reference< uno::XInterface >& xIf )
override
106 if ( msThisDocumentCodeName.isEmpty() )
110 uno::Reference< beans::XPropertySet > xProps( mpDocShell->
GetModel(), uno::UNO_QUERY_THROW );
111 uno::Reference< container::XNameAccess > xLibContainer( xProps->getPropertyValue(
"BasicLibraries"), uno::UNO_QUERY_THROW );
112 OUString sProjectName(
"Standard");
117 uno::Reference< container::XNameAccess > xLib( xLibContainer->getByName( sProjectName ), uno::UNO_QUERY_THROW );
118 const uno::Sequence< OUString > sModuleNames = xLib->getElementNames();
119 uno::Reference< script::vba::XVBAModuleInfo > xVBAModuleInfo( xLib, uno::UNO_QUERY );
121 auto pModuleName = std::find_if(sModuleNames.begin(), sModuleNames.end(), [&xVBAModuleInfo](
const OUString& rName) {
122 return xVBAModuleInfo->hasModuleInfo(rName)
123 && xVBAModuleInfo->getModuleInfo(rName).ModuleType == script::ModuleType::DOCUMENT; });
124 if (pModuleName != sModuleNames.end())
125 msThisDocumentCodeName = *pModuleName;
127 catch( uno::Exception& )
135 uno::Reference< drawing::XDrawPageSupplier > xSupplier( mpDocShell->
GetModel(), uno::UNO_QUERY_THROW );
136 uno::Reference< container::XIndexAccess > xIndex( xSupplier->getDrawPage(), uno::UNO_QUERY_THROW );
140 uno::Reference< form::XFormsSupplier > xFormSupplier( xIndex, uno::UNO_QUERY_THROW );
141 uno::Reference< container::XIndexAccess > xFormIndex( xFormSupplier->getForms(), uno::UNO_QUERY_THROW );
143 uno::Reference< container::XIndexAccess > xFormControls( xFormIndex->getByIndex(0), uno::UNO_QUERY_THROW );
144 sal_Int32 nCntrls = xFormControls->getCount();
145 for( sal_Int32 cIndex = 0; cIndex < nCntrls; ++cIndex )
147 uno::Reference< uno::XInterface > xControl( xFormControls->getByIndex( cIndex ), uno::UNO_QUERY_THROW );
148 bool bMatched = ( xControl == xIf );
151 sCodeName = msThisDocumentCodeName;
156 catch( uno::Exception& )
167typedef std::unordered_map< OUString, OUString >
StringHashMap;
171class SwVbaProjectNameProvider :
public ::cppu::WeakImplHelper< container::XNameContainer >
175 SwVbaProjectNameProvider()
178 virtual sal_Bool SAL_CALL hasByName(
const OUString& aName )
override
180 return ( mTemplateToProject.find( aName ) != mTemplateToProject.end() );
182 virtual css::uno::Any SAL_CALL getByName(
const OUString& aName )
override
184 if ( !hasByName( aName ) )
185 throw container::NoSuchElementException();
186 return uno::Any( mTemplateToProject.find( aName )->second );
188 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( )
override
193 virtual void SAL_CALL insertByName(
const OUString& aName,
const uno::Any& aElement )
override
196 OUString sProjectName;
197 aElement >>= sProjectName;
198 SAL_INFO(
"sw.uno",
"Template cache inserting template name " << aName
199 <<
" with project " << sProjectName);
200 mTemplateToProject[
aName ] = sProjectName;
203 virtual void SAL_CALL removeByName(
const OUString& Name )
override
205 if ( !hasByName( Name ) )
206 throw container::NoSuchElementException();
207 mTemplateToProject.erase( Name );
209 virtual void SAL_CALL replaceByName(
const OUString& aName,
const uno::Any& aElement )
override
211 if ( !hasByName( aName ) )
212 throw container::NoSuchElementException();
213 insertByName( aName, aElement );
216 virtual css::uno::Type SAL_CALL getElementType( )
override
220 virtual sal_Bool SAL_CALL hasElements( )
override
223 return ( !mTemplateToProject.empty() );
228class SwVbaObjectForCodeNameProvider :
public ::cppu::WeakImplHelper< container::XNameAccess >
232 explicit SwVbaObjectForCodeNameProvider(
SwDocShell* pDocShell ) : mpDocShell( pDocShell )
237 virtual sal_Bool SAL_CALL hasByName(
const OUString& aName )
override
241 if ( aName ==
"ThisDocument" )
246 css::uno::Any SAL_CALL getByName(
const OUString& aName )
override
248 if ( !hasByName( aName ) )
249 throw container::NoSuchElementException();
250 uno::Sequence< uno::Any > aArgs{
uno::Any(uno::Reference< uno::XInterface >()),
254 "Creating Object ( ooo.vba.word.Document ) 0x" << xDocObj.get());
257 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( )
override
259 uno::Sequence< OUString > aNames;
263 virtual css::uno::Type SAL_CALL getElementType( )
override {
return uno::Type(); }
264 virtual sal_Bool SAL_CALL hasElements( )
override {
return true; }
274struct ProvNamesId_Type
468 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
469 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
470 { SvMacroItemId::NONE,
nullptr }
473 return aMacroDescriptionsImpl;
480 if(
static_cast<sal_uInt16
>(nObjectType) < nEntries)
481 sRet = OUString::createFromAscii(
aProvNamesId[
static_cast<sal_uInt16
>(nObjectType)].
pName);
488 uno::Sequence<OUString> aRet(nEntries);
489 OUString* pArray = aRet.getArray();
493 OUString sProv(OUString::createFromAscii(
i.pName));
515uno::Reference<uno::XInterface>
519 uno::Reference< uno::XInterface > xRet;
560#if HAVE_FEATURE_SCRIPTING
567#if HAVE_FEATURE_SCRIPTING
577#if HAVE_FEATURE_SCRIPTING
583 xProjProv =
new SwVbaProjectNameProvider;
591#if HAVE_FEATURE_SCRIPTING
598 aGlobs <<= ::comphelper::getProcessServiceFactory()->createInstanceWithArguments(
"ooo.vba.word.Globals", aArgs );
678 eFamily = SfxStyleFamily::Para;
681 eFamily = SfxStyleFamily::Para;
685 eFamily = SfxStyleFamily::Frame;
688 eFamily = SfxStyleFamily::Page;
691 eFamily = SfxStyleFamily::Pseudo;
694 eFamily = SfxStyleFamily::Table;
697 eFamily = SfxStyleFamily::Cell;
821 "not creating chart data provider for embedded object");
837 throw uno::RuntimeException();
868 throw uno::RuntimeException();
871 throw IndexOutOfBoundsException();
874 size_t nIndex =
static_cast<size_t>(nInputIndex);
875 size_t nCurrentIndex = 0;
879 if (!pFormat->GetInfo(aGetHt))
881 if (nCurrentIndex ==
nIndex)
891 throw IndexOutOfBoundsException();
899 throw uno::RuntimeException();
902 uno::Reference< XTextTable > xTable;
906 if (rItemName == rFormat.
GetName())
914 throw NoSuchElementException();
923 throw uno::RuntimeException();
925 uno::Sequence<OUString>
aSeq(
static_cast<sal_Int32
>(
nCount));
928 OUString* pArray =
aSeq.getArray();
944 throw uno::RuntimeException();
950 if (rName == rFormat.
GetName())
969 throw uno::RuntimeException();
975 return "SwXTextTables";
985 return {
"com.sun.star.text.TextTables" };
995 template<FlyCntType T>
struct UnoFrameWrap_traits {};
1002 uno::Reference<text::XTextFrame>
const xRet(
1014 uno::Reference<text::XTextContent>
const xRet(
1026 uno::Reference<text::XTextContent>
const xRet(
1033 template<FlyCntType T>
1036 return UnoFrameWrap_traits<T>::wrapFrame(*pFormat);
1046 return lcl_UnoWrapFrame<FLYCNTTYPE_FRM>(pFormat);
1048 return lcl_UnoWrapFrame<FLYCNTTYPE_GRF>(pFormat);
1050 return lcl_UnoWrapFrame<FLYCNTTYPE_OLE>(pFormat);
1052 throw uno::RuntimeException();
1056 template<FlyCntType T>
1057 class SwXFrameEnumeration
1061 std::vector< Any > m_aFrames;
1063 virtual ~SwXFrameEnumeration()
override {};
1065 SwXFrameEnumeration(
const SwDoc& rDoc);
1068 virtual sal_Bool SAL_CALL hasMoreElements()
override;
1069 virtual Any SAL_CALL nextElement()
override;
1078template<FlyCntType T>
1079SwXFrameEnumeration<T>::SwXFrameEnumeration(
const SwDoc& rDoc)
1087 const SwNodeIndex* pIdx = pFormat->GetContent().GetContentIdx();
1091 if(UnoFrameWrap_traits<T>::filter(pNd))
1092 m_aFrames.push_back(lcl_UnoWrapFrame<T>(pFormat));
1096template<FlyCntType T>
1097sal_Bool SwXFrameEnumeration<T>::hasMoreElements()
1100 return !m_aFrames.empty();
1103template<FlyCntType T>
1104Any SwXFrameEnumeration<T>::nextElement()
1107 if(m_aFrames.empty())
1108 throw NoSuchElementException();
1110 Any aResult = m_aFrames.back();
1111 m_aFrames.pop_back();
1115template<FlyCntType T>
1116OUString SwXFrameEnumeration<T>::getImplementationName()
1118 return "SwXFrameEnumeration";
1121template<FlyCntType T>
1122sal_Bool SwXFrameEnumeration<T>::supportsService(
const OUString& ServiceName)
1127template<FlyCntType T>
1128Sequence< OUString > SwXFrameEnumeration<T>::getSupportedServiceNames()
1130 return { OUString(
"com.sun.star.container.XEnumeration") };
1145 return { OUString(
"com.sun.star.text.TextFrames") };
1160 throw uno::RuntimeException();
1164 return uno::Reference< container::XEnumeration >(
1165 new SwXFrameEnumeration<FLYCNTTYPE_FRM>(*
GetDoc()));
1167 return uno::Reference< container::XEnumeration >(
1168 new SwXFrameEnumeration<FLYCNTTYPE_GRF>(*
GetDoc()));
1170 return uno::Reference< container::XEnumeration >(
1171 new SwXFrameEnumeration<FLYCNTTYPE_OLE>(*
GetDoc()));
1173 throw uno::RuntimeException();
1181 throw uno::RuntimeException();
1190 throw uno::RuntimeException();
1192 throw IndexOutOfBoundsException();
1196 throw IndexOutOfBoundsException();
1197 return lcl_UnoWrapFrame(pFormat,
m_eType);
1204 throw uno::RuntimeException();
1219 throw NoSuchElementException();
1227 throw uno::RuntimeException();
1229 std::vector<OUString> vNames;
1230 while(xEnum->hasMoreElements())
1232 Reference<container::XNamed> xNamed;
1233 xEnum->nextElement() >>= xNamed;
1235 vNames.push_back(xNamed->getName());
1237 return ::comphelper::containerToSequence(vNames);
1244 throw uno::RuntimeException();
1276 throw uno::RuntimeException();
1283 return "SwXTextFrames";
1293 return {
"com.sun.star.text.TextFrames" };
1307 return "SwXTextGraphicObjects";
1317 return {
"com.sun.star.text.TextGraphicObjects" };
1331 return "SwXTextEmbeddedObjects";
1341 return {
"com.sun.star.text.TextEmbeddedObjects" };
1355 return "SwXTextSections";
1365 return {
"com.sun.star.text.TextSections" };
1381 throw uno::RuntimeException();
1386 if( !rSectFormats[
i - 1]->IsInNodesArr())
1395 uno::Reference< XTextSection > xRet;
1397 throw uno::RuntimeException();
1405 if( !rSectFormats[
i]->IsInNodesArr())
1407 else if(
static_cast<size_t>(
nIndex) ==
i)
1409 if(
static_cast<size_t>(
nIndex) ==
i)
1413 throw IndexOutOfBoundsException();
1426 throw uno::RuntimeException();
1429 uno::Reference< XTextSection > xSect;
1430 for(
size_t i = 0;
i < rFormats.
size(); ++
i)
1442 throw NoSuchElementException();
1451 throw uno::RuntimeException();
1456 if( !rSectFormats[
i - 1]->IsInNodesArr())
1464 OUString* pArray =
aSeq.getArray();
1471 pFormat = rFormats[++
nIndex];
1486 for(
size_t i = 0;
i < rFormats.
size(); ++
i)
1499 if( !rName.startsWith(
"dbg_"))
1500 throw uno::RuntimeException();
1515 throw uno::RuntimeException();
1530 return "SwXBookmarks";
1540 return {
"com.sun.star.text.Bookmarks" };
1554 throw uno::RuntimeException();
1575 throw uno::RuntimeException();
1578 throw IndexOutOfBoundsException();
1591 const uno::Reference< text::XTextContent > xRef =
1599 throw IndexOutOfBoundsException();
1606 throw uno::RuntimeException();
1611 throw NoSuchElementException();
1614 const uno::Reference< text::XTextContent > xRef =
1624 throw uno::RuntimeException();
1626 std::vector< OUString > ret;
1635 ret.push_back((*ppMark)->GetName());
1645 throw uno::RuntimeException();
1660 throw uno::RuntimeException();
1689 throw uno::RuntimeException();
1698 throw uno::RuntimeException();
1700 uno::Reference< XIndexReplace > xRef;
1708 throw IndexOutOfBoundsException();
1722 throw uno::RuntimeException();
1728 return "SwXFootnotes";
1738 return {
"com.sun.star.text.Footnotes" };
1755 throw uno::RuntimeException();
1759 for(
size_t n = 0;
n < nFootnoteCnt; ++
n )
1776 throw uno::RuntimeException();
1780 uno::Reference< XFootnote > xRef;
1781 for(
size_t n = 0;
n < nFootnoteCnt; ++
n )
1798 throw IndexOutOfBoundsException();
1812 throw uno::RuntimeException();
1823 return "SwXReferenceMarks";
1833 return {
"com.sun.star.text.ReferenceMarks" };
1849 throw uno::RuntimeException();
1858 throw uno::RuntimeException();
1859 uno::Reference< XTextContent > xRef;
1871 throw IndexOutOfBoundsException();
1880 throw uno::RuntimeException();
1885 throw NoSuchElementException();
1887 uno::Reference<XTextContent>
const xRef =
1897 uno::Sequence<OUString> aRet;
1899 throw uno::RuntimeException();
1901 std::vector<OUString> aStrings;
1904 OUString* pNames = aRet.getArray();
1906 pNames[
i] = aStrings[
i];
1915 throw uno::RuntimeException();
1928 throw uno::RuntimeException();
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxXTextColumns_createInstance() noexcept
const OUString & GetName() const
void SetGlobalUNOConstant(const OUString &rName, const css::uno::Any &_rValue, css::uno::Any *pOldValue=nullptr)
bool GetGlobalUNOConstant(const OUString &rName, css::uno::Any &aOut)
virtual SwChartDataProvider * GetChartDataProvider(bool bCreate=false) const =0
returns or creates the data-provider for chart
virtual SwFieldType * GetFieldType(SwFieldIds nResId, const OUString &rName, bool bDbFieldMatching) const =0
virtual SwFieldType * InsertFieldType(const SwFieldType &)=0
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
Provides access to the marks of a document.
virtual const_iterator_t getBookmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence the IBookmarks.
virtual const_iterator_t findBookmark(const OUString &rMark) const =0
Finds a bookmark by name.
static SW_DLLPUBLIC MarkType GetType(const ::sw::mark::IMark &rMark)
Returns the MarkType used to create the mark.
virtual const_iterator_t getBookmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
virtual sal_Int32 getBookmarksCount() const =0
returns the number of IBookmarks.
BasicManager * GetBasicManager() const
css::uno::Reference< css::frame::XModel3 > GetModel() const
SfxObjectCreateMode GetCreateMode() const
SwSectionFormats & GetSections()
size_t GetTableFrameFormatCount(bool bUsed) const
IDocumentChartDataProviderAccess const & getIDocumentChartDataProviderAccess() const
const sw::TableFrameFormats * GetTableFrameFormats() const
SwFrameFormat * GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes=false)
const SwNumRuleTable & GetNumRuleTable() const
sal_uInt16 GetRefMarks(std::vector< OUString > *=nullptr) const
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
size_t GetFlyCount(FlyCntType eType, bool bIgnoreTextBoxes=false) const
Access to frames.
const SwFlyFrameFormat * FindFlyByName(const OUString &rName, SwNodeType nNdTyp=SwNodeType::NONE) const
SwFootnoteIdxs & GetFootnoteIdxs()
IDocumentMarkAccess * getIDocumentMarkAccess()
void SetVBATemplateToProjectCache(css::uno::Reference< css::container::XNameContainer > const &xCache)
const SwFormatRefMark * GetRefMark(std::u16string_view rName) const
SwTableFormat & GetTableFrameFormat(size_t nFormat, bool bUsed) const
const css::uno::Reference< css::container::XNameContainer > & GetVBATemplateToProjectCache() const
const sw::FrameFormats< sw::SpzFrameFormat * > * GetSpzFrameFormats() const
SwDocShell * GetDocShell()
Instances of SwFields and those derived from it occur 0 to n times.
Marks a node in the document model.
const SwNodes & GetNodes() const
SwNodeOffset GetIndex() const
Base class of the Writer document model elements.
bool IsNoTextNode() const
bool IsDocNodes() const
Is the NodesArray the regular one of Doc? (and not the UndoNds, ...) Implementation in doc....
const OUString & GetSectionName() const
const SwFormatFootnote & GetFootnote() const
static bool isTextBox(const SwFrameFormat *pFormat, sal_uInt16 nType, const SdrObject *pObject=nullptr)
Is the frame format a text box?
virtual void Invalidate()
static rtl::Reference< SwXBookmark > CreateXBookmark(SwDoc &rDoc, ::sw::mark::IMark *pBookmark)
SwXBookmarks(SwDoc *pDoc)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual ~SwXBookmarks() override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Int32 SAL_CALL getCount() override
static rtl::Reference< SwXContentControl > CreateXContentControl(SwContentControl &rContentControl, const css::uno::Reference< css::text::XText > &xParentText=nullptr, std::unique_ptr< const TextRangeList_t > &&pPortions=std::unique_ptr< const TextRangeList_t >())
static rtl::Reference< SwXDocumentIndexMark > CreateXDocumentIndexMark(SwDoc &rDoc, SwTOXMark *pMark, TOXTypes eType=TOX_INDEX)
static rtl::Reference< SwXDocumentIndex > CreateXDocumentIndex(SwDoc &rDoc, SwTOXBaseSection *pSection, TOXTypes eTypes=TOX_INDEX)
static rtl::Reference< SwXFieldMaster > CreateXFieldMaster(SwDoc *pDoc, SwFieldType *pType, SwFieldIds nResId=SwFieldIds::Unknown)
static rtl::Reference< SwXBookmark > CreateXFieldmark(SwDoc &rDoc, ::sw::mark::IMark *pMark, bool isReplacementObject=false)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
SwXFrames(SwDoc *pDoc, FlyCntType eSet)
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual ~SwXFrames() override
virtual sal_Int32 SAL_CALL getCount() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
static rtl::Reference< SwXLineBreak > CreateXLineBreak(SwFormatLineBreak *pLineBreakFormat)
SwXNumberingRulesCollection(SwDoc *pDoc)
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual sal_Bool SAL_CALL hasElements() override
virtual ~SwXNumberingRulesCollection() override
static rtl::Reference< SwXParagraph > CreateXParagraph(SwDoc &rDoc, SwTextNode *pTextNode, css::uno::Reference< css::text::XText > const &xParentText=nullptr, const sal_Int32 nSelStart=-1, const sal_Int32 nSelEnd=- 1)
static rtl::Reference< SwXReferenceMark > CreateXReferenceMark(SwDoc &rDoc, SwFormatRefMark *pMarkFormat)
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual ~SwXReferenceMarks() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Int32 SAL_CALL getCount() override
virtual sal_Bool SAL_CALL hasElements() override
SwXReferenceMarks(SwDoc *pDoc)
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
static SwServiceType GetProviderType(std::u16string_view rServiceName)
static css::uno::Sequence< OUString > GetAllServiceNames()
static css::uno::Reference< css::uno::XInterface > MakeInstance(SwServiceType nObjectType, SwDoc &rDoc)
static OUString GetProviderName(SwServiceType nObjectType)
static css::uno::Reference< css::style::XStyle > CreateStyle(SfxStyleFamily eFamily, SwDoc &rDoc)
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph(SwDoc &rDoc)
static rtl::Reference< SwXTextEmbeddedObject > CreateXTextEmbeddedObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
virtual OUString SAL_CALL getImplementationName() override
SwXTextEmbeddedObjects(SwDoc *pDoc)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~SwXTextEmbeddedObjects() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static rtl::Reference< SwXTextField > CreateXTextField(SwDoc *pDoc, SwFormatField const *pFormat, SwServiceType nServiceId=SwServiceType::Invalid)
static SW_DLLPUBLIC rtl::Reference< SwXTextFrame > CreateXTextFrame(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
virtual OUString SAL_CALL getImplementationName() override
SwXTextFrames(SwDoc *pDoc)
virtual ~SwXTextFrames() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static rtl::Reference< SwXTextGraphicObject > CreateXTextGraphicObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
SwXTextGraphicObjects(SwDoc *pDoc)
virtual ~SwXTextGraphicObjects() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static rtl::Reference< SwXTextSection > CreateXTextSection(SwSectionFormat *const pFormat, const bool bIndexHeader=false)
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
static css::uno::Reference< css::text::XTextSection > GetObject(SwSectionFormat &rFormat)
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
SwXTextSections(SwDoc *pDoc)
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~SwXTextSections() override
virtual sal_Int32 SAL_CALL getCount() override
static rtl::Reference< SwXTextTable > CreateXTextTable(SwFrameFormat *pFrameFormat)
virtual css::uno::Type SAL_CALL getElementType() override
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static css::uno::Reference< css::text::XTextTable > GetObject(SwFrameFormat &rFormat)
SwXTextTables(SwDoc *pDoc)
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual ~SwXTextTables() override
virtual sal_Int32 SAL_CALL getCount() 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
css::uno::Type const & get()
const EnumerationType m_eType
@ Database
For old documents the Field-Which IDs must be preserved !!!
constexpr TypedWhichId< SwFlyFrameFormat > RES_FLYFRMFMT(162)
std::unordered_map< OUString, OUString > StringHashMap
Sequence< sal_Int8 > aSeq
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
#define SAL_N_ELEMENTS(arr)
css::uno::Sequence< typename M::key_type > mapKeysToSequence(M const &map)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
bool equalsAscii(std::u16string_view s1, std::string_view s2)
bool isAlienWordDoc(SfxObjectShell const &rDocShell)
css::uno::Reference< css::uno::XInterface > createVBAUnoAPIServiceWithArgs(SfxObjectShell const *pShell, const char *_pAsciiName, const css::uno::Sequence< css::uno::Any > &aArgs)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
const SvEventDescription * sw_GetSupportedMacroItems()
const ProvNamesId_Type aProvNamesId[]
#define CSS_TEXT_TEXTFIELD_PAGE_COUNT
#define CSS_TEXT_TEXTFIELD_DATABASE_NEXT_SET
#define CSS_TEXT_TEXTFIELD_BIBLIOGRAPHY
#define CSS_TEXT_TEXTFIELD_MACRO
#define CSS_TEXT_TEXTFIELD_HIDDEN_PARAGRAPH
#define CSS_TEXT_FIELDMASTER_USER
#define CSS_TEXT_FIELDMASTER_DATABASE
SwServiceType
entries in this enum are mapped in an array in unocoll.cxx
@ FieldTypeConditionedText
@ FieldTypeDatabaseNumSet
@ FieldTypeGraphicObjectCount
@ FieldMasterBibliography
@ FieldTypeParagraphCount
@ StyleConditionalParagraph
@ FieldTypeDocInfoRevision
@ FieldTypeDatabaseNextSet
@ FieldTypeDocInfoPrintAuthor
@ FieldTypeDocInfoCreateDateTime
@ FieldTypeDocInfoKeywords
@ FieldTypeDocInfoSubject
@ FieldTypeDocInfoDescription
@ FieldTypeCharacterCount
@ FieldTypeDocInfoChangeAuthor
@ FieldTypeEmbeddedObjectCount
@ FieldTypeDocInfoEditTime
@ FieldTypeCombinedCharacters
@ FieldTypeDocInfoCreateAuthor
@ FieldTypeDocInfoPrintDateTime
@ FieldTypeDatabaseSetNum
@ FieldTypeDocInfoChangeDateTime
#define CSS_TEXT_TEXTFIELD_TABLE_COUNT
#define CSS_TEXT_TEXTFIELD_ANNOTATION
#define CSS_TEXT_TEXTFIELD_CONDITIONAL_TEXT
#define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_DATE_TIME
#define CSS_TEXT_TEXTFIELD_INPUT
#define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_DATE_TIME
#define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_SET
#define CSS_TEXT_TEXTFIELD_DATABASE_SET_NUMBER
#define CSS_TEXT_TEXTFIELD_PAGE_NUMBER
#define CSS_TEXT_FIELDMASTER_SET_EXPRESSION
#define CSS_TEXT_FIELDMASTER_BIBLIOGRAPHY
#define CSS_TEXT_TEXTFIELD_TEMPLATE_NAME
#define CSS_TEXT_TEXTFIELD_DOCINFO_DESCRIPTION
#define CSS_TEXT_TEXTFIELD_HIDDEN_TEXT
#define CSS_TEXT_TEXTFIELD_TABLE_FORMULA
#define CSS_TEXT_TEXTFIELD_DOCINFO_KEY_WORDS
#define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_AUTHOR
#define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_GET
#define CSS_TEXT_TEXTFIELD_DOCINFO_EDIT_TIME
#define CSS_TEXT_TEXTFIELD_GET_EXPRESSION
#define CSS_TEXT_TEXTFIELD_SCRIPT
#define CSS_TEXT_TEXTFIELD_DOCINFO_REVISION
#define CSS_TEXT_TEXTFIELD_FILE_NAME
#define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_AUTHOR
#define CSS_TEXT_TEXTFIELD_GRAPHIC_OBJECT_COUNT
#define CSS_TEXT_TEXTFIELD_EMBEDDED_OBJECT_COUNT
#define CSS_TEXT_TEXTFIELD_DATABASE_NUMBER_OF_SET
#define CSS_TEXT_TEXTFIELD_CHARACTER_COUNT
#define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_AUTHOR
#define CSS_TEXT_TEXTFIELD_WORD_COUNT
#define CSS_TEXT_TEXTFIELD_DROP_DOWN
#define CSS_TEXT_TEXTFIELD_DATABASE_NAME
#define CSS_TEXT_TEXTFIELD_DOCINFO_TITLE
#define CSS_TEXT_TEXTFIELD_DOCINFO_CUSTOM
#define CSS_TEXT_TEXTFIELD_DOCINFO_SUBJECT
#define CSS_TEXT_TEXTFIELD_DATE_TIME
#define CSS_TEXT_TEXTFIELD_CHAPTER
#define CSS_TEXT_TEXTFIELD_JUMP_EDIT
#define CSS_TEXT_TEXTFIELD_DATABASE
#define CSS_TEXT_TEXTFIELD_COMBINED_CHARACTERS
#define CSS_TEXT_FIELDMASTER_DDE
#define CSS_TEXT_TEXTFIELD_GET_REFERENCE
#define CSS_TEXT_TEXTFIELD_AUTHOR
#define CSS_TEXT_TEXTFIELD_PARAGRAPH_COUNT
#define CSS_TEXT_TEXTFIELD_INPUT_USER
#define CSS_TEXT_TEXTFIELD_USER
#define CSS_TEXT_TEXTFIELD_SET_EXPRESSION
#define CSS_TEXT_TEXTFIELD_EXTENDED_USER
#define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_DATE_TIME
#define CSS_TEXT_TEXTFIELD_DDE
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapCircleObject_createInstance(const SvEventDescription *pSupportedMacroItems)
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapPolygonObject_createInstance(const SvEventDescription *pSupportedMacroItems)
SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapRectangleObject_createInstance(const SvEventDescription *pSupportedMacroItems)