SmGraphicWindow Class Reference

#include <view.hxx>

Collaboration diagram for SmGraphicWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SmGraphicWindow (SmViewShell *pShell)
 ~SmGraphicWindow ()
virtual void MouseButtonDown (const MouseEvent &rMEvt)
virtual void GetFocus ()
virtual void LoseFocus ()
SmViewShellGetView ()
void SetZoom (USHORT Factor)
USHORT GetZoom () const
const Point & GetFormulaDrawPos () const
void ZoomToFitInWindow ()
void SetTotalSize ()
BOOL IsCursorVisible () const
void ShowCursor (BOOL bShow)
const SmNodeSetCursorPos (USHORT nRow, USHORT nCol)
void ApplyColorConfigValues (const svtools::ColorConfig &rColorCfg)
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible > 
CreateAccessible ()
SmGraphicAccessibleGetAccessible_Impl ()

Protected Member Functions

void SetFormulaDrawPos (const Point &rPos)
void SetIsCursorVisible (BOOL bVis)
void SetCursor (const SmNode *pNode)
void SetCursor (const Rectangle &rRect)
virtual void DataChanged (const DataChangedEvent &)
virtual void Paint (const Rectangle &)
virtual void KeyInput (const KeyEvent &rKEvt)
virtual void Command (const CommandEvent &rCEvt)
virtual void StateChanged (StateChangedType eChanged)
 DECL_LINK (MenuSelectHdl, Menu *)

Private Attributes

Point aFormulaDrawPos
Rectangle aCursorRect
::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible > 
xAccessible
SmGraphicAccessiblepAccessible
SmViewShellpViewShell
USHORT nZoom
short nModifyCount
BOOL bIsCursorVisible

Detailed Description

Definition at line 81 of file view.hxx.


Constructor & Destructor Documentation

SmGraphicWindow::SmGraphicWindow ( SmViewShell pShell  ) 

Definition at line 186 of file view.cxx.

References ApplyColorConfigValues(), SetTotalSize(), and SM_MOD1.

SmGraphicWindow::~SmGraphicWindow (  ) 

Definition at line 208 of file view.cxx.

References SmGraphicAccessible::ClearWin(), and pAccessible.


Member Function Documentation

void SmGraphicWindow::SetFormulaDrawPos ( const Point &  rPos  )  [inline, protected]

Definition at line 96 of file view.hxx.

References aFormulaDrawPos.

Referenced by Paint().

void SmGraphicWindow::SetIsCursorVisible ( BOOL  bVis  )  [inline, protected]

Definition at line 97 of file view.hxx.

References bIsCursorVisible.

Referenced by Paint(), and ShowCursor().

void SmGraphicWindow::SetCursor ( const SmNode pNode  )  [protected]

Definition at line 347 of file view.cxx.

References SmViewShell::GetDoc(), GetFormulaDrawPos(), SmDocShell::GetFormulaTree(), SmRect::GetItalicLeftSpace(), SmRect::GetItalicSize(), SmRect::GetTopLeft(), and pViewShell.

Referenced by MouseButtonDown(), and SetCursorPos().

void SmGraphicWindow::SetCursor ( const Rectangle &  rRect  )  [protected]

Definition at line 361 of file view.cxx.

References aCursorRect, SmModule::GetConfig(), IsCursorVisible(), SmMathConfig::IsShowFormulaCursor(), ShowCursor(), and SM_MOD1.

void SmGraphicWindow::DataChanged ( const DataChangedEvent &   )  [protected, virtual]

Definition at line 236 of file view.cxx.

References ApplyColorConfigValues(), and SM_MOD1.

void SmGraphicWindow::Paint ( const Rectangle &   )  [protected, virtual]

Definition at line 398 of file view.cxx.

References SmDocShell::Draw(), SmModule::GetConfig(), SmViewShell::GetDoc(), SmViewShell::GetEditWindow(), SmEditWindow::GetSelection(), SmMathConfig::IsShowFormulaCursor(), pViewShell, SetCursorPos(), SetFormulaDrawPos(), SetIsCursorVisible(), ShowCursor(), SM_MOD1, and SmGetLeftSelectionPart().

void SmGraphicWindow::KeyInput ( const KeyEvent &  rKEvt  )  [protected, virtual]

Definition at line 436 of file view.cxx.

References GetView().

void SmGraphicWindow::Command ( const CommandEvent &  rCEvt  )  [protected, virtual]

Definition at line 443 of file view.cxx.

References GetZoom(), pViewShell, and SetZoom().

void SmGraphicWindow::StateChanged ( StateChangedType  eChanged  )  [protected, virtual]

Definition at line 216 of file view.cxx.

SmGraphicWindow::DECL_LINK ( MenuSelectHdl  ,
Menu *   
) [protected]

void SmGraphicWindow::MouseButtonDown ( const MouseEvent &  rMEvt  )  [virtual]

Definition at line 244 of file view.cxx.

