summaryrefslogtreecommitdiff
path: root/editeng/inc/editeng/editview.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/inc/editeng/editview.hxx')
-rw-r--r--editeng/inc/editeng/editview.hxx190
1 files changed, 95 insertions, 95 deletions
diff --git a/editeng/inc/editeng/editview.hxx b/editeng/inc/editeng/editview.hxx
index a0543ee13edc..39756b53c3de 100644
--- a/editeng/inc/editeng/editview.hxx
+++ b/editeng/inc/editeng/editview.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,174 +76,174 @@ class EDITENG_DLLPUBLIC EditView
friend class ImpEditEngine;
friend class EditSelFunctionSet;
-public: // brauche ich fuer Undo
- ImpEditView* GetImpEditView() const { return pImpEditView; }
- ImpEditEngine* GetImpEditEngine() const;
+public: // brauche ich fuer Undo
+ ImpEditView* GetImpEditView() const { return pImpEditView; }
+ ImpEditEngine* GetImpEditEngine() const;
private:
- ImpEditView* pImpEditView;
+ ImpEditView* pImpEditView;
EDITENG_DLLPRIVATE EditView( const EditView& );
- EDITENG_DLLPRIVATE EditView& operator=( const EditView& );
+ EDITENG_DLLPRIVATE EditView& operator=( const EditView& );
public:
EditView( EditEngine* pEng, Window* pWindow );
- virtual ~EditView();
+ virtual ~EditView();
- void SetEditEngine( EditEngine* pEditEngine );
- EditEngine* GetEditEngine() const;
+ void SetEditEngine( EditEngine* pEditEngine );
+ EditEngine* GetEditEngine() const;
- void SetWindow( Window* pWin );
- Window* GetWindow() const;
+ void SetWindow( Window* pWin );
+ Window* GetWindow() const;
- void Paint( const Rectangle& rRect );
- void Invalidate();
- Pair Scroll( long nHorzScroll, long nVertScroll, BYTE nRangeCheck = RGCHK_NEG );
+ void Paint( const Rectangle& rRect );
+ void Invalidate();
+ Pair Scroll( long nHorzScroll, long nVertScroll, BYTE nRangeCheck = RGCHK_NEG );
- void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
- void HideCursor();
+ void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
+ void HideCursor();
- EESelectionMode GetSelectionMode() const;
- void SetSelectionMode( EESelectionMode eMode );
+ EESelectionMode GetSelectionMode() const;
+ void SetSelectionMode( EESelectionMode eMode );
- void SetReadOnly( BOOL bReadOnly );
- BOOL IsReadOnly() const;
+ void SetReadOnly( BOOL bReadOnly );
+ BOOL IsReadOnly() const;
- BOOL HasSelection() const;
- ESelection GetSelection() const;
- void SetSelection( const ESelection& rNewSel );
+ BOOL HasSelection() const;
+ ESelection GetSelection() const;
+ void SetSelection( const ESelection& rNewSel );
BOOL SelectCurrentWord( sal_Int16 nWordType = ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES );
- void IndentBlock();
- void UnindentBlock();
+ void IndentBlock();
+ void UnindentBlock();
- BOOL IsInsertMode() const;
- void SetInsertMode( BOOL bInsert );
+ BOOL IsInsertMode() const;
+ void SetInsertMode( BOOL bInsert );
- void ReplaceSelected( const String& rStr );
- String GetSelected();
- void DeleteSelected();
+ void ReplaceSelected( const String& rStr );
+ String GetSelected();
+ void DeleteSelected();
- USHORT GetSelectedScriptType() const;
+ USHORT GetSelectedScriptType() const;
// Position der VisArea im Ausgabefenster.
// Eine Groessenaenderung betrifft auch die VisArea
- void SetOutputArea( const Rectangle& rRec );
- const Rectangle& GetOutputArea() const;
+ void SetOutputArea( const Rectangle& rRec );
+ const Rectangle& GetOutputArea() const;
// Dokumentposition.
// Eine Groessenaenderung betrifft auch die VisArea
- void SetVisArea( const Rectangle& rRec );
- const Rectangle& GetVisArea() const;
+ void SetVisArea( const Rectangle& rRec );
+ const Rectangle& GetVisArea() const;
- void SetPointer( const Pointer& rPointer );
- const Pointer& GetPointer() const;
+ void SetPointer( const Pointer& rPointer );
+ const Pointer& GetPointer() const;
- void SetCursor( const Cursor& rCursor );
- Cursor* GetCursor() const;
+ void SetCursor( const Cursor& rCursor );
+ Cursor* GetCursor() const;
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void InsertText( const String& rNew, BOOL bSelect = FALSE );
- BOOL PostKeyEvent( const KeyEvent& rKeyEvent, Window* pFrameWin = NULL );
+ BOOL PostKeyEvent( const KeyEvent& rKeyEvent, Window* pFrameWin = NULL );
- BOOL MouseButtonUp( const MouseEvent& rMouseEvent );
- BOOL MouseButtonDown( const MouseEvent& rMouseEvent );
- BOOL MouseMove( const MouseEvent& rMouseEvent );
- void Command( const CommandEvent& rCEvt );
+ BOOL MouseButtonUp( const MouseEvent& rMouseEvent );
+ BOOL MouseButtonDown( const MouseEvent& rMouseEvent );
+ BOOL MouseMove( const MouseEvent& rMouseEvent );
+ void Command( const CommandEvent& rCEvt );
BOOL Drop( const DropEvent& rEvt );
- BOOL QueryDrop( DropEvent& rEvt );
- ESelection GetDropPos();
+ BOOL QueryDrop( DropEvent& rEvt );
+ ESelection GetDropPos();
- void Cut();
- void Copy();
+ void Cut();
+ void Copy();
void Paste();
void PasteSpecial();
- void EnablePaste( BOOL bEnable );
- BOOL IsPasteEnabled() const;
+ void EnablePaste( BOOL bEnable );
+ BOOL IsPasteEnabled() const;
- void Undo();
- void Redo();
+ void Undo();
+ void Redo();
// speziell fuer Olli
- USHORT GetParagraph( const Point& rMousePosPixel );
- Point GetWindowPosTopLeft( USHORT nParagraph );
- void MoveParagraphs( Range aParagraphs, USHORT nNewPos );
+ USHORT GetParagraph( const Point& rMousePosPixel );
+ Point GetWindowPosTopLeft( USHORT nParagraph );
+ void MoveParagraphs( Range aParagraphs, USHORT nNewPos );
void MoveParagraphs( long nDiff );
- const SfxItemSet& GetEmptyItemSet();
- SfxItemSet GetAttribs();
- void SetAttribs( const SfxItemSet& rSet );
- void SetParaAttribs( const SfxItemSet& rSet, USHORT nPara );
+ const SfxItemSet& GetEmptyItemSet();
+ SfxItemSet GetAttribs();
+ void SetAttribs( const SfxItemSet& rSet );
+ void SetParaAttribs( const SfxItemSet& rSet, USHORT nPara );
void RemoveAttribs( BOOL bRemoveParaAttribs = FALSE, USHORT nWhich = 0 );
- void RemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
+ void RemoveCharAttribs( USHORT nPara, USHORT nWhich = 0 );
void RemoveAttribsKeepLanguages( BOOL bRemoveParaAttribs = FALSE );
ULONG Read( SvStream& rInput, const String& rBaseURL, EETextFormat eFormat, BOOL bSelect = FALSE, SvKeyValueIterator* pHTTPHeaderAttrs = NULL );
- ULONG Write( SvStream& rOutput, EETextFormat eFormat );
+ ULONG Write( SvStream& rOutput, EETextFormat eFormat );
- void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
+ void SetBackgroundColor( const Color& rColor );
+ Color GetBackgroundColor() const;
- void SetControlWord( sal_uInt32 nWord );
- sal_uInt32 GetControlWord() const;
+ void SetControlWord( sal_uInt32 nWord );
+ sal_uInt32 GetControlWord() const;
- EditTextObject* CreateTextObject();
- void InsertText( const EditTextObject& rTextObject );
+ EditTextObject* CreateTextObject();
+ void InsertText( const EditTextObject& rTextObject );
void InsertText( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > xDataObj, const String& rBaseURL, BOOL bUseSpecial );
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetTransferable();
// An EditView, damit bei TRUE flackerfreies Update:
- void SetEditEngineUpdateMode( BOOL bUpdate );
- void ForceUpdate();
+ void SetEditEngineUpdateMode( BOOL bUpdate );
+ void ForceUpdate();
- SfxStyleSheet* GetStyleSheet() const;
- void SetStyleSheet( SfxStyleSheet* pStyle );
+ SfxStyleSheet* GetStyleSheet() const;
+ void SetStyleSheet( SfxStyleSheet* pStyle );
- void SetAnchorMode( EVAnchorMode eMode );
- EVAnchorMode GetAnchorMode() const;
+ void SetAnchorMode( EVAnchorMode eMode );
+ EVAnchorMode GetAnchorMode() const;
- BOOL MatchGroup();
+ BOOL MatchGroup();
- void CompleteAutoCorrect( Window* pFrameWin = NULL );
+ void CompleteAutoCorrect( Window* pFrameWin = NULL );
- EESpellState StartSpeller( BOOL bMultipleDoc = FALSE );
- EESpellState StartThesaurus();
- USHORT StartSearchAndReplace( const SvxSearchItem& rSearchItem );
+ EESpellState StartSpeller( BOOL bMultipleDoc = FALSE );
+ EESpellState StartThesaurus();
+ USHORT StartSearchAndReplace( const SvxSearchItem& rSearchItem );
// for text conversion
void StartTextConversion( LanguageType nSrcLang, LanguageType nDestLang, const Font *pDestFont, INT32 nOptions, BOOL bIsInteractive, BOOL bMultipleDoc );
sal_Bool HasConvertibleTextPortion( LanguageType nLang );
- void TransliterateText( sal_Int32 nTransliterationMode );
+ void TransliterateText( sal_Int32 nTransliterationMode );
- BOOL IsCursorAtWrongSpelledWord( BOOL bMarkIfWrong = FALSE );
- BOOL IsWrongSpelledWordAtPos( const Point& rPosPixel, BOOL bMarkIfWrong = FALSE );
- void SpellIgnoreWord();
- void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
+ BOOL IsCursorAtWrongSpelledWord( BOOL bMarkIfWrong = FALSE );
+ BOOL IsWrongSpelledWordAtPos( const Point& rPosPixel, BOOL bMarkIfWrong = FALSE );
+ void SpellIgnoreWord();
+ void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 );
- void InsertField( const SvxFieldItem& rFld );
- const SvxFieldItem* GetFieldUnderMousePointer() const;
- const SvxFieldItem* GetFieldUnderMousePointer( USHORT& nPara, xub_StrLen& nPos ) const;
- const SvxFieldItem* GetField( const Point& rPos, USHORT* pnPara = NULL, xub_StrLen* pnPos = NULL ) const;
+ void InsertField( const SvxFieldItem& rFld );
+ const SvxFieldItem* GetFieldUnderMousePointer() const;
+ const SvxFieldItem* GetFieldUnderMousePointer( USHORT& nPara, xub_StrLen& nPos ) const;
+ const SvxFieldItem* GetField( const Point& rPos, USHORT* pnPara = NULL, xub_StrLen* pnPos = NULL ) const;
- const SvxFieldItem* GetFieldAtSelection() const;
+ const SvxFieldItem* GetFieldAtSelection() const;
- String GetWordUnderMousePointer() const;
- String GetWordUnderMousePointer( Rectangle& rWordRect ) const;
+ String GetWordUnderMousePointer() const;
+ String GetWordUnderMousePointer( Rectangle& rWordRect ) const;
- void SetInvalidateMore( USHORT nPixel );
- USHORT GetInvalidateMore() const;
+ void SetInvalidateMore( USHORT nPixel );
+ USHORT GetInvalidateMore() const;
// grows or shrinks the font height for the current selection
void ChangeFontSize( bool bGrow, const FontList* pList );
static bool ChangeFontSize( bool bGrow, SfxItemSet& rSet, const FontList* pFontList );
- String GetSurroundingText() const;
- Selection GetSurroundingTextSelection() const;
+ String GetSurroundingText() const;
+ Selection GetSurroundingTextSelection() const;
};
#endif // _MyEDITVIEW_HXX