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) |
Public Member Functions inherited from WeldEditView | |
WeldEditView () | |
virtual void | SetDrawingArea (weld::DrawingArea *pDrawingArea) override |
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 |
virtual EditEngine * | GetEditEngine () const |
bool | HasSelection () const |
void | Delete () |
void | Cut () |
void | Copy () |
void | Paste () |
virtual | ~WeldEditView () override |
virtual void | Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override |
virtual bool | MouseMove (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonDown (const MouseEvent &rMEvt) override |
virtual bool | MouseButtonUp (const MouseEvent &rMEvt) override |
virtual bool | KeyInput (const KeyEvent &rKEvt) override |
virtual bool | Command (const CommandEvent &rCEvt) override |
virtual bool | CanFocus () const |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
virtual void | Resize () override |
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > | GetClipboard () const override |
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > | GetDropTarget () override |
bool | GetAcceptsTab () const |
void | SetAcceptsTab (bool bAcceptsTab) |
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 |
Protected Member Functions inherited from WeldEditView | |
virtual void | makeEditEngine () |
void | InitAccessible () |
void | DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) |
virtual css::uno::Reference< css::accessibility::XAccessible > | CreateAccessible () 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 | |
Protected Attributes inherited from WeldEditView | |
bool | m_bAcceptsTab |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | m_xDropTarget |
std::unique_ptr< EditEngine > | m_xEditEngine |
std::unique_ptr< EditView > | m_xEditView |
rtl::Reference< WeldEditAccessible > | m_xAccessible |
Definition at line 45 of file tphfedit.hxx.
ScEditWindow::ScEditWindow | ( | ScEditWindowLocation | eLoc, |
weld::Window * | pParent | ||
) |
Definition at line 59 of file tphfedit.cxx.
|
overridevirtual |
Definition at line 118 of file tphfedit.cxx.
References unotools::WeakReference< class interface_type >::get(), and mxAcc.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 252 of file tphfedit.cxx.
References ScAccessibleEditObject::EditControl, and mxAcc.
std::unique_ptr< EditTextObject > ScEditWindow::CreateTextObject | ( | ) |
Definition at line 132 of file tphfedit.cxx.
References i, and WeldEditView::m_xEditEngine.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 71 of file tphfedit.cxx.
References WeldEditView::m_xEditEngine.
Referenced by SetDrawingArea(), SetFont(), SetNumType(), and SetText().
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 220 of file tphfedit.cxx.
References unotools::WeakReference< class interface_type >::get(), WeldEditView::GetFocus(), m_GetFocusLink, and mxAcc.
Referenced by MouseButtonDown().
void ScEditWindow::InsertField | ( | const SvxFieldItem & | rFld | ) |
Definition at line 171 of file tphfedit.cxx.
References WeldEditView::m_xEditView.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 209 of file tphfedit.cxx.
References aObjectSelectLink, Link< typename Arg, typename Ret >::Call(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DOWN, and WeldEditView::KeyInput().
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 231 of file tphfedit.cxx.
References unotools::WeakReference< class interface_type >::get(), WeldEditView::LoseFocus(), and mxAcc.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 66 of file tphfedit.cxx.
References EditEngine::CreatePool(), get(), and WeldEditView::m_xEditEngine.
|
overrideprotectedvirtual |
Reimplemented from WeldEditView.
Definition at line 240 of file tphfedit.cxx.
References GetFocus(), comphelper::LibreOfficeKit::isActive(), and WeldEditView::MouseButtonDown().
void ScEditWindow::SetCharAttributes | ( | ) |
Definition at line 176 of file tphfedit.cxx.
References SfxItemSet::ClearItem(), ScAbstractDialogFactory::Create(), ScAbstractDialogFactory::CreateScCharDlg(), SfxObjectShell::Current(), SfxViewShell::Current(), WeldEditView::m_xEditView, mpDialog, SfxItemSet::Put(), RET_OK, ScResId(), and ScTabViewShell::SetInFormatDialog().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 76 of file tphfedit.cxx.
References aData, Center, svtools::DOCCOLOR, eLocation, unotools::WeakReference< class interface_type >::get(), weld::DrawingArea::get_ref_device(), weld::Widget::get_tooltip_text(), svtools::ColorConfig::GetColorValue(), GetEditEngine(), Size::Height(), lcl_GetFieldData(), Left, OutputDevice::LogicToPixel(), WeldEditView::m_xEditEngine, WeldEditView::m_xEditView, mbRTL, mxAcc, svtools::ColorConfigValue::nColor, Right, ScResId(), weld::Widget::set_size_request(), OutputDevice::SetBackground(), ScHeaderEditEngine::SetData(), WeldEditView::SetDrawingArea(), sName, and Size::Width().
void ScEditWindow::SetFont | ( | const ScPatternAttr & | rPattern | ) |
Definition at line 145 of file tphfedit.cxx.
References ATTR_CJK_FONT_HEIGHT(), ATTR_CTL_FONT_HEIGHT(), ATTR_FONT_HEIGHT(), SfxPoolItem::CloneSetWhich(), COL_AUTO(), COL_BLACK(), COL_WHITE(), svtools::DOCCOLOR, EE_CHAR_COLOR(), EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_PARA_JUST(), ScPatternAttr::FillEditItemSet(), svtools::FONTCOLOR, svtools::ColorConfig::GetColorValue(), GetEditEngine(), ScPatternAttr::GetItem(), Color::IsDark(), WeldEditView::m_xEditEngine, mbRTL, svtools::ColorConfigValue::nColor, and ScEditEngineDefaulter::SetDefaults().
|
inline |
Definition at line 65 of file tphfedit.hxx.
void ScEditWindow::SetNumType | ( | SvxNumType | eNumType | ) |
Definition at line 125 of file tphfedit.cxx.
References GetEditEngine(), ScHeaderEditEngine::SetNumType(), and EditEngine::UpdateFields().
|
inline |
Definition at line 64 of file tphfedit.hxx.
void ScEditWindow::SetText | ( | const EditTextObject & | rTextObject | ) |
Definition at line 166 of file tphfedit.cxx.
References GetEditEngine(), and ScEditEngineDefaulter::SetTextCurrentDefaults().
|
private |
Definition at line 81 of file tphfedit.hxx.
Referenced by KeyInput().
|
private |
Definition at line 75 of file tphfedit.hxx.
Referenced by SetDrawingArea().
|
private |
Definition at line 82 of file tphfedit.hxx.
Referenced by GetFocus().
|
private |
Definition at line 76 of file tphfedit.hxx.
Referenced by SetDrawingArea(), and SetFont().
|
private |
Definition at line 77 of file tphfedit.hxx.
Referenced by SetCharAttributes().
|
private |
Definition at line 79 of file tphfedit.hxx.
Referenced by CreateAccessible(), GetFocus(), LoseFocus(), SetDrawingArea(), and ~ScEditWindow().