19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_DRPCPS_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_DRPCPS_HXX
22#include <com/sun/star/i18n/XBreakIterator.hpp>
70 css::uno::Reference< css::i18n::XBreakIterator >
m_xBreak;
79 bool GetNextScriptSegment(
size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType);
100 virtual void Resize()
override;
104 void SetText(
const OUString& rT );
Dedicated drop caps dialog, opened by the .uno:FormatDropcap UNO command, which is not in the default...
SwDropCapsDlg(weld::Window *pParent, const SfxItemSet &rSet)
std::unique_ptr< weld::CheckButton > m_xWholeWordCB
std::unique_ptr< weld::ComboBox > m_xTemplateBox
DECL_LINK(ClickHdl, weld::Toggleable &, void)
DECL_LINK(SelectHdl, weld::ComboBox &, void)
virtual ~SwDropCapsPage() override
std::unique_ptr< weld::Label > m_xSwitchText
std::unique_ptr< weld::Entry > m_xTextEdit
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
void ModifyEntry(const weld::Entry &rEdit)
std::unique_ptr< weld::Label > m_xTextText
virtual bool FillItemSet(SfxItemSet *rSet) override
static const WhichRangesContainer s_aPageRg
std::unique_ptr< weld::SpinButton > m_xLinesField
void FillSet(SfxItemSet &rSet)
DECL_LINK(ValueChangedHdl, weld::SpinButton &, void)
std::unique_ptr< weld::CustomWeld > m_xPict
std::unique_ptr< weld::SpinButton > m_xDropCapsField
void SetFormat(bool bSet)
SwDropCapsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
virtual void Reset(const SfxItemSet *rSet) override
DECL_LINK(WholeWordHdl, weld::Toggleable &, void)
std::unique_ptr< weld::CheckButton > m_xDropCapsBox
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
std::unique_ptr< weld::Label > m_xDistanceText
DECL_LINK(MetricValueChangedHdl, weld::MetricSpinButton &, void)
std::unique_ptr< weld::Label > m_xTemplateText
std::unique_ptr< weld::MetricSpinButton > m_xDistanceField
static WhichRangesContainer GetRanges()
DECL_LINK(ModifyHdl, weld::Entry &, void)
std::unique_ptr< weld::Label > m_xLinesText
void GetFirstScriptSegment(sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType)
Get the details of the first script change.
virtual void Resize() override
void SetValues(const OUString &rText, sal_uInt8 nLines, sal_uInt16 nDistance)
static void GetFontSettings(vcl::Font &_rFont, sal_uInt16 _nWhich)
void SetDistance(sal_uInt16 nD)
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
void SetLines(sal_uInt8 nL)
css::uno::Reference< css::i18n::XBreakIterator > m_xBreak
std::vector< ScriptInfo > maScriptChanges
void SetDropCapsPage(SwDropCapsPage *pPage)
void UpdatePaintSettings()
virtual void Paint(vcl::RenderContext &, const tools::Rectangle &rRect) override
void SetText(const OUString &rT)
virtual ~SwDropCapsPict() override
void DrawPrev(vcl::RenderContext &rRenderContext, const Point &rPt)
VclPtr< Printer > mpPrinter
bool GetNextScriptSegment(size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType)
Get the details of the first script change.
Used by the UI to modify the document model.
The ScriptInfo structure holds information on where we change from one script to another.
sal_Int32 changePos
Character position where the script changes.
ScriptInfo(sal_uInt16 scrptType, sal_Int32 position)
sal_uInt16 scriptType
Script type (e.g. Latin, Asian, Complex)
sal_uLong textWidth
Physical width of this segment.