LibreOffice Module sw (master) 1
|
#include <memory>
#include <sal/config.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <cstdlib>
#include <hintids.hxx>
#include <rtl/ustrbuf.hxx>
#include <svl/itemiter.hxx>
#include <svl/eitem.hxx>
#include <unotools/syslocale.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/numitem.hxx>
#include <editeng/lrspitem.hxx>
#include <drawdoc.hxx>
#include <fmtcol.hxx>
#include <uitool.hxx>
#include <wrtsh.hxx>
#include <docsh.hxx>
#include <frmfmt.hxx>
#include <charfmt.hxx>
#include <tblafmt.hxx>
#include <poolfmt.hxx>
#include <pagedesc.hxx>
#include <docstyle.hxx>
#include <docary.hxx>
#include <ccoll.hxx>
#include <doc.hxx>
#include <IDocumentUndoRedo.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <IDocumentState.hxx>
#include <cmdid.h>
#include <strings.hrc>
#include <paratr.hxx>
#include <SwStyleNameMapper.hxx>
#include <svl/cjkoptions.hxx>
#include <svl/ctloptions.hxx>
#include <unotools/intlwrapper.hxx>
#include <numrule.hxx>
#include <svx/xdef.hxx>
#include <SwRewriter.hxx>
#include <hints.hxx>
#include <frameformats.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/eeitem.hxx>
#include <svx/xfillit0.hxx>
#include <svx/xflftrit.hxx>
#include <svx/drawitem.hxx>
Go to the source code of this file.
Functions | |
static SwCharFormat * | lcl_FindCharFormat (SwDoc &rDoc, const OUString &rName, SwDocStyleSheet *pStyle=nullptr, bool bCreate=true) |
static SwTextFormatColl * | lcl_FindParaFormat (SwDoc &rDoc, const OUString &rName, SwDocStyleSheet *pStyle=nullptr, bool bCreate=true) |
static SwFrameFormat * | lcl_FindFrameFormat (SwDoc &rDoc, const OUString &rName, SwDocStyleSheet *pStyle=nullptr, bool bCreate=true) |
static const SwPageDesc * | lcl_FindPageDesc (SwDoc &rDoc, const OUString &rName, SwDocStyleSheet *pStyle=nullptr, bool bCreate=true) |
static const SwNumRule * | lcl_FindNumRule (SwDoc &rDoc, const OUString &rName, SwDocStyleSheet *pStyle=nullptr, bool bCreate=true) |
static SwTableAutoFormat * | lcl_FindTableStyle (SwDoc &rDoc, const OUString &rName, SwDocStyleSheet *pStyle=nullptr, bool bCreate=true) |
static const SwBoxAutoFormat * | lcl_FindCellStyle (SwDoc &rDoc, std::u16string_view rName, SwDocStyleSheet *pStyle) |
static void | lcl_SwFormatToFlatItemSet (SwFormat const *const pFormat, std::optional< SfxItemSet > &pRet) |
static void | lcl_SaveStyles (SfxStyleFamily nFamily, std::vector< void * > &rArr, SwDoc &rDoc) |
static bool | lcl_Contains (const std::vector< void * > &rArr, const void *p) |
static void | lcl_DeleteInfoStyles (SfxStyleFamily nFamily, std::vector< void * > const &rArr, SwDoc &rDoc) |
|
static |
|
static |
Definition at line 1961 of file docstyle.cxx.
References SwDoc::DelCharFormat(), SwDoc::DelFrameFormat(), SwDoc::DelNumRule(), SwDoc::DelPageDesc(), SwDoc::DelTextFormatColl(), SwDoc::GetCharFormats(), SwDoc::GetFrameFormats(), SwDoc::GetNumRuleTable(), SwDoc::GetPageDesc(), SwDoc::GetPageDescCnt(), SwDoc::GetTextFormatColls(), lcl_Contains(), n, SwCharFormats::size(), and SwVectorModifyBase< Value >::size().
Referenced by SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 483 of file docstyle.cxx.
References SwStyleNameMapper::FillProgName(), SwTableAutoFormat::GetBoxFormat(), SwCellStyleTable::GetBoxFormat(), SwDoc::GetCellStyles(), SwTableAutoFormat::GetName(), SwDoc::GetTableStyles(), SwTableAutoFormat::GetTableTemplateCellSubName(), SwTableAutoFormat::GetTableTemplateMap(), i, SwDocStyleSheet::PresetParent(), SwDocStyleSheet::SetPhysical(), SwTableAutoFormatTable::size(), and TabStyle.
Referenced by SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 278 of file docstyle.cxx.
References ChrFmt, SwFormat::DerivedFrom(), SwDoc::FindCharFormatByName(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwDoc::GetDfltCharFormat(), SwDoc::getIDocumentStylePoolAccess(), SwStyleNameMapper::GetPoolIdFromUIName(), nId, p, and SwResId().
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), SwDocStyleSheetPool::Remove(), SwDocStyleSheet::SetLink(), and SwDocStyleSheet::SetParent().
|
static |
Definition at line 357 of file docstyle.cxx.
References SwFormat::DerivedFrom(), SwDoc::FindFrameFormatByName(), FrmFmt, IDocumentStylePoolAccess::GetFrameFormatFromPool(), SwDoc::getIDocumentStylePoolAccess(), SwFormat::GetName(), SwStyleNameMapper::GetPoolIdFromUIName(), SwFormat::IsDefault(), and nId.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), SwDocStyleSheetPool::Remove(), and SwDocStyleSheet::SetParent().
|
static |
Definition at line 425 of file docstyle.cxx.
References SwDoc::FindNumRulePtr(), SwDoc::getIDocumentStylePoolAccess(), IDocumentStylePoolAccess::GetNumRuleFromPool(), SwStyleNameMapper::GetPoolIdFromUIName(), nId, and NumRule.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), and SwDocStyleSheet::GetHelpId().
|
static |
Definition at line 391 of file docstyle.cxx.
References SwDoc::FindPageDesc(), SwPageDesc::GetFollow(), SwDoc::getIDocumentStylePoolAccess(), SwPageDesc::GetName(), IDocumentStylePoolAccess::GetPageDescFromPool(), SwStyleNameMapper::GetPoolIdFromUIName(), nId, and PageDesc.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), and SwDocStyleSheet::SetFollow().
|
static |
Definition at line 319 of file docstyle.cxx.
References SwFormat::DerivedFrom(), SwDoc::FindTextFormatCollByName(), SwDoc::getIDocumentStylePoolAccess(), SwFormat::GetName(), SwTextFormatColl::GetNextTextFormatColl(), SwStyleNameMapper::GetPoolIdFromUIName(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwFormat::IsDefault(), nId, and TxtColl.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), SwDocStyleSheetPool::Remove(), SwDocStyleSheet::SetFollow(), SwDocStyleSheet::SetItemSet(), SwDocStyleSheet::SetLink(), and SwDocStyleSheet::SetParent().
|
static |
Definition at line 456 of file docstyle.cxx.
References SwTableAutoFormatTable::AddAutoFormat(), SwTableAutoFormatTable::FindAutoFormat(), and SwDoc::GetTableStyles().
Referenced by SwDocStyleSheet::Create(), and SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 1903 of file docstyle.cxx.
References SwDoc::GetCharFormats(), SwDoc::GetFrameFormats(), SwDoc::GetNumRuleTable(), SwDoc::GetPageDesc(), SwDoc::GetPageDescCnt(), SwDoc::GetTextFormatColls(), n, and SwVectorModifyBase< Value >::push_back().
Referenced by SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 1419 of file docstyle.cxx.
References SwFormat::GetAttrSet(), and SfxItemSet::GetParent().
Referenced by SwDocStyleSheet::FillStyleSheet(), and SwDocStyleSheet::GetItemSetForPreview().