SmViewShell Class Reference

#include <view.hxx>

Collaboration diagram for SmViewShell:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TYPEINFO ()
 SmViewShell (SfxViewFrame *pFrame, SfxViewShell *pOldSh)
 ~SmViewShell ()
SmDocShellGetDoc ()
SmEditWindowGetEditWindow ()
SmGraphicWindowGetGraphicWindow ()
const SmGraphicWindowGetGraphicWindow () const
void SetStatusText (const String &Text)
void ShowError (const SmErrorDesc *pErrorDesc)
void NextError ()
void PrevError ()
 SFX_DECL_VIEWFACTORY (SmViewShell)
virtual void Execute (SfxRequest &rReq)
virtual void GetState (SfxItemSet &)
void Impl_Print (OutputDevice &rOutDev, const SmPrintSize ePrintSize, Rectangle aOutRect, Point aZeroPoint)

Protected Member Functions

Size GetTextLineSize (OutputDevice &rDevice, const String &rLine)
Size GetTextSize (OutputDevice &rDevice, const String &rText, long MaxWidth)
void DrawTextLine (OutputDevice &rDevice, const Point &rPosition, const String &rLine)
void DrawText (OutputDevice &rDevice, const Point &rPosition, const String &rText, USHORT MaxWidth)
virtual USHORT Print (SfxProgress &rProgress, BOOL bIsAPI, PrintDialog *pPrintDialog=0)
virtual SfxPrinter * GetPrinter (BOOL bCreate=FALSE)
virtual USHORT SetPrinter (SfxPrinter *pNewPrinter, USHORT nDiffFlags=SFX_PRINTER_ALL, bool bIsAPI=false)
BOOL Insert (SfxMedium &rMedium)
BOOL InsertFrom (SfxMedium &rMedium)
virtual SfxTabPage * CreatePrintOptionsPage (Window *pParent, const SfxItemSet &rOptions)
virtual void Deactivate (BOOL IsMDIActivate)
virtual void Activate (BOOL IsMDIActivate)
virtual Size GetOptimalSizePixel () const
virtual void AdjustPosSizePixel (const Point &rPos, const Size &rSize)
virtual void InnerResizePixel (const Point &rOfs, const Size &rSize)
virtual void OuterResizePixel (const Point &rOfs, const Size &rSize)
virtual void QueryObjAreaPixel (Rectangle &rRect) const
virtual void SetZoomFactor (const Fraction &rX, const Fraction &rY)

Private Member Functions

void AddRemoveClipboardListener (BOOL bAdd)
 DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *)

Private Attributes

SmGraphicWindow aGraphic
SmGraphicController aGraphicController
String StatusText
::com::sun::star::uno::Reference<
::com::sun::star::lang::XEventListener > 
xClipEvtLstnr
SmClipboardChangeListenerpClipEvtLstnr
SmViewShell_ImplpImpl
BOOL bPasteState

Friends

class SmClipboardChangeListener

Detailed Description

Definition at line 240 of file view.hxx.


Constructor & Destructor Documentation

SmViewShell::SmViewShell ( SfxViewFrame *  pFrame,
SfxViewShell *  pOldSh 
)

Definition at line 1886 of file view.cxx.

References aGraphic, C2S, GetDoc(), and SetStatusText().

SmViewShell::~SmViewShell (  ) 

Definition at line 1904 of file view.cxx.

References AddRemoveClipboardListener(), SmEditWindow::DeleteEditView(), GetEditWindow(), and pImpl.


Member Function Documentation

void SmViewShell::AddRemoveClipboardListener ( BOOL  bAdd  )  [private]

Definition at line 175 of file viewhdl.cxx.

References SmClipboardChangeListener::AddRemoveListener(), pClipEvtLstnr, SmClipboardChangeListener, SmClipboardChangeListener::ViewDestroyed(), and xClipEvtLstnr.

Referenced by GetState(), and ~SmViewShell().

SmViewShell::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper *   
) [private]

