LibreOffice Module sw (master) 1
optcomp.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 <optcomp.hxx>
21
22#include <cmdid.h>
23#include <docsh.hxx>
24#include <uiitems.hxx>
25#include <view.hxx>
26#include <wrtsh.hxx>
27
28#include <vcl/svapp.hxx>
29#include <vcl/weld.hxx>
30#include <sfx2/docfilt.hxx>
31#include <sfx2/fcontnr.hxx>
33#include <vector>
36#include <officecfg/Office/Compatibility.hxx>
37#include <osl/diagnose.h>
38
39using namespace ::com::sun::star::beans;
40using namespace ::com::sun::star::document;
41using namespace ::com::sun::star::uno;
42using namespace ::std;
43
45{
46 std::vector< SvtCompatibilityEntry > m_aList;
47};
48
50 : SfxTabPage(pPage, pController, "modules/swriter/ui/optcompatpage.ui", "OptCompatPage", &rSet)
51 , m_pWrtShell(nullptr)
53 , m_nSavedOptions(0)
54 , m_bSavedMSFormsMenuOption(false)
55 , m_xMain(m_xBuilder->weld_frame("compatframe"))
56 , m_xGlobalOptionsFrame(m_xBuilder->weld_frame("globalcompatframe"))
57 , m_xFormattingLB(m_xBuilder->weld_combo_box("format"))
58 , m_xGlobalOptionsLB(m_xBuilder->weld_combo_box("globaloptions"))
59 , m_xOptionsLB(m_xBuilder->weld_tree_view("options"))
60 , m_xGlobalOptionsCLB(m_xBuilder->weld_tree_view("globaloptioncheckbox"))
61 , m_xDefaultPB(m_xBuilder->weld_button("default"))
62{
63 m_xOptionsLB->enable_toggle_buttons(weld::ColumnToggleType::Check);
65
66 int nPos = 0;
67 for (int i = static_cast<int>(SvtCompatibilityEntry::Index::Module) + 1;
68 i < static_cast<int>(SvtCompatibilityEntry::Index::INVALID) - 1; // omit AddTableLineSpacing
69 ++i)
70 {
71 int nCoptIdx = i - 2; /* Do not consider "Name" & "Module" indexes */
72
73 const OUString sEntry = m_xFormattingLB->get_text(nCoptIdx);
74 m_xOptionsLB->append();
75 m_xOptionsLB->set_toggle(nPos, TRISTATE_FALSE);
76 m_xOptionsLB->set_text(nPos, sEntry, 0);
77 ++nPos;
78 }
79
80 m_sUserEntry = m_xFormattingLB->get_text(m_xFormattingLB->get_count() - 1);
81
82 m_xFormattingLB->clear();
83
84 // Set MSOCompatibleFormsMenu entry attributes
85 const bool bReadOnly = officecfg::Office::Compatibility::View::MSCompatibleFormsMenu::isReadOnly();
86 m_xGlobalOptionsCLB->set_sensitive(!bReadOnly);
87
88 m_xGlobalOptionsCLB->append();
90 m_xGlobalOptionsCLB->set_toggle(0, bChecked ? TRISTATE_TRUE : TRISTATE_FALSE);
91 m_xGlobalOptionsCLB->set_text(0, m_xGlobalOptionsLB->get_text(0), 0);
92
93 m_xGlobalOptionsLB->clear();
94
95 // tdf#125799, we let only the doc options grow/shrink but give this one more than its bare
96 // min request height because there's only one row in it and that looks somewhat abrupt
97 m_xGlobalOptionsCLB->set_size_request(-1, m_xGlobalOptionsCLB->get_preferred_size().Height() * 2);
98
100
101 // set handler
102 m_xFormattingLB->connect_changed( LINK( this, SwCompatibilityOptPage, SelectHdl ) );
103 m_xDefaultPB->connect_clicked( LINK( this, SwCompatibilityOptPage, UseAsDefaultHdl ) );
104}
105
107{
108}
109
110static sal_uInt32 convertBools2Ulong_Impl
111(
112 bool _bUsePrtMetrics,
113 bool _bAddSpacing,
114 bool _bAddSpacingAtPages,
115 bool _bUseOurTabStops,
116 bool _bNoExtLeading,
117 bool _bUseLineSpacing,
118 bool _bAddTableSpacing,
119 bool _bAddTableLineSpacing,
120 bool _bUseObjPos,
121 bool _bUseOurTextWrapping,
122 bool _bConsiderWrappingStyle,
123 bool _bExpandWordSpace,
124 bool _bProtectForm,
125 bool _bMsWordCompTrailingBlanks,
126 bool bSubtractFlysAnchoredAtFlys,
127 bool bEmptyDbFieldHidesPara
128)
129{
130 sal_uInt32 nRet = 0;
131 sal_uInt32 nSetBit = 1;
132
133 if ( _bUsePrtMetrics )
134 nRet |= nSetBit;
135 nSetBit = nSetBit << 1;
136 if ( _bAddSpacing )
137 nRet |= nSetBit;
138 nSetBit = nSetBit << 1;
139 if ( _bAddSpacingAtPages )
140 nRet |= nSetBit;
141 nSetBit = nSetBit << 1;
142 if ( _bUseOurTabStops )
143 nRet |= nSetBit;
144 nSetBit = nSetBit << 1;
145 if ( _bNoExtLeading )
146 nRet |= nSetBit;
147 nSetBit = nSetBit << 1;
148 if ( _bUseLineSpacing )
149 nRet |= nSetBit;
150 nSetBit = nSetBit << 1;
151 if ( _bAddTableSpacing )
152 nRet |= nSetBit;
153 nSetBit = nSetBit << 1;
154 if (_bAddTableLineSpacing)
155 nRet |= nSetBit;
156 nSetBit = nSetBit << 1;
157 if ( _bUseObjPos )
158 nRet |= nSetBit;
159 nSetBit = nSetBit << 1;
160 if ( _bUseOurTextWrapping )
161 nRet |= nSetBit;
162 nSetBit = nSetBit << 1;
163 if ( _bConsiderWrappingStyle )
164 nRet |= nSetBit;
165 nSetBit = nSetBit << 1;
166 if ( _bExpandWordSpace )
167 nRet |= nSetBit;
168 nSetBit = nSetBit << 1;
169 if ( _bProtectForm )
170 nRet |= nSetBit;
171 nSetBit = nSetBit << 1;
172 if ( _bMsWordCompTrailingBlanks )
173 nRet |= nSetBit;
174 nSetBit = nSetBit << 1;
175 if (bSubtractFlysAnchoredAtFlys)
176 nRet |= nSetBit;
177 nSetBit = nSetBit << 1;
178 if (bEmptyDbFieldHidesPara)
179 nRet |= nSetBit;
180
181 return nRet;
182}
183
185{
186 // init objectshell and detect document name
187 OUString sDocTitle;
188 SfxObjectShell* pObjShell = nullptr;
189 if ( const SwPtrItem* pItem = rSet.GetItemIfSet( FN_PARAM_WRTSHELL, false ) )
190 m_pWrtShell = static_cast<SwWrtShell*>(pItem->GetValue());
191 if ( m_pWrtShell )
192 {
193 pObjShell = m_pWrtShell->GetView().GetDocShell();
194 if ( pObjShell )
195 sDocTitle = pObjShell->GetTitle();
196 }
197 else
198 {
199 m_xMain->set_sensitive(false);
200 m_xGlobalOptionsFrame->set_sensitive(false);
201 }
202 const OUString& rText = m_xMain->get_label();
203 m_xMain->set_label(rText.replaceAll("%DOCNAME", sDocTitle));
204
205 // loading file formats
206 const std::vector< SvtCompatibilityEntry > aList = m_aConfigItem.GetList();
207
208 for ( const SvtCompatibilityEntry& rEntry : aList )
209 {
210 const OUString sEntryName = rEntry.getValue<OUString>( SvtCompatibilityEntry::Index::Name );
211 const bool bIsUserEntry = ( sEntryName == SvtCompatibilityEntry::USER_ENTRY_NAME );
212
213 m_pImpl->m_aList.push_back( rEntry );
214
215 if ( rEntry.isDefaultEntry() )
216 continue;
217
218 OUString sNewEntry;
219 if ( bIsUserEntry )
220 sNewEntry = m_sUserEntry;
221
222 else if ( pObjShell && !sEntryName.isEmpty() )
223 {
224 SfxFilterContainer* pFacCont = pObjShell->GetFactory().GetFilterContainer();
225 std::shared_ptr<const SfxFilter> pFilter = pFacCont->GetFilter4FilterName( sEntryName );
226 if ( pFilter )
227 sNewEntry = pFilter->GetUIName();
228 }
229
230 if ( sNewEntry.isEmpty() )
231 sNewEntry = sEntryName;
232
233 sal_uInt32 nOptions = convertBools2Ulong_Impl(
234 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::UsePrtMetrics ),
235 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::AddSpacing ),
237 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::UseOurTabStops ),
238 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::NoExtLeading ),
239 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::UseLineSpacing ),
240 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::AddTableSpacing ),
245 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::ExpandWordSpace ),
246 rEntry.getValue<bool>( SvtCompatibilityEntry::Index::ProtectForm ),
250 m_xFormattingLB->append(OUString::number(nOptions), sNewEntry);
251 }
252}
253
255{
256 sal_uInt32 nOptions = m_xFormattingLB->get_active_id().toUInt32();
257 SetCurrentOptions(nOptions);
258}
259
261{
262 std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(GetFrameWeld(), "modules/swriter/ui/querydefaultcompatdialog.ui"));
263 std::unique_ptr<weld::MessageDialog> xQueryBox(xBuilder->weld_message_dialog("QueryDefaultCompatDialog"));
264 if (xQueryBox->run() != RET_YES)
265 return;
266
267 auto pItem = std::find_if(m_pImpl->m_aList.begin(), m_pImpl->m_aList.end(),
268 [](const SvtCompatibilityEntry& rItem) { return rItem.isDefaultEntry(); });
269 if (pItem != m_pImpl->m_aList.end())
270 {
271 const sal_Int32 nCount = m_xOptionsLB->n_children();
272 for ( sal_Int32 i = 0; i < nCount; ++i )
273 {
274 bool bChecked = m_xOptionsLB->get_toggle(i);
275
276 int nCoptIdx = i + 2; /* Consider "Name" & "Module" indexes */
277 pItem->setValue<bool>( SvtCompatibilityEntry::Index(nCoptIdx), bChecked );
279 {
280 bool const isLineSpacing = m_xOptionsLB->get_toggle(i) == TRISTATE_TRUE;
281 pItem->setValue<bool>(SvtCompatibilityEntry::Index::AddTableLineSpacing, isLineSpacing);
282 }
283 else
284 {
285 assert(m_xOptionsLB->get_toggle(i) != TRISTATE_INDET);
286 }
287 }
288 }
289
290 WriteOptions();
291}
292
294{
295 const int nCount = m_xOptionsLB->n_children();
296 OSL_ENSURE( nCount <= 32, "SwCompatibilityOptPage::Reset(): entry overflow" );
297 for (int i = 0; i < nCount; ++i)
298 {
299 bool bChecked = ( ( nOptions & 0x00000001 ) == 0x00000001 );
302 { // hack: map 2 bools to 1 tristate
303 nOptions = nOptions >> 1;
304 if (value == TRISTATE_TRUE
305 && (nOptions & 0x00000001) != 0x00000001) // ADD_PARA_LINE_SPACING_TO_TABLE_CELLS
306 {
307 value = TRISTATE_INDET; // 3 values possible here
308 }
309 }
310 m_xOptionsLB->set_toggle(i, value);
311 nOptions = nOptions >> 1;
312 }
313}
314
316{
317 sal_uInt32 nRet = 0;
318 if ( m_pWrtShell )
319 {
320 const IDocumentSettingAccess& rIDocumentSettingAccess = m_pWrtShell->getIDocumentSettingAccess();
322 !rIDocumentSettingAccess.get( DocumentSettingId::USE_VIRTUAL_DEVICE ),
323 rIDocumentSettingAccess.get( DocumentSettingId::PARA_SPACE_MAX ),
324 rIDocumentSettingAccess.get( DocumentSettingId::PARA_SPACE_MAX_AT_PAGES ),
325 !rIDocumentSettingAccess.get( DocumentSettingId::TAB_COMPAT ),
326 !rIDocumentSettingAccess.get( DocumentSettingId::ADD_EXT_LEADING ),
327 rIDocumentSettingAccess.get( DocumentSettingId::OLD_LINE_SPACING ),
330 rIDocumentSettingAccess.get( DocumentSettingId::USE_FORMER_OBJECT_POS ),
331 rIDocumentSettingAccess.get( DocumentSettingId::USE_FORMER_TEXT_WRAPPING ),
334 rIDocumentSettingAccess.get( DocumentSettingId::PROTECT_FORM ),
335 rIDocumentSettingAccess.get( DocumentSettingId::MS_WORD_COMP_TRAILING_BLANKS ),
336 rIDocumentSettingAccess.get( DocumentSettingId::SUBTRACT_FLYS ),
337 rIDocumentSettingAccess.get( DocumentSettingId::EMPTY_DB_FIELD_HIDES_PARA ) );
338 }
339 return nRet;
340}
341
343{
345 for ( const auto& rItem : m_pImpl->m_aList )
347}
348
349std::unique_ptr<SfxTabPage> SwCompatibilityOptPage::Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet)
350{
351 return std::make_unique<SwCompatibilityOptPage>(pPage, pController, *rAttrSet);
352}
353
355{
356 bool bModified = false;
357 if ( m_pWrtShell )
358 {
359 sal_uInt32 nSavedOptions = m_nSavedOptions;
360 const int nCount = m_xOptionsLB->n_children();
361 OSL_ENSURE( nCount <= 32, "SwCompatibilityOptPage::Reset(): entry overflow" );
362
363 for (int i = 0; i < nCount; ++i)
364 {
365 TriState const current = m_xOptionsLB->get_toggle(i);
366 TriState saved = ((nSavedOptions & 0x00000001) == 0x00000001) ? TRISTATE_TRUE : TRISTATE_FALSE;
368 { // hack: map 2 bools to 1 tristate
369 nSavedOptions = nSavedOptions >> 1;
370 if (saved == TRISTATE_TRUE
371 && ((nSavedOptions & 0x00000001) != 0x00000001))
372 {
373 saved = TRISTATE_INDET;
374 }
375 }
376 if (current != saved)
377 {
378 bool const bChecked(current != TRISTATE_FALSE);
379 assert(current != TRISTATE_INDET); // can't *change* it to that
380 int nCoptIdx = i + 2; /* Consider "Name" & "Module" indexes */
381 switch ( SvtCompatibilityEntry::Index(nCoptIdx) )
382 {
384 m_pWrtShell->SetUseVirDev( !bChecked );
385 break;
386
388 m_pWrtShell->SetParaSpaceMax( bChecked );
389 break;
390
393 break;
394
396 m_pWrtShell->SetTabCompat( !bChecked );
397 break;
398
400 m_pWrtShell->SetAddExtLeading( !bChecked );
401 break;
402
405 break;
406
409 break;
410
413 break;
414
417 break;
418
421 break;
422
425 break;
426
428 m_pWrtShell->SetProtectForm( bChecked );
429 break;
430
433 break;
434
437 break;
438
441 break;
442
443 default:
444 break;
445 }
446 bModified = true;
447 }
448
449 nSavedOptions = nSavedOptions >> 1;
450 }
451 }
452
453 if ( bModified )
454 WriteOptions();
455
456 bool bNewMSFormsMenuOption = m_xGlobalOptionsCLB->get_toggle(0);
457 if (m_bSavedMSFormsMenuOption != bNewMSFormsMenuOption)
458 {
459 std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create());
460 officecfg::Office::Compatibility::View::MSCompatibleFormsMenu::set(bNewMSFormsMenuOption, batch);
461 batch->commit();
462
463 m_bSavedMSFormsMenuOption = bNewMSFormsMenuOption;
464 bModified = true;
465
466 // Show a message about that the option needs a restart to be applied
467 {
468 SolarMutexGuard aGuard;
471 {
472 GetDialogController()->response(RET_OK);
473 }
474 }
475 }
476
477 return bModified;
478}
479
481{
482 m_xOptionsLB->select(0);
483
484 sal_uInt32 nOptions = GetDocumentOptions();
485 SetCurrentOptions( nOptions );
486 m_nSavedOptions = nOptions;
487
490}
491
492/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@ CONSIDER_WRAP_ON_OBJECT_POSITION
@ DO_NOT_JUSTIFY_LINES_WITH_MANUAL_BREAK
@ ADD_PARA_LINE_SPACING_TO_TABLE_CELLS
::std::unique_ptr< XmlIdRegistry_Impl > m_pImpl
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
Provides access to settings of a document.
virtual bool get(DocumentSettingId id) const =0
Return the specified document setting.
std::shared_ptr< const SfxFilter > GetFilter4FilterName(const OUString &rName, SfxFilterFlags nMust=SfxFilterFlags::NONE, SfxFilterFlags nDont=SFX_FILTER_NOTINSTALLED) const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
SfxFilterContainer * GetFilterContainer() const
virtual SfxObjectFactory & GetFactory() const=0
OUString GetTitle(sal_uInt16 nMaxLen=0) const
SfxOkDialogController * GetDialogController() const
weld::Window * GetFrameWeld() const
static constexpr OUStringLiteral USER_ENTRY_NAME
std::vector< SvtCompatibilityEntry > GetList() const
void AppendItem(const SvtCompatibilityEntry &aItem)
std::unique_ptr< weld::ComboBox > m_xGlobalOptionsLB
Definition: optcomp.hxx:49
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: optcomp.cxx:349
std::unique_ptr< weld::TreeView > m_xGlobalOptionsCLB
Definition: optcomp.hxx:51
std::unique_ptr< weld::Frame > m_xGlobalOptionsFrame
Definition: optcomp.hxx:47
SvtCompatibilityOptions m_aConfigItem
Definition: optcomp.hxx:34
void SetCurrentOptions(sal_uInt32 nOptions)
Definition: optcomp.cxx:293
sal_uInt32 m_nSavedOptions
Definition: optcomp.hxx:42
sal_uInt32 GetDocumentOptions() const
Definition: optcomp.cxx:315
bool m_bSavedMSFormsMenuOption
Definition: optcomp.hxx:43
std::unique_ptr< weld::Frame > m_xMain
Definition: optcomp.hxx:46
SwCompatibilityOptPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: optcomp.cxx:49
void InitControls(const SfxItemSet &rSet)
Definition: optcomp.cxx:184
std::unique_ptr< weld::TreeView > m_xOptionsLB
Definition: optcomp.hxx:50
std::unique_ptr< weld::Button > m_xDefaultPB
Definition: optcomp.hxx:52
SwWrtShell * m_pWrtShell
Definition: optcomp.hxx:38
std::unique_ptr< weld::ComboBox > m_xFormattingLB
Definition: optcomp.hxx:48
virtual ~SwCompatibilityOptPage() override
Definition: optcomp.cxx:106
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optcomp.cxx:354
virtual void Reset(const SfxItemSet *rSet) override
Definition: optcomp.cxx:480
std::unique_ptr< SwCompatibilityOptPage_Impl > m_pImpl
Definition: optcomp.hxx:40
void SetProtectForm(bool _bProtectForm)
Definition: viewsh.cxx:1015
void SetParaSpaceMax(bool bNew)
Definition: viewsh.cxx:863
void SetUseFormerTextWrapping(bool _bUseFormerTextWrapping)
Definition: viewsh.cxx:990
const IDocumentSettingAccess & getIDocumentSettingAccess() const
Provides access to the document setting interface.
Definition: viewsh.cxx:2777
void SetDoNotJustifyLinesWithManualBreak(bool _bDoNotJustifyLinesWithManualBreak)
Definition: viewsh.cxx:1003
void SetUseFormerLineSpacing(bool _bUseFormerLineSpacing)
Sets if former formatting of text lines with proportional line spacing should used.
Definition: viewsh.cxx:950
void SetUseFormerObjectPositioning(bool _bUseFormerObjPos)
Sets IDocumentSettingAccess if former object positioning should be used.
Definition: viewsh.cxx:967
void SetUseVirDev(bool bNew)
Definition: viewsh.cxx:914
void SetParaSpaceMaxAtPages(bool bNew)
Definition: viewsh.cxx:875
void SetAddExtLeading(bool bNew)
Definition: viewsh.cxx:899
void SetConsiderWrapOnObjPos(bool _bConsiderWrapOnObjPos)
Definition: viewsh.cxx:979
void SetTabCompat(bool bNew)
Definition: viewsh.cxx:887
void SetMsWordCompTrailingBlanks(bool _bMsWordCompTrailingBlanks)
Definition: viewsh.cxx:1021
void SetSubtractFlysAnchoredAtFlys(bool bSubtractFlysAnchoredAtFlys)
Definition: viewsh.cxx:1033
void SetAddParaSpacingToTableCells(bool _bAddParaSpacingToTableCells)
Sets if paragraph and table spacing is added at bottom of table cells.
Definition: viewsh.cxx:930
void SetEmptyDbFieldHidesPara(bool bEmptyDbFieldHidesPara)
Definition: viewsh.cxx:1039
SwDocShell * GetDocShell()
Definition: view.cxx:1133
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
const SwView & GetView() const
Definition: wrtsh.hxx:437
static std::shared_ptr< ConfigurationChanges > create()
#define FN_PARAM_WRTSHELL
Definition: cmdid.h:805
Any value
int nCount
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
Definition: dialoghelp.cxx:19
bool bReadOnly
TriState
TRISTATE_FALSE
TRISTATE_INDET
TRISTATE_TRUE
sal_uInt16 nPos
Reference< XComponentContext > getProcessComponentContext()
int i
RESTART_REASON_MSCOMPATIBLE_FORMS_MENU
SVT_DLLPUBLIC bool executeRestartDialog(css::uno::Reference< css::uno::XComponentContext > const &context, weld::Window *parent, RestartReason reason)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
static sal_uInt32 convertBools2Ulong_Impl(bool _bUsePrtMetrics, bool _bAddSpacing, bool _bAddSpacingAtPages, bool _bUseOurTabStops, bool _bNoExtLeading, bool _bUseLineSpacing, bool _bAddTableSpacing, bool _bAddTableLineSpacing, bool _bUseObjPos, bool _bUseOurTextWrapping, bool _bConsiderWrappingStyle, bool _bExpandWordSpace, bool _bProtectForm, bool _bMsWordCompTrailingBlanks, bool bSubtractFlysAnchoredAtFlys, bool bEmptyDbFieldHidesPara)
Definition: optcomp.cxx:111
IMPL_LINK_NOARG(SwCompatibilityOptPage, SelectHdl, weld::ComboBox &, void)
Definition: optcomp.cxx:254
static SfxItemSet & rSet
std::vector< SvtCompatibilityEntry > m_aList
Definition: optcomp.cxx:46
RET_OK
RET_YES