LibreOffice Module sw (master) 1
envfmt.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 <hintids.hxx>
21
22#include <editeng/paperinf.hxx>
23#include <editeng/tstpitem.hxx>
24#include <editeng/lrspitem.hxx>
25#include <svtools/unitconv.hxx>
26#include <svx/drawitem.hxx>
27#include <o3tl/string_view.hxx>
28#include <osl/diagnose.h>
29
30#include <cmdid.h>
32#include <drawdoc.hxx>
33#include <wrtsh.hxx>
34#include <view.hxx>
35#include "envfmt.hxx"
36#include <fmtcol.hxx>
37#include <swuipardlg.hxx>
38#include <chrdlgmodes.hxx>
39#include <pardlg.hxx>
40#include <poolfmt.hxx>
41#include <uitool.hxx>
42
43#include <vector>
44#include <algorithm>
45
46#include <memory>
47
48#include <swabstdlg.hxx>
49#include <swuiexp.hxx>
50
51static tools::Long lUserW = 5669; // 10 cm
52static tools::Long lUserH = 5669; // 10 cm
53
55 : SfxTabPage(pPage, pController, "modules/swriter/ui/envformatpage.ui", "EnvFormatPage", &rSet)
56 , m_pDialog(nullptr)
57 , m_xAddrLeftField(m_xBuilder->weld_metric_spin_button("leftaddr", FieldUnit::CM))
58 , m_xAddrTopField(m_xBuilder->weld_metric_spin_button("topaddr", FieldUnit::CM))
59 , m_xAddrEditButton(m_xBuilder->weld_menu_button("addredit"))
60 , m_xSendLeftField(m_xBuilder->weld_metric_spin_button("leftsender", FieldUnit::CM))
61 , m_xSendTopField(m_xBuilder->weld_metric_spin_button("topsender", FieldUnit::CM))
62 , m_xSendEditButton(m_xBuilder->weld_menu_button("senderedit"))
63 , m_xSizeFormatBox(m_xBuilder->weld_combo_box("format"))
64 , m_xSizeWidthField(m_xBuilder->weld_metric_spin_button("width", FieldUnit::CM))
65 , m_xSizeHeightField(m_xBuilder->weld_metric_spin_button("height", FieldUnit::CM))
66 , m_xPreview(new weld::CustomWeld(*m_xBuilder, "preview", m_aPreview))
67{
69
70 // Metrics
71 FieldUnit aMetric = ::GetDfltMetric(false);
72 ::SetFieldUnit(*m_xAddrLeftField, aMetric);
73 ::SetFieldUnit(*m_xAddrTopField, aMetric);
74 ::SetFieldUnit(*m_xSendLeftField, aMetric);
75 ::SetFieldUnit(*m_xSendTopField, aMetric);
76 ::SetFieldUnit(*m_xSizeWidthField, aMetric);
77 ::SetFieldUnit(*m_xSizeHeightField, aMetric);
78
79 // Install handlers
81 m_xAddrLeftField->connect_value_changed( aLk );
82 m_xAddrTopField->connect_value_changed( aLk );
83 m_xSendLeftField->connect_value_changed( aLk );
84 m_xSendTopField->connect_value_changed( aLk );
85 m_xSizeWidthField->connect_value_changed( aLk );
86 m_xSizeHeightField->connect_value_changed( aLk );
87
88 m_xAddrEditButton->connect_selected(LINK(this, SwEnvFormatPage, AddrEditHdl));
89 m_xSendEditButton->connect_selected(LINK(this, SwEnvFormatPage, SendEditHdl));
90
91 m_xSizeFormatBox->connect_changed(LINK(this, SwEnvFormatPage, FormatHdl));
92
93 // m_xSizeFormatBox
94 for (sal_uInt16 i = PAPER_A3; i <= PAPER_KAI32BIG; i++)
95 {
96 if (i != PAPER_USER)
97 {
98 const OUString aPaperName = SvxPaperInfo::GetName(static_cast<Paper>(i));
99
100 if (aPaperName.isEmpty())
101 continue;
102
103 sal_Int32 nPos = 0;
104 while (nPos < m_xSizeFormatBox->get_count() &&
105 m_xSizeFormatBox->get_text(nPos) < aPaperName)
106 {
107 ++nPos;
108 }
109 m_xSizeFormatBox->insert_text(nPos, aPaperName);
110 m_aIDs.insert( m_aIDs.begin() + nPos, i);
111 }
112 }
114 m_aIDs.push_back( sal_uInt16(PAPER_USER) );
115}
116
118{
119 m_pDialog = pDialog;
121}
122
124{
125}
126
128{
129 int lWVal = getfieldval(*m_xSizeWidthField);
130 int lHVal = getfieldval(*m_xSizeHeightField);
131
132 int lWidth = std::max(lWVal, lHVal);
133 int lHeight = std::min(lWVal, lHVal);
134
135 if (&rEdit == m_xSizeWidthField.get() || &rEdit == m_xSizeHeightField.get())
136 {
137 int nRotatedWidth = lHeight;
138 int nRotatedHeight = lWidth;
140 Size(nRotatedWidth, nRotatedHeight), MapUnit::MapTwip);
141 for (size_t i = 0; i < m_aIDs.size(); ++i)
142 if (m_aIDs[i] == o3tl::narrowing<sal_uInt16>(ePaper))
143 m_xSizeFormatBox->set_active(i);
144
145 // remember user size
146 if (m_aIDs[m_xSizeFormatBox->get_active()] == sal_uInt16(PAPER_USER))
147 {
148 lUserW = lWidth ;
149 lUserH = lHeight;
150 }
151
152 FormatHdl(*m_xSizeFormatBox);
153 }
154 else
155 {
156 FillItem(GetParentSwEnvDlg()->m_aEnvItem);
157 SetMinMax();
158 m_xPreview->queue_draw();
159 }
160}
161
162IMPL_LINK(SwEnvFormatPage, AddrEditHdl, const OUString&, rIdent, void)
163{
164 Edit(rIdent, false);
165}
166
167IMPL_LINK(SwEnvFormatPage, SendEditHdl, const OUString&, rIdent, void)
168{
169 Edit(rIdent, true);
170}
171
172void SwEnvFormatPage::Edit(std::u16string_view rIdent, bool bSender)
173{
175 OSL_ENSURE(pSh, "Shell missing");
176
177 SwTextFormatColl* pColl = pSh->GetTextCollFromPool( static_cast< sal_uInt16 >(
179 OSL_ENSURE(pColl, "Text collection missing");
180
181 if (o3tl::starts_with(rIdent, u"character"))
182 {
183 SfxItemSet *pCollSet = GetCollItemSet(pColl, bSender);
184
185 // In order for the background color not to get ironed over:
186 SfxAllItemSet aTmpSet(*pCollSet);
187 ::ConvertAttrCharToGen(aTmpSet);
188
190
191 const OUString sFormatStr = pColl->GetName();
193 if (pDlg->Execute() == RET_OK)
194 {
195 SfxItemSet aOutputSet( *pDlg->GetOutputItemSet() );
196 ::ConvertAttrGenToChar(aOutputSet, aTmpSet);
197 pCollSet->Put(aOutputSet);
198 }
199 }
200 else if (o3tl::starts_with(rIdent, u"paragraph"))
201 {
202 SfxItemSet *pCollSet = GetCollItemSet(pColl, bSender);
203
204 // In order for the tabulators not to get ironed over:
205 SfxAllItemSet aTmpSet(*pCollSet);
206
207 // Insert tabs, default tabs into ItemSet
208 const SvxTabStopItem& rDefTabs =
210
211 const sal_uInt16 nDefDist = o3tl::narrowing<sal_uInt16>(::GetTabDist( rDefTabs ));
212 SfxUInt16Item aDefDistItem( SID_ATTR_TABSTOP_DEFAULTS, nDefDist );
213 aTmpSet.Put( aDefDistItem );
214
215 // Current tab
216 SfxUInt16Item aTabPos( SID_ATTR_TABSTOP_POS, 0 );
217 aTmpSet.Put( aTabPos );
218
219 // left border as offset
220 const tools::Long nOff = aTmpSet.Get(RES_MARGIN_TEXTLEFT).GetTextLeft();
221 SfxInt32Item aOff( SID_ATTR_TABSTOP_OFFSET, nOff );
222 aTmpSet.Put( aOff );
223
224 // set BoxInfo
225 ::PrepareBoxInfo( aTmpSet, *pSh );
226
228 aTmpSet.Put(SvxColorListItem(pDrawModel->GetColorList(), SID_COLOR_TABLE));
229 aTmpSet.Put(SvxGradientListItem(pDrawModel->GetGradientList(), SID_GRADIENT_LIST));
230 aTmpSet.Put(SvxHatchListItem(pDrawModel->GetHatchList(), SID_HATCH_LIST));
231 aTmpSet.Put(SvxBitmapListItem(pDrawModel->GetBitmapList(), SID_BITMAP_LIST));
232 aTmpSet.Put(SvxPatternListItem(pDrawModel->GetPatternList(), SID_PATTERN_LIST));
233
234 const OUString sFormatStr = pColl->GetName();
235 SwParaDlg aDlg(GetFrameWeld(), pSh->GetView(), aTmpSet, DLG_ENVELOP, &sFormatStr);
236
237 if (aDlg.run() == RET_OK)
238 {
239 // maybe relocate defaults
240 const SfxUInt16Item* pDefaultsItem = nullptr;
241 SfxItemSet* pOutputSet = const_cast<SfxItemSet*>(aDlg.GetOutputItemSet());
242 sal_uInt16 nNewDist;
243
244 if( (pDefaultsItem = pOutputSet->GetItemIfSet( SID_ATTR_TABSTOP_DEFAULTS, false )) &&
245 nDefDist != (nNewDist = pDefaultsItem->GetValue()) )
246 {
247 SvxTabStopItem aDefTabs( 0, 0, SvxTabAdjust::Default, RES_PARATR_TABSTOP );
248 MakeDefTabs( nNewDist, aDefTabs );
249 pSh->SetDefault( aDefTabs );
250 pOutputSet->ClearItem( SID_ATTR_TABSTOP_DEFAULTS );
251 }
252 if( pOutputSet->Count() )
253 {
254 pCollSet->Put(*pOutputSet);
255 }
256 }
257 }
258}
259
260// A temporary Itemset that gets discarded at abort
262{
263 std::unique_ptr<SfxItemSet>& pAddrSet = bSender ? GetParentSwEnvDlg()->m_pSenderSet : GetParentSwEnvDlg()->m_pAddresseeSet;
264 if (!pAddrSet)
265 {
266 // determine range (merge both Itemsets' ranges)
267 const WhichRangesContainer& pRanges = pColl->GetAttrSet().GetRanges();
268
269 static WhichRangesContainer const aRanges(svl::Items<
275 SID_ATTR_TABSTOP_DEFAULTS, SID_ATTR_TABSTOP_DEFAULTS,
276 SID_ATTR_TABSTOP_POS, SID_ATTR_TABSTOP_POS,
277 SID_ATTR_TABSTOP_OFFSET, SID_ATTR_TABSTOP_OFFSET,
278 SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER
279 >);
280
281 pAddrSet.reset(new SfxItemSet(GetParentSwEnvDlg()->m_pSh->GetView().GetCurShell()->GetPool(),
282 pRanges));
283 for (const auto& rPair : aRanges)
284 pAddrSet->MergeRange(rPair.first, rPair.second);
285 pAddrSet->Put(pColl->GetAttrSet());
286 }
287
288 return pAddrSet.get();
289}
290
292{
293 tools::Long lWidth;
294 tools::Long lHeight;
295 tools::Long lSendFromLeft;
296 tools::Long lSendFromTop;
297 tools::Long lAddrFromLeft;
298 tools::Long lAddrFromTop;
299
300 const sal_uInt16 nPaper = m_aIDs[m_xSizeFormatBox->get_active()];
301 if (nPaper != sal_uInt16(PAPER_USER))
302 {
303 Size aSz = SvxPaperInfo::GetPaperSize(static_cast<Paper>(nPaper));
304 lWidth = std::max(aSz.Width(), aSz.Height());
305 lHeight = std::min(aSz.Width(), aSz.Height());
306 }
307 else
308 {
309 lWidth = lUserW;
310 lHeight = lUserH;
311 }
312
313 lSendFromLeft = 566; // 1cm
314 lSendFromTop = 566; // 1cm
315 lAddrFromLeft = lWidth / 2;
316 lAddrFromTop = lHeight / 2;
317
318 setfieldval(*m_xAddrLeftField, lAddrFromLeft);
319 setfieldval(*m_xAddrTopField , lAddrFromTop );
320 setfieldval(*m_xSendLeftField, lSendFromLeft);
321 setfieldval(*m_xSendTopField , lSendFromTop );
322
323 setfieldval(*m_xSizeWidthField , lWidth );
324 setfieldval(*m_xSizeHeightField, lHeight);
325
326 SetMinMax();
327
328 FillItem(GetParentSwEnvDlg()->m_aEnvItem);
329 m_xPreview->queue_draw();
330}
331
333{
334 tools::Long lWVal = static_cast< tools::Long >(getfieldval(*m_xSizeWidthField ));
335 tools::Long lHVal = static_cast< tools::Long >(getfieldval(*m_xSizeHeightField));
336
337 tools::Long lWidth = std::max(lWVal, lHVal),
338 lHeight = std::min(lWVal, lHVal);
339
340 // Min and Max
341 m_xAddrLeftField->set_range(100 * (getfieldval(*m_xSendLeftField) + 566),
342 100 * (lWidth - 2 * 566), FieldUnit::TWIP);
343 m_xAddrTopField->set_range(100 * (getfieldval(*m_xSendTopField ) + 2 * 566),
344 100 * (lHeight - 2 * 566), FieldUnit::TWIP);
345 m_xSendLeftField->set_range(100 * 566,
346 100 * (getfieldval(*m_xAddrLeftField) - 566), FieldUnit::TWIP);
347 m_xSendTopField->set_range(100 * 566,
348 100 * (getfieldval(*m_xAddrTopField ) - 2 * 566), FieldUnit::TWIP);
349}
350
351std::unique_ptr<SfxTabPage> SwEnvFormatPage::Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet)
352{
353 return std::make_unique<SwEnvFormatPage>(pPage, pController, *rSet);
354}
355
357{
358 SfxItemSet aSet(rSet);
359 aSet.Put(GetParentSwEnvDlg()->m_aEnvItem);
360 Reset(&aSet);
361}
362
364{
365 if( _pSet )
366 FillItemSet(_pSet);
367 return DeactivateRC::LeavePage;
368}
369
371{
372 rItem.m_nAddrFromLeft = static_cast< sal_Int32 >(getfieldval(*m_xAddrLeftField));
373 rItem.m_nAddrFromTop = static_cast< sal_Int32 >(getfieldval(*m_xAddrTopField ));
374 rItem.m_nSendFromLeft = static_cast< sal_Int32 >(getfieldval(*m_xSendLeftField));
375 rItem.m_nSendFromTop = static_cast< sal_Int32 >(getfieldval(*m_xSendTopField ));
376
377 const sal_uInt16 nPaper = m_aIDs[m_xSizeFormatBox->get_active()];
378 if (nPaper == sal_uInt16(PAPER_USER))
379 {
380 tools::Long lWVal = static_cast< tools::Long >(getfieldval(*m_xSizeWidthField ));
381 tools::Long lHVal = static_cast< tools::Long >(getfieldval(*m_xSizeHeightField));
382 rItem.m_nWidth = std::max(lWVal, lHVal);
383 rItem.m_nHeight = std::min(lWVal, lHVal);
384 }
385 else
386 {
387 tools::Long lWVal = SvxPaperInfo::GetPaperSize(static_cast<Paper>(nPaper)).Width ();
388 tools::Long lHVal = SvxPaperInfo::GetPaperSize(static_cast<Paper>(nPaper)).Height();
389 rItem.m_nWidth = std::max(lWVal, lHVal);
390 rItem.m_nHeight = std::min(lWVal, lHVal);
391 }
392}
393
395{
396 FillItem(GetParentSwEnvDlg()->m_aEnvItem);
397 rSet->Put(GetParentSwEnvDlg()->m_aEnvItem);
398 return true;
399}
400
402{
403 const SwEnvItem& rItem = static_cast<const SwEnvItem&>( rSet->Get(FN_ENVELOP));
404
406 Size( std::min(rItem.m_nWidth, rItem.m_nHeight),
407 std::max(rItem.m_nWidth, rItem.m_nHeight)), MapUnit::MapTwip);
408 for (size_t i = 0; i < m_aIDs.size(); ++i)
409 if (m_aIDs[i] == o3tl::narrowing<sal_uInt16>(ePaper))
410 m_xSizeFormatBox->set_active(i);
411
412 // Metric fields
417 setfieldval(*m_xSizeWidthField , std::max(rItem.m_nWidth, rItem.m_nHeight));
419 SetMinMax();
420
423}
424
425/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 GetValue() const
virtual const SwDrawModel * GetDrawModel() const =0
Draw Model and id accessors.
XBitmapListRef GetBitmapList() const
XGradientListRef GetGradientList() const
XPatternListRef GetPatternList() const
XColorListRef GetColorList() const
XHatchListRef GetHatchList() const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
const WhichRangesContainer & GetRanges() const
sal_uInt16 Count() const
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
SfxItemPool & GetPool() const
virtual short run() override
const SfxItemSet * GetOutputItemSet() const
void SetExchangeSupport()
weld::Window * GetFrameWeld() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
static OUString GetName(Paper ePaper)
static Paper GetSvxPaper(const Size &rSize, MapUnit eUnit)
static Size GetPaperSize(Paper ePaper, MapUnit eUnit=MapUnit::MapTwip)
virtual VclPtr< SfxAbstractTabDialog > CreateSwCharDlg(weld::Window *pParent, SwView &pVw, const SfxItemSet &rCoreSet, SwCharDlgMode nDialogMode, const OUString *pFormatStr=nullptr)=0
SwDoc * GetDoc()
returns Doc. But be careful!
Definition: docsh.hxx:204
IDocumentDrawModelAccess const & getIDocumentDrawModelAccess() const
Definition: doc.cxx:169
void SetDefault(const SfxPoolItem &)
Set attribute as new default attribute in document.
Definition: edatmisc.cxx:84
SwTextFormatColl * GetTextCollFromPool(sal_uInt16 nId)
Definition: edfmt.cxx:121
std::unique_ptr< SfxItemSet > m_pSenderSet
Definition: envlop.hxx:70
SwWrtShell * m_pSh
Definition: envlop.hxx:67
std::unique_ptr< SfxItemSet > m_pAddresseeSet
Definition: envlop.hxx:69
std::unique_ptr< weld::MetricSpinButton > m_xAddrTopField
Definition: envfmt.hxx:37
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: envfmt.cxx:394
SwEnvFormatPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: envfmt.cxx:54
std::unique_ptr< weld::MetricSpinButton > m_xSizeWidthField
Definition: envfmt.hxx:43
SfxItemSet * GetCollItemSet(SwTextFormatColl const *pColl, bool bSender)
Definition: envfmt.cxx:261
std::vector< sal_uInt16 > m_aIDs
Definition: envfmt.hxx:33
std::unique_ptr< weld::MetricSpinButton > m_xAddrLeftField
Definition: envfmt.hxx:36
std::unique_ptr< weld::MetricSpinButton > m_xSendTopField
Definition: envfmt.hxx:40
virtual void ActivatePage(const SfxItemSet &rSet) override
Definition: envfmt.cxx:356
std::unique_ptr< weld::ComboBox > m_xSizeFormatBox
Definition: envfmt.hxx:42
SwEnvDlg * GetParentSwEnvDlg()
Definition: envfmt.hxx:58
std::unique_ptr< weld::MenuButton > m_xAddrEditButton
Definition: envfmt.hxx:38
SwEnvDlg * m_pDialog
Definition: envfmt.hxx:32
std::unique_ptr< weld::MetricSpinButton > m_xSendLeftField
Definition: envfmt.hxx:39
void Init(SwEnvDlg *pDialog)
Definition: envfmt.cxx:117
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: envfmt.cxx:363
virtual void Reset(const SfxItemSet *rSet) override
Definition: envfmt.cxx:401
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: envfmt.cxx:351
std::unique_ptr< weld::MetricSpinButton > m_xSizeHeightField
Definition: envfmt.hxx:44
void Edit(std::u16string_view rIdent, bool bSender)
Definition: envfmt.cxx:172
std::unique_ptr< weld::MenuButton > m_xSendEditButton
Definition: envfmt.hxx:41
void SetMinMax()
Definition: envfmt.cxx:332
void FillItem(SwEnvItem &rItem)
Definition: envfmt.cxx:370
SwEnvPreview m_aPreview
Definition: envfmt.hxx:35
virtual ~SwEnvFormatPage() override
Definition: envfmt.cxx:123
sal_Int32 m_nWidth
Definition: envimg.hxx:49
sal_Int32 m_nSendFromLeft
Definition: envimg.hxx:47
sal_Int32 m_nSendFromTop
Definition: envimg.hxx:48
sal_Int32 m_nAddrFromTop
Definition: envimg.hxx:46
sal_Int32 m_nAddrFromLeft
Definition: envimg.hxx:45
sal_Int32 m_nHeight
Definition: envimg.hxx:50
void SetDialog(SwEnvDlg *pDialog)
Definition: envlop.hxx:56
const OUString & GetName() const
Definition: format.hxx:131
const SwAttrSet & GetAttrSet() const
For querying the attribute array.
Definition: format.hxx:136
Represents the style of a paragraph.
Definition: fmtcol.hxx:61
SfxShell * GetCurShell()
Definition: view.hxx:586
SwDocShell * GetDocShell()
Definition: view.cxx:1193
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
const SwView & GetView() const
Definition: wrtsh.hxx:443
#define FN_ENVELOP
Definition: cmdid.h:784
float u
static tools::Long lUserH
Definition: envfmt.cxx:52
static tools::Long lUserW
Definition: envfmt.cxx:51
IMPL_LINK_NOARG(SwEnvFormatPage, FormatHdl, weld::ComboBox &, void)
Definition: envfmt.cxx:291
IMPL_LINK(SwEnvFormatPage, ModifyHdl, weld::MetricSpinButton &, rEdit, void)
Definition: envfmt.cxx:127
int getfieldval(const weld::MetricSpinButton &rField)
Definition: envlop.hxx:30
void setfieldval(weld::MetricSpinButton &rField, int lValue)
Definition: envlop.hxx:35
FieldUnit
constexpr sal_uInt16 RES_PARATR_BEGIN(RES_TXTATR_END)
constexpr TypedWhichId< SvxFirstLineIndentItem > RES_MARGIN_FIRSTLINE(91)
constexpr TypedWhichId< SvxShadowItem > RES_SHADOW(113)
constexpr TypedWhichId< SvxBrushItem > RES_BACKGROUND(111)
constexpr TypedWhichId< SvxAdjustItem > RES_PARATR_ADJUST(64)
constexpr sal_uInt16 RES_PARATR_END(82)
constexpr TypedWhichId< SvxTabStopItem > RES_PARATR_TABSTOP(68)
constexpr TypedWhichId< SvxRightMarginItem > RES_MARGIN_RIGHT(93)
constexpr TypedWhichId< SvxTextLeftMarginItem > RES_MARGIN_TEXTLEFT(92)
constexpr TypedWhichId< SvxULSpaceItem > RES_UL_SPACE(98)
sal_uInt16 nPos
int i
constexpr bool starts_with(std::basic_string_view< charT, traits > sv, std::basic_string_view< charT, traits > x) noexcept
static constexpr auto Items
SwAbstractDialogFactory & GetFactory()
Definition: swuiexp.cxx:26
long Long
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
Definition: nodeoffset.hxx:35
Paper
PAPER_USER
PAPER_KAI32BIG
PAPER_A3
#define DLG_ENVELOP
Definition: pardlg.hxx:24
@ RES_POOLCOLL_ENVELOPE_ADDRESS
Addressee.
Definition: poolfmt.hxx:354
@ RES_POOLCOLL_SEND_ADDRESS
Sender.
Definition: poolfmt.hxx:355
static SfxItemSet & rSet
DeactivateRC
SW_DLLPUBLIC SwTwips GetTabDist(const SvxTabStopItem &rTabs)
Definition: uitool.cxx:650
SW_DLLPUBLIC void ConvertAttrGenToChar(SfxItemSet &rSet, const SfxItemSet &rOrigSet, bool bPara=false)
Convert general attributes to the corresponding character attributes.
Definition: uitool.cxx:145
SW_DLLPUBLIC void ConvertAttrCharToGen(SfxItemSet &rSet, bool bPara=false)
Convert character specific attributes to general ones used by tab pages.
Definition: uitool.cxx:106
SW_DLLPUBLIC FieldUnit GetDfltMetric(bool bWeb)
Definition: uitool.cxx:756
SW_DLLPUBLIC void PrepareBoxInfo(SfxItemSet &rSet, const SwWrtShell &rSh)
Definition: uitool.cxx:82
SW_DLLPUBLIC void MakeDefTabs(SwTwips nDefDist, SvxTabStopItem &rTabs)
Definition: uitool.cxx:638
RET_OK