Kaydet (Commit) 7bd0adc6 authored tarafından Philipp Riemer's avatar Philipp Riemer

fix indentation

Change-Id: Iea68e50e9f91c3fa2467201247bd1aaf4e943cf0
üst fe8e4192
...@@ -71,7 +71,7 @@ namespace dbaui ...@@ -71,7 +71,7 @@ namespace dbaui
class ClipboardInvalidator class ClipboardInvalidator
{ {
private: private:
AutoTimer m_aInvalidateTimer; AutoTimer m_aInvalidateTimer;
OTableEditorCtrl* m_pOwner; OTableEditorCtrl* m_pOwner;
public: public:
...@@ -84,7 +84,7 @@ namespace dbaui ...@@ -84,7 +84,7 @@ namespace dbaui
friend class OTableEditorCtrl::ClipboardInvalidator; friend class OTableEditorCtrl::ClipboardInvalidator;
ClipboardInvalidator m_aInvalidate; ClipboardInvalidator m_aInvalidate;
protected: protected:
virtual void Command( const CommandEvent& rEvt ); virtual void Command( const CommandEvent& rEvt );
...@@ -115,40 +115,45 @@ namespace dbaui ...@@ -115,40 +115,45 @@ namespace dbaui
virtual sal_Bool IsInsertNewAllowed( long nRow ); virtual sal_Bool IsInsertNewAllowed( long nRow );
virtual sal_Bool IsDeleteAllowed( long nRow ); virtual sal_Bool IsDeleteAllowed( long nRow );
void ClearModified(); void ClearModified();
void SetPrimaryKey( sal_Bool bSet ); void SetPrimaryKey( sal_Bool bSet );
sal_Bool IsPrimaryKey(); sal_Bool IsPrimaryKey();
DECL_LINK(ControlPreNotifyHdl, NotifyEvent*); DECL_LINK(ControlPreNotifyHdl, NotifyEvent*);
public: public:
OTableEditorCtrl(Window* pParentWin); OTableEditorCtrl(Window* pParentWin);
virtual ~OTableEditorCtrl(); virtual ~OTableEditorCtrl();
virtual sal_Bool CursorMoving(long nNewRow, sal_uInt16 nNewCol); virtual sal_Bool CursorMoving(long nNewRow, sal_uInt16 nNewCol);
virtual void UpdateAll(); virtual void UpdateAll();
SfxUndoManager& GetUndoManager() const; SfxUndoManager& GetUndoManager() const;
void SetDescrWin( OTableFieldDescWin* pWin ){ pDescrWin = pWin; if (pDescrWin && pActRow) pDescrWin->DisplayData(pActRow->GetActFieldDescr()); } void SetDescrWin( OTableFieldDescWin* pWin )
sal_Bool SaveCurRow(); {
void SwitchType( const TOTypeInfoSP& _pType ); pDescrWin = pWin;
if (pDescrWin && pActRow)
pDescrWin->DisplayData(pActRow->GetActFieldDescr());
}
sal_Bool SaveCurRow();
void SwitchType( const TOTypeInfoSP& _pType );
/// force displaying of the given row /// force displaying of the given row
void DisplayData( long nRow, sal_Bool bGrabFocus = sal_True ); void DisplayData( long nRow, sal_Bool bGrabFocus = sal_True );
virtual void SetCellData( long nRow, sal_uInt16 nColId, const TOTypeInfoSP& _pTypeInfo ); virtual void SetCellData( long nRow, sal_uInt16 nColId, const TOTypeInfoSP& _pTypeInfo );
virtual void SetCellData( long nRow, sal_uInt16 nColId, const ::com::sun::star::uno::Any& _rSaveData ); virtual void SetCellData( long nRow, sal_uInt16 nColId, const ::com::sun::star::uno::Any& _rSaveData );
virtual ::com::sun::star::uno::Any GetCellData( long nRow, sal_uInt16 nColId ); virtual ::com::sun::star::uno::Any GetCellData( long nRow, sal_uInt16 nColId );
virtual void SetControlText( long nRow, sal_uInt16 nColId, const String& rText ); virtual void SetControlText( long nRow, sal_uInt16 nColId, const String& rText );
virtual String GetControlText( long nRow, sal_uInt16 nColId ); virtual String GetControlText( long nRow, sal_uInt16 nColId );
virtual OTableDesignView* GetView() const; virtual OTableDesignView* GetView() const;
::std::vector< ::boost::shared_ptr<OTableRow> >* GetRowList(){ return m_pRowList; } ::std::vector< ::boost::shared_ptr<OTableRow> >* GetRowList(){ return m_pRowList; }
::boost::shared_ptr<OTableRow> GetActRow(){ return pActRow; } ::boost::shared_ptr<OTableRow> GetActRow(){ return pActRow; }
void CellModified( long nRow, sal_uInt16 nColId ); void CellModified( long nRow, sal_uInt16 nColId );
void SetReadOnly( sal_Bool bRead=sal_True ); void SetReadOnly( sal_Bool bRead=sal_True );
virtual void Init(); virtual void Init();
virtual void DeactivateCell(sal_Bool bUpdate = sal_True); virtual void DeactivateCell(sal_Bool bUpdate = sal_True);
...@@ -160,7 +165,7 @@ namespace dbaui ...@@ -160,7 +165,7 @@ namespace dbaui
OFieldDescription* GetFieldDescr( long nRow ); OFieldDescription* GetFieldDescr( long nRow );
// window overloads // window overloads
virtual long PreNotify( NotifyEvent& rNEvt ); virtual long PreNotify( NotifyEvent& rNEvt );
// IClipboardTest // IClipboardTest
virtual sal_Bool isCutAllowed() { return IsCutAllowed(); } virtual sal_Bool isCutAllowed() { return IsCutAllowed(); }
......
...@@ -127,7 +127,7 @@ public: ...@@ -127,7 +127,7 @@ public:
void InsertText( const OUString& rNew, sal_Bool bSelect = sal_False ); void InsertText( const OUString& rNew, sal_Bool bSelect = sal_False );
sal_Bool KeyInput( const KeyEvent& rKeyEvent ); sal_Bool KeyInput( const KeyEvent& rKeyEvent );
void Paint( const Rectangle& rRect ); void Paint( const Rectangle& rRect );
void MouseButtonUp( const MouseEvent& rMouseEvent ); void MouseButtonUp( const MouseEvent& rMouseEvent );
void MouseButtonDown( const MouseEvent& rMouseEvent ); void MouseButtonDown( const MouseEvent& rMouseEvent );
...@@ -144,7 +144,7 @@ public: ...@@ -144,7 +144,7 @@ public:
void Undo(); void Undo();
void Redo(); void Redo();
sal_Bool Read( SvStream& rInput ); sal_Bool Read( SvStream& rInput );
void SetStartDocPos( const Point& rPos ); void SetStartDocPos( const Point& rPos );
const Point& GetStartDocPos() const; const Point& GetStartDocPos() const;
...@@ -153,18 +153,18 @@ public: ...@@ -153,18 +153,18 @@ public:
Point GetWindowPos( const Point& rDocPos ) const; Point GetWindowPos( const Point& rDocPos ) const;
void SetInsertMode( sal_Bool bInsert ); void SetInsertMode( sal_Bool bInsert );
sal_Bool IsInsertMode() const; sal_Bool IsInsertMode() const;
void SetAutoIndentMode( sal_Bool bAutoIndent ); void SetAutoIndentMode( sal_Bool bAutoIndent );
void SetReadOnly( sal_Bool bReadOnly ); void SetReadOnly( sal_Bool bReadOnly );
sal_Bool IsReadOnly() const; sal_Bool IsReadOnly() const;
void SetAutoScroll( sal_Bool bAutoScroll ); void SetAutoScroll( sal_Bool bAutoScroll );
sal_Bool IsAutoScroll() const; sal_Bool IsAutoScroll() const;
sal_Bool SetCursorAtPoint( const Point& rPointPixel ); sal_Bool SetCursorAtPoint( const Point& rPointPixel );
sal_Bool IsSelectionAtPoint( const Point& rPointPixel ); sal_Bool IsSelectionAtPoint( const Point& rPointPixel );
void SetPaintSelection( sal_Bool bPaint); void SetPaintSelection( sal_Bool bPaint);
......
...@@ -78,28 +78,28 @@ struct ImpSdrPathDragData : public SdrDragStatUserData ...@@ -78,28 +78,28 @@ struct ImpSdrPathDragData : public SdrDragStatUserData
XPolygon aXP; // section of the original polygon XPolygon aXP; // section of the original polygon
bool bValid; // FALSE = too few points bool bValid; // FALSE = too few points
bool bClosed; // closed object? bool bClosed; // closed object?
sal_uInt16 nPoly; // number of the polygon in the PolyPolygon sal_uInt16 nPoly; // number of the polygon in the PolyPolygon
sal_uInt16 nPnt; // number of point in the above polygon sal_uInt16 nPnt; // number of point in the above polygon
sal_uInt16 nPntAnz; // number of points of the polygon sal_uInt16 nPntAnz; // number of points of the polygon
sal_uInt16 nPntMax; // maximum index sal_uInt16 nPntMax; // maximum index
bool bBegPnt; // dragged point is first point of a Polyline bool bBegPnt; // dragged point is first point of a Polyline
bool bEndPnt; // dragged point is finishing point of a Polyline bool bEndPnt; // dragged point is finishing point of a Polyline
sal_uInt16 nPrevPnt; // index of previous point sal_uInt16 nPrevPnt; // index of previous point
sal_uInt16 nNextPnt; // index of next point sal_uInt16 nNextPnt; // index of next point
bool bPrevIsBegPnt; // previous point is first point of a Polyline bool bPrevIsBegPnt; // previous point is first point of a Polyline
bool bNextIsEndPnt; // next point is first point of a Polyline bool bNextIsEndPnt; // next point is first point of a Polyline
sal_uInt16 nPrevPrevPnt; // index of point before previous point sal_uInt16 nPrevPrevPnt; // index of point before previous point
sal_uInt16 nNextNextPnt; // index of point after next point sal_uInt16 nNextNextPnt; // index of point after next point
bool bControl; // point is a control point bool bControl; // point is a control point
bool bIsPrevControl; // point is a control point before a support point bool bIsPrevControl; // point is a control point before a support point
bool bIsNextControl; // point is a control point after a support point bool bIsNextControl; // point is a control point after a support point
bool bPrevIsControl; // if nPnt is a support point: a control point comes before bool bPrevIsControl; // if nPnt is a support point: a control point comes before
bool bNextIsControl; // if nPnt is a support point: a control point comes after bool bNextIsControl; // if nPnt is a support point: a control point comes after
sal_uInt16 nPrevPrevPnt0; sal_uInt16 nPrevPrevPnt0;
sal_uInt16 nPrevPnt0; sal_uInt16 nPrevPnt0;
sal_uInt16 nPnt0; sal_uInt16 nPnt0;
sal_uInt16 nNextPnt0; sal_uInt16 nNextPnt0;
sal_uInt16 nNextNextPnt0; sal_uInt16 nNextNextPnt0;
bool bEliminate; // delete point? (is set by MovDrag) bool bEliminate; // delete point? (is set by MovDrag)
bool mbMultiPointDrag; bool mbMultiPointDrag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment