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