summaryrefslogtreecommitdiff
path: root/sd/source/ui/notes
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/notes')
-rw-r--r--sd/source/ui/notes/EditWindow.cxx18
-rw-r--r--sd/source/ui/notes/EditWindow.hxx52
-rw-r--r--sd/source/ui/notes/NotesChildWindow.cxx10
-rwxr-xr-xsd/source/ui/notes/NotesChildWindow.src2
-rw-r--r--sd/source/ui/notes/NotesDockingWindow.cxx2
-rw-r--r--sd/source/ui/notes/NotesDockingWindow.hxx2
-rw-r--r--sd/source/ui/notes/TextLogger.cxx6
7 files changed, 46 insertions, 46 deletions
diff --git a/sd/source/ui/notes/EditWindow.cxx b/sd/source/ui/notes/EditWindow.cxx
index 0390b244e56d..5a76617bfd10 100644
--- a/sd/source/ui/notes/EditWindow.cxx
+++ b/sd/source/ui/notes/EditWindow.cxx
@@ -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
@@ -48,7 +48,7 @@
#include <editeng/fontitem.hxx>
#include <editeng/editstat.hxx>
-#define SCROLL_LINE 24
+#define SCROLL_LINE 24
using namespace com::sun::star::accessibility;
using namespace com::sun::star;
@@ -122,11 +122,11 @@ void SmGetLeftSelectionPart(const ESelection aSel,
(aSel.nStartPara < aSel.nEndPara) ||
(aSel.nStartPara == aSel.nEndPara && aSel.nStartPos < aSel.nEndPos)
)
- { nPara = aSel.nStartPara;
+ { nPara = aSel.nStartPara;
nPos = aSel.nStartPos;
}
else
- { nPara = aSel.nEndPara;
+ { nPara = aSel.nEndPara;
nPos = aSel.nEndPos;
}
}
@@ -250,7 +250,7 @@ void EditWindow::DataChanged (const DataChangedEvent&)
//! see also SmDocShell::GetEditEngine() !
//!
- // pEditEngine->SetDefTab( USHORT( GetTextWidth( C2S("XXXX") ) ) );
+ // pEditEngine->SetDefTab( USHORT( GetTextWidth( C2S("XXXX") ) ) );
USHORT aFntInfoId[3] = {
EE_CHAR_FONTINFO, EE_CHAR_FONTINFO_CJK, EE_CHAR_FONTINFO_CTL };
@@ -281,7 +281,7 @@ void EditWindow::DataChanged (const DataChangedEvent&)
// unfortunately this resets the whole edit engine
// thus we need to save at least the text
String aTxt( pEditEngine->GetText( LINEEND_LF ) );
- pEditEngine->Clear(); //#77957 incorrect font size
+ pEditEngine->Clear(); //#77957 incorrect font size
pEditEngine->SetText( aTxt );
}
@@ -333,7 +333,7 @@ void EditWindow::MouseButtonUp(const MouseEvent &rEvt)
Window::MouseButtonUp (rEvt);
// ggf FormulaCursor neu positionieren
- // CursorMoveTimerHdl(&aCursorMoveTimer);
+ // CursorMoveTimerHdl(&aCursorMoveTimer);
}
@@ -354,7 +354,7 @@ void EditWindow::MouseButtonDown(const MouseEvent &rEvt)
void EditWindow::Command(const CommandEvent& rCEvt)
{
- /* if (rCEvt.GetCommand() == COMMAND_CONTEXTMENU)
+ /* if (rCEvt.GetCommand() == COMMAND_CONTEXTMENU)
{
GetParent()->ToTop();
@@ -401,7 +401,7 @@ IMPL_LINK_INLINE_END( EditWindow, MenuSelectHdl, Menu *, EMPTYARG )
void EditWindow::KeyInput(const KeyEvent& )
{
- /* if (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE)
+ /* if (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE)
{
BOOL bCallBase = TRUE;
SfxViewShell* pViewShell = SfxViewShell::Current();
diff --git a/sd/source/ui/notes/EditWindow.hxx b/sd/source/ui/notes/EditWindow.hxx
index cd4b827fab6a..238a94104d8e 100644
--- a/sd/source/ui/notes/EditWindow.hxx
+++ b/sd/source/ui/notes/EditWindow.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
@@ -47,7 +47,7 @@ class Timer;
namespace sd { namespace notes {
-class EditWindow
+class EditWindow
: public Window,
public DropTargetHelper
{
@@ -86,11 +86,11 @@ private:
DECL_LINK(EditStatusHdl ,EditStatus *);
DECL_LINK(ScrollHdl, ScrollBar *);
- void CreateEditView();
+ void CreateEditView();
- Rectangle AdjustScrollBars();
- void SetScrollBarRanges();
- void InitScrollBars();
+ Rectangle AdjustScrollBars();
+ void SetScrollBarRanges();
+ void InitScrollBars();
// SmDocShell * GetDoc();
// SmViewShell * GetView();
@@ -99,26 +99,26 @@ private:
EditEngine* CreateEditEngine (void);
// Window
- virtual void SetText(const XubString &rText);
- virtual XubString GetText();
- 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 MarkError(const Point &rPos);
- void SelNextMark();
- void SelPrevMark();
- BOOL HasMark(const String &rText) const;
+ virtual void SetText(const XubString &rText);
+ virtual XubString GetText();
+ 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 MarkError(const Point &rPos);
+ void SelNextMark();
+ void SelPrevMark();
+ BOOL HasMark(const String &rText) const;
void ApplyColorConfigValues( const svtools::ColorConfig &rColorCfg );
};
diff --git a/sd/source/ui/notes/NotesChildWindow.cxx b/sd/source/ui/notes/NotesChildWindow.cxx
index abd6a84d88ef..d2ffb4fa1590 100644
--- a/sd/source/ui/notes/NotesChildWindow.cxx
+++ b/sd/source/ui/notes/NotesChildWindow.cxx
@@ -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
@@ -39,10 +39,10 @@
namespace sd { namespace notes {
NotesChildWindow::NotesChildWindow (
- ::Window* _pParent,
- USHORT nId,
- SfxBindings* pBindings,
- SfxChildWinInfo* pInfo)
+ ::Window* _pParent,
+ USHORT nId,
+ SfxBindings* pBindings,
+ SfxChildWinInfo* pInfo)
: SfxChildWindow (_pParent, nId)
{
pWindow = new NotesDockingWindow (pBindings, this, _pParent);
diff --git a/sd/source/ui/notes/NotesChildWindow.src b/sd/source/ui/notes/NotesChildWindow.src
index f01a258bf812..9e2087937dac 100755
--- a/sd/source/ui/notes/NotesChildWindow.src
+++ b/sd/source/ui/notes/NotesChildWindow.src
@@ -1,7 +1,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
diff --git a/sd/source/ui/notes/NotesDockingWindow.cxx b/sd/source/ui/notes/NotesDockingWindow.cxx
index e83db3c76f62..d4ae7bb9aa87 100644
--- a/sd/source/ui/notes/NotesDockingWindow.cxx
+++ b/sd/source/ui/notes/NotesDockingWindow.cxx
@@ -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
diff --git a/sd/source/ui/notes/NotesDockingWindow.hxx b/sd/source/ui/notes/NotesDockingWindow.hxx
index 3e41a7bafbb2..f8377ceed304 100644
--- a/sd/source/ui/notes/NotesDockingWindow.hxx
+++ b/sd/source/ui/notes/NotesDockingWindow.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
diff --git a/sd/source/ui/notes/TextLogger.cxx b/sd/source/ui/notes/TextLogger.cxx
index ffcd743accbc..e3f9cf86dee0 100644
--- a/sd/source/ui/notes/TextLogger.cxx
+++ b/sd/source/ui/notes/TextLogger.cxx
@@ -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
@@ -97,7 +97,7 @@ void TextLogger::ConnectToEditWindow (EditWindow* pEditWindow)
if (pEditWindow != NULL)
pEditWindow->AddEventListener(
LINK(this, TextLogger, WindowEventHandler));
- else
+ else
mpEditWindow->RemoveEventListener(
LINK(this, TextLogger, WindowEventHandler));
@@ -113,7 +113,7 @@ IMPL_LINK(TextLogger, WindowEventHandler, VclWindowEvent*, pEvent)
if (pEvent != NULL)
{
DBG_ASSERT(static_cast<VclWindowEvent*>(pEvent)->GetWindow()
- == mpEditWindow,
+ == mpEditWindow,
"TextLogger: received event from unknown window");
switch (pEvent->GetId())
{