20 #include <config_features.h>
29 #include <section.hxx>
34 #include <com/sun/star/text/XTextTable.hpp>
40 #include <unofield.hxx>
60 #include <com/sun/star/document/XCodeNameQuery.hpp>
61 #include <com/sun/star/drawing/XDrawPageSupplier.hpp>
62 #include <com/sun/star/form/XFormsSupplier.hpp>
63 #include <com/sun/star/script/ModuleInfo.hpp>
64 #include <com/sun/star/script/ModuleType.hpp>
65 #include <com/sun/star/script/vba/XVBAModuleInfo.hpp>
66 #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
81 #if HAVE_FEATURE_SCRIPTING
85 class SwVbaCodeNameProvider :
public ::cppu::WeakImplHelper< document::XCodeNameQuery >
88 OUString msThisDocumentCodeName;
90 explicit SwVbaCodeNameProvider(
SwDocShell* pDocShell ) : mpDocShell( pDocShell ) {}
93 OUString SAL_CALL getCodeNameForContainer(
const uno::Reference< uno::XInterface >& )
override
99 OUString SAL_CALL getCodeNameForObject(
const uno::Reference< uno::XInterface >& xIf )
override
102 if ( msThisDocumentCodeName.isEmpty() )
106 uno::Reference< beans::XPropertySet > xProps( mpDocShell->
GetModel(), uno::UNO_QUERY_THROW );
107 uno::Reference< container::XNameAccess > xLibContainer( xProps->getPropertyValue(
"BasicLibraries"), uno::UNO_QUERY_THROW );
108 OUString sProjectName(
"Standard");
113 uno::Reference< container::XNameAccess > xLib( xLibContainer->getByName( sProjectName ), uno::UNO_QUERY_THROW );
114 uno::Sequence< OUString > sModuleNames = xLib->getElementNames();
115 uno::Reference< script::vba::XVBAModuleInfo > xVBAModuleInfo( xLib, uno::UNO_QUERY );
117 auto pModuleName = std::find_if(sModuleNames.begin(), sModuleNames.end(), [&xVBAModuleInfo](
const OUString& rName) {
118 return xVBAModuleInfo->hasModuleInfo(rName)
119 && xVBAModuleInfo->getModuleInfo(rName).ModuleType == script::ModuleType::DOCUMENT; });
120 if (pModuleName != sModuleNames.end())
121 msThisDocumentCodeName = *pModuleName;
123 catch( uno::Exception& )
131 uno::Reference< drawing::XDrawPageSupplier > xSupplier( mpDocShell->
GetModel(), uno::UNO_QUERY_THROW );
132 uno::Reference< container::XIndexAccess > xIndex( xSupplier->getDrawPage(), uno::UNO_QUERY_THROW );
136 uno::Reference< form::XFormsSupplier > xFormSupplier( xIndex, uno::UNO_QUERY_THROW );
137 uno::Reference< container::XIndexAccess > xFormIndex( xFormSupplier->getForms(), uno::UNO_QUERY_THROW );
139 uno::Reference< container::XIndexAccess > xFormControls( xFormIndex->getByIndex(0), uno::UNO_QUERY_THROW );
140 sal_Int32 nCntrls = xFormControls->getCount();
141 for( sal_Int32 cIndex = 0; cIndex < nCntrls; ++cIndex )
143 uno::Reference< uno::XInterface > xControl( xFormControls->getByIndex( cIndex ), uno::UNO_QUERY_THROW );
144 bool bMatched = ( xControl == xIf );
147 sCodeName = msThisDocumentCodeName;
152 catch( uno::Exception& )
163 typedef std::unordered_map< OUString, OUString >
StringHashMap;
167 class SwVbaProjectNameProvider :
public ::cppu::WeakImplHelper< container::XNameContainer >
169 StringHashMap mTemplateToProject;
171 SwVbaProjectNameProvider()
174 virtual sal_Bool SAL_CALL hasByName(
const OUString& aName )
override
176 return ( mTemplateToProject.find( aName ) != mTemplateToProject.end() );
178 virtual css::uno::Any SAL_CALL getByName(
const OUString& aName )
override
180 if ( !hasByName( aName ) )
181 throw container::NoSuchElementException();
182 return uno::makeAny( mTemplateToProject.find( aName )->second );
184 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( )
override
189 virtual void SAL_CALL insertByName(
const OUString& aName,
const uno::Any& aElement )
override
192 OUString sProjectName;
193 aElement >>= sProjectName;
194 SAL_INFO(
"sw.uno",
"Template cache inserting template name " << aName
195 <<
" with project " << sProjectName);
196 mTemplateToProject[ aName ] = sProjectName;
199 virtual void SAL_CALL removeByName(
const OUString& Name )
override
201 if ( !hasByName( Name ) )
202 throw container::NoSuchElementException();
203 mTemplateToProject.erase( Name );
205 virtual void SAL_CALL replaceByName(
const OUString& aName,
const uno::Any& aElement )
override
207 if ( !hasByName( aName ) )
208 throw container::NoSuchElementException();
209 insertByName( aName, aElement );
212 virtual css::uno::Type SAL_CALL getElementType( )
override
216 virtual sal_Bool SAL_CALL hasElements( )
override
219 return ( !mTemplateToProject.empty() );
224 class SwVbaObjectForCodeNameProvider :
public ::cppu::WeakImplHelper< container::XNameAccess >
228 explicit SwVbaObjectForCodeNameProvider(
SwDocShell* pDocShell ) : mpDocShell( pDocShell )
233 virtual sal_Bool SAL_CALL hasByName(
const OUString& aName )
override
237 if ( aName ==
"ThisDocument" )
242 css::uno::Any SAL_CALL getByName(
const OUString& aName )
override
244 if ( !hasByName( aName ) )
245 throw container::NoSuchElementException();
246 uno::Sequence< uno::Any > aArgs( 2 );
247 aArgs[0] <<= uno::Reference< uno::XInterface >();
248 aArgs[1] <<= mpDocShell->
GetModel();
251 "Creating Object ( ooo.vba.word.Document ) 0x" << xDocObj.get());
252 return uno::makeAny( xDocObj );
254 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( )
override
256 uno::Sequence< OUString > aNames;
260 virtual css::uno::Type SAL_CALL getElementType( )
override {
return uno::Type(); }
261 virtual sal_Bool SAL_CALL hasElements( )
override {
return true; }
271 struct ProvNamesId_Type
463 { SvMacroItemId::OnMouseOver,
"OnMouseOver" },
464 { SvMacroItemId::OnMouseOut,
"OnMouseOut" },
465 { SvMacroItemId::NONE,
nullptr }
468 return aMacroDescriptionsImpl;
476 if(static_cast<sal_uInt16>(nObjectType) < nEntries)
477 sRet = OUString::createFromAscii(aProvNamesId[static_cast<sal_uInt16>(nObjectType)].
pName);
484 uno::Sequence<OUString> aRet(nEntries);
485 OUString* pArray = aRet.getArray();
487 for(
const ProvNamesId_Type &
i : aProvNamesId)
489 OUString sProv(OUString::createFromAscii(
i.pName));
503 for(
const ProvNamesId_Type &
i : aProvNamesId)
505 if (rServiceName.equalsAscii(
i.pName))
511 uno::Reference<uno::XInterface>
515 uno::Reference< uno::XInterface > xRet;
556 #if HAVE_FEATURE_SCRIPTING
563 #if HAVE_FEATURE_SCRIPTING
573 #if HAVE_FEATURE_SCRIPTING
579 xProjProv =
new SwVbaProjectNameProvider;
587 #if HAVE_FEATURE_SCRIPTING
593 uno::Sequence< uno::Any > aArgs(1);
595 aGlobs <<= ::comphelper::getProcessServiceFactory()->createInstanceWithArguments(
"ooo.vba.word.Globals", aArgs );
675 eFamily = SfxStyleFamily::Para;
678 eFamily = SfxStyleFamily::Para;
682 eFamily = SfxStyleFamily::Frame;
685 eFamily = SfxStyleFamily::Page;
688 eFamily = SfxStyleFamily::Pseudo;
691 eFamily = SfxStyleFamily::Table;
694 eFamily = SfxStyleFamily::Cell;
818 "not creating chart data provider for embedded object");
828 throw uno::RuntimeException();
859 throw uno::RuntimeException();
862 throw IndexOutOfBoundsException();
865 size_t nIndex =
static_cast<size_t>(nInputIndex);
866 size_t nCurrentIndex = 0;
870 if (!pFormat->GetInfo(aGetHt))
872 if (nCurrentIndex == nIndex)
882 throw IndexOutOfBoundsException();
890 throw uno::RuntimeException();
893 uno::Reference< XTextTable > xTable;
894 for(
size_t i = 0;
i < nCount; ++
i)
897 if (rItemName == rFormat.
GetName())
905 throw NoSuchElementException();
914 throw uno::RuntimeException();
916 uno::Sequence<OUString>
aSeq(static_cast<sal_Int32>(nCount));
919 OUString* pArray = aSeq.getArray();
920 for(
size_t i = 0;
i < nCount; ++
i)
935 throw uno::RuntimeException();
938 for(
size_t i = 0;
i < nCount; ++
i)
941 if (rName == rFormat.
GetName())
960 throw uno::RuntimeException();
966 return "SwXTextTables";
976 return {
"com.sun.star.text.TextTables" };
986 template<FlyCntType T>
struct UnoFrameWrap_traits {};
993 uno::Reference<text::XTextFrame>
const xRet(
995 return uno::makeAny(xRet);
1005 uno::Reference<text::XTextContent>
const xRet(
1007 return uno::makeAny(xRet);
1017 uno::Reference<text::XTextContent>
const xRet(
1019 return uno::makeAny(xRet);
1024 template<FlyCntType T>
1027 return UnoFrameWrap_traits<T>::wrapFrame(*pFormat);
1037 return lcl_UnoWrapFrame<FLYCNTTYPE_FRM>(pFormat);
1039 return lcl_UnoWrapFrame<FLYCNTTYPE_GRF>(pFormat);
1041 return lcl_UnoWrapFrame<FLYCNTTYPE_OLE>(pFormat);
1043 throw uno::RuntimeException();
1047 template<FlyCntType T>
1048 class SwXFrameEnumeration
1052 std::vector< Any > m_aFrames;
1054 virtual ~SwXFrameEnumeration()
override {};
1056 SwXFrameEnumeration(
const SwDoc& rDoc);
1059 virtual sal_Bool SAL_CALL hasMoreElements()
override;
1060 virtual Any SAL_CALL nextElement()
override;
1069 template<FlyCntType T>
1070 SwXFrameEnumeration<T>::SwXFrameEnumeration(
const SwDoc& rDoc)
1075 if (pFormats->
empty())
1078 const size_t nSize = pFormats->
size();
1081 for(
size_t i = 0;
i < nSize; ++
i )
1084 pFormat = (*pFormats)[
i];
1087 const SwNodeIndex* pIdx = pFormat->GetContent().GetContentIdx();
1091 if(UnoFrameWrap_traits<T>::filter(pNd))
1092 m_aFrames.push_back(lcl_UnoWrapFrame<T>(pFormat));
1096 template<FlyCntType T>
1097 sal_Bool SwXFrameEnumeration<T>::hasMoreElements()
1100 return !m_aFrames.empty();
1103 template<FlyCntType T>
1104 Any SwXFrameEnumeration<T>::nextElement()
1107 if(m_aFrames.empty())
1108 throw NoSuchElementException();
1110 Any aResult = m_aFrames.back();
1111 m_aFrames.pop_back();
1115 template<FlyCntType T>
1116 OUString SwXFrameEnumeration<T>::getImplementationName()
1118 return "SwXFrameEnumeration";
1121 template<FlyCntType T>
1122 sal_Bool SwXFrameEnumeration<T>::supportsService(
const OUString& ServiceName)
1127 template<FlyCntType T>
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();
1220 return lcl_UnoWrapFrame(const_cast<SwFrameFormat*>(pFormat),
m_eType);
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();
1384 for(
size_t i = nCount;
i; --
i)
1386 if( !rSectFormats[
i - 1]->IsInNodesArr())
1395 uno::Reference< XTextSection > xRet;
1397 throw uno::RuntimeException();
1403 for(
size_t i = 0;
i < nCount; ++
i)
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();
1454 for(
size_t i = nCount;
i; --
i)
1456 if( !rSectFormats[
i - 1]->IsInNodesArr())
1460 uno::Sequence<OUString>
aSeq(nCount);
1464 OUString* pArray = aSeq.getArray();
1466 for(
size_t i = 0;
i < nCount; ++
i, ++nIndex)
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();
1518 nCount = rFormats.
size();
1530 return "SwXBookmarks";
1540 return {
"com.sun.star.text.Bookmarks" };
1554 throw uno::RuntimeException();
1575 throw uno::RuntimeException();
1578 throw IndexOutOfBoundsException();
1588 if (count == nIndex)
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 )
1788 if(nCount == nIndex)
1791 &const_cast<SwFormatFootnote&>(rFootnote));
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;
1903 aRet.realloc(nCount);
1904 OUString* pNames = aRet.getArray();
1905 for(sal_uInt16
i = 0;
i < nCount;
i++)
1906 pNames[
i] = aStrings[
i];
1915 throw uno::RuntimeException();
1928 throw uno::RuntimeException();
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
#define CSS_TEXT_TEXTFIELD_DOCINFO_KEY_WORDS
SwXTextEmbeddedObjects(SwDoc *pDoc)
Instances of SwFields and those derived from it occur 0 to n times.
#define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_DATE_TIME
#define CSS_TEXT_TEXTFIELD_EXTENDED_USER
virtual sal_Bool SAL_CALL hasElements() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Bool SAL_CALL hasElements() override
const size_t count(pCandidateA->getBorderLines().size())
static css::uno::Reference< css::text::XTextTable > CreateXTextTable(SwFrameFormat *pFrameFormat)
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
#define CSS_TEXT_FIELDMASTER_DDE
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define CSS_TEXT_TEXTFIELD_CHARACTER_COUNT
const SwFormatRefMark * GetRefMark(std::u16string_view rName) const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
#define CSS_TEXT_TEXTFIELD_CONDITIONAL_TEXT
#define CSS_TEXT_TEXTFIELD_CHAPTER
SwDocShell * GetDocShell()
#define CSS_TEXT_TEXTFIELD_EMBEDDED_OBJECT_COUNT
const SwFrameFormats * GetTableFrameFormats() const
virtual OUString SAL_CALL getImplementationName() override
#define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_DATE_TIME
virtual SwFieldType * GetFieldType(SwFieldIds nResId, const OUString &rName, bool bDbFieldMatching) const =0
virtual sal_Int32 getBookmarksCount() const =0
returns the number of IBookmarks.
virtual ~SwXNumberingRulesCollection() override
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static css::uno::Reference< css::text::XTextContent > 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 SW_DLLPUBLIC MarkType GetType(const ::sw::mark::IMark &rMark)
Returns the MarkType used to create the mark.
virtual OUString SAL_CALL getImplementationName() override
Reference< XInterface > SvUnoImageMapRectangleObject_createInstance(const SvEventDescription *pSupportedMacroItems)
Provides access to the marks of a document.
Reference< XInterface > SvUnoImageMapCircleObject_createInstance(const SvEventDescription *pSupportedMacroItems)
static css::uno::Reference< css::style::XStyle > CreateStyleCondParagraph(SwDoc &rDoc)
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
#define CSS_TEXT_TEXTFIELD_DOCINFO_REVISION
#define CSS_TEXT_TEXTFIELD_TABLE_COUNT
virtual ~SwXBookmarks() override
#define CSS_TEXT_FIELDMASTER_BIBLIOGRAPHY
#define CSS_TEXT_TEXTFIELD_WORD_COUNT
#define CSS_TEXT_TEXTFIELD_TABLE_FORMULA
std::unordered_map< OUString, OUString > StringHashMap
IDocumentMarkAccess * getIDocumentMarkAccess()
css::uno::Reference< css::frame::XModel > GetModel() const
static css::uno::Reference< css::text::XTextField > CreateXTextField(SwDoc *pDoc, SwFormatField const *pFormat, SwServiceType nServiceId=SwServiceType::Invalid)
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
For old documents the Field-Which IDs must be preserved !!!
virtual css::uno::Type SAL_CALL getElementType() override
const SwFrameFormats * GetSpzFrameFormats() const
#define CSS_TEXT_TEXTFIELD_INPUT_USER
#define CSS_TEXT_FIELDMASTER_SET_EXPRESSION
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
constexpr TypedWhichId< SwFlyFrameFormat > RES_FLYFRMFMT(156)
static css::uno::Reference< css::text::XTextSection > CreateXTextSection(SwSectionFormat *const pFormat, const bool bIndexHeader=false)
virtual ~SwXTextFrames() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
#define CSS_TEXT_TEXTFIELD_DATABASE_NAME
IDocumentFieldsAccess const & getIDocumentFieldsAccess() const
#define CSS_TEXT_TEXTFIELD_DATE_TIME
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual sal_Int32 SAL_CALL getCount() override
sal_uLong GetIndex() const
#define CSS_TEXT_TEXTFIELD_DATABASE_NEXT_SET
static bool isTextBox(const SwFrameFormat *pFormat, sal_uInt16 nType)
Is the frame format a text box?
#define CSS_TEXT_TEXTFIELD_USER
#define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_DATE_TIME
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
static css::uno::Reference< css::text::XTextContent > CreateXFieldmark(SwDoc &rDoc,::sw::mark::IMark *pMark, bool isReplacementObject=false)
css::uno::Reference< css::uno::XInterface > createVBAUnoAPIServiceWithArgs(SfxObjectShell const *pShell, const char *_pAsciiName, const css::uno::Sequence< css::uno::Any > &aArgs)
#define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_AUTHOR
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
SwFrameFormat * GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes=false)
SfxObjectCreateMode GetCreateMode() const
#define CSS_TEXT_TEXTFIELD_DOCINFO_CUSTOM
virtual ~SwXFrames() override
#define CSS_TEXT_TEXTFIELD_FILE_NAME
#define SAL_N_ELEMENTS(arr)
#define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_SET
static OUString GetProviderName(SwServiceType nObjectType)
virtual const_iterator_t getBookmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Type SAL_CALL getElementType() override
static css::uno::Reference< css::text::XTextContent > CreateXBookmark(SwDoc &rDoc,::sw::mark::IMark *pBookmark)
#define CSS_TEXT_TEXTFIELD_DOCINFO_DESCRIPTION
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual ~SwXTextTables() override
const SwFlyFrameFormat * FindFlyByName(const OUString &rName, SwNodeType nNdTyp=SwNodeType::NONE) const
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define CSS_TEXT_TEXTFIELD_PARAGRAPH_COUNT
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
virtual sal_Bool SAL_CALL hasElements() override
#define CSS_TEXT_TEXTFIELD_COMBINED_CHARACTERS
const OUString & GetSectionName() const
#define CSS_TEXT_TEXTFIELD_DROP_DOWN
virtual ~SwXReferenceMarks() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual SwChartDataProvider * GetChartDataProvider(bool bCreate=false) const =0
returns or creates the data-provider for chart
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
#define CSS_TEXT_TEXTFIELD_DDE
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
virtual css::uno::Type SAL_CALL getElementType() override
static css::uno::Reference< css::text::XDocumentIndexMark > CreateXDocumentIndexMark(SwDoc &rDoc, SwTOXMark *pMark, TOXTypes eType=TOX_INDEX)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::container::XEnumeration > SwSimpleEnumeration_Base
virtual OUString SAL_CALL getImplementationName() override
sal_uInt16 GetRefMarks(std::vector< OUString > *=nullptr) const
static css::uno::Reference< css::text::XDocumentIndex > CreateXDocumentIndex(SwDoc &rDoc, SwTOXBaseSection *pSection, TOXTypes eTypes=TOX_INDEX)
bool IsNoTextNode() const
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
#define CSS_TEXT_TEXTFIELD_JUMP_EDIT
virtual const_iterator_t findBookmark(const OUString &rMark) const =0
Finds a bookmark by name.
Marks a node in the document model.
css::uno::Type const & get()
SwXNumberingRulesCollection(SwDoc *pDoc)
static css::uno::Reference< css::text::XTextTable > GetObject(SwFrameFormat &rFormat)
#define CSS_TEXT_TEXTFIELD_DATABASE_SET_NUMBER
virtual OUString SAL_CALL getImplementationName() override
static css::uno::Reference< css::text::XTextContent > CreateXReferenceMark(SwDoc &rDoc, SwFormatRefMark *pMarkFormat)
#define CSS_TEXT_TEXTFIELD_DATABASE_NUMBER_OF_SET
IDocumentChartDataProviderAccess const & getIDocumentChartDataProviderAccess() const
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
css::uno::Any SetGlobalUNOConstant(const OUString &rName, const css::uno::Any &_rValue)
const SwFormatFootnote & GetFootnote() const
virtual ~SwXTextSections() override
#define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_GET
static css::uno::Reference< css::style::XStyle > CreateStyle(SfxStyleFamily eFamily, SwDoc &rDoc)
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual sal_Bool SAL_CALL hasElements() override
#define CSS_TEXT_TEXTFIELD_DOCINFO_EDIT_TIME
SwXTextGraphicObjects(SwDoc *pDoc)
#define CSS_TEXT_TEXTFIELD_GET_REFERENCE
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
SwXBookmarks(SwDoc *pDoc)
#define CSS_TEXT_TEXTFIELD_GET_EXPRESSION
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define CSS_TEXT_TEXTFIELD_HIDDEN_PARAGRAPH
SwXFrames(SwDoc *pDoc, FlyCntType eSet)
#define CSS_TEXT_TEXTFIELD_BIBLIOGRAPHY
const SwNodes & GetNodes() const
virtual SwFieldType * InsertFieldType(const SwFieldType &)=0
virtual sal_Bool SAL_CALL hasElements() override
#define CSS_TEXT_TEXTFIELD_INPUT
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
const SwNumRuleTable & GetNumRuleTable() const
bool GetGlobalUNOConstant(const OUString &rName, css::uno::Any &aOut)
virtual const_iterator_t getBookmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence the IBookmarks.
const css::uno::Reference< css::container::XNameContainer > & GetVBATemplateToProjectCache() const
virtual OUString SAL_CALL getImplementationName() override
#define SAL_INFO(area, stream)
const OUString & GetName() const
#define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_AUTHOR
static SwServiceType GetProviderType(const OUString &rServiceName)
#define CSS_TEXT_TEXTFIELD_GRAPHIC_OBJECT_COUNT
virtual void Invalidate()
virtual sal_Int32 SAL_CALL getCount() override
size_t GetFlyCount(FlyCntType eType, bool bIgnoreTextBoxes=false) const
Access to frames.
#define CSS_TEXT_TEXTFIELD_AUTHOR
static SW_DLLPUBLIC css::uno::Reference< css::text::XTextFrame > CreateXTextFrame(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
#define CSS_TEXT_TEXTFIELD_SCRIPT
#define CSS_TEXT_TEXTFIELD_DOCINFO_TITLE
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
static css::uno::Reference< css::uno::XInterface > MakeInstance(SwServiceType nObjectType, SwDoc &rDoc)
Sequence< sal_Int8 > aSeq
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
size_t GetTableFrameFormatCount(bool bUsed) const
#define CSS_TEXT_TEXTFIELD_HIDDEN_TEXT
#define CSS_TEXT_TEXTFIELD_SET_EXPRESSION
static css::uno::Sequence< OUString > GetAllServiceNames()
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
virtual ~SwXTextEmbeddedObjects() override
SwFrameFormat & GetTableFrameFormat(size_t nFormat, bool bUsed) const
virtual ~SwXTextGraphicObjects() override
bool isAlienWordDoc(SfxObjectShell const &rDocShell)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
#define CSS_TEXT_TEXTFIELD_DOCINFO_SUBJECT
#define CSS_TEXT_TEXTFIELD_PAGE_COUNT
SwFootnoteIdxs & GetFootnoteIdxs()
SwXTextFrames(SwDoc *pDoc)
virtual sal_Int32 SAL_CALL getCount() override
#define SAL_WARN(area, stream)
#define CSS_TEXT_TEXTFIELD_ANNOTATION
bool IsDocNodes() const
Is the NodesArray the regular one of Doc? (and not the UndoNds, ...) Implementation in doc...
#define CSS_TEXT_TEXTFIELD_TEMPLATE_NAME
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
static css::uno::Reference< css::text::XTextContent > CreateXTextEmbeddedObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
static css::uno::Reference< css::text::XTextContent > CreateXTextGraphicObject(SwDoc &rDoc, SwFrameFormat *pFrameFormat)
const EnumerationType m_eType
static css::uno::Reference< css::text::XTextSection > GetObject(SwSectionFormat &rFormat)
virtual sal_Bool SAL_CALL hasElements() override
const ProvNamesId_Type aProvNamesId[]
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual OUString SAL_CALL getImplementationName() override
SwXTextSections(SwDoc *pDoc)
Reference< XInterface > SvUnoImageMapPolygonObject_createInstance(const SvEventDescription *pSupportedMacroItems)
#define CSS_TEXT_TEXTFIELD_MACRO
virtual css::uno::Type SAL_CALL getElementType() override
SwSectionFormats & GetSections()
virtual sal_Int32 SAL_CALL getCount() override
#define CSS_TEXT_FIELDMASTER_DATABASE
const SvEventDescription * sw_GetSupportedMacroItems()
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Int32 SAL_CALL getCount() override
SwXReferenceMarks(SwDoc *pDoc)
#define CSS_TEXT_TEXTFIELD_DATABASE
SwServiceType
entries in this enum are mapped in an array in unocoll.cxx
BasicManager * GetBasicManager() const
css::uno::Sequence< typename M::key_type > mapKeysToSequence(M const &map)
SwXTextTables(SwDoc *pDoc)
#define CSS_TEXT_FIELDMASTER_USER
void SetVBATemplateToProjectCache(css::uno::Reference< css::container::XNameContainer > const &xCache)
static css::uno::Reference< css::beans::XPropertySet > CreateXFieldMaster(SwDoc *pDoc, SwFieldType *pType, SwFieldIds nResId=SwFieldIds::Unknown)
#define CSS_TEXT_TEXTFIELD_PAGE_NUMBER
#define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_AUTHOR
Base class of the Writer document model elements.
css::uno::Any SAL_CALL makeAny(const SharedUNOComponent< INTERFACE, COMPONENT > &value)