SmEditWindow Class Reference

#include <edit.hxx>

Collaboration diagram for SmEditWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SmEditWindow (SmCmdBoxWindow &rMyCmdBoxWin)
 ~SmEditWindow ()
SmDocShellGetDoc ()
SmViewShellGetView ()
EditView * GetEditView ()
EditEngine * GetEditEngine ()
SfxItemPool * GetEditEngineItemPool ()
virtual void SetText (const XubString &rText)
virtual String GetText () const
virtual void GetFocus ()
virtual void LoseFocus ()
ESelection GetSelection () const
void SetSelection (const ESelection &rSel)
BOOL IsEmpty () const
BOOL IsSelected () const
BOOL IsAllSelected () const
void Cut ()
void Copy ()
void Paste ()
void Delete ()
void SelectAll ()
void InsertText (const String &rText)
void InsertCommand (USHORT nCommand)
void MarkError (const Point &rPos)
void SelNextMark ()
void SelPrevMark ()
BOOL HasMark (const String &rText) const
void Flush ()
void DeleteEditView (SmViewShell &rView)
void ApplyColorConfigValues (const svtools::ColorConfig &rColorCfg)
BOOL HandleWheelCommands (const CommandEvent &rCEvt)
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible > 
CreateAccessible ()
SmEditAccessibleGetAccessible ()

Private Member Functions

virtual void KeyInput (const KeyEvent &rKEvt)
virtual void Command (const CommandEvent &rCEvt)
 DECL_LINK (MenuSelectHdl, Menu *)
 DECL_LINK (ModifyTimerHdl, Timer *)
 DECL_LINK (CursorMoveTimerHdl, Timer *)
virtual void DataChanged (const DataChangedEvent &)
virtual void Resize ()
virtual void MouseMove (const MouseEvent &rEvt)
virtual void MouseButtonUp (const MouseEvent &rEvt)
virtual void MouseButtonDown (const MouseEvent &rEvt)
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt)
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
virtual void Paint (const Rectangle &rRect)
 DECL_LINK (EditStatusHdl, EditStatus *)
 DECL_LINK (ScrollHdl, ScrollBar *)
void CreateEditView ()
Rectangle AdjustScrollBars ()
void SetScrollBarRanges ()
void InitScrollBars ()

Private Attributes

::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible > 
xAccessible
SmEditAccessiblepAccessible
SmCmdBoxWindowrCmdBox
EditView * pEditView
ScrollBar * pHScrollBar
ScrollBar * pVScrollBar
ScrollBarBox * pScrollBox
Timer aModifyTimer
Timer aCursorMoveTimer
ESelection aOldSelection

Detailed Description

Definition at line 78 of file edit.hxx.


Constructor & Destructor Documentation

SmEditWindow::SmEditWindow ( SmCmdBoxWindow rMyCmdBoxWin  ) 

Definition at line 147 of file edit.cxx.

References aCursorMoveTimer, aModifyTimer, ApplyColorConfigValues(), SmCmdBoxWindow::GetEditWindow(), rCmdBox, and SM_MOD1.

SmEditWindow::~SmEditWindow (  ) 

Definition at line 181 of file edit.cxx.

References aCursorMoveTimer, aModifyTimer, SmEditAccessible::ClearWin(), pAccessible, pEditView, pHScrollBar, pScrollBox, and pVScrollBar.


Member Function Documentation

virtual void SmEditWindow::KeyInput ( const KeyEvent &  rKEvt  )  [private, virtual]

virtual void SmEditWindow::Command ( const CommandEvent &  rCEvt  )  [private, virtual]

SmEditWindow::DECL_LINK ( MenuSelectHdl  ,
Menu *   
) [private]

SmEditWindow::DECL_LINK ( ModifyTimerHdl  ,
Timer *   
) [private]

SmEditWindow::DECL_LINK ( CursorMoveTimerHdl  ,
Timer *   
) [private]

void SmEditWindow::DataChanged ( const DataChangedEvent &   )  [private, virtual]

Definition at line 255 of file edit.cxx.

References AdjustScrollBars(), ApplyColorConfigValues(), C2S, GetEditEngine(), GetEditEngineItemPool(), Resize(), SetEditEngineDefaultFonts(), and SM_MOD1.

virtual void SmEditWindow::Resize (  )  [private, virtual]

Referenced by DataChanged().

virtual void SmEditWindow::MouseMove ( const MouseEvent &  rEvt  )  [private, virtual]

virtual void SmEditWindow::MouseButtonUp ( const MouseEvent &  rEvt  )  [private, virtual]

virtual void SmEditWindow::MouseButtonDown ( const MouseEvent &  rEvt  )  [private, virtual]

virtual sal_Int8 SmEditWindow::AcceptDrop ( const AcceptDropEvent &  rEvt  )  [private, virtual]

virtual sal_Int8 SmEditWindow::ExecuteDrop ( const ExecuteDropEvent &  rEvt  )  [private, virtual]

virtual void SmEditWindow::Paint ( const Rectangle &  rRect  )  [private, virtual]

SmEditWindow::DECL_LINK ( EditStatusHdl  ,
EditStatus *   
) [private]

SmEditWindow::DECL_LINK ( ScrollHdl  ,
ScrollBar *   
) [private]

void SmEditWindow::CreateEditView (  )  [private]

Rectangle SmEditWindow::AdjustScrollBars (  )  [private]

Referenced by DataChanged().

void SmEditWindow::SetScrollBarRanges (  )  [private]

