33#include <osl/diagnose.h>
48 pPool->FreezeIdRanges();
56 pPool->SetDefaultMetric(aDeviceMapMode.
GetMapUnit());
64 MapMode aPointMapMode( MapUnit::MapPoint );
84 OSL_ENSURE( pMyText,
"RichTextEngine::Clone: CreateTextObject returned nonsense!" );
109 OSL_ENSURE( _pListener,
"RichTextEngine::registerEngineStatusListener: invalid listener!" );
117 ::std::vector< IEngineStatusListener* >::iterator aPos = ::std::find(
122 OSL_ENSURE( aPos !=
m_aStatusListeners.end(),
"RichTextEngine::revokeEngineStatusListener: listener not registered!" );
130 for (
auto const& statusListener : m_aStatusListeners)
131 statusListener->EditEngineStatusChanged( _rStatus );
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
std::unique_ptr< EditTextObject > CreateTextObject()
void SetText(const OUString &rStr)
OutputDevice * GetRefDevice() const
static rtl::Reference< SfxItemPool > CreatePool()
void SetStatusEventHdl(const Link< EditStatus &, void > &rLink)
MapUnit GetMapUnit() const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
const MapMode & GetMapMode() const
constexpr tools::Long Width() const
const vcl::Font & GetAppFont() const
RichTextEngine(SfxItemPool *_pPool)
constructs a new RichTextEngine.
void revokeEngineStatusListener(IEngineStatusListener const *_pListener)
static RichTextEngine * Create()
void registerEngineStatusListener(IEngineStatusListener *_pListener)
::std::vector< IEngineStatusListener * > m_aStatusListeners
virtual ~RichTextEngine() override
FontFamily GetFamilyType()
const OUString & GetFamilyName() const
void SetFamilyName(const OUString &rFamilyName)
rtl_TextEncoding GetCharSet() const
constexpr TypedWhichId< SvxFontHeightItem > EE_CHAR_FONTHEIGHT(EE_CHAR_START+2)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CTL(EE_CHAR_START+16)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE_CJK(EE_CHAR_START+15)
constexpr TypedWhichId< SvxLanguageItem > EE_CHAR_LANGUAGE(EE_CHAR_START+14)
constexpr TypedWhichId< SvxFontItem > EE_CHAR_FONTINFO(EE_CHAR_START+1)
#define LINK(Instance, Class, Member)
ListBox is a bit confusing / different from other form components, so here are a few notes:
IMPL_LINK(OClickableImageBaseModel, OnImageImportDone, Graphic *, i_pGraphic, void)
LanguageType nDefaultLanguage
LanguageType nDefaultLanguage_CTL
LanguageType nDefaultLanguage_CJK