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>
27 #include <cppuhelper/implbase.hxx>
28 #include "swdllapi.h"
29 
30 class SwDoc;
31 class SwFrameFormat;
32 namespace com{namespace sun {namespace star {namespace text
33 {
34  class XTextTable;
35  class XTextSection;
36  class XFootnote;
37 }}}}
38 class SwFormatFootnote;
39 class SwSectionFormat;
40 struct SvEventDescription;
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 
63 enum 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,
79  ContentIndexMark = 15,
80  ContentIndex = 16,
81  UserIndexMark = 17,
82  UserIndex = 18,
83  TextSection = 19,
84  FieldTypeDateTime = 20,
85  FieldTypeUser = 21,
86  FieldTypeSetExp = 22,
87  FieldTypeGetExp = 23,
88  FieldTypeFileName = 24,
89  FieldTypePageNum = 25,
90  FieldTypeAuthor = 26,
91  FieldTypeChapter = 27,
92  FieldTypeDummy0 = 28,
96  FieldTypeInput = 32,
97  FieldTypeMacro = 33,
98  FieldTypeDDE = 34,
100  FieldTypeDocInfo = 36,
102  FieldTypeUserExt = 38,
103  FieldTypeRefPageSet = 39,
104  FieldTypeRefPageGet = 40,
105  FieldTypeJumpEdit = 41,
106  FieldTypeScript = 42,
110  FieldTypeDatabase = 46,
113  FieldTypePageCount = 49,
115  FieldTypeWordCount = 51,
117  FieldTypeTableCount = 53,
126  FieldTypeDummy1 = 63,
127  FieldTypeDummy2 = 64,
128  FieldTypeDummy3 = 65,
138  FieldTypeDropdown = 75,
139  FieldTypeMetafield = 76,
140  FieldTypeDummy4 = 77,
141  FieldTypeDummy5 = 78,
142  FieldTypeDummy6 = 79,
143  FieldTypeDummy7 = 80,
144  FieldMasterUser = 81,
145  FieldMasterDDE = 82,
146  FieldMasterSetExp = 83,
147  FieldMasterDatabase = 84,
149  FieldMasterDummy2 = 86,
150  FieldMasterDummy3 = 87,
151  FieldMasterDummy4 = 88,
152  FieldMasterDummy5 = 89,
153  IndexIllustrations = 90,
154  IndexObjects = 91,
155  IndexTables = 92,
156  IndexBibliography = 93,
157  Paragraph = 94,
158  FieldTypeInputUser = 95,
159  FieldTypeHiddenText = 96,
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,
174  VbaCodeNameProvider = 111,
176  VbaGlobals = 113,
177  StyleTable = 114,
178  StyleCell = 115,
179 
181 };
182 
183 // case-corrected versions of service-names (see #i67811)
184 
185 #define CSS_TEXT_TEXTFIELD_DATE_TIME "com.sun.star.text.textfield.DateTime"
186 #define CSS_TEXT_TEXTFIELD_USER "com.sun.star.text.textfield.User"
187 #define CSS_TEXT_TEXTFIELD_SET_EXPRESSION "com.sun.star.text.textfield.SetExpression"
188 #define CSS_TEXT_TEXTFIELD_GET_EXPRESSION "com.sun.star.text.textfield.GetExpression"
189 #define CSS_TEXT_TEXTFIELD_FILE_NAME "com.sun.star.text.textfield.FileName"
190 #define CSS_TEXT_TEXTFIELD_PAGE_NUMBER "com.sun.star.text.textfield.PageNumber"
191 #define CSS_TEXT_TEXTFIELD_AUTHOR "com.sun.star.text.textfield.Author"
192 #define CSS_TEXT_TEXTFIELD_CHAPTER "com.sun.star.text.textfield.Chapter"
193 #define CSS_TEXT_TEXTFIELD_GET_REFERENCE "com.sun.star.text.textfield.GetReference"
194 #define CSS_TEXT_TEXTFIELD_CONDITIONAL_TEXT "com.sun.star.text.textfield.ConditionalText"
195 #define CSS_TEXT_TEXTFIELD_ANNOTATION "com.sun.star.text.textfield.Annotation"
196 #define CSS_TEXT_TEXTFIELD_INPUT "com.sun.star.text.textfield.Input"
197 #define CSS_TEXT_TEXTFIELD_MACRO "com.sun.star.text.textfield.Macro"
198 #define CSS_TEXT_TEXTFIELD_DDE "com.sun.star.text.textfield.DDE"
199 #define CSS_TEXT_TEXTFIELD_HIDDEN_PARAGRAPH "com.sun.star.text.textfield.HiddenParagraph"
200 #define CSS_TEXT_TEXTFIELD_TEMPLATE_NAME "com.sun.star.text.textfield.TemplateName"
201 #define CSS_TEXT_TEXTFIELD_EXTENDED_USER "com.sun.star.text.textfield.ExtendedUser"
202 #define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_SET "com.sun.star.text.textfield.ReferencePageSet"
203 #define CSS_TEXT_TEXTFIELD_REFERENCE_PAGE_GET "com.sun.star.text.textfield.ReferencePageGet"
204 #define CSS_TEXT_TEXTFIELD_JUMP_EDIT "com.sun.star.text.textfield.JumpEdit"
205 #define CSS_TEXT_TEXTFIELD_SCRIPT "com.sun.star.text.textfield.Script"
206 #define CSS_TEXT_TEXTFIELD_DATABASE_NEXT_SET "com.sun.star.text.textfield.DatabaseNextSet"
207 #define CSS_TEXT_TEXTFIELD_DATABASE_NUMBER_OF_SET "com.sun.star.text.textfield.DatabaseNumberOfSet"
208 #define CSS_TEXT_TEXTFIELD_DATABASE_SET_NUMBER "com.sun.star.text.textfield.DatabaseSetNumber"
209 #define CSS_TEXT_TEXTFIELD_DATABASE "com.sun.star.text.textfield.Database"
210 #define CSS_TEXT_TEXTFIELD_DATABASE_NAME "com.sun.star.text.textfield.DatabaseName"
211 #define CSS_TEXT_TEXTFIELD_TABLE_FORMULA "com.sun.star.text.textfield.TableFormula"
212 #define CSS_TEXT_TEXTFIELD_PAGE_COUNT "com.sun.star.text.textfield.PageCount"
213 #define CSS_TEXT_TEXTFIELD_PARAGRAPH_COUNT "com.sun.star.text.textfield.ParagraphCount"
214 #define CSS_TEXT_TEXTFIELD_WORD_COUNT "com.sun.star.text.textfield.WordCount"
215 #define CSS_TEXT_TEXTFIELD_CHARACTER_COUNT "com.sun.star.text.textfield.CharacterCount"
216 #define CSS_TEXT_TEXTFIELD_TABLE_COUNT "com.sun.star.text.textfield.TableCount"
217 #define CSS_TEXT_TEXTFIELD_GRAPHIC_OBJECT_COUNT "com.sun.star.text.textfield.GraphicObjectCount"
218 #define CSS_TEXT_TEXTFIELD_EMBEDDED_OBJECT_COUNT "com.sun.star.text.textfield.EmbeddedObjectCount"
219 #define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_AUTHOR "com.sun.star.text.textfield.docinfo.ChangeAuthor"
220 #define CSS_TEXT_TEXTFIELD_DOCINFO_CHANGE_DATE_TIME "com.sun.star.text.textfield.docinfo.ChangeDateTime"
221 #define CSS_TEXT_TEXTFIELD_DOCINFO_EDIT_TIME "com.sun.star.text.textfield.docinfo.EditTime"
222 #define CSS_TEXT_TEXTFIELD_DOCINFO_DESCRIPTION "com.sun.star.text.textfield.docinfo.Description"
223 #define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_AUTHOR "com.sun.star.text.textfield.docinfo.CreateAuthor"
224 #define CSS_TEXT_TEXTFIELD_DOCINFO_CREATE_DATE_TIME "com.sun.star.text.textfield.docinfo.CreateDateTime"
225 #define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_AUTHOR "com.sun.star.text.textfield.docinfo.PrintAuthor"
226 #define CSS_TEXT_TEXTFIELD_DOCINFO_PRINT_DATE_TIME "com.sun.star.text.textfield.docinfo.PrintDateTime"
227 #define CSS_TEXT_TEXTFIELD_DOCINFO_KEY_WORDS "com.sun.star.text.textfield.docinfo.KeyWords"
228 #define CSS_TEXT_TEXTFIELD_DOCINFO_SUBJECT "com.sun.star.text.textfield.docinfo.Subject"
229 #define CSS_TEXT_TEXTFIELD_DOCINFO_TITLE "com.sun.star.text.textfield.docinfo.Title"
230 #define CSS_TEXT_TEXTFIELD_DOCINFO_REVISION "com.sun.star.text.textfield.docinfo.Revision"
231 #define CSS_TEXT_TEXTFIELD_DOCINFO_CUSTOM "com.sun.star.text.textfield.docinfo.Custom"
232 #define CSS_TEXT_TEXTFIELD_BIBLIOGRAPHY "com.sun.star.text.textfield.Bibliography"
233 #define CSS_TEXT_TEXTFIELD_COMBINED_CHARACTERS "com.sun.star.text.textfield.CombinedCharacters"
234 #define CSS_TEXT_TEXTFIELD_DROP_DOWN "com.sun.star.text.textfield.DropDown"
235 #define CSS_TEXT_TEXTFIELD_INPUT_USER "com.sun.star.text.textfield.InputUser"
236 #define CSS_TEXT_TEXTFIELD_HIDDEN_TEXT "com.sun.star.text.textfield.HiddenText"
237 #define CSS_TEXT_FIELDMASTER_USER "com.sun.star.text.fieldmaster.User"
238 #define CSS_TEXT_FIELDMASTER_DDE "com.sun.star.text.fieldmaster.DDE"
239 #define CSS_TEXT_FIELDMASTER_SET_EXPRESSION "com.sun.star.text.fieldmaster.SetExpression"
240 #define CSS_TEXT_FIELDMASTER_DATABASE "com.sun.star.text.fieldmaster.Database"
241 #define CSS_TEXT_FIELDMASTER_BIBLIOGRAPHY "com.sun.star.text.fieldmaster.Bibliography"
242 
244 {
245 public:
246  static OUString GetProviderName(SwServiceType nObjectType);
247  static SwServiceType GetProviderType(const OUString& rServiceName);
248  static css::uno::Reference< css::uno::XInterface > MakeInstance(SwServiceType nObjectType, SwDoc & rDoc);
249  static css::uno::Sequence<OUString> GetAllServiceNames();
250 
251 };
252 
253 typedef
254 cppu::WeakImplHelper
255 <
256  css::container::XNameAccess,
257  css::container::XIndexAccess,
258  css::lang::XServiceInfo
259 >
262  public SwUnoCollection
263 {
264 protected:
265  virtual ~SwXTextTables() override;
266 public:
267  SwXTextTables(SwDoc* pDoc);
268 
269  //XIndexAccess
270  virtual sal_Int32 SAL_CALL getCount( ) override;
271  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
272 
273  //XNameAccess
274  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
275  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
276  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
277 
278  //XElementAccess
279  virtual css::uno::Type SAL_CALL getElementType( ) override;
280  virtual sal_Bool SAL_CALL hasElements( ) override;
281 
282  //XServiceInfo
283  virtual OUString SAL_CALL getImplementationName() override;
284  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
285  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
286 
287  static css::uno::Reference<css::text::XTextTable> GetObject(SwFrameFormat& rFormat);
288 };
289 
290 typedef
291 cppu::WeakImplHelper
292 <
293  css::container::XEnumerationAccess,
294  css::container::XNameAccess,
295  css::container::XIndexAccess,
296  css::lang::XServiceInfo
298 
300  public SwUnoCollection
301 {
303 protected:
304  virtual ~SwXFrames() override;
305 public:
306  SwXFrames(SwDoc* pDoc, FlyCntType eSet);
307 
308  //XEnumerationAccess
309  virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
310 
311  //XIndexAccess
312  virtual sal_Int32 SAL_CALL getCount() override;
313  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
314 
315  //XNameAccess
316  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
317  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
318  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
319 
320  //XElementAccess
321  virtual css::uno::Type SAL_CALL getElementType( ) override;
322  virtual sal_Bool SAL_CALL hasElements( ) override;
323 
324  //XServiceInfo
325  virtual OUString SAL_CALL getImplementationName() override;
326  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
327  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
328 };
329 
330 class SwXTextFrames : public SwXFrames
331 {
332 protected:
333  virtual ~SwXTextFrames() override;
334 public:
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 protected:
347  virtual ~SwXTextGraphicObjects() override;
348 public:
350 
351  //XServiceInfo
352  virtual OUString SAL_CALL getImplementationName() override;
353  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
354  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
355 
356 };
357 
359 {
360 protected:
361  virtual ~SwXTextEmbeddedObjects() override;
362 public:
364 
365  //XServiceInfo
366  virtual OUString SAL_CALL getImplementationName() override;
367  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
368  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
369 
370 };
371 
373  public SwUnoCollection
374 {
375 protected:
376  virtual ~SwXTextSections() override;
377 public:
378  SwXTextSections(SwDoc* pDoc);
379 
380  //XIndexAccess
381  virtual sal_Int32 SAL_CALL getCount() override;
382  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
383 
384  //XNameAccess
385  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
386  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
387  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
388 
389  //XElementAccess
390  virtual css::uno::Type SAL_CALL getElementType( ) override;
391  virtual sal_Bool SAL_CALL hasElements( ) override;
392 
393  //XServiceInfo
394  virtual OUString SAL_CALL getImplementationName() override;
395  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
396  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
397 
398  static css::uno::Reference< css::text::XTextSection> GetObject( SwSectionFormat& rFormat );
399 };
400 
402  public SwUnoCollection
403 {
404  protected:
405  virtual ~SwXBookmarks() override;
406  public:
407  SwXBookmarks(SwDoc* pDoc);
408 
409  //XIndexAccess
410  virtual sal_Int32 SAL_CALL getCount() override;
411  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
412 
413  //XNameAccess
414  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
415  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
416  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
417 
418  //XElementAccess
419  virtual css::uno::Type SAL_CALL getElementType( ) override;
420  virtual sal_Bool SAL_CALL hasElements( ) override;
421 
422  //XServiceInfo
423  virtual OUString SAL_CALL getImplementationName() override;
424  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
425  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
426 
427 };
428 
429 class SwXNumberingRulesCollection : public cppu::WeakImplHelper
430 <
431  css::container::XIndexAccess
432 >,
433  public SwUnoCollection
434 {
435 protected:
436  virtual ~SwXNumberingRulesCollection() override;
437 
438 public:
440 
441  //XIndexAccess
442  virtual sal_Int32 SAL_CALL getCount() override;
443  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
444 
445  //XElementAccess
446  virtual css::uno::Type SAL_CALL getElementType( ) override;
447  virtual sal_Bool SAL_CALL hasElements( ) override;
448 };
449 
450 typedef
451 cppu::WeakImplHelper
452 <
453  css::container::XIndexAccess,
454  css::lang::XServiceInfo
455 >
457 
459  public SwUnoCollection
460 {
461  const bool m_bEndnote;
462 
463 protected:
464  virtual ~SwXFootnotes() override;
465 public:
466  SwXFootnotes(bool bEnd, SwDoc* pDoc);
467 
468  //XIndexAccess
469  virtual sal_Int32 SAL_CALL getCount() override;
470  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
471 
472  //XElementAccess
473  virtual css::uno::Type SAL_CALL getElementType( ) override;
474  virtual sal_Bool SAL_CALL hasElements( ) override;
475 
476  //XServiceInfo
477  virtual OUString SAL_CALL getImplementationName() override;
478  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
479  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
480 
481  static css::uno::Reference< css::text::XFootnote> GetObject( SwDoc& rDoc, const SwFormatFootnote& rFormat );
482 };
483 
485  public SwUnoCollection
486 {
487 protected:
488  virtual ~SwXReferenceMarks() override;
489 public:
490  SwXReferenceMarks(SwDoc* pDoc);
491 
492  //XIndexAccess
493  virtual sal_Int32 SAL_CALL getCount() override;
494  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
495 
496  //XNameAccess
497  virtual css::uno::Any SAL_CALL getByName(const OUString& Name) override;
498  virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override;
499  virtual sal_Bool SAL_CALL hasByName(const OUString& Name) override;
500 
501  //XElementAccess
502  virtual css::uno::Type SAL_CALL getElementType( ) override;
503  virtual sal_Bool SAL_CALL hasElements( ) override;
504 
505  //XServiceInfo
506  virtual OUString SAL_CALL getImplementationName() override;
507  virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
508  virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
509 
510 };
511 
512 #endif
513 
514 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwDoc * GetDoc() const
Definition: unocoll.hxx:59
SwXTextEmbeddedObjects(SwDoc *pDoc)
Definition: unocoll.cxx:1351
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1836
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1727
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1285
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1702
bool m_bObjectValid
Definition: unocoll.hxx:47
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1345
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1841
cppu::WeakImplHelper< css::container::XEnumerationAccess, css::container::XNameAccess, css::container::XIndexAccess, css::lang::XServiceInfo > SwXFramesBaseClass
Definition: unocoll.hxx:297
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1310
virtual ~SwXNumberingRulesCollection() override
Definition: unocoll.cxx:1690
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1290
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1831
Definition: doc.hxx:185
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1429
OUString getImplementationName()
virtual ~SwXBookmarks() override
Definition: unocoll.cxx:1556
OUString Name
virtual ~SwXFootnotes() override
Definition: unocoll.cxx:1757
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1487
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1513
virtual ~SwXTextFrames() override
Definition: unocoll.cxx:1306
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1864
SwUnoCollection(SwDoc *p)
Definition: unocoll.hxx:50
bool IsValid() const
Definition: unocoll.hxx:57
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1694
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1365
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1905
virtual ~SwUnoCollection()
Definition: unocoll.hxx:54
static OUString GetProviderName(SwServiceType nObjectType)
Definition: unocoll.cxx:471
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1340
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1611
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1546
Style of a layout element.
Definition: frmfmt.hxx:57
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1650
virtual css::uno::Any SAL_CALL getByName(const OUString &Name) override
Definition: unocoll.cxx:1886
css::uno::Sequence< OUString > getSupportedServiceNames()
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1665
FlyCntType
Definition: flyenum.hxx:23
virtual ~SwXReferenceMarks() override
Definition: unocoll.cxx:1852
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1722
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1629
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1930
unsigned char sal_Bool
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1735
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1335
virtual sal_Bool SAL_CALL hasByName(const OUString &Name) override
Definition: unocoll.cxx:1922
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1745
SwXNumberingRulesCollection(SwDoc *pDoc)
Definition: unocoll.cxx:1685
cppu::WeakImplHelper< css::container::XIndexAccess, css::lang::XServiceInfo > SwSimpleIndexAccessBaseClass
Definition: unocoll.hxx:456
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1856
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1400
virtual ~SwXTextSections() override
Definition: unocoll.cxx:1381
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1660
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1580
SwXTextGraphicObjects(SwDoc *pDoc)
Definition: unocoll.cxx:1326
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
Definition: unocoll.cxx:1455
SwXBookmarks(SwDoc *pDoc)
Definition: unocoll.cxx:1552
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1370
const FlyCntType m_eType
Definition: unocoll.hxx:302
const SvEventDescription * sw_GetSupportedMacroItems()
Definition: unocoll.cxx:459
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1518
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1315
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
Definition: unosett.cxx:261
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1818
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1536
static SwServiceType GetProviderType(const OUString &rServiceName)
Definition: unocoll.cxx:501
virtual void Invalidate()
Definition: unocoll.cxx:1943
SwDoc * m_pDoc
Definition: unocoll.hxx:46
static css::uno::Reference< css::uno::XInterface > MakeInstance(SwServiceType nObjectType, SwDoc &rDoc)
Definition: unocoll.cxx:512
virtual css::uno::Type SAL_CALL getElementType() override
Definition: unocoll.cxx:1813
static css::uno::Sequence< OUString > GetAllServiceNames()
Definition: unocoll.cxx:481
virtual ~SwXTextEmbeddedObjects() override
Definition: unocoll.cxx:1356
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1740
virtual ~SwXTextGraphicObjects() override
Definition: unocoll.cxx:1331
def text(shape, st)
SwXTextFrames(SwDoc *pDoc)
Definition: unocoll.cxx:1301
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1385
cppu::WeakImplHelper< css::container::XNameAccess, css::container::XIndexAccess, css::lang::XServiceInfo > SwCollectionBaseClass
Definition: unocoll.hxx:260
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unocoll.cxx:1541
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1320
const bool m_bEndnote
Definition: unocoll.hxx:461
static css::uno::Reference< css::text::XTextSection > GetObject(SwSectionFormat &rFormat)
Definition: unocoll.cxx:1531
virtual sal_Bool SAL_CALL hasElements() override
Definition: unocoll.cxx:1935
virtual OUString SAL_CALL getImplementationName() override
Definition: unocoll.cxx:1360
SwXTextSections(SwDoc *pDoc)
Definition: unocoll.cxx:1376
SwXFootnotes(bool bEnd, SwDoc *pDoc)
Definition: unocoll.cxx:1751
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
Definition: unocoll.cxx:1780
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1559
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unocoll.cxx:1295
SwXReferenceMarks(SwDoc *pDoc)
Definition: unocoll.cxx:1847
SwServiceType
entries in this enum are mapped in an array in unocoll.cxx
Definition: unocoll.hxx:63
virtual sal_Int32 SAL_CALL getCount() override
Definition: unocoll.cxx:1761
static css::uno::Reference< css::text::XFootnote > GetObject(SwDoc &rDoc, const SwFormatFootnote &rFormat)
Definition: unocoll.cxx:1826