LibreOffice Module sw (master)  1
cntex.cxx
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 
20 #include <com/sun/star/text/XDocumentIndexesSupplier.hpp>
21 #include <com/sun/star/text/XTextSectionsSupplier.hpp>
22 #include <com/sun/star/text/XDependentTextField.hpp>
23 #include <com/sun/star/text/XDocumentIndex.hpp>
24 #include <com/sun/star/text/ChapterFormat.hpp>
25 #include <com/sun/star/text/XTextSection.hpp>
26 #include <com/sun/star/beans/PropertyValues.hpp>
27 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
28 #include <comphelper/string.hxx>
29 #include <tools/UnitConversion.hxx>
30 #include <tools/diagnose_ex.h>
31 #include <wrtsh.hxx>
32 #include <view.hxx>
33 #include <cnttab.hxx>
34 #include <unoprnms.hxx>
35 #include <unotools.hxx>
36 #include <unotxdoc.hxx>
37 #include <docsh.hxx>
38 
39 #include <SwStyleNameMapper.hxx>
40 #include <swuicnttab.hxx>
41 
42 using namespace ::com::sun::star;
43 using namespace ::com::sun::star::text;
44 using namespace ::com::sun::star::beans;
45 using namespace ::com::sun::star::container;
46 using namespace ::com::sun::star::lang;
47 using namespace ::com::sun::star::ucb;
48 using namespace ::com::sun::star::uno;
49 using namespace com::sun::star::ui::dialogs;
50 
51 static void lcl_SetProp( uno::Reference< XPropertySetInfo > const & xInfo,
52  uno::Reference< XPropertySet > const & xProps,
53  OUString const & aPropName, const OUString& rValue)
54 {
55  if(xInfo->hasPropertyByName(aPropName))
56  {
57  uno::Any aValue;
58  aValue <<= rValue;
59  xProps->setPropertyValue(aPropName, aValue);
60  }
61 }
62 
63 static void lcl_SetProp( uno::Reference< XPropertySetInfo > const & xInfo,
64  uno::Reference< XPropertySet > const & xProps,
65  OUString const & aPropName, sal_Int16 nValue )
66 {
67  if(xInfo->hasPropertyByName(aPropName))
68  {
69  uno::Any aValue;
70  aValue <<= nValue;
71  xProps->setPropertyValue(aPropName, aValue);
72  }
73 }
74 
75 static void lcl_SetBOOLProp(
76  uno::Reference< beans::XPropertySetInfo > const & xInfo,
77  uno::Reference< beans::XPropertySet > const & xProps,
78  OUString const & aPropName, bool bValue )
79 {
80  if(xInfo->hasPropertyByName(aPropName))
81  {
82  xProps->setPropertyValue(aPropName, makeAny(bValue));
83  }
84 }
85 
87 {
88  try
89  {
90  uno::Reference< frame::XModel > & xModel = m_xExampleFrame->GetModel();
91  auto pDoc = comphelper::getFromUnoTunnel<SwXTextDocument>(xModel);
92 
93  if( pDoc )
94  pDoc->GetDocShell()->LoadStyles_( *m_rWrtShell.GetView().GetDocShell(), true );
95 
96  uno::Reference< text::XTextSectionsSupplier > xSectionSupplier(
97  xModel, uno::UNO_QUERY);
98  uno::Reference< container::XNameAccess > xSections =
99  xSectionSupplier->getTextSections();
100 
101  for(int i = 0; i < 7; ++i )
102  {
103  OUString sTmp = "IndexSection_" + OUString::number(i);
104  uno::Any aSection = xSections->getByName( sTmp );
105  aSection >>= m_vTypeData[i].m_pxIndexSections->xContainerSection;
106  }
107  uno::Reference< text::XDocumentIndexesSupplier > xIdxSupp(xModel, uno::UNO_QUERY);
108  uno::Reference< container::XIndexAccess > xIdxs = xIdxSupp->getDocumentIndexes();
109  int n = xIdxs->getCount();
110  while(n)
111  {
112  n--;
113  uno::Any aIdx = xIdxs->getByIndex(n);
114  uno::Reference< text::XDocumentIndex > xIdx;
115  aIdx >>= xIdx;
116  xIdx->dispose();
117  }
118  CreateOrUpdateExample(m_eCurrentTOXType.eType);
119  }
120  catch (const Exception&)
121  {
122  TOOLS_WARN_EXCEPTION( "sw", "::CreateExample()");
123  }
124 }
125 
127  TOXTypes nTOXIndex, sal_uInt16 nPage, sal_uInt16 nCurrentLevel)
128 {
129  if(!m_xExampleFrame || !m_xExampleFrame->IsInitialized())
130  return;
131 
132  try
133  {
134  static const char* IndexServiceNames[] =
135  {
136  "com.sun.star.text.DocumentIndex",
137  "com.sun.star.text.UserIndex",
138  "com.sun.star.text.ContentIndex",
139  "com.sun.star.text.IllustrationsIndex",
140  "com.sun.star.text.ObjectIndex",
141  "com.sun.star.text.TableIndex",
142  "com.sun.star.text.Bibliography"
143  };
144 
145  OSL_ENSURE(m_vTypeData[nTOXIndex].m_pxIndexSections &&
146  m_vTypeData[nTOXIndex].m_pxIndexSections->xContainerSection.is(),
147  "Section not created");
148  uno::Reference< frame::XModel > & xModel = m_xExampleFrame->GetModel();
149  bool bInitialCreate = true;
150  if(!m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex.is())
151  {
152  bInitialCreate = true;
153  if(!m_vTypeData[nTOXIndex].m_pxIndexSections->xContainerSection.is())
154  throw uno::RuntimeException();
155  uno::Reference< text::XTextRange > xAnchor = m_vTypeData[nTOXIndex].m_pxIndexSections->xContainerSection->getAnchor();
156  xAnchor = xAnchor->getStart();
157  uno::Reference< text::XTextCursor > xCursor = xAnchor->getText()->createTextCursorByRange(xAnchor);
158 
159  uno::Reference< lang::XMultiServiceFactory > xFact(xModel, uno::UNO_QUERY);
160 
161  OUString sIndexTypeName(OUString::createFromAscii( IndexServiceNames[
162  nTOXIndex <= TOX_AUTHORITIES ? nTOXIndex : TOX_USER] ));
163  m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex.set(xFact->createInstance(sIndexTypeName), uno::UNO_QUERY);
164  uno::Reference< text::XTextContent > xContent = m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex;
165  xCursor->getText()->insertTextContent(xCursor, xContent, false);
166  }
167  for(sal_uInt16 i = 0 ; i <= TOX_AUTHORITIES; i++)
168  {
169  uno::Reference< beans::XPropertySet > xSectPr(m_vTypeData[i].m_pxIndexSections->xContainerSection, uno::UNO_QUERY);
170  if(xSectPr.is())
171  {
172  xSectPr->setPropertyValue(UNO_NAME_IS_VISIBLE, makeAny(i == nTOXIndex));
173  }
174  }
175  // set properties
176  uno::Reference< beans::XPropertySet > xIdxProps(m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex, uno::UNO_QUERY);
177  uno::Reference< beans::XPropertySetInfo > xInfo = xIdxProps->getPropertySetInfo();
178  SwTOXDescription& rDesc = GetTOXDescription(m_eCurrentTOXType);
179  SwTOIOptions nIdxOptions = rDesc.GetIndexOptions();
180  if(bInitialCreate || !nPage || nPage == TOX_PAGE_SELECT)
181  {
182  //title
183  if(rDesc.GetTitle())
184  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_TITLE, *rDesc.GetTitle());
185 
186  //stylenames
187  SwTOXElement nContentOptions = rDesc.GetContentOptions();
188  if(xInfo->hasPropertyByName(UNO_NAME_LEVEL_PARAGRAPH_STYLES))
189  {
190  bool bOn( nContentOptions&SwTOXElement::Template );
191  uno::Any aStyleNames(xIdxProps->getPropertyValue(UNO_NAME_LEVEL_PARAGRAPH_STYLES));
192  uno::Reference< container::XIndexReplace > xAcc;
193  aStyleNames >>= xAcc;
194 
195  for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
196  {
197  OUString sLevel;
198  if(bOn)
199  sLevel = rDesc.GetStyleNames(i);
200  const sal_Int32 nStyles =
202  uno::Sequence<OUString> aStyles(nStyles);
203  OUString* pArr = aStyles.getArray();
204  sal_Int32 nPos {0};
205  for(sal_Int32 nStyle = 0; nStyle < nStyles; ++nStyle)
206  pArr[nStyle] = sLevel.getToken(0, TOX_STYLE_DELIMITER, nPos);
207  uno::Any aAny(&aStyles, cppu::UnoType<uno::Sequence<OUString>>::get());
208  xAcc->replaceByIndex(i, aAny);
209  }
210  }
211  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LEVEL, static_cast<sal_Int16>(rDesc.GetLevel()));
212  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_MARKS, bool(nContentOptions & SwTOXElement::Mark ));
213  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_OUTLINE, bool(nContentOptions & SwTOXElement::OutlineLevel));
214  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_EMBEDDED_OBJECTS,bool(nContentOptions & SwTOXElement::Ole ));
215  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_TABLES , bool(nContentOptions & SwTOXElement::Table ));
216  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS, bool(nContentOptions & SwTOXElement::Graphic ));
217  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_TEXT_FRAMES, bool(nContentOptions & SwTOXElement::Frame ));
218  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_LABELS, bool(nContentOptions & SwTOXElement::Sequence ));
219  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_HIDE_TAB_LEADER_AND_PAGE_NUMBERS, bool(nContentOptions & SwTOXElement::TableLeader ));
220  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_TAB_IN_TOC, bool(nContentOptions & SwTOXElement::TableInToc ));
221  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_TOC_NEWLINE, bool(nContentOptions & SwTOXElement::Newline));
223 
224  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_CHAPTER, rDesc.IsFromChapter());
225  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_PROTECTED, rDesc.IsReadonly());
226 
227  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_COMBINED_ENTRIES, bool(nIdxOptions & SwTOIOptions::SameEntry ));
228  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_P_P, bool(nIdxOptions & SwTOIOptions::FF ));
229  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_CASE_SENSITIVE, bool(nIdxOptions & SwTOIOptions::CaseSensitive ));
230  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_KEY_AS_ENTRY, bool(nIdxOptions & SwTOIOptions::KeyAsEntry ));
232  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_DASH, bool(nIdxOptions & SwTOIOptions::Dash ));
233  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_UPPER_CASE, bool(nIdxOptions & SwTOIOptions::InitialCaps ));
234 
235  OUString aTmpName( SwStyleNameMapper::GetSpecialExtraProgName( rDesc.GetSequenceName() ) );
236  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_CATEGORY, aTmpName );
238 
239  sal_Int16 nSet = text::ChapterFormat::NAME_NUMBER;
240  switch (rDesc.GetCaptionDisplay())
241  {
242  case CAPTION_COMPLETE: nSet = text::ChapterFormat::NAME_NUMBER;break;
243  case CAPTION_NUMBER : nSet = text::ChapterFormat::NUMBER; break;
244  case CAPTION_TEXT : nSet = text::ChapterFormat::NAME; break;
245  }
246  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_DISPLAY_TYPE, nSet);
247 
248  SwTOOElements nOLEOptions = rDesc.GetOLEOptions();
249  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_MATH, bool(SwTOOElements::Math &nOLEOptions ));
250  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CHART, bool(SwTOOElements::Chart &nOLEOptions ));
251  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CALC, bool(SwTOOElements::Calc &nOLEOptions ));
252  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_DRAW, bool(SwTOOElements::DrawImpress&nOLEOptions));
254  }
255  const SwForm* pForm = GetForm(m_eCurrentTOXType);
256  if(bInitialCreate || !nPage || nPage == TOX_PAGE_ENTRY)
257  {
258  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_COMMA_SEPARATED, pForm->IsCommaSeparated());
260  const bool bUseCurrent = nCurrentLevel < pForm->GetFormMax();
261  const sal_uInt16 nStartLevel = bUseCurrent ? nCurrentLevel : 0;
262  const sal_uInt16 nEndLevel = bUseCurrent ? nCurrentLevel : pForm->GetFormMax() - 1;
263  if(xInfo->hasPropertyByName(UNO_NAME_LEVEL_FORMAT))
264  {
265  for(sal_uInt16 nCurrLevel = nStartLevel; nCurrLevel <= nEndLevel; nCurrLevel++)
266  {
267  OUString sTokenType;
268  uno::Sequence< beans::PropertyValues> aSequPropVals(10);
269  tools::Long nTokenIndex = 0;
271 
272  // #i24377#
273  SwFormTokens aPattern = pForm->GetPattern(nCurrLevel);
274 
275  for(const auto& aToken : aPattern)
276  {
277  if( aSequPropVals.getLength() <= nTokenIndex)
278  aSequPropVals.realloc(nTokenIndex + 10);
279 
280  switch(aToken.eTokenType)
281  {
282  case TOKEN_ENTRY_NO :
283  sTokenType = "TokenEntryNumber";
284  // numbering for content index
285  break;
286  case TOKEN_ENTRY_TEXT :
287  case TOKEN_ENTRY :
288  sTokenType = "TokenEntryText";
289  break;
290  case TOKEN_TAB_STOP :
291  nParamCount += 3;
292  sTokenType = "TokenTabStop";
293  break;
294  case TOKEN_TEXT :
295  sTokenType = "TokenText";
296  nParamCount += 1;
297  break;
298  case TOKEN_PAGE_NUMS :
299  sTokenType = "TokenPageNumber";
300  break;
301  case TOKEN_CHAPTER_INFO :
302  sTokenType = "TokenChapterInfo";
303  break;
304  case TOKEN_LINK_START :
305  sTokenType = "TokenHyperlinkStart";
306  break;
307  case TOKEN_LINK_END :
308  sTokenType = "TokenHyperlinkEnd";
309  break;
310  case TOKEN_AUTHORITY :
311  {
312  sTokenType = "TokenBibliographyDataField";
313  }
314  break;
315  default:; //prevent warning
316  }
317  beans::PropertyValues aPropVals(nParamCount);
318  beans::PropertyValue* pPropValArr = aPropVals.getArray();
319  pPropValArr[0].Name = "TokenType";
320  pPropValArr[0].Value <<= sTokenType;
321  pPropValArr[1].Name = "CharacterStyleName";
322  pPropValArr[1].Value <<= aToken.sCharStyleName;
323  if(TOKEN_TAB_STOP == aToken.eTokenType)
324  {
325  pPropValArr[2].Name = "TabStopRightAligned";
326  pPropValArr[2].Value <<= SvxTabAdjust::End == aToken.eTabAlign;
327  pPropValArr[3].Name = "TabStopFillCharacter";
328  pPropValArr[3].Value <<= OUString(aToken.cTabFillChar);
329  pPropValArr[4].Name = "TabStopPosition";
330  SwTwips nTempPos = aToken.nTabStopPosition >= 0 ?
331  aToken.nTabStopPosition : 0;
332  nTempPos = convertTwipToMm100(nTempPos);
333  pPropValArr[4].Value <<= static_cast<sal_Int32>(nTempPos);
334  }
335  else if(TOKEN_TEXT == aToken.eTokenType)
336  {
337  pPropValArr[2].Name = "Text";
338  pPropValArr[2].Value <<= aToken.sText;
339  }
340  beans::PropertyValues* pValues = aSequPropVals.getArray();
341  pValues[nTokenIndex] = aPropVals;
342  nTokenIndex++;
343  }
344  aSequPropVals.realloc(nTokenIndex);
345 
346  uno::Any aFormatAccess = xIdxProps->getPropertyValue(UNO_NAME_LEVEL_FORMAT);
347  OSL_ENSURE(aFormatAccess.getValueType() == cppu::UnoType<container::XIndexReplace>::get(),
348  "wrong property type");
349 
350  uno::Reference< container::XIndexReplace > xFormatAccess;
351  aFormatAccess >>= xFormatAccess;
352  uno::Any aLevelProp(&aSequPropVals, cppu::UnoType<uno::Sequence<beans::PropertyValues>>::get());
353  xFormatAccess->replaceByIndex(nCurrLevel, aLevelProp);
354  }
355  }
356  }
357  if(bInitialCreate || !nPage || nPage == TOX_PAGE_STYLES)
358  {
359  lcl_SetProp(xInfo, xIdxProps, "ParaStyleHeading", pForm->GetTemplate(0));
360  sal_uInt16 nOffset = 0;
361  sal_uInt16 nEndLevel = 2;
362  switch(m_eCurrentTOXType.eType)
363  {
364  case TOX_INDEX:
365  {
366  nOffset = 1;
367  nEndLevel = 4;
368  lcl_SetProp(xInfo, xIdxProps, "ParaStyleSeparator", pForm->GetTemplate(1));
369  }
370  break;
371  case TOX_CONTENT :
372  nEndLevel = 11;
373  break;
374  default:; //prevent warning
375  }
376  for(sal_uInt16 i = 1; i < nEndLevel; i++)
377  {
378  lcl_SetProp(xInfo,
379  xIdxProps,
380  "ParaStyleLevel" + OUString::number( i ),
381  pForm->GetTemplate(i + nOffset));
382  }
383  }
384  m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex->update();
385 
386  }
387  catch (const Exception&)
388  {
389  TOOLS_WARN_EXCEPTION( "sw", "::CreateExample()");
390  }
391  m_xExampleFrame->Invalidate();
392 }
393 
394 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< SwFormToken > SwFormTokens
Vector of tokens.
Definition: tox.hxx:286
#define UNO_NAME_USE_KEY_AS_ENTRY
Definition: unoprnms.hxx:429
#define UNO_NAME_CREATE_FROM_STAR_MATH
Definition: unoprnms.hxx:445
TOXTypes
Definition: toxe.hxx:39
SwTOIOptions
Definition: tox.hxx:386
SwTOXElement GetContentOptions() const
Definition: toxmgr.hxx:110
#define UNO_NAME_LABEL_DISPLAY_TYPE
Definition: unoprnms.hxx:436
#define UNO_NAME_CREATE_FROM_STAR_CALC
Definition: unoprnms.hxx:447
Definition: tox.hxx:313
SwTOOElements
Definition: tox.hxx:409
const OUString & GetSequenceName() const
Definition: toxmgr.hxx:124
long Long
OUString const & GetTemplate(sal_uInt16 nLevel) const
Definition: tox.hxx:672
#define UNO_NAME_IS_VISIBLE
Definition: unoprnms.hxx:334
#define TOX_STYLE_DELIMITER
Definition: tox.hxx:422
sal_Int64 n
void CreateOrUpdateExample(TOXTypes nTOXIndex, sal_uInt16 nPage=0, sal_uInt16 nCurLevel=USHRT_MAX)
Definition: cntex.cxx:126
constexpr sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:93
#define UNO_NAME_IS_COMMA_SEPARATED
Definition: unoprnms.hxx:451
sal_uInt16 GetFormMax() const
Definition: tox.hxx:683
#define UNO_NAME_LEVEL
Definition: unoprnms.hxx:273
#define UNO_NAME_CREATE_FROM_STAR_CHART
Definition: unoprnms.hxx:446
constexpr auto convertTwipToMm100(N n)
SwCaptionDisplay GetCaptionDisplay() const
Definition: toxmgr.hxx:127
#define UNO_NAME_LEVEL_FORMAT
Definition: unoprnms.hxx:438
char sal_uInt16 & nParamCount
#define UNO_NAME_USE_UPPER_CASE
Definition: unoprnms.hxx:434
SwTOIOptions GetIndexOptions() const
Definition: toxmgr.hxx:113
#define UNO_NAME_CREATE_FROM_CHAPTER
Definition: unoprnms.hxx:426
bool IsCreateFromObjectNames() const
Definition: toxmgr.hxx:122
#define UNO_NAME_IS_PROTECTED
Definition: unoprnms.hxx:163
sal_Int32 getTokenCount(std::string_view rIn, char cTok)
#define UNO_NAME_CREATE_FROM_TEXT_FRAMES
Definition: unoprnms.hxx:442
#define UNO_NAME_TOC_NEWLINE
Definition: unoprnms.hxx:128
#define UNO_NAME_HIDE_TAB_LEADER_AND_PAGE_NUMBERS
Definition: unoprnms.hxx:125
bool IsFromChapter() const
Definition: toxmgr.hxx:131
static SW_DLLPUBLIC const OUString & GetSpecialExtraProgName(const OUString &rExtraUIName)
static void lcl_SetBOOLProp(uno::Reference< beans::XPropertySetInfo > const &xInfo, uno::Reference< beans::XPropertySet > const &xProps, OUString const &aPropName, bool bValue)
Definition: cntex.cxx:75
#define UNO_NAME_LEVEL_PARAGRAPH_STYLES
Definition: unoprnms.hxx:439
#define TOOLS_WARN_EXCEPTION(area, stream)
sal_uInt8 GetLevel() const
Definition: toxmgr.hxx:119
int i
SwTOXElement
Definition: tox.hxx:365
const SwFormTokens & GetPattern(sal_uInt16 nLevel) const
Definition: tox.cxx:943
SwTOOElements GetOLEOptions() const
Definition: toxmgr.hxx:136
#define TOX_PAGE_SELECT
Definition: cnttab.hxx:26
#define UNO_NAME_LABEL_CATEGORY
Definition: unoprnms.hxx:435
#define UNO_NAME_CREATE_FROM_MARKS
Definition: unoprnms.hxx:424
bool IsReadonly() const
Definition: toxmgr.hxx:134
#define UNO_NAME_TOC_PARAGRAPH_OUTLINE_LEVEL
Definition: unoprnms.hxx:129
#define UNO_NAME_CREATE_FROM_LABELS
Definition: unoprnms.hxx:427
css::uno::Type const & get()
#define UNO_NAME_TAB_IN_TOC
Definition: unoprnms.hxx:126
#define UNO_NAME_CREATE_FROM_TABLES
Definition: unoprnms.hxx:441
#define UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS
Definition: unoprnms.hxx:449
static void lcl_SetProp(uno::Reference< XPropertySetInfo > const &xInfo, uno::Reference< XPropertySet > const &xProps, OUString const &aPropName, const OUString &rValue)
Definition: cntex.cxx:51
tools::Long SwTwips
Definition: swtypes.hxx:52
#define UNO_NAME_USE_DASH
Definition: unoprnms.hxx:433
#define UNO_NAME_CREATE_FROM_STAR_DRAW
Definition: unoprnms.hxx:448
const PropertyValue * pValues
#define UNO_NAME_CREATE_FROM_EMBEDDED_OBJECTS
Definition: unoprnms.hxx:444
std::optional< OUString > const & GetTitle() const
Definition: toxmgr.hxx:101
bool IsCommaSeparated() const
Definition: tox.hxx:347
#define TOX_PAGE_ENTRY
Definition: cnttab.hxx:27
#define UNO_NAME_CREATE_FROM_OUTLINE
Definition: unoprnms.hxx:425
Reference< XModel > xModel
const OUString & GetStyleNames(sal_uInt16 nLvl) const
Definition: toxmgr.hxx:92
#define UNO_NAME_IS_CASE_SENSITIVE
Definition: unoprnms.hxx:431
#define UNO_NAME_USE_COMBINED_ENTRIES
Definition: unoprnms.hxx:430
#define UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS
Definition: unoprnms.hxx:443
#define TOX_PAGE_STYLES
Definition: cnttab.hxx:28
uno::Reference< ucb::XContent > xContent
IMPL_LINK_NOARG(SwMultiTOXTabDialog, CreateExample_Hdl, SwOneExampleFrame &, void)
Definition: cntex.cxx:86
#define UNO_NAME_TITLE
Definition: unoprnms.hxx:320
#define UNO_NAME_USE_ALPHABETICAL_SEPARATORS
Definition: unoprnms.hxx:428
sal_uInt16 nPos
#define UNO_NAME_USE_P_P
Definition: unoprnms.hxx:432
css::uno::Any SAL_CALL makeAny(const SharedUNOComponent< INTERFACE, COMPONENT > &value)