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>
61 : textWidth(0), scriptType(scrptType), changePos(position) {}
68 css::uno::Reference< css::i18n::XBreakIterator >
xBreak;
77 bool GetNextScriptSegment(
size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType);
98 virtual void Resize()
override;
102 void SetText(
const OUString& rT );
void UpdatePaintSettings()
std::unique_ptr< weld::Entry > m_xTextEdit
bool GetNextScriptSegment(size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType)
Get the details of the first script change.
std::unique_ptr< weld::MetricSpinButton > m_xDistanceField
The ScriptInfo structure holds information on where we change from one script to another.
void GetFirstScriptSegment(sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType)
Get the details of the first script change.
void SetFormat(bool bSet)
void ModifyEntry(weld::Entry &rEdit)
std::unique_ptr< weld::ComboBox > m_xTemplateBox
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
void SetText(const OUString &rT)
std::unique_ptr< weld::Label > m_xSwitchText
Used by the UI to modify the document model.
static const sal_uInt16 aPageRg[]
void SetLines(sal_uInt8 nL)
sal_uLong textWidth
Physical width of this segment.
std::unique_ptr< weld::Label > m_xTextText
SwDropCapsDlg(weld::Window *pParent, const SfxItemSet &rSet)
void SetDistance(sal_uInt16 nD)
static const sal_uInt16 * GetRanges()
std::unique_ptr< weld::CheckButton > m_xDropCapsBox
virtual void Paint(vcl::RenderContext &, const tools::Rectangle &rRect) override
std::unique_ptr< weld::CustomWeld > m_xPict
std::unique_ptr< weld::CheckButton > m_xWholeWordCB
void FillSet(SfxItemSet &rSet)
SwDropCapsPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
sal_uInt16 scriptType
Script type (e.g. Latin, Asian, Complex)
css::uno::Reference< css::i18n::XBreakIterator > xBreak
ScriptInfo(sal_uInt16 scrptType, sal_Int32 position)
DECL_LINK(ClickHdl, weld::ToggleButton &, void)
void SetValues(const OUString &rText, sal_uInt8 nLines, sal_uInt16 nDistance)
virtual void Resize() override
virtual bool FillItemSet(SfxItemSet *rSet) override
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
std::unique_ptr< weld::SpinButton > m_xLinesField
virtual ~SwDropCapsPict() override
std::unique_ptr< weld::Label > m_xTemplateText
static void GetFontSettings(const SwDropCapsPage &_rPage, vcl::Font &_rFont, sal_uInt16 _nWhich)
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
virtual ~SwDropCapsPage() override
void SetDropCapsPage(SwDropCapsPage *pPage)
void DrawPrev(vcl::RenderContext &rRenderContext, const Point &rPt)
std::vector< ScriptInfo > maScriptChanges
std::unique_ptr< weld::SpinButton > m_xDropCapsField
std::unique_ptr< weld::Label > m_xLinesText
VclPtr< Printer > mpPrinter
virtual void Reset(const SfxItemSet *rSet) override
std::unique_ptr< weld::Label > m_xDistanceText
sal_Int32 changePos
Character position where the script changes.