Size SmViewShell::GetTextLineSize ( OutputDevice &  rDevice,
const String &  rLine 
) [protected]

Definition at line 901 of file view.cxx.

Referenced by DrawText(), and GetTextSize().

Size SmViewShell::GetTextSize ( OutputDevice &  rDevice,
const String &  rText,
long  MaxWidth 
) [protected]

Definition at line 931 of file view.cxx.

References GetTextLineSize().

Referenced by Impl_Print().

void SmViewShell::DrawTextLine ( OutputDevice &  rDevice,
const Point &  rPosition,
const String &  rLine 
) [protected]

Definition at line 993 of file view.cxx.

Referenced by DrawText().

void SmViewShell::DrawText ( OutputDevice &  rDevice,
const Point &  rPosition,
const String &  rText,
USHORT  MaxWidth 
) [protected]

Definition at line 1022 of file view.cxx.

References DrawTextLine(), and GetTextLineSize().

Referenced by Impl_Print().

USHORT SmViewShell::Print ( SfxProgress &  rProgress,
BOOL  bIsAPI,
PrintDialog *  pPrintDialog = 0 
) [protected, virtual]

Definition at line 1231 of file view.cxx.

References SmModule::GetConfig(), GetDoc(), SmPrinterAccess::GetPrinter(), SmMathConfig::GetPrintSize(), Impl_Print(), and SM_MOD1.

SfxPrinter * SmViewShell::GetPrinter ( BOOL  bCreate = FALSE  )  [protected, virtual]

Definition at line 1273 of file view.cxx.

References GetDoc(), SmDocShell::GetPrinter(), and SmDocShell::HasPrinter().

Referenced by Execute().

USHORT SmViewShell::SetPrinter ( SfxPrinter *  pNewPrinter,
USHORT  nDiffFlags = SFX_PRINTER_ALL,
bool  bIsAPI = false 
) [protected, virtual]

Definition at line 1284 of file view.cxx.

References SmModule::GetConfig(), GetDoc(), SmConfig::ItemSetToConfig(), SmDocShell::SetPrinter(), and SM_MOD1.

BOOL SmViewShell::Insert ( SfxMedium &  rMedium  )  [protected]

Definition at line 1374 of file view.cxx.

References C2S, GetDoc(), GetEditWindow(), SmDocShell::GetText(), SmEditWindow::InsertText(), SmDocShell::Parse(), and SmDocShell::SetModified().

Referenced by Execute().

BOOL SmViewShell::InsertFrom ( SfxMedium &  rMedium  )  [protected]

Definition at line 1421 of file view.cxx.

References GetDoc(), GetEditWindow(), SmDocShell::GetText(), SmXMLWrapper::Import(), SmEditWindow::InsertText(), MATHML_XML, SmDocShell::Parse(), and SmDocShell::SetModified().

SfxTabPage * SmViewShell::CreatePrintOptionsPage ( Window *  pParent,
const SfxItemSet &  rOptions 
) [protected, virtual]

Definition at line 1300 of file view.cxx.

References SmPrintOptionsTabPage::Create().

void SmViewShell::Deactivate ( BOOL  IsMDIActivate  )  [protected, virtual]

Definition at line 1919 of file view.cxx.

References SmEditWindow::Flush(), and GetEditWindow().

void SmViewShell::Activate ( BOOL  IsMDIActivate  )  [protected, virtual]

Definition at line 1931 of file view.cxx.

References GetDoc(), SmDocShell::GetEditEngine(), GetEditWindow(), and SmDocShell::SetText().

Size SmViewShell::GetOptimalSizePixel (  )  const [protected, virtual]

Definition at line 834 of file view.cxx.

References aGraphic, and GetDoc().

void SmViewShell::AdjustPosSizePixel ( const Point &  rPos,
const Size &  rSize 
) [protected, virtual]

Definition at line 842 of file view.cxx.

References aGraphic.

void SmViewShell::InnerResizePixel ( const Point &  rOfs,
const Size &  rSize 
) [protected, virtual]

Definition at line 850 of file view.cxx.

