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;
481 if(
static_cast<sal_uInt16
>(nObjectType) < nEntries)
482 sRet = OUString::createFromAscii(
aProvNamesId[
static_cast<sal_uInt16
>(nObjectType)].
pName);
489 uno::Sequence<OUString> aRet(nEntries);
490 OUString* pArray = aRet.getArray();
494 OUString sProv(OUString::createFromAscii(
i.pName));
516uno::Reference<uno::XInterface>
520 uno::Reference< uno::XInterface > xRet;
561#if HAVE_FEATURE_SCRIPTING
568#if HAVE_FEATURE_SCRIPTING
578#if HAVE_FEATURE_SCRIPTING
584 xProjProv =
new SwVbaProjectNameProvider;
592#if HAVE_FEATURE_SCRIPTING
596 if (pBasicMan && !pBasicMan->GetGlobalUNOConstant(
"VBAGlobals", aGlobs))
599 aGlobs <<= ::comphelper::getProcessServiceFactory()->createInstanceWithArguments(
"ooo.vba.word.Globals", aArgs );
600 pBasicMan->SetGlobalUNOConstant(
"VBAGlobals", aGlobs );
679 eFamily = SfxStyleFamily::Para;
682 eFamily = SfxStyleFamily::Para;
686 eFamily = SfxStyleFamily::Frame;
689 eFamily = SfxStyleFamily::Page;
692 eFamily = SfxStyleFamily::Pseudo;
695 eFamily = SfxStyleFamily::Table;
698 eFamily = SfxStyleFamily::Cell;
822 "not creating chart data provider for embedded object");
838 throw uno::RuntimeException();
869 throw uno::RuntimeException();
872 throw IndexOutOfBoundsException();
875 size_t nIndex =
static_cast<size_t>(nInputIndex);
876 size_t nCurrentIndex = 0;
880 if (!pFormat->GetInfo(aGetHt))
882 if (nCurrentIndex ==
nIndex)
892 throw IndexOutOfBoundsException();
900 throw uno::RuntimeException();
903 uno::Reference< XTextTable > xTable;
907 if (rItemName == rFormat.
GetName())
915 throw NoSuchElementException();
924 throw uno::RuntimeException();
926 uno::Sequence<OUString>
aSeq(
static_cast<sal_Int32
>(
nCount));
929 OUString* pArray =
aSeq.getArray();
945 throw uno::RuntimeException();
951 if (rName == rFormat.
GetName())
970 throw uno::RuntimeException();
976 return "SwXTextTables";
986 return {
"com.sun.star.text.TextTables" };
996 template<FlyCntType T>
struct UnoFrameWrap_traits {};
1003 uno::Reference<text::XTextFrame>
const xRet(
1015 uno::Reference<text::XTextContent>
const xRet(
1027 uno::Reference<text::XTextContent>
const xRet(
1034 template<FlyCntType T>
1037 return UnoFrameWrap_traits<T>::wrapFrame(*pFormat);
1047 return lcl_UnoWrapFrame<FLYCNTTYPE_FRM>(pFormat);
1049 return lcl_UnoWrapFrame<FLYCNTTYPE_GRF>(pFormat);
1051 return lcl_UnoWrapFrame<FLYCNTTYPE_OLE>(pFormat);
1053 throw uno::RuntimeException();
1057 template<FlyCntType T>
1058 class SwXFrameEnumeration
1062 std::vector< Any > m_aFrames;
1064 virtual ~SwXFrameEnumeration()
override {};
1066 SwXFrameEnumeration(
const SwDoc& rDoc);
1069 virtual sal_Bool SAL_CALL hasMoreElements()
override;
1070 virtual Any SAL_CALL nextElement()
override;
1079template<FlyCntType T>
1080SwXFrameEnumeration<T>::SwXFrameEnumeration(
const SwDoc& rDoc)
1084 if (pFormats->
empty())
1087 const size_t nSize = pFormats->
size();
1090 for(
size_t i = 0;
i < nSize; ++
i )
1093 pFormat = (*pFormats)[
i];
1096 const SwNodeIndex* pIdx = pFormat->GetContent().GetContentIdx();
1100 if(UnoFrameWrap_traits<T>::filter(pNd))
1101 m_aFrames.push_back(lcl_UnoWrapFrame<T>(pFormat));
1105template<FlyCntType T>
1106sal_Bool SwXFrameEnumeration<T>::hasMoreElements()
1109 return !m_aFrames.empty();
1112template<FlyCntType T>
1113Any SwXFrameEnumeration<T>::nextElement()
1116 if(m_aFrames.empty())
1117 throw NoSuchElementException();
1119 Any aResult = m_aFrames.back();
1120 m_aFrames.pop_back();
1124template<FlyCntType T>
1125OUString SwXFrameEnumeration<T>::getImplementationName()
1127 return "SwXFrameEnumeration";
1130template<FlyCntType T>
1131sal_Bool SwXFrameEnumeration<T>::supportsService(
const OUString& ServiceName)
1136template<FlyCntType T>
1137Sequence< OUString > SwXFrameEnumeration<T>::getSupportedServiceNames()
1139 return { OUString(
"com.sun.star.container.XEnumeration") };
1154 return { OUString(
"com.sun.star.text.TextFrames") };
1169 throw uno::RuntimeException();
1173 return uno::Reference< container::XEnumeration >(
1174 new SwXFrameEnumeration<FLYCNTTYPE_FRM>(*
GetDoc()));
1176 return uno::Reference< container::XEnumeration >(
1177 new SwXFrameEnumeration<FLYCNTTYPE_GRF>(*
GetDoc()));
1179 return uno::Reference< container::XEnumeration >(
1180 new SwXFrameEnumeration<FLYCNTTYPE_OLE>(*
GetDoc()));
1182 throw uno::RuntimeException();
1190 throw uno::RuntimeException();
1199 throw uno::RuntimeException();
1201 throw IndexOutOfBoundsException();
1205 throw IndexOutOfBoundsException();
1206 return lcl_UnoWrapFrame(pFormat,
m_eType);
1213 throw uno::RuntimeException();
1228 throw NoSuchElementException();
1236 throw uno::RuntimeException();
1238 std::vector<OUString> vNames;
1239 while(xEnum->hasMoreElements())
1241 Reference<container::XNamed> xNamed;
1242 xEnum->nextElement() >>= xNamed;
1244 vNames.push_back(xNamed->getName());
1246 return ::comphelper::containerToSequence(vNames);
1253 throw uno::RuntimeException();
1285 throw uno::RuntimeException();
1292 return "SwXTextFrames";
1302 return {
"com.sun.star.text.TextFrames" };
1316 return "SwXTextGraphicObjects";
1326 return {
"com.sun.star.text.TextGraphicObjects" };
1340 return "SwXTextEmbeddedObjects";
1350 return {
"com.sun.star.text.TextEmbeddedObjects" };
1364 return "SwXTextSections";
1374 return {
"com.sun.star.text.TextSections" };
1390 throw uno::RuntimeException();
1395 if( !rSectFormats[
i - 1]->IsInNodesArr())
1404 uno::Reference< XTextSection > xRet;
1406 throw uno::RuntimeException();
1414 if( !rSectFormats[
i]->IsInNodesArr())
1416 else if(
static_cast<size_t>(
nIndex) ==
i)
1418 if(
static_cast<size_t>(
nIndex) ==
i)
1422 throw IndexOutOfBoundsException();
1435 throw uno::RuntimeException();
1438 uno::Reference< XTextSection > xSect;
1439 for(
size_t i = 0;
i < rFormats.
size(); ++
i)
1451 throw NoSuchElementException();
1460 throw uno::RuntimeException();
1465 if( !rSectFormats[
i - 1]->IsInNodesArr())
1473 OUString* pArray =
aSeq.getArray();
1480 pFormat = rFormats[++
nIndex];
1495 for(
size_t i = 0;
i < rFormats.
size(); ++
i)
1508 if( !rName.startsWith(
"dbg_"))
1509 throw uno::RuntimeException();
1524 throw uno::RuntimeException();
1539 return "SwXBookmarks";
1549 return {
"com.sun.star.text.Bookmarks" };
1563 throw uno::RuntimeException();
1584 throw uno::RuntimeException();
1587 throw IndexOutOfBoundsException();
1600 const uno::Reference< text::XTextContent > xRef =
1608 throw IndexOutOfBoundsException();
1615 throw uno::RuntimeException();
1620 throw NoSuchElementException();
1623 const uno::Reference< text::XTextContent > xRef =
1633 throw uno::RuntimeException();
1635 std::vector< OUString > ret;
1644 ret.push_back((*ppMark)->GetName());
1654 throw uno::RuntimeException();
1669 throw uno::RuntimeException();
1698 throw uno::RuntimeException();
1707 throw uno::RuntimeException();
1709 uno::Reference< XIndexReplace > xRef;
1717 throw IndexOutOfBoundsException();
1731 throw uno::RuntimeException();
1737 return "SwXFootnotes";
1747 return {
"com.sun.star.text.Footnotes" };
1764 throw uno::RuntimeException();
1768 for(
size_t n = 0;
n < nFootnoteCnt; ++
n )
1785 throw uno::RuntimeException();
1789 uno::Reference< XFootnote > xRef;
1790 for(
size_t n = 0;
n < nFootnoteCnt; ++
n )
1807 throw IndexOutOfBoundsException();
1821 throw uno::RuntimeException();
1832 return "SwXReferenceMarks";
1842 return {
"com.sun.star.text.ReferenceMarks" };
1858 throw uno::RuntimeException();
1867 throw uno::RuntimeException();
1868 uno::Reference< XTextContent > xRef;
1880 throw IndexOutOfBoundsException();
1889 throw uno::RuntimeException();
1894 throw NoSuchElementException();
1896 uno::Reference<XTextContent>
const xRef =
1906 uno::Sequence<OUString> aRet;
1908 throw uno::RuntimeException();
1910 std::vector<OUString> aStrings;
1913 OUString* pNames = aRet.getArray();
1915 pNames[
i] = aStrings[
i];
1924 throw uno::RuntimeException();
1937 throw uno::RuntimeException();
SVXCORE_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvxXTextColumns_createInstance() noexcept
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
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
const css::uno::Reference< css::container::XNameContainer > & GetVBATemplateToProjectCache() const
const SwFrameFormats * GetSpzFrameFormats() const
SwFrameFormat & GetTableFrameFormat(size_t nFormat, bool bUsed) const
const SwFrameFormats * GetTableFrameFormats() 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(156)
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, const char *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)