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  auto pDoc = comphelper::getUnoTunnelImplementation<SwXTextDocument>(xModel);
103 
104  if( pDoc )
105  pDoc->GetDocShell()->LoadStyles_( *m_rWrtShell.GetView().GetDocShell(), true );
106 
107  uno::Reference< text::XTextSectionsSupplier > xSectionSupplier(
108  xModel, uno::UNO_QUERY);
109  uno::Reference< container::XNameAccess > xSections =
110  xSectionSupplier->getTextSections();
111 
112  for(int i = 0; i < 7; ++i )
113  {
114  OUString sTmp = "IndexSection_" + OUString::number(i);
115  uno::Any aSection = xSections->getByName( sTmp );
116  aSection >>= m_vTypeData[i].m_pxIndexSections->xContainerSection;
117  }
118  uno::Reference< text::XDocumentIndexesSupplier > xIdxSupp(xModel, uno::UNO_QUERY);
119  uno::Reference< container::XIndexAccess > xIdxs = xIdxSupp->getDocumentIndexes();
120  int n = xIdxs->getCount();
121  while(n)
122  {
123  n--;
124  uno::Any aIdx = xIdxs->getByIndex(n);
125  uno::Reference< text::XDocumentIndex > xIdx;
126  aIdx >>= xIdx;
127  xIdx->dispose();
128  }
129  CreateOrUpdateExample(m_eCurrentTOXType.eType);
130  }
131  catch (const Exception&)
132  {
133  OSL_FAIL("::CreateExample() - exception caught");
134  }
135 }
136 
138  TOXTypes nTOXIndex, sal_uInt16 nPage, sal_uInt16 nCurrentLevel)
139 {
140  if(!m_xExampleFrame || !m_xExampleFrame->IsInitialized())
141  return;
142 
143  try
144  {
145  static const char* IndexServiceNames[] =
146  {
147  "com.sun.star.text.DocumentIndex",
148  "com.sun.star.text.UserIndex",
149  "com.sun.star.text.ContentIndex",
150  "com.sun.star.text.IllustrationsIndex",
151  "com.sun.star.text.ObjectIndex",
152  "com.sun.star.text.TableIndex",
153  "com.sun.star.text.Bibliography"
154  };
155 
156  OSL_ENSURE(m_vTypeData[nTOXIndex].m_pxIndexSections &&
157  m_vTypeData[nTOXIndex].m_pxIndexSections->xContainerSection.is(),
158  "Section not created");
159  uno::Reference< frame::XModel > & xModel = m_xExampleFrame->GetModel();
160  bool bInitialCreate = true;
161  if(!m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex.is())
162  {
163  bInitialCreate = true;
164  if(!m_vTypeData[nTOXIndex].m_pxIndexSections->xContainerSection.is())
165  throw uno::RuntimeException();
166  uno::Reference< text::XTextRange > xAnchor = m_vTypeData[nTOXIndex].m_pxIndexSections->xContainerSection->getAnchor();
167  xAnchor = xAnchor->getStart();
168  uno::Reference< text::XTextCursor > xCursor = xAnchor->getText()->createTextCursorByRange(xAnchor);
169 
170  uno::Reference< lang::XMultiServiceFactory > xFact(xModel, uno::UNO_QUERY);
171 
172  OUString sIndexTypeName(OUString::createFromAscii( IndexServiceNames[
173  nTOXIndex <= TOX_AUTHORITIES ? nTOXIndex : TOX_USER] ));
174  m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex.set(xFact->createInstance(sIndexTypeName), uno::UNO_QUERY);
175  uno::Reference< text::XTextContent > xContent = m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex;
176  xCursor->getText()->insertTextContent(xCursor, xContent, false);
177  }
178  for(sal_uInt16 i = 0 ; i <= TOX_AUTHORITIES; i++)
179  {
180  uno::Reference< beans::XPropertySet > xSectPr(m_vTypeData[i].m_pxIndexSections->xContainerSection, uno::UNO_QUERY);
181  if(xSectPr.is())
182  {
183  xSectPr->setPropertyValue(UNO_NAME_IS_VISIBLE, makeAny(i == nTOXIndex));
184  }
185  }
186  // set properties
187  uno::Reference< beans::XPropertySet > xIdxProps(m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex, uno::UNO_QUERY);
188  uno::Reference< beans::XPropertySetInfo > xInfo = xIdxProps->getPropertySetInfo();
189  SwTOXDescription& rDesc = GetTOXDescription(m_eCurrentTOXType);
190  SwTOIOptions nIdxOptions = rDesc.GetIndexOptions();
191  if(bInitialCreate || !nPage || nPage == TOX_PAGE_SELECT)
192  {
193  //title
194  if(rDesc.GetTitle())
195  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_TITLE, *rDesc.GetTitle());
196 
197  //stylenames
198  SwTOXElement nContentOptions = rDesc.GetContentOptions();
199  if(xInfo->hasPropertyByName(UNO_NAME_LEVEL_PARAGRAPH_STYLES))
200  {
201  bool bOn( nContentOptions&SwTOXElement::Template );
202  uno::Any aStyleNames(xIdxProps->getPropertyValue(UNO_NAME_LEVEL_PARAGRAPH_STYLES));
203  uno::Reference< container::XIndexReplace > xAcc;
204  aStyleNames >>= xAcc;
205 
206  for(sal_uInt16 i = 0; i < MAXLEVEL; i++)
207  {
208  OUString sLevel;
209  if(bOn)
210  sLevel = rDesc.GetStyleNames(i);
211  const sal_Int32 nStyles =
213  uno::Sequence<OUString> aStyles(nStyles);
214  OUString* pArr = aStyles.getArray();
215  sal_Int32 nPos {0};
216  for(sal_Int32 nStyle = 0; nStyle < nStyles; ++nStyle)
217  pArr[nStyle] = sLevel.getToken(0, TOX_STYLE_DELIMITER, nPos);
218  uno::Any aAny(&aStyles, cppu::UnoType<uno::Sequence<OUString>>::get());
219  xAcc->replaceByIndex(i, aAny);
220  }
221  }
222  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LEVEL, static_cast<sal_Int16>(rDesc.GetLevel()));
223  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_MARKS, bool(nContentOptions & SwTOXElement::Mark ));
224  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_OUTLINE, bool(nContentOptions & SwTOXElement::OutlineLevel));
225  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_EMBEDDED_OBJECTS,bool(nContentOptions & SwTOXElement::Ole ));
226  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_TABLES , bool(nContentOptions & SwTOXElement::Table ));
227  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_GRAPHIC_OBJECTS, bool(nContentOptions & SwTOXElement::Graphic ));
228  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_TEXT_FRAMES, bool(nContentOptions & SwTOXElement::Frame ));
229  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_LABELS, bool(nContentOptions & SwTOXElement::Sequence ));
230  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_HIDE_TAB_LEADER_AND_PAGE_NUMBERS, bool(nContentOptions & SwTOXElement::TableLeader ));
231  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_TAB_IN_TOC, bool(nContentOptions & SwTOXElement::TableInToc ));
232  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_TOC_NEWLINE, bool(nContentOptions & SwTOXElement::Newline));
234 
235  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_CHAPTER, rDesc.IsFromChapter());
236  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_PROTECTED, rDesc.IsReadonly());
237 
238  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_COMBINED_ENTRIES, bool(nIdxOptions & SwTOIOptions::SameEntry ));
239  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_P_P, bool(nIdxOptions & SwTOIOptions::FF ));
240  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_CASE_SENSITIVE, bool(nIdxOptions & SwTOIOptions::CaseSensitive ));
241  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_KEY_AS_ENTRY, bool(nIdxOptions & SwTOIOptions::KeyAsEntry ));
243  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_DASH, bool(nIdxOptions & SwTOIOptions::Dash ));
244  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_USE_UPPER_CASE, bool(nIdxOptions & SwTOIOptions::InitialCaps ));
245 
246  OUString aTmpName( SwStyleNameMapper::GetSpecialExtraProgName( rDesc.GetSequenceName() ) );
247  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_CATEGORY, aTmpName );
249 
250  sal_Int16 nSet = text::ChapterFormat::NAME_NUMBER;
251  switch (rDesc.GetCaptionDisplay())
252  {
253  case CAPTION_COMPLETE: nSet = text::ChapterFormat::NAME_NUMBER;break;
254  case CAPTION_NUMBER : nSet = text::ChapterFormat::NUMBER; break;
255  case CAPTION_TEXT : nSet = text::ChapterFormat::NAME; break;
256  }
257  lcl_SetProp(xInfo, xIdxProps, UNO_NAME_LABEL_DISPLAY_TYPE, nSet);
258 
259  SwTOOElements nOLEOptions = rDesc.GetOLEOptions();
260  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_MATH, bool(SwTOOElements::Math &nOLEOptions ));
261  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CHART, bool(SwTOOElements::Chart &nOLEOptions ));
262  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CALC, bool(SwTOOElements::Calc &nOLEOptions ));
263  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_DRAW, bool(SwTOOElements::DrawImpress&nOLEOptions));
265  }
266  const SwForm* pForm = GetForm(m_eCurrentTOXType);
267  if(bInitialCreate || !nPage || nPage == TOX_PAGE_ENTRY)
268  {
269  lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_IS_COMMA_SEPARATED, pForm->IsCommaSeparated());
271  const bool bUseCurrent = nCurrentLevel < pForm->GetFormMax();
272  const sal_uInt16 nStartLevel = bUseCurrent ? nCurrentLevel : 0;
273  const sal_uInt16 nEndLevel = bUseCurrent ? nCurrentLevel : pForm->GetFormMax() - 1;
274  if(xInfo->hasPropertyByName(UNO_NAME_LEVEL_FORMAT))
275  {
276  for(sal_uInt16 nCurrLevel = nStartLevel; nCurrLevel <= nEndLevel; nCurrLevel++)
277  {
278  OUString sTokenType;
279  uno::Sequence< beans::PropertyValues> aSequPropVals(10);
280  long nTokenIndex = 0;
281  long nParamCount = 2;
282 
283  // #i24377#
284  SwFormTokens aPattern = pForm->GetPattern(nCurrLevel);
285 
286  for(const auto& aToken : aPattern)
287  {
288  if( aSequPropVals.getLength() <= nTokenIndex)
289  aSequPropVals.realloc(nTokenIndex + 10);
290 
291  switch(aToken.eTokenType)
292  {
293  case TOKEN_ENTRY_NO :
294  sTokenType = "TokenEntryNumber";
295  // numbering for content index
296  break;
297  case TOKEN_ENTRY_TEXT :
298  case TOKEN_ENTRY :
299  sTokenType = "TokenEntryText";
300  break;
301  case TOKEN_TAB_STOP :
302  nParamCount += 3;
303  sTokenType = "TokenTabStop";
304  break;
305  case TOKEN_TEXT :
306  sTokenType = "TokenText";
307  nParamCount += 1;
308  break;
309  case TOKEN_PAGE_NUMS :
310  sTokenType = "TokenPageNumber";
311  break;
312  case TOKEN_CHAPTER_INFO :
313  sTokenType = "TokenChapterInfo";
314  break;
315  case TOKEN_LINK_START :
316  sTokenType = "TokenHyperlinkStart";
317  break;
318  case TOKEN_LINK_END :
319  sTokenType = "TokenHyperlinkEnd";
320  break;
321  case TOKEN_AUTHORITY :
322  {
323  sTokenType = "TokenBibliographyDataField";
324  }
325  break;
326  default:; //prevent warning
327  }
328  beans::PropertyValues aPropVals(nParamCount);
329  beans::PropertyValue* pPropValArr = aPropVals.getArray();
330  pPropValArr[0].Name = "TokenType";
331  pPropValArr[0].Value <<= sTokenType;
332  pPropValArr[1].Name = "CharacterStyleName";
333  pPropValArr[1].Value <<= aToken.sCharStyleName;
334  if(TOKEN_TAB_STOP == aToken.eTokenType)
335  {
336  pPropValArr[2].Name = "TabStopRightAligned";
337  pPropValArr[2].Value <<= SvxTabAdjust::End == aToken.eTabAlign;
338  pPropValArr[3].Name = "TabStopFillCharacter";
339  pPropValArr[3].Value <<= OUString(aToken.cTabFillChar);
340  pPropValArr[4].Name = "TabStopPosition";
341  SwTwips nTempPos = aToken.nTabStopPosition >= 0 ?
342  aToken.nTabStopPosition : 0;
343  nTempPos = convertTwipToMm100(nTempPos);
344  pPropValArr[4].Value <<= static_cast<sal_Int32>(nTempPos);
345  }
346  else if(TOKEN_TEXT == aToken.eTokenType)
347  {
348  pPropValArr[2].Name = "Text";
349  pPropValArr[2].Value <<= aToken.sText;
350  }
351  beans::PropertyValues* pValues = aSequPropVals.getArray();
352  pValues[nTokenIndex] = aPropVals;
353  nTokenIndex++;
354  }
355  aSequPropVals.realloc(nTokenIndex);
356 
357  uno::Any aFormatAccess = xIdxProps->getPropertyValue(UNO_NAME_LEVEL_FORMAT);
358  OSL_ENSURE(aFormatAccess.getValueType() == cppu::UnoType<container::XIndexReplace>::get(),
359  "wrong property type");
360 
361  uno::Reference< container::XIndexReplace > xFormatAccess;
362  aFormatAccess >>= xFormatAccess;
363  uno::Any aLevelProp(&aSequPropVals, cppu::UnoType<uno::Sequence<beans::PropertyValues>>::get());
364  xFormatAccess->replaceByIndex(nCurrLevel, aLevelProp);
365  }
366  }
367  }
368  if(bInitialCreate || !nPage || nPage == TOX_PAGE_STYLES)
369  {
370  lcl_SetProp(xInfo, xIdxProps, "ParaStyleHeading", pForm->GetTemplate(0));
371  sal_uInt16 nOffset = 0;
372  sal_uInt16 nEndLevel = 2;
373  switch(m_eCurrentTOXType.eType)
374  {
375  case TOX_INDEX:
376  {
377  nOffset = 1;
378  nEndLevel = 4;
379  lcl_SetProp(xInfo, xIdxProps, "ParaStyleSeparator", pForm->GetTemplate(1));
380  }
381  break;
382  case TOX_CONTENT :
383  nEndLevel = 11;
384  break;
385  default:; //prevent warning
386  }
387  for(sal_uInt16 i = 1; i < nEndLevel; i++)
388  {
389  lcl_SetProp(xInfo,
390  xIdxProps,
391  "ParaStyleLevel" + OUString::number( i ),
392  pForm->GetTemplate(i + nOffset));
393  }
394  }
395  m_vTypeData[nTOXIndex].m_pxIndexSections->xDocumentIndex->update();
396 
397  }
398  catch (const Exception&)
399  {
400  OSL_FAIL("::CreateExample() - exception caught");
401  }
402  m_xExampleFrame->Invalidate();
403 }
404 
405 /* 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:137
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
#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 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: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:935
SwTOOElements GetOLEOptions() const
Definition: toxmgr.hxx:136
#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
#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)