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