LibreOffice Module sw (master) 1
unocoll.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#ifndef INCLUDED_SW_INC_UNOCOLL_HXX
20#define INCLUDED_SW_INC_UNOCOLL_HXX
21#include <limits.h>
22#include "flyenum.hxx"
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/container/XEnumerationAccess.hpp>
25#include <com/sun/star/container/XNameAccess.hpp>
26#include <com/sun/star/container/XIndexAccess.hpp>
28#include "swdllapi.h"
29
30class SwDoc;
31class SwFrameFormat;
33{
34 class XTextTable;
35 class XTextSection;
36 class XFootnote;
37}
39class SwSectionFormat;
41
43
45{
48
49 public:
51 m_pDoc(p),
52 m_bObjectValid(true){}
53
54 virtual ~SwUnoCollection() {}
55
56 virtual void Invalidate();
57 bool IsValid() const {return m_bObjectValid;}
58
59 SwDoc* GetDoc() const {return m_pDoc;}
60};
61
63enum class SwServiceType {
64 TypeTextTable = 0,
65 TypeTextFrame = 1,
66 TypeGraphic = 2,
67 TypeOLE = 3,
68 TypeBookmark = 4,
69 TypeFootnote = 5,
70 TypeEndnote = 6,
71 TypeIndexMark = 7,
72 TypeIndex = 8,
73 ReferenceMark = 9,
74 StyleCharacter = 10,
75 StyleParagraph = 11,
76 StyleFrame = 12,
77 StylePage = 13,
78 StyleNumbering = 14,
80 ContentIndex = 16,
81 UserIndexMark = 17,
82 UserIndex = 18,
83 TextSection = 19,
85 FieldTypeUser = 21,
86 FieldTypeSetExp = 22,
87 FieldTypeGetExp = 23,
90 FieldTypeAuthor = 26,
92 FieldTypeDummy0 = 28,
96 FieldTypeInput = 32,
97 FieldTypeMacro = 33,
98 FieldTypeDDE = 34,
100 FieldTypeDocInfo = 36,
102 FieldTypeUserExt = 38,
106 FieldTypeScript = 42,
126 FieldTypeDummy1 = 63,
127 FieldTypeDummy2 = 64,
128 FieldTypeDummy3 = 65,
140 FieldTypeDummy4 = 77,
141 FieldTypeDummy5 = 78,
142 FieldTypeDummy6 = 79,
143 FieldTypeDummy7 = 80,
144 FieldMasterUser = 81,
145 FieldMasterDDE = 82,
154 IndexObjects = 91,
155 IndexTables = 92,
157 Paragraph = 94,
161 NumberingRules = 98,
162 TextColumns = 99,
163 IndexHeaderSection = 100,
164 Defaults = 101,
165 IMapRectangle = 102,
166 IMapCircle = 103,
167 IMapPolygon = 104,
168 TypeTextGraphic = 105,
169 Chart2DataProvider = 106,
170 TypeFieldMark = 107,
171 TypeFormFieldMark = 108,
172 TypeMeta = 109,
173 VbaObjectProvider = 110,
176 VbaGlobals = 113,
177 StyleTable = 114,
178 StyleCell = 115,
179 LineBreak = 116,
180 ContentControl = 117,
181
182 Invalid = USHRT_MAX
183};
184
185// case-corrected versions of service-names (see #i67811)
186
187#define CSS_TEXT_TEXTFIELD_DATE_TIME "com.sun.star.text.textfield.DateTime"
188#define CSS_TEXT_TEXTFIELD_USER "com.sun.star.text.textfield.User"
189#define CSS_TEXT_TEXTFIELD_SET_EXPRESSION "com.sun.star.text.textfield.SetExpression"
190#define CSS_TEXT_TEXTFIELD_GET_EXPRESSION "com.sun.star.text.textfield.GetExpression"
191#define CSS_TEXT_TEXTFIELD_FILE_NAME "com.sun.star.text.textfield.FileName"
192#define CSS_TEXT_TEXTFIELD_PAGE_NUMBER "com.sun.star.text.textfield.PageNumber"
193#define CSS_TEXT_TEXTFIELD_AUTHOR "com.sun.star.text.textfield.Author"
194#define CSS_TEXT_TEXTFIELD_CHAPTER "com.sun.star.text.textfield.Chapter"
195#define CSS_TEXT_TEXTFIELD_GET_REFERENCE "com.sun.star.text.textfield.GetReference"
196#define CSS_TEXT_TEXTFIELD_CONDITIONAL_TEXT "com.sun.star.text.textfield.ConditionalText"
197#define CSS_TEXT_TEXTFIELD_ANNOTATION "com.sun.star.text.textfield.Annotation"
198#define CSS_TEXT_TEXTFIELD_INPUT "com.sun.star.text.textfield.Input"
199#define CSS_TEXT_TEXTFIELD_MACRO "com.sun.star.text.textfield.Macro"
200#define CSS_TEXT_TEXTFIELD_DDE "com.sun.star.text.textfield.DDE"
201#define CSS_TEXT_TEXTFIELD_HIDDEN_PARAGRAPH "com.sun.star.text.textfield.HiddenParagraph"
202#define CSS_TEXT_TEXTFIELD_TEMPLATE_NAME "com.sun.star.text.textfield.TemplateName"
203#define CSS_TEXT_TEXTFIELD_EXTENDED_USER "com.sun.star.text.textfield.ExtendedUser"
204#define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_SET "com.sun.star.text.textfield.ReferencePageSet"
205#define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_GET "com.sun.star.text.textfield.ReferencePageGet"
206#define CSS_TEXT_TEXTFIELD_JUMP_EDIT "com.sun.star.text.textfield.JumpEdit"
207#define CSS_TEXT_TEXTFIELD_SCRIPT "com.sun.star.text.textfield.Script"
208#define CSS_TEXT_TEXTFIELD_DATABASE_NEXT_SET "com.sun.star.text.textfield.DatabaseNextSet"
209#define CSS_TEXT_TEXTFIELD_DATABASE_NUMBER_OF_SET "com.sun.star.text.textfield.DatabaseNumberOfSet"
210#define CSS_TEXT_TEXTFIELD_DATABASE_SET_NUMBER "com.sun.star.text.textfield.DatabaseSetNumber"
211#define CSS_TEXT_TEXTFIELD_DATABASE "com.sun.star.text.textfield.Database"
212#define CSS_TEXT_TEXTFIELD_DATABASE_NAME "com.sun.star.text.textfield.DatabaseName"
213#define CSS_TEXT_TEXTFIELD_TABLE_FORMULA "com.sun.star.text.textfield.TableFormula"
214#define CSS_TEXT_TEXTFIELD_PAGE_COUNT "com.sun.star.text.textfield.PageCount"
215#define CSS_TEXT_TEXTFIELD_PARAGRAPH_COUNT "com.sun.star.text.textfield.ParagraphCount"
216#define CSS_TEXT_TEXTFIELD_WORD_COUNT "com.sun.star.text.textfield.WordCount"
217#define CSS_TEXT_TEXTFIELD_CHARACTER_COUNT "com.sun.star.text.textfield.CharacterCount"
218#define CSS_TEXT_TEXTFIELD_TABLE_COUNT "com.sun.star.text.textfield.TableCount"
219#define CSS_TEXT_TEXTFIELD_GRAPHIC_OBJECT_COUNT "com.sun.star.text.textfield.GraphicObjectCount"
220#define CSS_TEXT_TEXTFIELD_EMBEDDED_OBJECT_COUNT "com.sun.star.text.textfield.EmbeddedObjectCount"
221#define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_AUTHOR "com.sun.star.text.textfield.docinfo.ChangeAuthor"
222#define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_DATE_TIME "com.sun.star.text.textfield.docinfo.ChangeDateTime"
223#define CSS_TEXT_TEXTFIELD_DOCINFO_EDIT_TIME "com.sun.star.text.textfield.docinfo.EditTime"
224#define CSS_TEXT_TEXTFIELD_DOCINFO_DESCRIPTION "com.sun.star.text.textfield.docinfo.Description"
225#define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_AUTHOR "com.sun.star.text.textfield.docinfo.CreateAuthor"
226#define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_DATE_TIME "com.sun.star.text.textfield.docinfo.CreateDateTime"
227#define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_AUTHOR "com.sun.star.text.textfield.docinfo.PrintAuthor"
228#define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_DATE_TIME "com.sun.star.text.textfield.docinfo.PrintDateTime"
229#define CSS_TEXT_TEXTFIELD_DOCINFO_KEY_WORDS "com.sun.star.text.textfield.docinfo.KeyWords"
230#define CSS_TEXT_TEXTFIELD_DOCINFO_SUBJECT "com.sun.star.text.textfield.docinfo.Subject"
231#define CSS_TEXT_TEXTFIELD_DOCINFO_TITLE "com.sun.star.text.textfield.docinfo.Title"
232#define CSS_TEXT_TEXTFIELD_DOCINFO_REVISION "com.sun.star.text.textfield.docinfo.Revision"
233#define CSS_TEXT_TEXTFIELD_DOCINFO_CUSTOM "com.sun.star.text.textfield.docinfo.Custom"
234#define CSS_TEXT_TEXTFIELD_BIBLIOGRAPHY "com.sun.star.text.textfield.Bibliography"
235#define CSS_TEXT_TEXTFIELD_COMBINED_CHARACTERS "com.sun.star.text.textfield.CombinedCharacters"
236#define CSS_TEXT_TEXTFIELD_DROP_DOWN "com.sun.star.text.textfield.DropDown"
237#define CSS_TEXT_TEXTFIELD_INPUT_USER "com.sun.star.text.textfield.InputUser"
238#define CSS_TEXT_TEXTFIELD_HIDDEN_TEXT "com.sun.star.text.textfield.HiddenText"
239#define CSS_TEXT_FIELDMASTER_USER "com.sun.star.text.fieldmaster.User"
240#define CSS_TEXT_FIELDMASTER_DDE "com.sun.star.text.fieldmaster.DDE"
241#define CSS_TEXT_FIELDMASTER_SET_EXPRESSION "com.sun.star.text.fieldmaster.SetExpression"
242#define CSS_TEXT_FIELDMASTER_DATABASE "com.sun.star.text.fieldmaster.Database"
243#define CSS_TEXT_FIELDMASTER_BIBLIOGRAPHY "com.sun.star.text.fieldmaster.Bibliography"
244
246{
247public:
248 static OUString GetProviderName(SwServiceType nObjectType);
249 static SwServiceType GetProviderType(std::u16string_view rServiceName);
250 static css::uno::Reference< css::uno::XInterface > MakeInstance(SwServiceType nObjectType, SwDoc & rDoc);
251 static css::uno::Sequence<OUString> GetAllServiceNames();
252
253};
254
255typedef
256cppu::WeakImplHelper
257<
258 css::container::XNameAccess,
259 css::container::XIndexAccess,
260 css::lang::XServiceInfo
261>
264 public SwUnoCollection
265{
266 virtual ~SwXTextTables() override;
267public:
268 SwXTextTables(SwDoc* pDoc);
269
270 //XIndexAccess
271 virtual sal_Int32 SAL_CALL getCount( ) override;
272 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
273
274 //XNameAccess
275 virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
276 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
277 virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
278
279 //XElementAccess
280 virtual css::uno::Type SAL_CALL getElementType( ) override;
281 virtual sal_Bool SAL_CALL hasElements( ) override;
282
283 //XServiceInfo
284 virtual OUString SAL_CALL getImplementationName() override;
285 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
286 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
287
288 static css::uno::Reference<css::text::XTextTable> GetObject(SwFrameFormat& rFormat);
289};
290
291typedef
292cppu::WeakImplHelper
293<
294 css::container::XEnumerationAccess,
295 css::container::XNameAccess,
296 css::container::XIndexAccess,
297 css::lang::XServiceInfo
299
301 public SwUnoCollection
302{
304protected:
305 virtual ~SwXFrames() override;
306public:
307 SwXFrames(SwDoc* pDoc, FlyCntType eSet);
308
309 //XEnumerationAccess
310 virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
311
312 //XIndexAccess
313 virtual sal_Int32 SAL_CALL getCount() override;
314 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
315
316 //XNameAccess
317 virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
318 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
319 virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
320
321 //XElementAccess
322 virtual css::uno::Type SAL_CALL getElementType( ) override;
323 virtual sal_Bool SAL_CALL hasElements( ) override;
324
325 //XServiceInfo
326 virtual OUString SAL_CALL getImplementationName() override;
327 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
328 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
329};
330
331class SwXTextFrames final : public SwXFrames
332{
333 virtual ~SwXTextFrames() override;
334public:
335 SwXTextFrames(SwDoc* pDoc);
336
337 //XServiceInfo
338 virtual OUString SAL_CALL getImplementationName() override;
339 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
340 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
341
342};
343
345{
346 virtual ~SwXTextGraphicObjects() override;
347public:
349
350 //XServiceInfo
351 virtual OUString SAL_CALL getImplementationName() override;
352 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
353 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
354
355};
356
358{
359 virtual ~SwXTextEmbeddedObjects() override;
360public:
362
363 //XServiceInfo
364 virtual OUString SAL_CALL getImplementationName() override;
365 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
366 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
367
368};
369
371 public SwUnoCollection
372{
373 virtual ~SwXTextSections() override;
374public:
375 SwXTextSections(SwDoc* pDoc);
376
377 //XIndexAccess
378 virtual sal_Int32 SAL_CALL getCount() override;
379 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
380
381 //XNameAccess
382 virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
383 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
384 virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
385
386 //XElementAccess
387 virtual css::uno::Type SAL_CALL getElementType( ) override;
388 virtual sal_Bool SAL_CALL hasElements( ) override;
389
390 //XServiceInfo
391 virtual OUString SAL_CALL getImplementationName() override;
392 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
393 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
394
395 static css::uno::Reference< css::text::XTextSection> GetObject( SwSectionFormat& rFormat );
396};
397
399 public SwUnoCollection
400{
401 virtual ~SwXBookmarks() override;
402 public:
403 SwXBookmarks(SwDoc* pDoc);
404
405 //XIndexAccess
406 virtual sal_Int32 SAL_CALL getCount() override;
407 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
408
409 //XNameAccess
410 virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
411 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
412 virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
413
414 //XElementAccess
415 virtual css::uno::Type SAL_CALL getElementType( ) override;
416 virtual sal_Bool SAL_CALL hasElements( ) override;
417
418 //XServiceInfo
419 virtual OUString SAL_CALL getImplementationName() override;
420 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
421 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
422
423};
424
425class SwXNumberingRulesCollection final : public cppu::WeakImplHelper
426<
427 css::container::XIndexAccess
428>,
429 public SwUnoCollection
430{
431 virtual ~SwXNumberingRulesCollection() override;
432
433public:
435
436 //XIndexAccess
437 virtual sal_Int32 SAL_CALL getCount() override;
438 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
439
440 //XElementAccess
441 virtual css::uno::Type SAL_CALL getElementType( ) override;
442 virtual sal_Bool SAL_CALL hasElements( ) override;
443};
444
445typedef
446cppu::WeakImplHelper
447<
448 css::container::XIndexAccess,
449 css::lang::XServiceInfo
450>
452
454 public SwUnoCollection
455{
456 const bool m_bEndnote;
457
458 virtual ~SwXFootnotes() override;
459public:
460 SwXFootnotes(bool bEnd, SwDoc* pDoc);
461
462 //XIndexAccess
463 virtual sal_Int32 SAL_CALL getCount() override;
464 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
465
466 //XElementAccess
467 virtual css::uno::Type SAL_CALL getElementType( ) override;
468 virtual sal_Bool SAL_CALL hasElements( ) override;
469
470 //XServiceInfo
471 virtual OUString SAL_CALL getImplementationName() override;
472 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
473 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
474
475 static css::uno::Reference< css::text::XFootnote> GetObject( SwDoc& rDoc, const SwFormatFootnote& rFormat );
476};
477
479 public SwUnoCollection
480{
481 virtual ~SwXReferenceMarks() override;
482public:
484
485 //XIndexAccess
486 virtual sal_Int32 SAL_CALL getCount() override;
487 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
488
489 //XNameAccess
490 virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
491 virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
492 virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
493
494 //XElementAccess
495 virtual css::uno::Type SAL_CALL getElementType( ) override;
496 virtual sal_Bool SAL_CALL hasElements( ) override;
497
498 //XServiceInfo
499 virtual OUString SAL_CALL getImplementationName() override;
500 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
501 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
502
503};
504
505#endif
506
507/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:197
SfxPoolItem subclass for footnotes and endnotes, stored in the anchor text node.
Definition: fmtftn.hxx:47
Style of a layout element.
Definition: frmfmt.hxx:72
bool m_bObjectValid
Definition: unocoll.hxx:47
virtual ~SwUnoCollection()
Definition: unocoll.hxx:54
SwUnoCollection(SwDoc *p)
Definition: unocoll.hxx:50
SwDoc * GetDoc() const
Definition: unocoll.hxx:59
SwDoc * m_pDoc
Definition: unocoll.hxx:46
bool IsValid() const
Definition: unocoll.hxx:57
virtual void Invalidate()
Definition: unocoll.cxx:1932
SwXBookmarks(SwDoc *pDoc)
Definition: unocoll.cxx:1543
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1538
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1533
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1620
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1602
virtual ~SwXBookmarks() override
Definition: unocoll.cxx:1547
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1641
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1571
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1528
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1651
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1656
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1550
virtual ~SwXFootnotes() override
Definition: unocoll.cxx:1747
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1803
static css::uno::Reference< css::text::XFootnote > GetObject(SwDoc &rDoc, const SwFormatFootnote &rFormat)
Definition: unocoll.cxx:1816
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1808
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1736
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1751
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1770
const bool m_bEndnote
Definition: unocoll.hxx:456
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1726
SwXFootnotes(bool bEnd, SwDoc *pDoc)
Definition: unocoll.cxx:1741
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1731
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1143
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1186
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1256
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1272
const FlyCntType m_eType
Definition: unocoll.hxx:303
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1240
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1133
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1200
SwXFrames(SwDoc *pDoc, FlyCntType eSet)
Definition: unocoll.cxx:1148
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
Definition: unocoll.cxx:1156
virtual ~SwXFrames() override
Definition: unocoll.cxx:1153
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1177
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1138
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1223
SwXNumberingRulesCollection(SwDoc *pDoc)
Definition: unocoll.cxx:1676
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1713
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1685
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1693
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1718
virtual ~SwXNumberingRulesCollection() override
Definition: unocoll.cxx:1681
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1894
virtual ~SwXReferenceMarks() override
Definition: unocoll.cxx:1841
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1826
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1845
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1924
SwXReferenceMarks(SwDoc *pDoc)
Definition: unocoll.cxx:1836
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1875
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1911
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1821
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1831
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1919
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1853
static SwServiceType GetProviderType(std::u16string_view rServiceName)
Definition: unocoll.cxx:505
static css::uno::Sequence< OUString > GetAllServiceNames()
Definition: unocoll.cxx:485
static css::uno::Reference< css::uno::XInterface > MakeInstance(SwServiceType nObjectType, SwDoc &rDoc)
Definition: unocoll.cxx:516
static OUString GetProviderName(SwServiceType nObjectType)
Definition: unocoll.cxx:476
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1329
SwXTextEmbeddedObjects(SwDoc *pDoc)
Definition: unocoll.cxx:1344
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1334
virtual ~SwXTextEmbeddedObjects() override
Definition: unocoll.cxx:1349
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1339
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1281
SwXTextFrames(SwDoc *pDoc)
Definition: unocoll.cxx:1296
virtual ~SwXTextFrames() override
Definition: unocoll.cxx:1301
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1291
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1286
SwXTextGraphicObjects(SwDoc *pDoc)
Definition: unocoll.cxx:1320
virtual ~SwXTextGraphicObjects() override
Definition: unocoll.cxx:1325
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1315
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1305
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1310
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1421
static css::uno::Reference< css::text::XTextSection > GetObject(SwSectionFormat &rFormat)
Definition: unocoll.cxx:1523
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1447
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1353
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1505
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1392
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1479
SwXTextSections(SwDoc *pDoc)
Definition: unocoll.cxx:1368
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1510
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1358
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1363
virtual ~SwXTextSections() override
Definition: unocoll.cxx:1373
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1377
virtual css::uno::Reference< css::embed::XEmbeddedObject > GetObject() override
FlyCntType
Definition: flyenum.hxx:24
sal_Int32 nIndex
void * p
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
OUString Name
unsigned char sal_Bool
cppu::WeakImplHelper< css::container::XNameAccess, css::container::XIndexAccess, css::lang::XServiceInfo > SwCollectionBaseClass
Definition: unocoll.hxx:262
SwServiceType
entries in this enum are mapped in an array in unocoll.cxx
Definition: unocoll.hxx:63
@ FieldTypeConditionedText
@ FieldTypeGraphicObjectCount
@ StyleConditionalParagraph
@ FieldTypeDocInfoRevision
@ FieldTypeDatabaseNextSet
@ FieldTypeDocInfoPrintAuthor
@ FieldTypeDocInfoCreateDateTime
@ FieldTypeDocInfoKeywords
@ FieldTypeDocInfoDescription
@ FieldTypeDocInfoChangeAuthor
@ FieldTypeEmbeddedObjectCount
@ FieldTypeDocInfoEditTime
@ FieldTypeCombinedCharacters
@ FieldTypeDocInfoCreateAuthor
@ FieldTypeDocInfoPrintDateTime
@ FieldTypeDocInfoChangeDateTime
const SvEventDescription * sw_GetSupportedMacroItems()
Definition: unocoll.cxx:464
cppu::WeakImplHelper< css::container::XIndexAccess, css::lang::XServiceInfo > SwSimpleIndexAccessBaseClass
Definition: unocoll.hxx:451
cppu::WeakImplHelper< css::container::XEnumerationAccess, css::container::XNameAccess, css::container::XIndexAccess, css::lang::XServiceInfo > SwXFramesBaseClass
Definition: unocoll.hxx:298