References GetGraphicWindow(), and SmGraphicWindow::SetTotalSize().

void SmViewShell::OuterResizePixel ( const Point &  rOfs,
const Size &  rSize 
) [protected, virtual]

Definition at line 868 of file view.cxx.

References GetDoc(), GetGraphicWindow(), and SmGraphicWindow::ZoomToFitInWindow().

void SmViewShell::QueryObjAreaPixel ( Rectangle &  rRect  )  const [protected, virtual]

Definition at line 880 of file view.cxx.

References GetGraphicWindow().

void SmViewShell::SetZoomFactor ( const Fraction &  rX,
const Fraction &  rY 
) [protected, virtual]

Definition at line 888 of file view.cxx.

References GetGraphicWindow(), and SmGraphicWindow::SetZoom().

SmViewShell::TYPEINFO (  ) 

SmDocShell* SmViewShell::GetDoc (  )  [inline]

Definition at line 299 of file view.hxx.

Referenced by Activate(), Execute(), SmGraphicAccessible::getCharacterBounds(), SmEditWindow::GetDoc(), SmEditAccessible::GetDoc_Impl(), SmGraphicAccessible::GetDoc_Impl(), GetOptimalSizePixel(), GetPrinter(), Impl_Print(), Insert(), InsertFrom(), SmGraphicWindow::MouseButtonDown(), NextError(), OuterResizePixel(), SmGraphicWindow::Paint(), PrevError(), Print(), SmGraphicWindow::SetCursor(), SmGraphicWindow::SetCursorPos(), SetPrinter(), SmGraphicWindow::SetTotalSize(), ShowError(), SmViewShell(), and SmGraphicWindow::ZoomToFitInWindow().

SmEditWindow * SmViewShell::GetEditWindow (  ) 

Definition at line 1309 of file view.cxx.

References SmCmdBoxWrapper::GetEditWindow().

Referenced by Activate(), SmClipboardChangeListener::AddRemoveListener(), SmModule::ApplyColorConfigValues(), Deactivate(), Execute(), SmGraphicWindow::GetFocus(), GetState(), Insert(), InsertFrom(), SmGraphicWindow::MouseButtonDown(), SmGraphicWindow::Paint(), ShowError(), and ~SmViewShell().

SmGraphicWindow& SmViewShell::GetGraphicWindow (  )  [inline]

Definition at line 305 of file view.hxx.

References aGraphic.

Referenced by SmToolBoxWindow::AdjustPosSize(), SmModule::ApplyColorConfigValues(), SmDocShell::ArrangeFormula(), Execute(), InnerResizePixel(), OuterResizePixel(), QueryObjAreaPixel(), SmDocShell::Repaint(), SmDocShell::SetText(), and SetZoomFactor().

const SmGraphicWindow& SmViewShell::GetGraphicWindow (  )  const [inline]

Definition at line 306 of file view.hxx.

References aGraphic.

void SmViewShell::SetStatusText ( const String &  Text  ) 

Definition at line 1327 of file view.cxx.

References StatusText.

Referenced by Execute(), ShowError(), and SmViewShell().

void SmViewShell::ShowError ( const SmErrorDesc pErrorDesc  ) 

Definition at line 1336 of file view.cxx.

References SmNode::GetColumn(), GetDoc(), GetEditWindow(), SmNode::GetRow(), SmEditWindow::MarkError(), SmErrorDesc::pNode, SetStatusText(), and SmErrorDesc::Text.

Referenced by Execute(), NextError(), and PrevError().

void SmViewShell::NextError (  ) 

Definition at line 1350 of file view.cxx.

References GetDoc(), SmDocShell::GetParser(), SmParser::NextError(), and ShowError().

Referenced by Execute().

void SmViewShell::PrevError (  ) 

Definition at line 1362 of file view.cxx.

References GetDoc(), SmDocShell::GetParser(), SmParser::PrevError(), and ShowError().

Referenced by Execute().

SmViewShell::SFX_DECL_VIEWFACTORY ( SmViewShell   ) 

