LibreOffice Module editeng (master) 1
|
#include <editeng/tstpitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/flditem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/wrlmitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/cmapitem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/autokernitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/charscaleitem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/editids.hrc>
#include <editeng/editdata.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/lspcitem.hxx>
#include <editdoc.hxx>
#include <editeng/eerdll.hxx>
#include <eerdll2.hxx>
#include "impedit.hxx"
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <o3tl/safeint.hxx>
#include <osl/diagnose.h>
#include <svl/grabbagitem.hxx>
#include <tools/debug.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <libxml/xmlwriter.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <limits>
#include <memory>
#include <set>
#include <string_view>
#include <utility>
Go to the source code of this file.
Functions | |
sal_uInt16 | GetScriptItemId (sal_uInt16 nItemId, SvtScriptType nScriptType) |
bool | IsScriptItemValid (sal_uInt16 nItemId, short nScriptType) |
EditCharAttrib * | MakeCharAttrib (SfxItemPool &rPool, const SfxPoolItem &rAttr, sal_Int32 nS, sal_Int32 nE) |
void | ConvertItem (std::unique_ptr< SfxPoolItem > &rPoolItem, MapUnit eSourceUnit, MapUnit eDestUnit) |
void | ConvertAndPutItems (SfxItemSet &rDest, const SfxItemSet &rSource, const MapUnit *pSourceUnit, const MapUnit *pDestUnit) |
bool | operator== (const EditLine &r1, const EditLine &r2) |
bool | operator== (const EditPaM &r1, const EditPaM &r2) |
bool | operator!= (const EditPaM &r1, const EditPaM &r2) |
void | CreateFont (SvxFont &rFont, const SfxItemSet &rSet, bool bSearchInParent, SvtScriptType nScriptType) |
Variables | |
const SfxItemInfo | aItemInfos [EDITITEMCOUNT] |
void ConvertAndPutItems | ( | SfxItemSet & | rDest, |
const SfxItemSet & | rSource, | ||
const MapUnit * | pSourceUnit, | ||
const MapUnit * | pDestUnit | ||
) |
Definition at line 888 of file editdoc.cxx.
References SfxPoolItem::Clone(), SfxPoolItem::CloneSetWhich(), ConvertItem(), EE_CHAR_END(), EE_PARA_START(), SfxItemSet::Get(), SfxItemSet::GetItemState(), SfxItemPool::GetMetric(), SfxItemSet::GetPool(), SfxItemPool::GetTrueSlotId(), SfxItemPool::GetTrueWhich(), and SfxItemSet::Put().
Referenced by EditRTFParser::CreateStyleSheet(), and ImpEditEngine::InsertTextObject().
void ConvertItem | ( | std::unique_ptr< SfxPoolItem > & | rPoolItem, |
MapUnit | eSourceUnit, | ||
MapUnit | eDestUnit | ||
) |
Definition at line 823 of file editdoc.cxx.
References SvxTabStopItem::Count(), DBG_ASSERT, EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_PARA_LRSPACE(), EE_PARA_SBL(), EE_PARA_TABS(), EE_PARA_ULSPACE(), SvxTabStop::GetAdjustment(), SvxTabStop::GetDecimal(), SvxTabStopItem::GetDefaultDistance(), SvxTabStop::GetFill(), SvxFontHeightItem::GetHeight(), SvxLineSpacingItem::GetLineHeight(), SvxLineSpacingItem::GetLineSpaceRule(), SvxULSpaceItem::GetLower(), SvxLRSpaceItem::GetRight(), SvxTabStop::GetTabPos(), SvxLRSpaceItem::GetTextFirstLineOffset(), SvxLRSpaceItem::GetTextLeft(), SvxULSpaceItem::GetUpper(), i, SvxTabStopItem::Insert(), OutputDevice::LogicToLogic(), Min, SvxTabStopItem::SetDefaultDistance(), SvxFontHeightItem::SetHeight(), SvxLineSpacingItem::SetLineHeight(), SvxULSpaceItem::SetLower(), SvxLRSpaceItem::SetRight(), SvxLRSpaceItem::SetTextFirstLineOffset(), SvxLRSpaceItem::SetTextLeft(), and SvxULSpaceItem::SetUpper().
Referenced by ConvertAndPutItems(), and ImpEditEngine::InsertTextObject().
void CreateFont | ( | SvxFont & | rFont, |
const SfxItemSet & | rSet, | ||
bool | bSearchInParent, | ||
SvtScriptType | nScriptType | ||
) |
Definition at line 1975 of file editdoc.cxx.
References ALIGN_BASELINE, EE_CHAR_BKGCOLOR(), EE_CHAR_CASEMAP(), EE_CHAR_COLOR(), EE_CHAR_EMPHASISMARK(), EE_CHAR_ESCAPEMENT(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTINFO(), EE_CHAR_ITALIC(), EE_CHAR_KERNING(), EE_CHAR_LANGUAGE(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_PAIRKERNING(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WLM(), SfxItemSet::Get(), SvxFontItem::GetCharSet(), SvxEscapementItem::GetEsc(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), vcl::Font::GetFontSize(), SvxFontHeightItem::GetHeight(), SfxItemSet::GetItemState(), SvxLanguageItem::GetLanguage(), SvxFontItem::GetPitch(), SvxPostureItem::GetPosture(), SvxEscapementItem::GetProportionalHeight(), GetScriptItemId(), SvxWeightItem::GetWeight(), rSet, vcl::Font::SetAlignment(), SvxFont::SetCaseMap(), vcl::Font::SetCharSet(), vcl::Font::SetColor(), vcl::Font::SetEmphasisMark(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), vcl::Font::SetFillColor(), vcl::Font::SetFixKerning(), vcl::Font::SetFontSize(), vcl::Font::SetItalic(), vcl::Font::SetKerning(), vcl::Font::SetLanguage(), SvxFont::SetNonAutoEscapement(), vcl::Font::SetOutline(), vcl::Font::SetOverline(), vcl::Font::SetPitch(), SvxFont::SetPropr(), vcl::Font::SetRelief(), vcl::Font::SetShadow(), vcl::Font::SetStrikeout(), vcl::Font::SetTransparent(), vcl::Font::SetUnderline(), vcl::Font::SetWeight(), vcl::Font::SetWordLineMode(), and Size::Width().
Referenced by ContentNode::CreateDefFont(), EditDoc::CreateDefFont(), EditEngine::CreateFontFromItemSet(), EditEngine::CreateSvxFontFromItemSet(), ContentNode::SetStyleSheet(), and ImpEditEngine::UpdateParagraphsWithStyleSheet().
sal_uInt16 GetScriptItemId | ( | sal_uInt16 | nItemId, |
SvtScriptType | nScriptType | ||
) |
Definition at line 73 of file editdoc.cxx.
References EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), and nId.
Referenced by CreateFont(), ImpEditEngine::GetLanguage(), ImpEditEngine::SeekCursor(), and ImpEditEngine::WriteRTF().
bool IsScriptItemValid | ( | sal_uInt16 | nItemId, |
short | nScriptType | ||
) |
Definition at line 103 of file editdoc.cxx.
References EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), and EE_CHAR_WEIGHT_CTL().
Referenced by lcl_FindValidAttribs(), and ImpEditEngine::SeekCursor().
EditCharAttrib * MakeCharAttrib | ( | SfxItemPool & | rPool, |
const SfxPoolItem & | rAttr, | ||
sal_Int32 | nS, | ||
sal_Int32 | nE | ||
) |
Definition at line 219 of file editdoc.cxx.
References EE_CHAR_BKGCOLOR(), EE_CHAR_CASEMAP(), EE_CHAR_COLOR(), EE_CHAR_EMPHASISMARK(), EE_CHAR_ESCAPEMENT(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), EE_CHAR_FONTWIDTH(), EE_CHAR_GRABBAG(), EE_CHAR_ITALIC(), EE_CHAR_ITALIC_CJK(), EE_CHAR_ITALIC_CTL(), EE_CHAR_KERNING(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EE_CHAR_OUTLINE(), EE_CHAR_OVERLINE(), EE_CHAR_PAIRKERNING(), EE_CHAR_RELIEF(), EE_CHAR_SHADOW(), EE_CHAR_STRIKEOUT(), EE_CHAR_UNDERLINE(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_CHAR_WLM(), EE_CHAR_XMLATTRIBS(), EE_FEATURE_FIELD(), EE_FEATURE_LINEBR(), EE_FEATURE_TAB(), SfxItemPool::Put(), and SfxPoolItem::Which().
Referenced by ContentNode::CopyAndCutAttribs(), EditDoc::InsertAttrib(), EditDoc::InsertFeature(), and ImpEditEngine::InsertTextObject().
Definition at line 1194 of file editdoc.cxx.
Definition at line 978 of file editdoc.cxx.
Referenced by OutlinerParaObject::operator!=(), and SvxTabStop::operator!=().
Definition at line 1188 of file editdoc.cxx.
const SfxItemInfo aItemInfos[EDITITEMCOUNT] |
Definition at line 159 of file editdoc.cxx.