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