void SmEditWindow::InitScrollBars (  )  [private]

SmDocShell * SmEditWindow::GetDoc (  ) 

Definition at line 217 of file edit.cxx.

References SmViewShell::GetDoc(), SmCmdBoxWindow::GetView(), and rCmdBox.

Referenced by GetEditEngine(), and GetEditEngineItemPool().

SmViewShell * SmEditWindow::GetView (  ) 

Definition at line 211 of file edit.cxx.

References SmCmdBoxWindow::GetView(), and rCmdBox.

Referenced by SmEditAccessible::GetDoc_Impl().

EditView* SmEditWindow::GetEditView (  )  [inline]

Definition at line 124 of file edit.hxx.

References pEditView.

Referenced by SmEditAccessible::Init().

EditEngine * SmEditWindow::GetEditEngine (  ) 

Definition at line 224 of file edit.cxx.

References GetDoc(), SmDocShell::GetEditEngine(), and pEditView.

Referenced by DataChanged(), and SmEditAccessible::Init().

SfxItemPool * SmEditWindow::GetEditEngineItemPool (  ) 

Definition at line 239 of file edit.cxx.

References GetDoc(), and SmDocShell::GetEditEngineItemPool().

Referenced by DataChanged().

virtual void SmEditWindow::SetText ( const XubString &  rText  )  [virtual]

Referenced by SmEditController::StateChanged().

virtual String SmEditWindow::GetText (  )  const [virtual]

Referenced by SmViewShell::Execute(), and SmEditController::StateChanged().

virtual void SmEditWindow::GetFocus (  )  [virtual]

virtual void SmEditWindow::LoseFocus (  )  [virtual]

ESelection SmEditWindow::GetSelection (  )  const

Referenced by SmGraphicWindow::Paint().

void SmEditWindow::SetSelection ( const ESelection &  rSel  ) 

Referenced by SmGraphicWindow::MouseButtonDown().

BOOL SmEditWindow::IsEmpty (  )  const

Referenced by SmViewShell::GetState().

BOOL SmEditWindow::IsSelected (  )  const

Referenced by SmViewShell::GetState().

BOOL SmEditWindow::IsAllSelected (  )  const

Referenced by SmViewShell::Execute().

void SmEditWindow::Cut (  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::Copy (  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::Paste (  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::Delete (  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::SelectAll (  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::InsertText ( const String &  rText  ) 

Referenced by SmViewShell::Execute(), SmViewShell::Insert(), and SmViewShell::InsertFrom().

void SmEditWindow::InsertCommand ( USHORT  nCommand  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::MarkError ( const Point &  rPos  ) 

Referenced by SmViewShell::ShowError().

void SmEditWindow::SelNextMark (  ) 

Referenced by SmViewShell::Execute().

void SmEditWindow::SelPrevMark (  ) 

Referenced by SmViewShell::Execute().

BOOL SmEditWindow::HasMark ( const String &  rText  )  const

void SmEditWindow::Flush (  ) 

Referenced by SmViewShell::Deactivate().

void SmEditWindow::DeleteEditView ( SmViewShell rView  ) 

Referenced by SmViewShell::~SmViewShell().

void SmEditWindow::ApplyColorConfigValues ( const svtools::ColorConfig &  rColorCfg  ) 

Definition at line 245 of file edit.cxx.

Referenced by SmModule::ApplyColorConfigValues(), DataChanged(), and SmEditWindow().

BOOL SmEditWindow::HandleWheelCommands ( const CommandEvent &  rCEvt  ) 

virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SmEditWindow::CreateAccessible (  ) 

SmEditAccessible* SmEditWindow::GetAccessible (  )  [inline]

Definition at line 163 of file edit.hxx.

References pAccessible.

Referenced by SmEditAccessible::getBounds(), SmEditAccessible::getLocation(), SmEditAccessible::getLocationOnScreen(), and SmEditAccessible::getSize().


Member Data Documentation

::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SmEditWindow::xAccessible [private]

Definition at line 81 of file edit.hxx.

SmEditAccessible* SmEditWindow::pAccessible [private]

Definition at line 82 of file edit.hxx.

Referenced by GetAccessible(), and ~SmEditWindow().

SmCmdBoxWindow& SmEditWindow::rCmdBox [private]

Definition at line 84 of file edit.hxx.

Referenced by GetDoc(), GetView(), and SmEditWindow().

EditView* SmEditWindow::pEditView [private]

Definition at line 85 of file edit.hxx.

Referenced by GetEditEngine(), GetEditView(), and ~SmEditWindow().

ScrollBar* SmEditWindow::pHScrollBar [private]

Definition at line 86 of file edit.hxx.

Referenced by ~SmEditWindow().

ScrollBar * SmEditWindow::pVScrollBar [private]

Definition at line 86 of file edit.hxx.

Referenced by ~SmEditWindow().

ScrollBarBox* SmEditWindow::pScrollBox [private]

Definition at line 88 of file edit.hxx.

Referenced by ~SmEditWindow().

Timer SmEditWindow::aModifyTimer [private]

Definition at line 89 of file edit.hxx.

Referenced by SmEditWindow(), and ~SmEditWindow().

Timer SmEditWindow::aCursorMoveTimer [private]

Definition at line 89 of file edit.hxx.

Referenced by SmEditWindow(), and ~SmEditWindow().

ESelection SmEditWindow::aOldSelection [private]

Definition at line 91 of file edit.hxx.


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 17:23:12 2008 for maths by  doxygen 1.5.1