LibreOffice Module sc (master)
1
|
#include <tphfedit.hxx>
Public Member Functions | |
ScEditWindow (ScEditWindowLocation eLoc, weld::Window *pParent) | |
virtual void | SetDrawingArea (weld::DrawingArea *pArea) override |
virtual | ~ScEditWindow () override |
void | SetFont (const ScPatternAttr &rPattern) |
void | SetText (const EditTextObject &rTextObject) |
std::unique_ptr< EditTextObject > | CreateTextObject () |
void | SetCharAttributes () |
void | InsertField (const SvxFieldItem &rFld) |
void | SetNumType (SvxNumType eNumType) |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () override |
ScHeaderEditEngine * | GetEditEngine () const override |
void | SetObjectSelectHdl (const Link< ScEditWindow &, void > &aLink) |
void | SetGetFocusHdl (const std::function< void(ScEditWindow &)> &rLink) |
![]() | |
WeldEditView () | |
virtual int | GetSurroundingText (OUString &rSurrounding) override |
virtual bool | DeleteSurroundingText (const Selection &rRange) override |
void | SetText (const OUString &rStr) |
OUString | GetText () const |
virtual FactoryFunction | GetUITestFactory () const override |
void | SetModifyHdl (const Link< LinkParamNone *, void > &rLink) |
virtual EditView * | GetEditView () const |
bool | HasSelection () const |
void | Cut () |
void | Copy () |
void | Paste () |
virtual | ~WeldEditView () override |
Protected Member Functions | |
virtual void | makeEditEngine () override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
![]() | |
void | InitAccessible () |
void | DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual void | Resize () override |
virtual void | EditViewInvalidate (const tools::Rectangle &rRect) override |
virtual void | EditViewSelectionChange () override |
virtual OutputDevice & | EditViewOutputDevice () const override |
virtual Point | EditViewPointerPosPixel () const override |
virtual void | EditViewInputContext (const InputContext &rInputContext) override |
virtual void | EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override |
virtual weld::Widget * | EditViewPopupParent () const override |
Private Attributes | |
ScEditWindowLocation | eLocation |
bool | mbRTL |
weld::Window * | mpDialog |
unotools::WeakReference< ScAccessibleEditObject > | mxAcc |
Link< ScEditWindow &, void > | aObjectSelectLink |
std::function< void(ScEditWindow &)> | m_GetFocusLink |
Additional Inherited Members | |
![]() | |
std::unique_ptr< EditEngine > | m_xEditEngine |
std::unique_ptr< EditView > | m_xEditView |
rtl::Reference< WeldEditAccessible > | m_xAccessible |
Definition at line 48 of file tphfedit.hxx.
ScEditWindow::ScEditWindow | ( | ScEditWindowLocation | eLoc, |
weld::Window * | pParent | ||
) |
Definition at line 58 of file tphfedit.cxx.
|
overridevirtual |
Definition at line 112 of file tphfedit.cxx.
References unotools::WeakReference< class >::get(), and mxAcc.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 250 of file tphfedit.cxx.
References ScAccessibleEditObject::EditControl, and mxAcc.
std::unique_ptr< EditTextObject > ScEditWindow::CreateTextObject | ( | ) |
Definition at line 126 of file tphfedit.cxx.
References i, and WeldEditView::m_xEditEngine.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 70 of file tphfedit.cxx.
References WeldEditView::m_xEditEngine.
Referenced by SetDrawingArea(), SetFont(), SetNumType(), and SetText().
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 218 of file tphfedit.cxx.
References assert(), unotools::WeakReference< class >::get(), WeldEditView::GetFocus(), m_GetFocusLink, and mxAcc.
Referenced by MouseButtonDown().
void ScEditWindow::InsertField | ( | const SvxFieldItem & | rFld | ) |
Definition at line 158 of file tphfedit.cxx.
References WeldEditView::m_xEditView.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 196 of file tphfedit.cxx.
References aObjectSelectLink, Link< class, class >::Call(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DOWN, KEY_SHIFT, KEY_TAB, and WeldEditView::m_xEditView.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 229 of file tphfedit.cxx.
References unotools::WeakReference< class >::get(), WeldEditView::LoseFocus(), and mxAcc.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 65 of file tphfedit.cxx.
References EditEngine::CreatePool(), and WeldEditView::m_xEditEngine.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 238 of file tphfedit.cxx.
References assert(), GetFocus(), and WeldEditView::MouseButtonDown().
void ScEditWindow::SetCharAttributes | ( | ) |
Definition at line 163 of file tphfedit.cxx.
References ScAbstractDialogFactory::Create(), SfxObjectShell::Current(), SfxViewShell::Current(), WeldEditView::m_xEditView, mpDialog, RET_OK, ScResId(), and ScTabViewShell::SetInFormatDialog().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 75 of file tphfedit.cxx.
References aData, Center, eLocation, unotools::WeakReference< class >::get(), weld::DrawingArea::get_ref_device(), weld::Widget::get_tooltip_text(), GetEditEngine(), Size::Height(), lcl_GetFieldData(), Left, OutputDevice::LogicToPixel(), WeldEditView::m_xEditEngine, WeldEditView::m_xEditView, mbRTL, mxAcc, Right, ScResId(), weld::Widget::set_size_request(), ScHeaderEditEngine::SetData(), WeldEditView::SetDrawingArea(), sName, and Size::Width().
void ScEditWindow::SetFont | ( | const ScPatternAttr & | rPattern | ) |
Definition at line 139 of file tphfedit.cxx.
References ATTR_CJK_FONT_HEIGHT(), ATTR_CTL_FONT_HEIGHT(), ATTR_FONT_HEIGHT(), SfxPoolItem::CloneSetWhich(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_PARA_JUST(), ScPatternAttr::FillEditItemSet(), GetEditEngine(), ScPatternAttr::GetItem(), WeldEditView::m_xEditEngine, mbRTL, and ScEditEngineDefaulter::SetDefaults().
|
inline |
Definition at line 68 of file tphfedit.hxx.
void ScEditWindow::SetNumType | ( | SvxNumType | eNumType | ) |
Definition at line 119 of file tphfedit.cxx.
References GetEditEngine(), ScHeaderEditEngine::SetNumType(), and EditEngine::UpdateFields().
|
inline |
Definition at line 67 of file tphfedit.hxx.
void ScEditWindow::SetText | ( | const EditTextObject & | rTextObject | ) |
Definition at line 153 of file tphfedit.cxx.
References GetEditEngine(), and ScEditEngineDefaulter::SetTextCurrentDefaults().
|
private |
Definition at line 84 of file tphfedit.hxx.
Referenced by KeyInput().
|
private |
Definition at line 78 of file tphfedit.hxx.
Referenced by SetDrawingArea().
|
private |
Definition at line 85 of file tphfedit.hxx.
Referenced by GetFocus().
|
private |
Definition at line 79 of file tphfedit.hxx.
Referenced by SetDrawingArea(), and SetFont().
|
private |
Definition at line 80 of file tphfedit.hxx.
Referenced by SetCharAttributes().
|
private |
Definition at line 82 of file tphfedit.hxx.
Referenced by CreateAccessible(), GetFocus(), LoseFocus(), SetDrawingArea(), and ~ScEditWindow().