LibreOffice Module sw (master) 1
writer.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 <memory>
21#include <hintids.hxx>
22
23#include <sot/storage.hxx>
24#include <sfx2/docfile.hxx>
26#include <editeng/fontitem.hxx>
27#include <editeng/eeitem.hxx>
28#include <osl/diagnose.h>
29#include <shellio.hxx>
30#include <doc.hxx>
31#include <docary.hxx>
32#include <IMark.hxx>
35#include <numrule.hxx>
36#include <swerror.h>
37#include <com/sun/star/ucb/ContentCreationException.hpp>
38
39using namespace css;
40
41typedef std::multimap<SwNodeOffset, const ::sw::mark::IMark*> SwBookmarkNodeTable;
42
44{
46
47 std::map<OUString, OUString> maFileNameMap;
48 std::vector<const SvxFontItem*> aFontRemoveLst;
50
52
53 void RemoveFontList( SwDoc& rDoc );
54 void InsertBkmk( const ::sw::mark::IMark& rBkmk );
55};
56
58 : m_pStream(nullptr)
59{
60}
61
63{
64 for( const auto& rpFontItem : aFontRemoveLst )
65 {
66 rDoc.GetAttrPool().Remove( *rpFontItem );
67 }
68}
69
70void Writer_Impl::InsertBkmk(const ::sw::mark::IMark& rBkmk)
71{
72 SwNodeOffset nNd = rBkmk.GetMarkPos().GetNodeIndex();
73
74 aBkmkNodePos.emplace( nNd, &rBkmk );
75
76 if(rBkmk.IsExpanded() && rBkmk.GetOtherMarkPos().GetNodeIndex() != nNd)
77 {
78 nNd = rBkmk.GetOtherMarkPos().GetNodeIndex();
79 aBkmkNodePos.emplace( nNd, &rBkmk );
80 }
81}
82
83/*
84 * This module is the central collection point for all writer-filters
85 * and is a DLL !
86 *
87 * So that the Writer can work with different writers, the output-functions
88 * of the content carrying objects have to be mapped to the various
89 * output-functions.
90 *
91 * For that, to inquire its output function, every object can be gripped
92 * via the which-value in a table.
93 * These functions are available in the corresponding Writer-DLL's.
94 */
95
97 : m_pImpl(std::make_unique<Writer_Impl>())
98 , m_pOrigFileName(nullptr), m_pDoc(nullptr), m_pOrigPam(nullptr)
99 , m_bHideDeleteRedlines(false)
100{
104 m_bOrganizerMode = false;
106}
107
109{
110}
111
112/*
113 * Document Interface Access
114 */
119
121{
122 m_pImpl->RemoveFontList( *m_pDoc );
123 m_pImpl.reset(new Writer_Impl);
124
125 if( m_pCurrentPam )
126 {
127 while (m_pCurrentPam->GetNext() != m_pCurrentPam.get())
128 delete m_pCurrentPam->GetNext();
129 m_pCurrentPam.reset();
130 }
131 m_pCurrentPam = nullptr;
132 m_pOrigFileName = nullptr;
133 m_pDoc = nullptr;
134
138 m_bOrganizerMode = false;
139}
140
142{
143 if( (*ppPam)->GetNext() == m_pOrigPam )
144 {
145 *ppPam = m_pOrigPam; // set back to the beginning pam
146 return false; // end of the ring
147 }
148
149 // otherwise copy the next value from the next Pam
150 *ppPam = (*ppPam)->GetNext();
151
152 *m_pCurrentPam->GetPoint() = *(*ppPam)->Start();
153 *m_pCurrentPam->GetMark() = *(*ppPam)->End();
154
155 return true;
156}
157
158// search the next Bookmark-Position from the Bookmark-Table
159
160sal_Int32 Writer::FindPos_Bkmk(const SwPosition& rPos) const
161{
162 const IDocumentMarkAccess* const pMarkAccess = m_pDoc->getIDocumentMarkAccess();
164 if(ppBkmk != pMarkAccess->getBookmarksEnd())
165 return ppBkmk - pMarkAccess->getBookmarksBegin();
166 return -1;
167}
168
169std::shared_ptr<SwUnoCursor>
170Writer::NewUnoCursor(SwDoc & rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx)
171{
172 SwNodes *const pNds = &rDoc.GetNodes();
173
174 SwNodeIndex aStt( *pNds, nStartIdx );
175 SwContentNode* pCNode = aStt.GetNode().GetContentNode();
176 if( !pCNode && nullptr == pNds->GoNext( &aStt ) )
177 {
178 OSL_FAIL( "No more ContentNode at StartPos" );
179 }
180
181 auto const pNew = rDoc.CreateUnoCursor(SwPosition(aStt), false);
182 pNew->SetMark();
183 aStt = nEndIdx;
184 pCNode = aStt.GetNode().GetContentNode();
185 if (!pCNode)
186 pCNode = SwNodes::GoPrevious(&aStt);
187 assert(pCNode && "No more ContentNode at StartPos");
188 pNew->GetPoint()->AssignEndIndex( *pCNode );
189 return pNew;
190}
191
192// Stream-specific
194{
195 assert(m_pImpl->m_pStream && "Oh-oh. Writer with no Stream!");
196 return *m_pImpl->m_pStream;
197}
198
199void Writer::SetStream(SvStream *const pStream)
200{
201 m_pImpl->m_pStream = pStream;
202}
203
204ErrCode Writer::Write( SwPaM& rPaM, SvStream& rStrm, const OUString* pFName )
205{
206 if ( IsStgWriter() )
207 {
208 ErrCode nResult = ERRCODE_ABORT;
209 try
210 {
212 nResult = Write( rPaM, *aRef, pFName );
213 if ( nResult == ERRCODE_NONE )
214 aRef->Commit();
215 }
216 catch (const css::ucb::ContentCreationException &)
217 {
218 TOOLS_WARN_EXCEPTION("sw", "Writer::Write caught");
219 }
220 return nResult;
221 }
222
223 m_pDoc = &rPaM.GetDoc();
224 m_pOrigFileName = pFName;
225 m_pImpl->m_pStream = &rStrm;
226
227 // Copy PaM, so that it can be modified
228 m_pCurrentPam = m_pDoc->CreateUnoCursor(*rPaM.End(), false);
229 m_pCurrentPam->SetMark();
230 *m_pCurrentPam->GetPoint() = *rPaM.Start();
231 // for comparison secure to the current Pam
232 m_pOrigPam = &rPaM;
233
234 ErrCode nRet = WriteStream();
235
236 ResetWriter();
237
238 return nRet;
239}
240
242{}
243
244ErrCode Writer::Write( SwPaM& rPam, SfxMedium& rMedium, const OUString* pFileName )
245{
246 SetupFilterOptions(rMedium);
247 // This method must be overridden in SwXMLWriter a storage from medium will be used there.
248 // The microsoft format can write to storage but the storage will be based on the stream.
249 return Write( rPam, *rMedium.GetOutStream(), pFileName );
250}
251
252ErrCode Writer::Write( SwPaM& /*rPam*/, SotStorage&, const OUString* )
253{
254 OSL_ENSURE( false, "Write in Storages on a stream?" );
255 return ERR_SWG_WRITE_ERROR;
256}
257
258ErrCode Writer::Write( SwPaM&, const uno::Reference < embed::XStorage >&, const OUString*, SfxMedium* )
259{
260 OSL_ENSURE( false, "Write in Storages on a stream?" );
261 return ERR_SWG_WRITE_ERROR;
262}
263
264bool Writer::CopyLocalFileToINet( OUString& rFileNm )
265{
266 if( !m_pOrigFileName ) // can be happen, by example if we
267 return false; // write into the clipboard
268
269 bool bRet = false;
270 INetURLObject aFileUrl( rFileNm ), aTargetUrl( *m_pOrigFileName );
271
272// this is our old without the Mail-Export
273 if( ! ( INetProtocol::File == aFileUrl.GetProtocol() &&
274 INetProtocol::File != aTargetUrl.GetProtocol() &&
275 INetProtocol::Ftp <= aTargetUrl.GetProtocol() &&
276 INetProtocol::VndSunStarWebdav >= aTargetUrl.GetProtocol() ) )
277 return bRet;
278
279 // has the file been moved?
280 std::map<OUString, OUString>::iterator it = m_pImpl->maFileNameMap.find( rFileNm );
281 if ( it != m_pImpl->maFileNameMap.end() )
282 {
283 rFileNm = it->second;
284 return true;
285 }
286
287 OUString aSrc = rFileNm;
288 OUString aDest = aTargetUrl.GetPartBeforeLastName() + aFileUrl.GetLastName();
289
290 SfxMedium aSrcFile( aSrc, StreamMode::READ );
291 SfxMedium aDstFile( aDest, StreamMode::WRITE | StreamMode::SHARE_DENYNONE );
292
293 aDstFile.GetOutStream()->WriteStream( *aSrcFile.GetInStream() );
294
295 aSrcFile.Close();
296 aDstFile.Commit();
297
298 bRet = ERRCODE_NONE == aDstFile.GetError();
299
300 if( bRet )
301 {
302 m_pImpl->maFileNameMap.insert( std::make_pair( aSrc, aDest ) );
303 rFileNm = aDest;
304 }
305
306 return bRet;
307}
308
310{
311 // then there are a few fonts in the NumRules
312 // These put into the Pool. After this does they have a RefCount > 1
313 // it can be removed - it is already in the Pool
314 SfxItemPool& rPool = m_pDoc->GetAttrPool();
315 const SwNumRuleTable& rListTable = m_pDoc->GetNumRuleTable();
316 const SwNumFormat* pFormat;
317 const vcl::Font* pDefFont = &numfunc::GetDefBulletFont();
318 bool bCheck = false;
319
320 for( size_t nGet = rListTable.size(); nGet; )
321 {
322 SwNumRule const*const pRule = rListTable[ --nGet ];
323 if (m_pDoc->IsUsed(*pRule))
324 {
325 for( sal_uInt8 nLvl = 0; nLvl < MAXLEVEL; ++nLvl )
326 {
327 if( SVX_NUM_CHAR_SPECIAL == (pFormat = &pRule->Get( nLvl ))->GetNumberingType() ||
328 SVX_NUM_BITMAP == pFormat->GetNumberingType() )
329 {
330 std::optional<vcl::Font> pFont = pFormat->GetBulletFont();
331 if( !pFont )
332 pFont = *pDefFont;
333
334 if( bCheck )
335 {
336 if( *pFont == *pDefFont )
337 continue;
338 }
339 else if( *pFont == *pDefFont )
340 bCheck = true;
341
342 AddFontItem( rPool, SvxFontItem( pFont->GetFamilyType(),
343 pFont->GetFamilyName(), pFont->GetStyleName(),
344 pFont->GetPitch(), pFont->GetCharSet(), RES_CHRATR_FONT ));
345 }
346 }
347 }
348 }
349}
350
352{
353 SfxItemPool& rPool = m_pDoc->GetAttrPool();
354 if( rPool.GetSecondaryPool() )
355 {
359 }
360}
361
362void Writer::AddFontItems_( SfxItemPool& rPool, sal_uInt16 nW )
363{
364 const SvxFontItem* pFont = static_cast<const SvxFontItem*>(&rPool.GetDefaultItem( nW ));
365 AddFontItem( rPool, *pFont );
366
367 pFont = static_cast<const SvxFontItem*>(rPool.GetPoolDefaultItem( nW ));
368 if( nullptr != pFont )
369 AddFontItem( rPool, *pFont );
370
371 for (const SfxPoolItem* pItem : rPool.GetItemSurrogates(nW))
372 AddFontItem( rPool, *static_cast<const SvxFontItem*>(pItem) );
373}
374
375void Writer::AddFontItem( SfxItemPool& rPool, const SvxFontItem& rFont )
376{
377 const SvxFontItem* pItem;
378 if( RES_CHRATR_FONT != rFont.Which() )
379 {
380 SvxFontItem aFont( rFont );
381 aFont.SetWhich( RES_CHRATR_FONT );
382 pItem = &rPool.Put( aFont );
383 }
384 else
385 pItem = &rPool.Put( rFont );
386
387 if( 1 < pItem->GetRefCount() )
388 rPool.Remove( *pItem );
389 else
390 {
391 m_pImpl->aFontRemoveLst.push_back( pItem );
392 }
393}
394
395// build a bookmark table, which is sort by the node position. The
396// OtherPos of the bookmarks also inserted.
398{
399 const IDocumentMarkAccess* const pMarkAccess = m_pDoc->getIDocumentMarkAccess();
401 ppBkmk != pMarkAccess->getBookmarksEnd();
402 ++ppBkmk)
403 {
404 m_pImpl->InsertBkmk(**ppBkmk);
405 }
406}
407
408// search all Bookmarks in the range and return it in the Array
409bool Writer::GetBookmarks(const SwContentNode& rNd, sal_Int32 nStt,
410 sal_Int32 nEnd, std::vector< const ::sw::mark::IMark* >& rArr)
411{
412 OSL_ENSURE( rArr.empty(), "there are still entries available" );
413
414 SwNodeOffset nNd = rNd.GetIndex();
415 std::pair<SwBookmarkNodeTable::const_iterator, SwBookmarkNodeTable::const_iterator> aIterPair
416 = m_pImpl->aBkmkNodePos.equal_range( nNd );
417 if( aIterPair.first != aIterPair.second )
418 {
419 // there exist some bookmarks, search now all which is in the range
420 if( !nStt && nEnd == rNd.Len() )
421 // all
422 for( SwBookmarkNodeTable::const_iterator it = aIterPair.first; it != aIterPair.second; ++it )
423 rArr.push_back( it->second );
424 else
425 {
426 for( SwBookmarkNodeTable::const_iterator it = aIterPair.first; it != aIterPair.second; ++it )
428 const ::sw::mark::IMark& rBkmk = *(it->second);
429 sal_Int32 nContent;
430 if( rBkmk.GetMarkPos().GetNode() == rNd &&
431 (nContent = rBkmk.GetMarkPos().GetContentIndex() ) >= nStt &&
432 nContent < nEnd )
433 {
434 rArr.push_back( &rBkmk );
435 }
436 else if( rBkmk.IsExpanded() &&
437 (rNd == rBkmk.GetOtherMarkPos().GetNode()) &&
438 (nContent = rBkmk.GetOtherMarkPos().GetContentIndex()) >= nStt &&
439 nContent < nEnd )
440 {
441 rArr.push_back( &rBkmk );
442 }
443 }
444 }
445 }
446 return !rArr.empty();
447}
448
449// Storage-specific
451{
452 OSL_ENSURE( false, "Write in Storages on a stream?" );
453 return ERR_SWG_WRITE_ERROR;
454}
455
456ErrCode StgWriter::Write( SwPaM& rPaM, SotStorage& rStg, const OUString* pFName )
457{
458 SetStream(nullptr);
459 m_pStg = &rStg;
460 m_pDoc = &rPaM.GetDoc();
461 m_pOrigFileName = pFName;
462
463 // Copy PaM, so that it can be modified
464 m_pCurrentPam = m_pDoc->CreateUnoCursor(*rPaM.End(), false);
465 m_pCurrentPam->SetMark();
466 *m_pCurrentPam->GetPoint() = *rPaM.Start();
467 // for comparison secure to the current Pam
468 m_pOrigPam = &rPaM;
469
470 ErrCode nRet = WriteStorage();
471
472 m_pStg = nullptr;
473 ResetWriter();
474
475 return nRet;
476}
477
478ErrCode StgWriter::Write( SwPaM& rPaM, const uno::Reference < embed::XStorage >& rStg, const OUString* pFName, SfxMedium* pMedium )
479{
480 SetStream(nullptr);
481 m_pStg = nullptr;
482 m_xStg = rStg;
483 m_pDoc = &rPaM.GetDoc();
484 m_pOrigFileName = pFName;
485
486 // Copy PaM, so that it can be modified
487 m_pCurrentPam = m_pDoc->CreateUnoCursor(*rPaM.End(), false);
488 m_pCurrentPam->SetMark();
489 *m_pCurrentPam->GetPoint() = *rPaM.Start();
490 // for comparison secure to the current Pam
491 m_pOrigPam = &rPaM;
493 ErrCode nRet = pMedium ? WriteMedium( *pMedium ) : WriteStorage();
494
495 m_pStg = nullptr;
496 ResetWriter();
497
498 return nRet;
499}
500
501/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::std::unique_ptr< XmlIdRegistry_Impl > m_pImpl
wrapper iterator: wraps iterator of implementation while hiding MarkBase class; only IMark instances ...
Provides access to the marks of a document.
virtual const_iterator_t findFirstBookmarkStartsAfter(const SwPosition &rPos) const =0
Finds the first mark that is starting after.
virtual const_iterator_t getBookmarksBegin() const =0
returns a STL-like random access iterator to the begin of the sequence the IBookmarks.
virtual const_iterator_t getBookmarksEnd() const =0
returns a STL-like random access iterator to the end of the sequence of IBookmarks.
Provides access to settings of a document.
Access to the style pool.
OUString GetPartBeforeLastName() const
INetProtocol GetProtocol() const
Item2Range GetItemSurrogates(sal_uInt16 nWhich) const
SfxItemPool * GetSecondaryPool() const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
const SfxPoolItem * GetPoolDefaultItem(sal_uInt16 nWhich) const
const T & Put(std::unique_ptr< T > xItem, sal_uInt16 nWhich=0)
void Remove(const SfxPoolItem &)
void Close(bool bInDestruction=false)
ErrCode GetError() const
SvStream * GetOutStream()
SvStream * GetInStream()
bool Commit()
tools::SvRef< SotStorage > m_pStg
Definition: shellio.hxx:476
virtual ErrCode WriteMedium(SfxMedium &)=0
virtual ErrCode WriteStream() override
Definition: writer.cxx:450
css::uno::Reference< css::embed::XStorage > m_xStg
Definition: shellio.hxx:477
virtual ErrCode WriteStorage()=0
virtual ErrCode Write(SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override
SvStream & WriteStream(SvStream &rStream)
const std::optional< vcl::Font > & GetBulletFont() const
SvxNumType GetNumberingType() const
virtual sal_Int32 Len() const
Definition: node.cxx:1256
Definition: doc.hxx:197
bool IsUsed(const sw::BroadcastingModify &) const
Definition: poolfmt.cxx:86
const SwNumRuleTable & GetNumRuleTable() const
Definition: doc.hxx:1081
SwNodes & GetNodes()
Definition: doc.hxx:422
IDocumentSettingAccess const & getIDocumentSettingAccess() const
Definition: doc.cxx:190
IDocumentMarkAccess * getIDocumentMarkAccess()
Definition: docbm.cxx:1890
IDocumentStylePoolAccess const & getIDocumentStylePoolAccess() const
Definition: doc.cxx:440
std::shared_ptr< SwUnoCursor > CreateUnoCursor(const SwPosition &rPos, bool bTableCursor=false)
Definition: doc.cxx:1810
const SwAttrPool & GetAttrPool() const
Definition: doc.hxx:1337
Marks a node in the document model.
Definition: ndindex.hxx:31
SwNode & GetNode() const
Definition: ndindex.hxx:123
SwNodeOffset GetIndex() const
Definition: node.hxx:312
SwContentNode * GetContentNode()
Definition: node.hxx:666
static SwContentNode * GoPrevious(SwNodeIndex *)
Definition: nodes.cxx:1333
SwContentNode * GoNext(SwNodeIndex *) const
Definition: nodes.cxx:1299
const SwNumFormat & Get(sal_uInt16 i) const
Definition: number.cxx:87
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:188
const SwPosition * End() const
Definition: pam.hxx:263
SwPaM * GetNext()
Definition: pam.hxx:314
SwDoc & GetDoc() const
Definition: pam.hxx:291
const SwPosition * Start() const
Definition: pam.hxx:258
size_t size() const
Definition: docary.hxx:88
bool m_bASCII_ParaAsCR
Definition: shellio.hxx:414
bool CopyNextPam(SwPaM **)
Definition: writer.cxx:141
SwPaM * m_pOrigPam
Definition: shellio.hxx:408
bool m_bShowProgress
Definition: shellio.hxx:411
bool m_bWriteOnlyFirstTable
Definition: shellio.hxx:413
virtual void SetupFilterOptions(SfxMedium &rMedium)
Definition: writer.cxx:241
sal_Int32 FindPos_Bkmk(const SwPosition &rPos) const
Definition: writer.cxx:160
void AddFontItem(SfxItemPool &rPool, const SvxFontItem &rFont)
Definition: writer.cxx:375
SvStream & Strm()
Definition: writer.cxx:193
virtual ErrCode WriteStream()=0
void SetStream(SvStream *const pStream)
Definition: writer.cxx:199
void PutEditEngFontsInAttrPool()
Definition: writer.cxx:351
bool GetBookmarks(const SwContentNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark * > &rArr)
Definition: writer.cxx:409
IDocumentSettingAccess & getIDocumentSettingAccess()
Definition: writer.cxx:115
bool m_bBlock
Definition: shellio.hxx:420
void CreateBookmarkTable()
Definition: writer.cxx:397
bool m_bUCS2_WithStartChar
Definition: shellio.hxx:417
bool m_bOrganizerMode
Definition: shellio.hxx:421
static std::shared_ptr< SwUnoCursor > NewUnoCursor(SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx)
Definition: writer.cxx:170
void PutNumFormatFontsInAttrPool()
Definition: writer.cxx:309
void AddFontItems_(SfxItemPool &rPool, sal_uInt16 nWhichId)
Definition: writer.cxx:362
SwDoc * m_pDoc
Definition: shellio.hxx:407
virtual ~Writer() override
Definition: writer.cxx:108
std::shared_ptr< SwUnoCursor > m_pCurrentPam
Definition: shellio.hxx:409
bool m_bWriteAll
Definition: shellio.hxx:410
bool m_bExportParagraphNumbering
Definition: shellio.hxx:418
const OUString * m_pOrigFileName
Definition: shellio.hxx:389
virtual ErrCode Write(SwPaM &, SfxMedium &, const OUString *)
Definition: writer.cxx:244
bool m_bASCII_NoLastLineEnd
Definition: shellio.hxx:416
virtual bool IsStgWriter() const
Definition: fltini.cxx:188
std::unique_ptr< Writer_Impl > m_pImpl
Definition: shellio.hxx:382
bool m_bWriteClipboardDoc
Definition: shellio.hxx:412
void ResetWriter()
Definition: writer.cxx:120
IDocumentStylePoolAccess & getIDocumentStylePoolAccess()
Definition: writer.cxx:117
bool CopyLocalFileToINet(OUString &rFileNm)
Definition: writer.cxx:264
Writer()
Definition: writer.cxx:96
bool m_bASCII_ParaAsBlank
Definition: shellio.hxx:415
#define TOOLS_WARN_EXCEPTION(area, stream)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
#define ERRCODE_ABORT
#define ERRCODE_NONE
GtkMediaStream * m_pStream
constexpr TypedWhichId< SvxFontItem > RES_CHRATR_FONT(7)
void SvStream & rStrm
const vcl::Font & GetDefBulletFont()
retrieve font used for the default bullet list characters
Definition: number.cxx:1372
Marks a position in the document model.
Definition: pam.hxx:38
SvStream * m_pStream
Definition: writer.cxx:45
SwBookmarkNodeTable aBkmkNodePos
Definition: writer.cxx:49
void InsertBkmk(const ::sw::mark::IMark &rBkmk)
Definition: writer.cxx:70
Writer_Impl()
Definition: writer.cxx:57
std::vector< const SvxFontItem * > aFontRemoveLst
Definition: writer.cxx:48
void RemoveFontList(SwDoc &rDoc)
Definition: writer.cxx:62
std::map< OUString, OUString > maFileNameMap
Definition: writer.cxx:47
SVX_NUM_BITMAP
SVX_NUM_CHAR_SPECIAL
#define ERR_SWG_WRITE_ERROR
Definition: swerror.h:30
constexpr sal_uInt8 MAXLEVEL
Definition: swtypes.hxx:92
unsigned char sal_uInt8
std::multimap< SwNodeOffset, const ::sw::mark::IMark * > SwBookmarkNodeTable
Definition: writer.cxx:41