|
LibreOffice Module sw (master) 1
|
#include <drpcps.hxx>
Classes | |
| struct | ScriptInfo |
| The ScriptInfo structure holds information on where we change from one script to another. More... | |
Public Member Functions | |
| SwDropCapsPict () | |
| void | SetDropCapsPage (SwDropCapsPage *pPage) |
| virtual | ~SwDropCapsPict () override |
| void | UpdatePaintSettings () |
| virtual void | Resize () override |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
| void | SetText (const OUString &rT) |
| void | SetLines (sal_uInt8 nL) |
| void | SetDistance (sal_uInt16 nD) |
| void | SetValues (const OUString &rText, sal_uInt8 nLines, sal_uInt16 nDistance) |
| void | DrawPrev (vcl::RenderContext &rRenderContext, const Point &rPt) |
Public Member Functions inherited from weld::CustomWidgetController | |
| virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () |
| virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)=0 |
| virtual void | Resize () |
| virtual bool | MouseButtonDown (const MouseEvent &) |
| virtual bool | MouseMove (const MouseEvent &) |
| virtual bool | MouseButtonUp (const MouseEvent &) |
| virtual void | GetFocus () |
| virtual void | LoseFocus () |
| virtual void | StyleUpdated () |
| virtual bool | Command (const CommandEvent &) |
| virtual bool | KeyInput (const KeyEvent &) |
| virtual tools::Rectangle | GetFocusRect () |
| virtual FactoryFunction | GetUITestFactory () const |
| virtual OUString | RequestHelp (tools::Rectangle &) |
| virtual OUString | GetHelpText () const |
| Size const & | GetOutputSizePixel () const |
| void | SetOutputSizePixel (const Size &rSize) |
| virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) |
| weld::DrawingArea * | GetDrawingArea () const |
| void | Invalidate () |
| void | Invalidate (const tools::Rectangle &rRect) |
| virtual void | Show () |
| virtual void | Hide () |
| void | SetCursor (void *pData) |
| void | GrabFocus () |
| bool | HasFocus () const |
| bool | HasChildFocus () const |
| bool | IsVisible () const |
| bool | IsReallyVisible () const |
| bool | IsEnabled () const |
| void | Enable () const |
| void | Disable () const |
| bool | IsActive () const |
| int | GetTextHeight () const |
| int | GetTextWidth (const OUString &rText) const |
| OUString | GetAccessibleName () const |
| OUString | GetAccessibleDescription () const |
| void | CaptureMouse () |
| bool | IsMouseCaptured () const |
| Point | GetPointerPosPixel () const |
| void | EnableRTL (bool bEnable) |
| bool | IsRTLEnabled () const |
| void | ReleaseMouse () |
| void | SetPointer (PointerStyle ePointerStyle) |
| void | SetHelpId (const OUString &rHelpId) |
| void | SetAccessibleName (const OUString &rName) |
| void | SetInputContext (const InputContext &rInputContext) |
| void | SetCursorRect (const tools::Rectangle &rCursorRect, int nExtTextInputWidth) |
| virtual int | GetSurroundingText (OUString &) |
| virtual bool | DeleteSurroundingText (const Selection &) |
| css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () |
| css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const |
| void | SetDragDataTransferable (rtl::Reference< TransferDataContainer > &rTransferable, sal_uInt8 eDNDConstants) |
| virtual bool | StartDrag () |
| void | set_size_request (int nWidth, int nHeight) |
| void | queue_resize () |
| CustomWidgetController () | |
| virtual | ~CustomWidgetController () |
| CustomWidgetController (CustomWidgetController const &)=default | |
| CustomWidgetController (CustomWidgetController &&)=default | |
| CustomWidgetController & | operator= (CustomWidgetController const &)=default |
| CustomWidgetController & | operator= (CustomWidgetController &&)=default |
Private Member Functions | |
| virtual void | Paint (vcl::RenderContext &, const tools::Rectangle &rRect) override |
| void | CheckScript () |
| Size | CalcTextSize () |
| void | InitPrinter () |
| void | InitPrinter_ () |
| void | GetFirstScriptSegment (sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType) |
| Get the details of the first script change. More... | |
| bool | GetNextScriptSegment (size_t &nIdx, sal_Int32 &start, sal_Int32 &end, sal_uInt16 &scriptType) |
| Get the details of the first script change. More... | |
Static Private Member Functions | |
| static void | GetFontSettings (vcl::Font &_rFont, sal_uInt16 _nWhich) |
Private Attributes | |
| SwDropCapsPage * | mpPage |
| OUString | maText |
| OUString | maScriptText |
| Color | maBackColor |
| Color | maTextLineColor |
| sal_uInt8 | mnLines |
| tools::Long | mnTotLineH |
| tools::Long | mnLineH |
| tools::Long | mnTextH |
| sal_uInt16 | mnDistance |
| VclPtr< Printer > | mpPrinter |
| bool | mbDelPrinter |
| std::vector< ScriptInfo > | maScriptChanges |
| SvxFont | maFont |
| SvxFont | maCJKFont |
| SvxFont | maCTLFont |
| Size | maTextSize |
| css::uno::Reference< css::i18n::XBreakIterator > | m_xBreak |
Additional Inherited Members | |
Static Public Member Functions inherited from weld::CustomWidgetController | |
| static bool | IsUpdateMode () |
Definition at line 41 of file drpcps.hxx.
|
inline |
Definition at line 83 of file drpcps.hxx.
|
overridevirtual |
Definition at line 128 of file drpcps.cxx.
References VclPtr< class reference_type >::disposeAndClear(), mbDelPrinter, and mpPrinter.
|
private |
Definition at line 387 of file drpcps.cxx.
References calcFontHeightAnyAscent(), weld::CustomWidgetController::GetDrawingArea(), GetFirstScriptSegment(), GetNextScriptSegment(), SvxFont::GetTextSize(), InitPrinter(), maCJKFont, maCTLFont, maFont, maScriptChanges, maText, mpPrinter, and Size::Width().
Referenced by UpdatePaintSettings().
|
private |
Definition at line 354 of file drpcps.cxx.
References m_xBreak, maScriptChanges, maScriptText, and maText.
Referenced by UpdatePaintSettings().
| void SwDropCapsPict::DrawPrev | ( | vcl::RenderContext & | rRenderContext, |
| const Point & | rPt | ||
| ) |
Definition at line 319 of file drpcps.cxx.
References Point::AdjustX(), SvxFont::DrawPrev(), GetFirstScriptSegment(), GetNextScriptSegment(), InitPrinter(), maCJKFont, maCTLFont, maFont, maScriptChanges, maText, and mpPrinter.
Referenced by Paint().
|
private |
Get the details of the first script change.
| [out] | start | The character position of the start of the segment. |
| [out] | end | The character position of the end of the segment. |
| [out] | scriptType | The script type (Latin, Asian, Complex etc.) |
Definition at line 138 of file drpcps.cxx.
References end, maScriptChanges, maText, and start.
Referenced by CalcTextSize(), and DrawPrev().
|
staticprivate |
Definition at line 172 of file drpcps.cxx.
References SfxItemSet::Get(), GetActiveView(), SwViewShell::GetAttrPool(), SvxFontItem::GetCharSet(), SwEditShell::GetCurAttr(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SvxFontItem::GetPitch(), SwView::GetWrtShell(), vcl::Font::SetCharSet(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), and vcl::Font::SetPitch().
Referenced by UpdatePaintSettings().
|
private |
Get the details of the first script change.
| [in,out] | nIdx | Index of the current script change. |
| [out] | start | The character position of the start of the segment. |
| [in,out] | end | The character position of the end of the segment. |
| [out] | scriptType | The script type (Latin, Asian, Complex etc.) |
Definition at line 159 of file drpcps.cxx.
References end, maScriptChanges, maText, and start.
Referenced by CalcTextSize(), and DrawPrev().
|
inlineprivate |
Definition at line 100 of file drpcps.cxx.
References InitPrinter_(), and mpPrinter.
Referenced by CalcTextSize(), and DrawPrev().
|
private |
Definition at line 450 of file drpcps.cxx.
References VclPtr< class reference_type >::Create(), SfxViewShell::Current(), SfxViewShell::GetPrinter(), mbDelPrinter, and mpPrinter.
Referenced by InitPrinter().
|
overrideprivatevirtual |
Implements weld::CustomWidgetController.
Definition at line 277 of file drpcps.cxx.
References BORDER, DrawPrev(), OutputDevice::DrawRect(), weld::CustomWidgetController::GetOutputSizePixel(), Size::Height(), i, weld::CustomWidgetController::IsVisible(), LINES, SwDropCapsPage::m_xDropCapsBox, maBackColor, maTextLineColor, maTextSize, mnDistance, mnLineH, mnTotLineH, mpPage, OutputDevice::SetClipRegion(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), OutputDevice::SetMapMode(), and Size::Width().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 73 of file drpcps.cxx.
References UpdatePaintSettings().
| void SwDropCapsPict::SetDistance | ( | sal_uInt16 | nD | ) |
Definition at line 85 of file drpcps.cxx.
References mnDistance, and UpdatePaintSettings().
Referenced by SwDropCapsPage::ModifyEntry().
|
overridevirtual |
Reimplemented from weld::CustomWidgetController.
Definition at line 66 of file drpcps.cxx.
References weld::DrawingArea::get_ref_device(), getParagraphPreviewOptimalSize(), Size::Height(), weld::Widget::set_size_request(), and Size::Width().
|
inline |
Definition at line 94 of file drpcps.hxx.
References mpPage.
Referenced by SwDropCapsPage::SwDropCapsPage().
| void SwDropCapsPict::SetLines | ( | sal_uInt8 | nL | ) |
Definition at line 79 of file drpcps.cxx.
References mnLines, and UpdatePaintSettings().
Referenced by SwDropCapsPage::ModifyEntry().
| void SwDropCapsPict::SetText | ( | const OUString & | rT | ) |
Definition at line 60 of file drpcps.cxx.
References maText, and UpdatePaintSettings().
Referenced by SwDropCapsPage::ModifyEntry().
| void SwDropCapsPict::SetValues | ( | const OUString & | rText, |
| sal_uInt8 | nLines, | ||
| sal_uInt16 | nDistance | ||
| ) |
Definition at line 91 of file drpcps.cxx.
References maText, mnDistance, mnLines, and UpdatePaintSettings().
Referenced by SwDropCapsPage::Reset().
| void SwDropCapsPict::UpdatePaintSettings | ( | ) |
Definition at line 189 of file drpcps.cxx.
References BORDER, CalcTextSize(), CheckScript(), SwCursorShell::ClearMark(), COL_LIGHTGRAY(), SwCursorShell::DeleteCurrent, SwCursorShell::EndCursorMove(), fnParaStart, GetActiveView(), SvxFontItem::GetCharSet(), SwWrtShell::GetCharStyle(), SwView::GetDocShell(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SwFormat::GetFont(), SwViewOption::GetFontColor(), GetFontSettings(), vcl::Font::GetFontSize(), weld::CustomWidgetController::GetOutputSizePixel(), SvxFontItem::GetPitch(), Application::GetSettings(), SwWrtShell::GETSTYLE_CREATEANY, AllSettings::GetStyleSettings(), SwWrtShell::GetView(), SwViewShell::GetViewOptions(), StyleSettings::GetWindowColor(), SwView::GetWrtShell(), GoCurrPara(), Size::Height(), weld::CustomWidgetController::Invalidate(), LINES, SwDocShell::LockAllViews(), SwDropCapsPage::m_xTemplateBox, maBackColor, maCJKFont, maCTLFont, maFont, maTextLineColor, maTextSize, mnLineH, mnLines, mnTextH, mnTotLineH, SwCursorShell::MovePara(), mpPage, SwWrtShell::Pop(), SwCursorShell::Push(), RES_CHRATR_CJK_FONT(), RES_CHRATR_CTL_FONT(), RES_CHRATR_FONT(), vcl::Font::SetCharSet(), vcl::Font::SetColor(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), vcl::Font::SetFillColor(), vcl::Font::SetFontSize(), vcl::Font::SetPitch(), vcl::Font::SetTransparent(), and SwCursorShell::SttCursorMove().
Referenced by Resize(), SetDistance(), SetLines(), SetText(), and SetValues().
|
private |
Definition at line 70 of file drpcps.hxx.
Referenced by CheckScript().
|
private |
Definition at line 46 of file drpcps.hxx.
Referenced by Paint(), and UpdatePaintSettings().
|
private |
Definition at line 67 of file drpcps.hxx.
Referenced by CalcTextSize(), DrawPrev(), and UpdatePaintSettings().
|
private |
Definition at line 68 of file drpcps.hxx.
Referenced by CalcTextSize(), DrawPrev(), and UpdatePaintSettings().
|
private |
Definition at line 66 of file drpcps.hxx.
Referenced by CalcTextSize(), DrawPrev(), and UpdatePaintSettings().
|
private |
Definition at line 65 of file drpcps.hxx.
Referenced by CalcTextSize(), CheckScript(), DrawPrev(), GetFirstScriptSegment(), and GetNextScriptSegment().
|
private |
Definition at line 45 of file drpcps.hxx.
Referenced by CheckScript().
|
private |
Definition at line 44 of file drpcps.hxx.
Referenced by CalcTextSize(), CheckScript(), DrawPrev(), GetFirstScriptSegment(), GetNextScriptSegment(), SetText(), and SetValues().
|
private |
Definition at line 47 of file drpcps.hxx.
Referenced by Paint(), and UpdatePaintSettings().
|
private |
Definition at line 69 of file drpcps.hxx.
Referenced by Paint(), and UpdatePaintSettings().
|
private |
Definition at line 54 of file drpcps.hxx.
Referenced by InitPrinter_(), and ~SwDropCapsPict().
|
private |
Definition at line 52 of file drpcps.hxx.
Referenced by Paint(), SetDistance(), and SetValues().
|
private |
Definition at line 50 of file drpcps.hxx.
Referenced by Paint(), and UpdatePaintSettings().
|
private |
Definition at line 48 of file drpcps.hxx.
Referenced by SetLines(), SetValues(), and UpdatePaintSettings().
|
private |
Definition at line 51 of file drpcps.hxx.
Referenced by UpdatePaintSettings().
|
private |
Definition at line 49 of file drpcps.hxx.
Referenced by Paint(), and UpdatePaintSettings().
|
private |
Definition at line 43 of file drpcps.hxx.
Referenced by Paint(), SetDropCapsPage(), and UpdatePaintSettings().
Definition at line 53 of file drpcps.hxx.
Referenced by CalcTextSize(), DrawPrev(), InitPrinter(), InitPrinter_(), and ~SwDropCapsPict().