27 , m_nDefaultFontSize(0)
28 , m_aAllSelection(0, 0, 0, 0)
117 sal_uInt16 nFontInfoId;
120 FontData aFontDataTable[3]
134 Color aTextColor = aDefaultDevice->GetSettings().GetStyleSettings().GetFieldTextColor();
135 for (
const FontData& aFontData : aFontDataTable)
138 = (
LANGUAGE_NONE == aFontData.nLang) ? aFontData.nFallbackLang : aFontData.nLang;
140 GetDefaultFontFlags::OnlyOne);
143 aFont.GetStyleName(), aFont.GetPitch(),
144 aFont.GetCharSet(), aFontData.nFontInfoId));
149 aDefaultDevice->LogicToPixel(
Size(0, 11),
MapMode(MapUnit::MapPoint)).
Height(), 100,
static OutputDevice * GetDefaultDevice()
void SetWordDelimiters(const OUString &rDelimiters)
void SetText(const OUString &rStr)
void SetAddExtLeading(bool b)
EEControlBits GetControlWord() const
sal_Int32 GetParagraphCount() const
void EnableUndo(bool bEnable)
SfxItemSet GetAttribs(sal_Int32 nPara, sal_Int32 nStart, sal_Int32 nEnd, GetAttribsFlags nFlags=GetAttribsFlags::ALL) const
sal_Int32 GetTextLen() const
void SetRefMapMode(const MapMode &rMapMode)
const SfxItemSet & GetEmptyItemSet() const
void SetControlWord(EEControlBits nWord)
void SetPaperSize(const Size &rSize)
void QuickSetAttribs(const SfxItemSet &rSet, const ESelection &rSel)
void FormatAndLayout(EditView *pCurView, bool bCalledFromUndo=false)
void SetBackgroundColor(const Color &rColor)
void SetDefTab(sal_uInt16 nDefTab)
ESelection GetSelection() const
void SetSelection(const ESelection &rNewSel)
static vcl::Font GetDefaultFont(DefaultFontType nType, LanguageType eLang, GetDefaultFontFlags nFlags, const OutputDevice *pOutDev=nullptr)
void SetPoolDefaultItem(const SfxPoolItem &)
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
void executeZoom(EditView *pEditView=nullptr)
Runs checkZoom and if true runs updateZoom.
ESelection m_aAllSelection
static void setSmItemPool(SfxItemPool *mpItemPool, const SvtLinguOptions &maLangOptions)
Sets up default font parameters for the item pool.
void updateAllESelection()
Finds the ESelection which contains all the text.
bool checkZoom()
Checks if the zoom of smeditwindow has changed.
sal_Int32 m_nDefaultFontSize
void updateZoom()
Updates the zoom of smeditwindow.
SmEditEngine(SfxItemPool *pItemPool)
sal_uInt32 GetHeight() const
void SetColor(const Color &)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CJK(EE_CHAR_START+17)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CTL(EE_CHAR_START+20)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO_CTL(EE_CHAR_START+18)
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT_CJK(EE_CHAR_START+19)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
#define LANGUAGE_JAPANESE
#define LANGUAGE_ARABIC_SAUDI_ARABIA
#define LANGUAGE_ENGLISH_US
LanguageType nDefaultLanguage
LanguageType nDefaultLanguage_CTL
LanguageType nDefaultLanguage_CJK