References SmNode::FindRectClosestTo(), SmViewShell::GetDoc(), SmViewShell::GetEditWindow(), GetFormulaDrawPos(), SmDocShell::GetFormulaTree(), pViewShell, SetCursor(), SmEditWindow::SetSelection(), TPLACE, TSPECIAL, and TTEXT.

void SmGraphicWindow::GetFocus (  )  [virtual]

Definition at line 305 of file view.cxx.

References SmViewShell::GetEditWindow(), and pViewShell.

void SmGraphicWindow::LoseFocus (  )  [virtual]

Definition at line 322 of file view.cxx.

References SmGraphicAccessible::LaunchEvent(), pAccessible, and xAccessible.

SmViewShell* SmGraphicWindow::GetView (  )  [inline]

Definition at line 118 of file view.hxx.

References pViewShell.

Referenced by SmGraphicAccessible::GetDoc_Impl(), and KeyInput().

void SmGraphicWindow::SetZoom ( USHORT  Factor  ) 

Definition at line 503 of file view.cxx.

References MAXZOOM, and MINZOOM.

Referenced by Command(), SmViewShell::Execute(), SmViewShell::SetZoomFactor(), and ZoomToFitInWindow().

USHORT SmGraphicWindow::GetZoom (  )  const [inline]

Definition at line 123 of file view.hxx.

References nZoom.

Referenced by Command(), SmViewShell::Execute(), and SmViewShell::GetState().

const Point& SmGraphicWindow::GetFormulaDrawPos (  )  const [inline]

Definition at line 125 of file view.hxx.

References aFormulaDrawPos.

Referenced by MouseButtonDown(), and SetCursor().

void SmGraphicWindow::ZoomToFitInWindow (  ) 

Definition at line 516 of file view.cxx.

References SmViewShell::GetDoc(), SmDocShell::GetSize(), pViewShell, and SetZoom().

Referenced by SmViewShell::Execute(), and SmViewShell::OuterResizePixel().

void SmGraphicWindow::SetTotalSize (  ) 

Definition at line 427 of file view.cxx.

References SmViewShell::GetDoc(), SmDocShell::GetSize(), and pViewShell.

Referenced by SmViewShell::InnerResizePixel(), SmGraphicWindow(), and SmGraphicController::StateChanged().

BOOL SmGraphicWindow::IsCursorVisible (  )  const [inline]

Definition at line 131 of file view.hxx.

References bIsCursorVisible.

Referenced by SetCursor(), and ShowCursor().

void SmGraphicWindow::ShowCursor ( BOOL  bShow  ) 

Definition at line 335 of file view.cxx.

References aCursorRect, IsCursorVisible(), and SetIsCursorVisible().

Referenced by SmViewShell::Execute(), Paint(), SetCursor(), and SetCursorPos().

const SmNode * SmGraphicWindow::SetCursorPos ( USHORT  nRow,
USHORT  nCol 
)

Definition at line 375 of file view.cxx.

References SmNode::FindTokenAt(), SmViewShell::GetDoc(), SmDocShell::GetFormulaTree(), pViewShell, SetCursor(), and ShowCursor().

Referenced by Paint().

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

Definition at line 224 of file view.cxx.

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

uno::Reference< XAccessible > SmGraphicWindow::CreateAccessible (  ) 

Definition at line 534 of file view.cxx.

References pAccessible, and xAccessible.

SmGraphicAccessible* SmGraphicWindow::GetAccessible_Impl (  )  [inline]

Definition at line 141 of file view.hxx.

References pAccessible.

Referenced by SmDocShell::SetText().


Member Data Documentation

Point SmGraphicWindow::aFormulaDrawPos [private]

Definition at line 83 of file view.hxx.

Referenced by GetFormulaDrawPos(), and SetFormulaDrawPos().

Rectangle SmGraphicWindow::aCursorRect [private]

Definition at line 84 of file view.hxx.

Referenced by SetCursor(), and ShowCursor().

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

Definition at line 87 of file view.hxx.

Referenced by CreateAccessible(), and LoseFocus().

SmGraphicAccessible* SmGraphicWindow::pAccessible [private]

Definition at line 88 of file view.hxx.

Referenced by CreateAccessible(), GetAccessible_Impl(), LoseFocus(), and ~SmGraphicWindow().

SmViewShell* SmGraphicWindow::pViewShell [private]

Definition at line 90 of file view.hxx.

Referenced by Command(), GetFocus(), GetView(), MouseButtonDown(), Paint(), SetCursor(), SetCursorPos(), SetTotalSize(), and ZoomToFitInWindow().

USHORT SmGraphicWindow::nZoom [private]

Definition at line 91 of file view.hxx.

Referenced by GetZoom().

short SmGraphicWindow::nModifyCount [private]

Definition at line 92 of file view.hxx.

BOOL SmGraphicWindow::bIsCursorVisible [private]

Definition at line 93 of file view.hxx.

Referenced by IsCursorVisible(), and SetIsCursorVisible().


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