1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SVX_GRIDCTRL_HXX
20 #define INCLUDED_SVX_GRIDCTRL_HXX
22 #include <com/sun/star/sdbc/XRowSet.hpp>
23 #include <com/sun/star/sdbc/XRowSetListener.hpp>
24 #include <com/sun/star/sdb/XRowsChangeListener.hpp>
25 #include <com/sun/star/beans/PropertyChangeEvent.hpp>
26 #include <com/sun/star/util/XNumberFormatter.hpp>
27 #include <com/sun/star/util/Date.hpp>
28 #include <com/sun/star/container/XIndexAccess.hpp>
29 #include <vcl/fixed.hxx>
30 #include <vcl/field.hxx>
32 #include <vcl/button.hxx>
33 #include <tools/ref.hxx>
34 #include <svtools/editbrowsebox.hxx>
35 #include <osl/mutex.hxx>
36 #include <comphelper/propmultiplex.hxx>
37 #include <svtools/transfer.hxx>
38 #include <svx/svxdllapi.h>
44 bool CompareBookmark(const ::com::sun::star::uno::Any
& aLeft
, const ::com::sun::star::uno::Any
& aRight
);
50 typedef ::std::vector
< ::svxform::DataColumn
* > DbDataColumns
;
61 // DbGridRow, description of rows
64 class DbGridRow
: public SvRefBase
66 ::com::sun::star::uno::Any m_aBookmark
; // Bookmark of the row, can be set
67 DbDataColumns m_aVariants
;
68 GridRowStatus m_eStatus
;
70 // row is no longer valid
71 // is removed on the next positioning
73 DbGridRow():m_eStatus(GRS_CLEAN
), m_bIsNew(true) { }
74 DbGridRow(CursorWrapper
* pCur
, bool bPaintCursor
);
75 void SetState(CursorWrapper
* pCur
, bool bPaintCursor
);
79 bool HasField(sal_uInt32 nPos
) const { return nPos
< m_aVariants
.size(); }
80 const ::svxform::DataColumn
& GetField(sal_uInt32 nPos
) const { return *m_aVariants
[ nPos
]; }
82 void SetStatus(GridRowStatus _eStat
) { m_eStatus
= _eStat
; }
83 GridRowStatus
GetStatus() const { return m_eStatus
; }
84 void SetNew(bool _bNew
) { m_bIsNew
= _bNew
; }
85 bool IsNew() const { return m_bIsNew
; }
87 const ::com::sun::star::uno::Any
& GetBookmark() const { return m_aBookmark
; }
89 bool IsValid() const { return m_eStatus
== GRS_CLEAN
|| m_eStatus
== GRS_MODIFIED
; }
90 bool IsModified() const { return m_eStatus
== GRS_MODIFIED
; }
93 typedef tools::SvRef
<DbGridRow
> DbGridRowRef
;
99 typedef ::std::vector
< DbGridColumn
* > DbGridColumns
;
105 virtual void selectionChanged() = 0;
106 virtual void columnChanged() = 0;
112 #define GRID_COLUMN_NOT_FOUND SAL_MAX_UINT16
115 // InitWindowFacet, describing which aspect of a column's Window to (re-)initialize
119 InitFontFacet
= 0x01,
120 InitForeground
= 0x02,
121 InitBackground
= 0x04,
122 InitWritingMode
= 0x08,
127 class FmXGridSourcePropListener
;
128 class DisposeListenerGridBridge
;
129 typedef ::svt::EditBrowseBox DbGridControl_Base
;
130 class SVX_DLLPUBLIC DbGridControl
: public DbGridControl_Base
132 friend class FmXGridSourcePropListener
;
133 friend class GridFieldValueListener
;
134 friend class DisposeListenerGridBridge
;
140 class NavigationBar
: public Control
142 class AbsolutePos
: public NumericField
145 AbsolutePos(vcl::Window
* pParent
, WinBits nStyle
= 0);
147 virtual void KeyInput(const KeyEvent
& rEvt
) SAL_OVERRIDE
;
148 virtual void LoseFocus() SAL_OVERRIDE
;
151 friend class NavigationBar::AbsolutePos
;
153 // zusaetzliche Controls
154 VclPtr
<FixedText
> m_aRecordText
;
155 VclPtr
<AbsolutePos
> m_aAbsolute
; // absolute positioning
156 VclPtr
<FixedText
> m_aRecordOf
;
157 VclPtr
<FixedText
> m_aRecordCount
;
159 VclPtr
<ImageButton
> m_aFirstBtn
; // ImageButton for 'go to the first record'
160 VclPtr
<ImageButton
> m_aPrevBtn
; // ImageButton for 'go to the previous record'
161 VclPtr
<ImageButton
> m_aNextBtn
; // ImageButton for 'go to the next record'
162 VclPtr
<ImageButton
> m_aLastBtn
; // ImageButton for 'go to the last record'
163 VclPtr
<ImageButton
> m_aNewBtn
; // ImageButton for 'go to a new record'
164 sal_uInt16 m_nDefaultWidth
;
165 sal_Int32 m_nCurrentPos
;
167 bool m_bPositioning
; // protect PositionDataSource against recursion
170 // StatusIds for Controls of the Bar
171 // important for invalidation
185 NavigationBar(vcl::Window
* pParent
, WinBits nStyle
= 0);
186 virtual ~NavigationBar();
187 virtual void dispose() SAL_OVERRIDE
;
189 // Status methods for Controls
190 void InvalidateAll(sal_Int32 nCurrentPos
= -1, bool bAll
= false);
191 void InvalidateState(sal_uInt16 nWhich
) {SetState(nWhich
);}
192 void SetState(sal_uInt16 nWhich
);
193 bool GetState(sal_uInt16 nWhich
) const;
194 sal_uInt16
GetDefaultWidth() const {return m_nDefaultWidth
;}
197 virtual void Resize() SAL_OVERRIDE
;
198 virtual void Paint(vcl::RenderContext
& rRenderContext
, const Rectangle
& rRect
) SAL_OVERRIDE
;
199 virtual void StateChanged( StateChangedType nType
) SAL_OVERRIDE
;
202 DECL_LINK(OnClick
, Button
*);
203 sal_uInt16
ArrangeControls();
205 void PositionDataSource(sal_Int32 nRecord
);
208 friend class DbGridControl::NavigationBar
;
211 // these options are or'ed and indicate, which of the single
212 // features can be released, default is readonly which means 0
222 vcl::Font m_aDefaultFont
;
223 Link
<> m_aMasterStateProvider
;
224 Link
<> m_aMasterSlotExecutor
;
226 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
> m_xFormatter
;
227 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
> m_xContext
;
229 DbGridColumns m_aColumns
; // Column description
230 VclPtr
<NavigationBar
> m_aBar
;
231 DbGridRowRef m_xDataRow
; // Row which can be modified
232 // comes from the data cursor
233 DbGridRowRef m_xSeekRow
, // Row to which the iterator can set
234 // comes from the data cursor
236 m_xEmptyRow
; // record set to insert
238 ImplSVEvent
* m_nAsynAdjustEvent
;
240 // if we modify the row for the new record, we automatically insert a "new new row".
241 // But if somebody else inserts a new record into the data source, we have to do the same.
242 // For that reason we have to listen to some properties of our data source.
243 ::comphelper::OPropertyChangeMultiplexer
* m_pDataSourcePropMultiplexer
;
244 FmXGridSourcePropListener
* m_pDataSourcePropListener
;
245 ::com::sun::star::uno::Reference
< ::com::sun::star::sdb::XRowsChangeListener
>
246 m_xRowSetListener
; // get notification when rows were changed
248 void* m_pFieldListeners
;
249 // property listeners for field values
251 DisposeListenerGridBridge
* m_pCursorDisposeListener
;
252 // need to know about the diposing of the seek cursor
253 // construct analogous to the data source proplistener/multiplexer above :
254 // DisposeListenerGridBridge is a bridge from FmXDisposeListener which I don't want to be derived from
256 FmGridListener
* m_pGridListener
;
259 CursorWrapper
* m_pDataCursor
; // Cursor for Updates
260 CursorWrapper
* m_pSeekCursor
; // Cursor for Seeking
263 // iteration variables
264 DbGridRowRef m_xCurrentRow
;
265 DbGridRowRef m_xPaintRow
; // Row to be displayed
266 sal_Int32 m_nSeekPos
; // Position of the SeekCursor
267 sal_Int32 m_nTotalCount
; // is set when the data cursor finished counting the
268 // records. Initial value is -1
269 osl::Mutex m_aDestructionSafety
;
270 osl::Mutex m_aAdjustSafety
;
272 com::sun::star::util::Date
273 m_aNullDate
; // NullDate of the Numberformatter;
276 sal_Int32 m_nCurrentPos
; // Current position;
277 ImplSVEvent
* m_nDeleteEvent
; // EventId for asychronous deletion of rows
278 sal_uInt16 m_nOptions
; // What is the able to do (Insert, Update, Delete)
280 sal_uInt16 m_nOptionMask
; // the mask of options to be enabled in setDataSource
281 // (with respect to the data source capabilities)
282 // defaults to (insert | update | delete)
283 sal_uInt16 m_nLastColId
;
286 bool m_bDesignMode
: 1; // default = sal_False
287 bool m_bRecordCountFinal
: 1;
288 bool m_bMultiSelection
: 1;
289 bool m_bNavigationBar
: 1;
291 bool m_bSynchDisplay
: 1;
292 bool m_bForceROController
: 1;
294 bool m_bFilterMode
: 1;
295 bool m_bWantDestruction
: 1;
296 bool m_bInAdjustDataSource
: 1;
297 bool m_bPendingAdjustRows
: 1; // if an async adjust is pending, is it for AdjustRows or AdjustDataSource ?
298 bool m_bHideScrollbars
: 1;
301 bool m_bUpdating
: 1; // are any updates being executed right now?
304 virtual bool SeekRow(long nRow
) SAL_OVERRIDE
;
305 virtual void VisibleRowsChanged( long nNewTopRow
, sal_uInt16 nNumRows
) SAL_OVERRIDE
;
306 virtual void PaintStatusCell(OutputDevice
& rDev
, const Rectangle
& rRect
) const SAL_OVERRIDE
;
307 virtual void PaintCell(OutputDevice
& rDev
, const Rectangle
& rRect
, sal_uInt16 nColId
) const SAL_OVERRIDE
;
308 virtual RowStatus
GetRowStatus(long nRow
) const SAL_OVERRIDE
;
309 virtual bool CursorMoving(long nNewRow
, sal_uInt16 nNewCol
) SAL_OVERRIDE
;
310 virtual void CursorMoved() SAL_OVERRIDE
;
311 virtual void ArrangeControls(sal_uInt16
& nX
, sal_uInt16 nY
) SAL_OVERRIDE
;
312 virtual sal_uInt32
GetTotalCellWidth(long nRow
, sal_uInt16 nColId
) SAL_OVERRIDE
;
313 virtual void Command(const CommandEvent
& rEvt
) SAL_OVERRIDE
;
314 virtual bool PreNotify(NotifyEvent
& rEvt
) SAL_OVERRIDE
;
315 virtual void KeyInput(const KeyEvent
& rEvt
) SAL_OVERRIDE
;
316 virtual void StateChanged( StateChangedType nType
) SAL_OVERRIDE
;
317 virtual void DataChanged( const DataChangedEvent
& rDCEvt
) SAL_OVERRIDE
;
318 virtual void Select() SAL_OVERRIDE
;
320 virtual ::svt::CellController
* GetController(long nRow
, sal_uInt16 nCol
) SAL_OVERRIDE
;
322 virtual void CellModified() SAL_OVERRIDE
;
323 virtual bool SaveModified() SAL_OVERRIDE
;
324 virtual bool IsModified() const SAL_OVERRIDE
;
326 virtual sal_uInt16
AppendColumn(const OUString
& rName
, sal_uInt16 nWidth
= 0, sal_uInt16 nPos
= HEADERBAR_APPEND
, sal_uInt16 nId
= (sal_uInt16
)-1) SAL_OVERRIDE
;
327 virtual void RemoveColumn(sal_uInt16 nId
);
328 virtual DbGridColumn
* CreateColumn(sal_uInt16 nId
) const;
329 virtual void ColumnMoved(sal_uInt16 nId
) SAL_OVERRIDE
;
330 virtual bool SaveRow() SAL_OVERRIDE
;
331 virtual bool IsTabAllowed(bool bForward
) const SAL_OVERRIDE
;
334 virtual void HideColumn(sal_uInt16 nId
);
336 virtual void ShowColumn(sal_uInt16 nId
);
338 /** This is called before executing a context menu for a row. rMenu contains the initial entries
339 handled by this base class' method (which always has to be called).
340 Derived classes may alter the menu in any way and handle any additional entries in
341 PostExecuteColumnContextMenu.
342 All disabled entries will be removed before executing the menu, so be careful with separators
343 near entries you probably wish to disable ...
345 virtual void PreExecuteRowContextMenu(sal_uInt16 nRow
, PopupMenu
& rMenu
);
346 /** After executing the context menu for a row this method is called.
348 virtual void PostExecuteRowContextMenu(sal_uInt16 nRow
, const PopupMenu
& rMenu
, sal_uInt16 nExecutionResult
);
350 virtual void DataSourcePropertyChanged(const ::com::sun::star::beans::PropertyChangeEvent
& evt
) throw(::com::sun::star::uno::RuntimeException
);
352 virtual void FieldValueChanged(sal_uInt16 _nId
, const ::com::sun::star::beans::PropertyChangeEvent
& _evt
);
353 virtual void FieldListenerDisposing(sal_uInt16 _nId
);
355 virtual void disposing(sal_uInt16 _nId
, const ::com::sun::star::lang::EventObject
& _rEvt
);
358 /// called when the current row changed
359 virtual void onRowChange();
360 /// called when the current column changed
361 virtual void onColumnChange();
363 // DragSourceHelper overridables
364 virtual void StartDrag( sal_Int8 nAction
, const Point
& rPosPixel
) SAL_OVERRIDE
;
366 void executeRowContextMenu( long _nRow
, const Point
& _rPreferredPos
);
370 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>,
371 vcl::Window
* pParent
,
372 WinBits nBits
= WB_BORDER
);
374 virtual ~DbGridControl();
375 virtual void dispose() SAL_OVERRIDE
;
377 virtual void Init() SAL_OVERRIDE
;
378 virtual void InitColumnsByFields(const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
>& xFields
) = 0;
379 virtual void RemoveRows() SAL_OVERRIDE
;
381 /** GetCellText returns the text at the given position
383 the number of the row
387 the text out of the cell
389 virtual OUString
GetCellText(long _nRow
, sal_uInt16 _nColId
) const SAL_OVERRIDE
;
391 void RemoveRows(bool bNewCursor
);
393 void InvalidateStatus();
395 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XNumberFormatter
>& getNumberFormatter() const {return m_xFormatter
;}
398 // the options can restrict but not extend the update abilities
399 virtual void setDataSource(const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XRowSet
>& rCursor
,
400 sal_uInt16 nOpts
= OPT_INSERT
| OPT_UPDATE
| OPT_DELETE
);
401 virtual void Dispatch(sal_uInt16 nId
) SAL_OVERRIDE
;
403 CursorWrapper
* getDataSource() const {return m_pDataCursor
;}
404 const DbGridColumns
& GetColumns() const {return m_aColumns
;}
406 void EnableHandle(bool bEnable
);
407 bool HasHandle() const {return m_bHandle
;}
408 void InsertHandleColumn();
410 // which position does the column with the id in the View have, the handle column doesn't count
411 sal_uInt16
GetViewColumnPos( sal_uInt16 nId
) const { sal_uInt16 nPos
= GetColumnPos(nId
); return (nPos
==BROWSER_INVALIDID
) ? GRID_COLUMN_NOT_FOUND
: nPos
-1; }
413 // which position does the column with the id in m_aColumns have, that means the ::com::sun::star::sdbcx::Container
414 // returned from the GetColumns (may be different from the position returned by GetViewColumnPos
415 // if there are hidden columns)
416 sal_uInt16
GetModelColumnPos( sal_uInt16 nId
) const;
418 // the number of columns in the model
419 sal_uInt16
GetViewColCount() const { return ColCount() - 1; }
420 sal_uInt16
GetModelColCount() const { return (sal_uInt16
)m_aColumns
.size(); }
421 // reverse to GetViewColumnPos: Id of position, the first non-handle column has position 0
422 sal_uInt16
GetColumnIdFromViewPos( sal_uInt16 nPos
) const { return GetColumnId(nPos
+ 1); }
423 sal_uInt16
GetColumnIdFromModelPos( sal_uInt16 nPos
) const;
425 virtual void SetDesignMode(bool bMode
);
426 bool IsDesignMode() const {return m_bDesignMode
;}
427 bool IsOpen() const {return m_pSeekCursor
!= NULL
;}
429 virtual void SetFilterMode(bool bMode
);
430 bool IsFilterMode() const {return m_bFilterMode
;}
431 bool IsFilterRow(long nRow
) const {return m_bFilterMode
&& nRow
== 0;}
433 void EnableNavigationBar(bool bEnable
);
434 bool HasNavigationBar() const {return m_bNavigationBar
;}
436 sal_uInt16
GetOptions() const {return m_nOptions
;}
437 NavigationBar
& GetNavigationBar() {return *m_aBar
.get();}
438 sal_uInt16
SetOptions(sal_uInt16 nOpt
);
439 // The new options are interpreted with respect to the current data source. If it is unable
440 // to update, to insert or to restore, the according options are ignored. If the grid isn't
441 // connected to a data source, all options except OPT_READONLY are ignored.
443 const com::sun::star::util::Date
& getNullDate() const {return m_aNullDate
;}
446 void MoveToPosition(sal_uInt32 nPos
);
453 // adjustment of the cursors in case the data cursor has been
454 // moved from the outside.
455 // the flag indicates if an adjustment of the row count should be
457 void AdjustDataSource(bool bFull
= false);
460 virtual void BeginCursorAction();
461 virtual void EndCursorAction();
463 // is the current line being updated
464 bool IsUpdating() const {return m_bUpdating
;}
466 virtual void RowRemoved( long nRow
, long nNumRows
= 1, bool bDoPaint
= true );
467 virtual void RowInserted( long nRow
, long nNumRows
= 1, bool bDoPaint
= true, bool bKeepSelection
= false );
468 virtual void RowModified( long nRow
, sal_uInt16 nColId
= USHRT_MAX
);
470 void resetCurrentRow();
472 bool getDisplaySynchron() const { return m_bSynchDisplay
; }
473 void setDisplaySynchron(bool bSync
);
474 // when set to sal_False, the display is no longer in sync with the current cursor position
475 // (means that in AdjustDataSource we are jumping to a row not belonging to CursorPosition)
476 // when using this, you should know what you are doing, because for example entering data
477 // in a row in the display that is not in sync with the position of the cursor can be very critical
479 const DbGridRowRef
& GetCurrentRow() const {return m_xCurrentRow
;}
481 void SetStateProvider(const Link
<>& rProvider
) { m_aMasterStateProvider
= rProvider
; }
482 // if this link is set the given provider will be asked for the state of my items.
483 // the return values are interpreted as follows :
484 // <0 -> not specified (use default mechanism to determine the state)
485 // ==0 -> the item is disabled
486 // >0 -> the item is enabled
487 void SetSlotExecutor(const Link
<>& rExecutor
) { m_aMasterSlotExecutor
= rExecutor
; }
488 // analogous : if this link is set, all nav-bar slots will be routed through it when executed
489 // if the handler returns nonzero, no further handling of the slot occurs
491 void EnablePermanentCursor(bool bEnable
);
492 bool IsPermanentCursorEnabled() const;
494 /** forces both scrollbars to be hidden
496 For the horizontal srollbar, this is overruled by enabling the navigation bar: A navigation
497 bar <b>always</b> implies a horizontal scroll bar
498 @seealso EnableNavigationBar
500 void ForceHideScrollbars( bool _bForce
);
502 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XComponentContext
>
503 getContext() const { return m_xContext
; }
505 /// returns <TRUE/> if the text of the given cell can be copied into the clipboard
506 bool canCopyCellText(sal_Int32 _nRow
, sal_Int16 _nColId
);
507 /// copies the text of the given cell into the clipboard
508 void copyCellText(sal_Int32 _nRow
, sal_Int16 _nColId
);
510 // selectin listener handling
511 FmGridListener
* getGridListener() const { return m_pGridListener
; }
512 void setGridListener( FmGridListener
* _pListener
) { m_pGridListener
= _pListener
; }
514 // helper class to grant access to selected methods from within the DbCellControl class
515 struct GrantControlAccess
517 friend class DbCellControl
;
518 friend class RowSetEventListener
;
520 GrantControlAccess() { }
523 /// called when a controller needs to be re-initialized
524 void refreshController(sal_uInt16 _nColId
, GrantControlAccess _aAccess
);
526 CursorWrapper
* GetSeekCursor(GrantControlAccess
/*_aAccess*/) const { return m_pSeekCursor
; }
527 const DbGridRowRef
& GetSeekRow(GrantControlAccess
/*_aAccess*/) const { return m_xSeekRow
; }
528 void SetSeekPos(sal_Int32 nPos
,GrantControlAccess
/*_aAccess*/) {m_nSeekPos
= nPos
;}
532 The count of additional controls of the control area.
534 virtual sal_Int32
GetAccessibleControlCount() const SAL_OVERRIDE
;
536 /** Creates the accessible object of an additional control.
538 The 0-based index of the control.
540 The XAccessible interface of the specified control.
542 virtual ::com::sun::star::uno::Reference
<
543 ::com::sun::star::accessibility::XAccessible
>
544 CreateAccessibleControl( sal_Int32 _nIndex
) SAL_OVERRIDE
;
546 // IAccessibleTableProvider
547 /** Creates the accessible object of a data table cell.
548 @param nRow The row index of the cell.
549 @param nColumnId The column ID of the cell.
550 @return The XAccessible interface of the specified cell. */
551 virtual ::com::sun::star::uno::Reference
<
552 ::com::sun::star::accessibility::XAccessible
>
553 CreateAccessibleCell( sal_Int32 nRow
, sal_uInt16 nColumnId
) SAL_OVERRIDE
;
556 void RecalcRows(long nNewTopRow
, sal_uInt16 nLinesOnScreen
, bool bUpdateCursor
);
557 bool SeekCursor(long nRow
, bool bAbsolute
= false);
558 void RemoveColumns(); // cleaning of own structures
560 sal_Int32
AlignSeekCursor();
561 bool SetCurrent(long nNewRow
);
563 OUString
GetCurrentRowCellText(DbGridColumn
* pCol
,const DbGridRowRef
& _rRow
) const;
564 virtual void DeleteSelectedRows();
565 static bool IsValid(const DbGridRowRef
& _xRow
) { return _xRow
&& _xRow
->IsValid(); }
567 // row which is currently being appended
568 bool IsCurrentAppending() const;
570 // empty row for insertion
571 bool IsInsertionRow(long nRow
) const;
573 void SetSeekPos(sal_Int32 nPos
) {m_nSeekPos
= nPos
;}
574 sal_Int32
GetCurrentPos() const {return m_nCurrentPos
;}
575 sal_Int32
GetSeekPos() const {return m_nSeekPos
;}
576 sal_Int32
GetTotalCount() const {return m_nTotalCount
;}
578 const DbGridRowRef
& GetEmptyRow() const { return m_xEmptyRow
; }
579 const DbGridRowRef
& GetSeekRow() const { return m_xSeekRow
; }
580 const DbGridRowRef
& GetPaintRow() const { return m_xPaintRow
; }
581 CursorWrapper
* GetSeekCursor() const { return m_pSeekCursor
; }
584 void ConnectToFields();
585 void DisconnectFromFields();
587 void implAdjustInSolarThread(bool _bRows
);
588 // calls AdjustRows or AdjustDataSource, synchron if the caller is running in the solar thread, else asynchron
592 void ImplInitWindow( const InitWindowFacet _eInitWhat
);
593 DECL_LINK(OnDelete
, void*);
595 DECL_LINK(OnAsyncAdjust
, void*);
596 // if the param is != NULL, AdjustRows will be called, else AdjustDataSource
599 using BrowseBox::InsertHandleColumn
;
602 #endif // INCLUDED_SVX_GRIDCTRL_HXX
604 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */