1*5f5499b4SRene Gollent /* 2*5f5499b4SRene Gollent * Copyright 2014-2015, Rene Gollent, rene@gollent.com. 3*5f5499b4SRene Gollent * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 4*5f5499b4SRene Gollent * Distributed under the terms of the MIT License. 5*5f5499b4SRene Gollent */ 6*5f5499b4SRene Gollent #ifndef TABLE_CELL_FORMATTED_VALUE_RENDERER_H 7*5f5499b4SRene Gollent #define TABLE_CELL_FORMATTED_VALUE_RENDERER_H 8*5f5499b4SRene Gollent 9*5f5499b4SRene Gollent 10*5f5499b4SRene Gollent #include "TableCellValueRenderer.h" 11*5f5499b4SRene Gollent 12*5f5499b4SRene Gollent 13*5f5499b4SRene Gollent class ValueFormatter; 14*5f5499b4SRene Gollent 15*5f5499b4SRene Gollent 16*5f5499b4SRene Gollent class TableCellFormattedValueRenderer : public TableCellValueRenderer { 17*5f5499b4SRene Gollent public: 18*5f5499b4SRene Gollent TableCellFormattedValueRenderer( 19*5f5499b4SRene Gollent ValueFormatter* formatter); 20*5f5499b4SRene Gollent virtual ~TableCellFormattedValueRenderer(); 21*5f5499b4SRene Gollent 22*5f5499b4SRene Gollent virtual Settings* GetSettings() const; 23*5f5499b4SRene Gollent GetValueFormatter()24*5f5499b4SRene Gollent ValueFormatter* GetValueFormatter() const 25*5f5499b4SRene Gollent { return fValueFormatter; } 26*5f5499b4SRene Gollent 27*5f5499b4SRene Gollent virtual void RenderValue(Value* value, bool valueChanged, 28*5f5499b4SRene Gollent BRect rect, BView* targetView); 29*5f5499b4SRene Gollent virtual float PreferredValueWidth(Value* value, 30*5f5499b4SRene Gollent BView* targetView); 31*5f5499b4SRene Gollent 32*5f5499b4SRene Gollent 33*5f5499b4SRene Gollent private: 34*5f5499b4SRene Gollent ValueFormatter* fValueFormatter; 35*5f5499b4SRene Gollent }; 36*5f5499b4SRene Gollent 37*5f5499b4SRene Gollent 38*5f5499b4SRene Gollent #endif // TABLE_CELL_FORMATTED_VALUE_RENDERER_H 39