summaryrefslogtreecommitdiff
path: root/svx/source/inc
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-17 09:58:49 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-17 09:58:49 +0000
commitb0aebd28927a050b4076dc57ddc506abf665f412 (patch)
treec43f2a9934fc4ca4b18bef430f1bb7fdc02ff209 /svx/source/inc
parent4c939f004d149c94fe804d90b65724dbd88f2843 (diff)
INTEGRATION: CWS dba23 (1.12.468); FILE MERGED
Diffstat (limited to 'svx/source/inc')
-rw-r--r--svx/source/inc/gridcell.hxx36
1 files changed, 26 insertions, 10 deletions
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx
index 6b28e4b2b2f8..73c17b521f96 100644
--- a/svx/source/inc/gridcell.hxx
+++ b/svx/source/inc/gridcell.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: gridcell.hxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 13:15:41 $
+ * last change: $Author: vg $ $Date: 2005-02-17 10:58:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -442,9 +442,10 @@ protected:
//==================================================================
class DbTextField : public DbLimitedLengthField
{
- sal_Int16 m_nKeyType;
::svt::IEditImplementation* m_pEdit;
::svt::IEditImplementation* m_pPainterImplementation;
+ sal_Int16 m_nKeyType;
+ sal_Bool m_bIsSimpleEdit;
protected:
~DbTextField( );
@@ -454,6 +455,7 @@ public:
DbTextField(DbGridColumn& _rColumn);
::svt::IEditImplementation* GetEditImplementation() { return m_pEdit; }
+ sal_Bool IsSimpleEdit() const { return m_bIsSimpleEdit; }
virtual void Init(Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >& xCursor );
virtual XubString GetFormatText(const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XColumn >& _rxField, const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >& xFormatter, Color** ppColor = NULL);
@@ -844,9 +846,29 @@ protected:
//==================================================================
class FmXTextCell : public FmXDataCell
{
+protected:
+ /** determines whether the text of this cell can be painted directly, without
+ using the painter control
+
+ If this is <TRUE/>, the <member>Paint</member> method will simply use the text as returned
+ by <member>GetText</member>, and draw it onto the device passed to <member>Paint</member>,
+ while respecting the current alignment settings.
+
+ If this is <FALSE/>, the <member>Paint</member> request will be forwarded to the painter
+ control (<member>m_pPainter</member>). This is more expensive, but the only option
+ if your painting involves more that a simple DrawText.
+
+ This member is <TRUE/> by default, and can be modified by derived classes.
+ */
+ sal_Bool m_bFastPaint;
+
public:
TYPEINFO();
- FmXTextCell(DbGridColumn* pColumn, DbCellControl* pControl):FmXDataCell(pColumn, pControl){}
+ FmXTextCell( DbGridColumn* pColumn, DbCellControl* pControl )
+ :FmXDataCell( pColumn, pControl )
+ ,m_bFastPaint( sal_False )
+ {
+ }
virtual void Paint(OutputDevice& rDev,
const Rectangle& rRect,
@@ -872,12 +894,6 @@ protected:
public:
FmXEditCell(DbGridColumn* pColumn, DbCellControl* pControl);
- virtual void Paint( OutputDevice& _rDev,
- const Rectangle& _rRect,
- const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XColumn >& _rxField,
- const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter >& _rxFormatter
- );
-
DECLARE_UNO3_AGG_DEFAULTS(FmXEditCell, FmXTextCell);
virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw(::com::sun::star::uno::RuntimeException);