LibreOffice Module sw (master)
1
|
#include <memory>
#include <sal/config.h>
#include <sal/log.hxx>
#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 <svx/xfillit0.hxx>
#include <svx/xflftrit.hxx>
#include <svx/drawitem.hxx>
#include <editeng/eeitem.hxx>
Go to the source code of this file.
Macros | |
#define | cCHAR u'c' |
#define | cPARA u'p' |
#define | cFRAME u'f' |
#define | cPAGE u'g' |
#define | cNUMRULE u'n' |
#define | cTABSTYLE u't' |
#define | cCELLSTYLE u'b' |
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 std::unique_ptr< SfxItemSet > | lcl_SwFormatToFlatItemSet (SwFormat const *const pFormat) |
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) |
#define cCELLSTYLE u'b' |
Definition at line 79 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), and SwStyleSheetIterator::First().
#define cCHAR u'c' |
Definition at line 73 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), and SwStyleSheetIterator::First().
Definition at line 75 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), SwStyleSheetIterator::First(), and SwDocStyleSheet::PresetNameAndFamily().
Definition at line 77 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), SwStyleSheetIterator::First(), and SwDocStyleSheet::PresetNameAndFamily().
#define cPAGE u'g' |
Definition at line 76 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), SwStyleSheetIterator::First(), and SwDocStyleSheet::PresetNameAndFamily().
Definition at line 74 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), SwStyleSheetIterator::First(), and SwDocStyleSheet::PresetNameAndFamily().
Definition at line 78 of file docstyle.cxx.
Referenced by SwStyleSheetIterator::SwPoolFormatList::FindName(), SwStyleSheetIterator::First(), and SwDocStyleSheet::PresetNameAndFamily().
Definition at line 1778 of file docstyle.cxx.
Referenced by lcl_DeleteInfoStyles().
|
static |
Definition at line 1783 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, SwFrameFormats::size(), and SwVectorModifyBase< Value >::size().
Referenced by SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 334 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 129 of file docstyle.cxx.
References ChrFmt, SwFormat::DerivedFrom(), SwDoc::FindCharFormatByName(), IDocumentStylePoolAccess::GetCharFormatFromPool(), SwDoc::GetDfltCharFormat(), SwDoc::getIDocumentStylePoolAccess(), SwFormat::GetName(), SwStyleNameMapper::GetPoolIdFromUIName(), SwFormat::IsDefault(), nId, p, SwResId(), and USHRT_MAX.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), SwDocStyleSheetPool::Remove(), SwDocStyleSheet::SetParent(), and SwDocStyleSheetPool::SetParent().
|
static |
Definition at line 208 of file docstyle.cxx.
References SwFormat::DerivedFrom(), SwDoc::FindFrameFormatByName(), FrmFmt, IDocumentStylePoolAccess::GetFrameFormatFromPool(), SwDoc::getIDocumentStylePoolAccess(), SwFormat::GetName(), SwStyleNameMapper::GetPoolIdFromUIName(), SwFormat::IsDefault(), nId, and USHRT_MAX.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), SwDocStyleSheetPool::Remove(), SwDocStyleSheet::SetParent(), and SwDocStyleSheetPool::SetParent().
|
static |
Definition at line 276 of file docstyle.cxx.
References SwDoc::FindNumRulePtr(), SwDoc::getIDocumentStylePoolAccess(), IDocumentStylePoolAccess::GetNumRuleFromPool(), SwStyleNameMapper::GetPoolIdFromUIName(), nId, NumRule, and USHRT_MAX.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), and SwDocStyleSheet::GetHelpId().
|
static |
Definition at line 242 of file docstyle.cxx.
References SwDoc::FindPageDesc(), SwPageDesc::GetFollow(), SwDoc::getIDocumentStylePoolAccess(), SwPageDesc::GetName(), IDocumentStylePoolAccess::GetPageDescFromPool(), SwStyleNameMapper::GetPoolIdFromUIName(), nId, PageDesc, and USHRT_MAX.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), and SwDocStyleSheet::SetFollow().
|
static |
Definition at line 170 of file docstyle.cxx.
References SwFormat::DerivedFrom(), SwDoc::FindTextFormatCollByName(), SwDoc::getIDocumentStylePoolAccess(), SwFormat::GetName(), SwTextFormatColl::GetNextTextFormatColl(), SwStyleNameMapper::GetPoolIdFromUIName(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwFormat::IsDefault(), nId, TxtColl, and USHRT_MAX.
Referenced by SwDocStyleSheet::Create(), SwDocStyleSheet::FillStyleSheet(), SwDocStyleSheet::GetHelpId(), SwDocStyleSheetPool::Remove(), SwDocStyleSheet::SetFollow(), SwDocStyleSheet::SetItemSet(), SwDocStyleSheet::SetParent(), and SwDocStyleSheetPool::SetParent().
|
static |
Definition at line 307 of file docstyle.cxx.
References SwTableAutoFormatTable::AddAutoFormat(), SwTableAutoFormatTable::FindAutoFormat(), and SwDoc::GetTableStyles().
Referenced by SwDocStyleSheet::Create(), and SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 1724 of file docstyle.cxx.
References SwDoc::GetCharFormats(), SwDoc::GetFrameFormats(), SwDoc::GetNumRuleTable(), SwDoc::GetPageDesc(), SwDoc::GetPageDescCnt(), SwDoc::GetTextFormatColls(), n, SwFrameFormats::push_back(), SwVectorModifyBase< Value >::push_back(), SwFrameFormats::size(), and SwVectorModifyBase< Value >::size().
Referenced by SwDocStyleSheet::FillStyleSheet().
|
static |
Definition at line 1260 of file docstyle.cxx.
References SwFormat::GetAttrSet().
Referenced by SwDocStyleSheet::FillStyleSheet(), and SwDocStyleSheet::GetItemSetForPreview().