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