void SmViewShell::Execute ( SfxRequest &  rReq  )  [virtual]

Definition at line 1471 of file view.cxx.

References aGraphic, SmEditWindow::Copy(), SmEditWindow::Cut(), SmEditWindow::Delete(), GetDoc(), GetEditWindow(), GetGraphicWindow(), SmDocShell::GetPrinter(), GetPrinter(), SmModule::GetSymSetManager(), SmEditWindow::GetText(), SmGraphicWindow::GetZoom(), Insert(), SmEditWindow::InsertCommand(), SmEditWindow::InsertText(), SmEditWindow::IsAllSelected(), MAXZOOM, MINZOOM, NextError(), SmEditWindow::Paste(), SmViewShell_Impl::pDocInserter, pImpl, SmViewShell_Impl::pRequest, PrevError(), SmDocShell::Repaint(), SmEditWindow::SelectAll(), SmEditWindow::SelNextMark(), SmEditWindow::SelPrevMark(), SetStatusText(), SmDocShell::SetText(), SmGraphicWindow::SetZoom(), SmGraphicWindow::ShowCursor(), ShowError(), SM_MOD1, SmDocShell::UpdateText(), and SmGraphicWindow::ZoomToFitInWindow().

Referenced by SmToolBoxWindow::Close(), and IMPL_LINK_INLINE_START().

void SmViewShell::GetState ( SfxItemSet &   )  [virtual]

Definition at line 1797 of file view.cxx.

References AddRemoveClipboardListener(), aGraphic, bPasteState, SmModule::GetConfig(), GetEditWindow(), SmGraphicWindow::GetZoom(), SmEditWindow::IsEmpty(), SmEditWindow::IsSelected(), SmMathConfig::IsShowFormulaCursor(), SM_MOD1, StatusText, and xClipEvtLstnr.

void SmViewShell::Impl_Print ( OutputDevice &  rOutDev,
const SmPrintSize  ePrintSize,
Rectangle  aOutRect,
Point  aZeroPoint 
)

Definition at line 1085 of file view.cxx.

References SmDocShell::Draw(), DrawText(), SmModule::GetConfig(), GetDoc(), SmMathConfig::GetPrintZoomFactor(), GetTextSize(), SmMathConfig::IsPrintFormulaText(), SmMathConfig::IsPrintFrame(), SmMathConfig::IsPrintTitle(), MAXZOOM, MINZOOM, PRINT_SIZE_NORMAL, PRINT_SIZE_SCALED, PRINT_SIZE_ZOOMED, and SM_MOD1.

Referenced by Print().


Friends And Related Function Documentation

friend class SmClipboardChangeListener [friend]

Definition at line 243 of file view.hxx.

Referenced by AddRemoveClipboardListener().


Member Data Documentation

SmGraphicWindow SmViewShell::aGraphic [private]

Definition at line 245 of file view.hxx.

Referenced by AdjustPosSizePixel(), Execute(), GetGraphicWindow(), GetOptimalSizePixel(), GetState(), and SmViewShell().

SmGraphicController SmViewShell::aGraphicController [private]

Definition at line 246 of file view.hxx.

String SmViewShell::StatusText [private]

Definition at line 247 of file view.hxx.

Referenced by GetState(), and SetStatusText().

::com::sun::star::uno:: Reference< ::com::sun::star::lang:: XEventListener > SmViewShell::xClipEvtLstnr [private]

Definition at line 250 of file view.hxx.

Referenced by AddRemoveClipboardListener(), and GetState().

SmClipboardChangeListener* SmViewShell::pClipEvtLstnr [private]

Definition at line 251 of file view.hxx.

Referenced by AddRemoveClipboardListener().

SmViewShell_Impl* SmViewShell::pImpl [private]

Definition at line 252 of file view.hxx.

Referenced by Execute(), and ~SmViewShell().

BOOL SmViewShell::bPasteState [private]

Definition at line 253 of file view.hxx.

Referenced by GetState().


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