summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-07 10:36:28 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 19:51:04 +0200
commit2067d03f8ad7e58ae0ac1387a51858f012e8c7f1 (patch)
tree32d015e49a2fbff331f7178550b93c30af69b1c3 /sc/source/ui/inc
parent858232e3c78d5d8f013324887e29a74ea2f21bab (diff)
fdo#76718 Rounding for "fill > random number.." option
Change-Id: Idb4b6442be7ddb08875c6b59f54a887399385be7
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/RandomNumberGeneratorDialog.hxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx b/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx
index 2146ebb852ce..ffb95d57bdfa 100644
--- a/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx
+++ b/sc/source/ui/inc/RandomNumberGeneratorDialog.hxx
@@ -15,11 +15,12 @@
#include "address.hxx"
#include "anyrefdg.hxx"
-
#include <vcl/fixed.hxx>
#include <vcl/group.hxx>
#include <vcl/lstbox.hxx>
+#include <boost/optional.hpp>
+
class ScRandomNumberGeneratorDialog : public ScAnyRefDlg
{
public:
@@ -29,9 +30,9 @@ public:
virtual ~ScRandomNumberGeneratorDialog();
- virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) SAL_OVERRIDE;
- virtual void SetActive() SAL_OVERRIDE;
- virtual bool Close() SAL_OVERRIDE;
+ virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) SAL_OVERRIDE;
+ virtual void SetActive() SAL_OVERRIDE;
+ virtual bool Close() SAL_OVERRIDE;
private:
// Widgets
@@ -45,6 +46,8 @@ private:
NumericField* mpParameter2Value;
NumericField* mpSeed;
CheckBox* mpEnableSeed;
+ NumericField* mpDecimalPlaces;
+ CheckBox* mpEnableRounding;
PushButton* mpButtonApply;
OKButton* mpButtonOk;
CloseButton* mpButtonClose;
@@ -61,7 +64,8 @@ private:
void GetRangeFromSelection();
template<class RNG>
- void GenerateNumbers(RNG randomGenerator, const OUString& aDistributionName);
+
+ void GenerateNumbers(RNG randomGenerator, const sal_Int16 aDistributionStringId, const boost::optional<sal_Int8> aDecimalPlaces);
void SelectGeneratorAndGenerateNumbers();
@@ -74,7 +78,7 @@ private:
DECL_LINK( Parameter1ValueModified, void* );
DECL_LINK( Parameter2ValueModified, void* );
DECL_LINK( DistributionChanged, void* );
- DECL_LINK( SeedCheckChanged, void* );
+ DECL_LINK( CheckChanged, void* );
};