Kaydet (Commit) 7574a78b authored tarafından Noel Grandin's avatar Noel Grandin

sal_Bool->bool

Change-Id: I090cfc067103e46ea7837e33734eed2da1e46bd9
üst e3b03a02
......@@ -26,17 +26,17 @@
class ScInputOptions
{
private:
sal_uInt16 nMoveDir; // enum ScDirection
sal_Bool bMoveSelection;
sal_Bool bEnterEdit;
sal_Bool bExtendFormat;
sal_Bool bRangeFinder;
sal_Bool bExpandRefs;
sal_Bool bMarkHeader;
sal_Bool bUseTabCol;
sal_Bool bTextWysiwyg;
sal_Bool bReplCellsWarn;
sal_Bool bLegacyCellSelection;
sal_uInt16 nMoveDir; // enum ScDirection
bool bMoveSelection;
bool bEnterEdit;
bool bExtendFormat;
bool bRangeFinder;
bool bExpandRefs;
bool bMarkHeader;
bool bUseTabCol;
bool bTextWysiwyg;
bool bReplCellsWarn;
bool bLegacyCellSelection;
public:
ScInputOptions();
......@@ -47,26 +47,26 @@ public:
void SetMoveDir(sal_uInt16 nNew) { nMoveDir = nNew; }
sal_uInt16 GetMoveDir() const { return nMoveDir; }
void SetMoveSelection(sal_Bool bSet) { bMoveSelection = bSet; }
sal_Bool GetMoveSelection() const { return bMoveSelection; }
void SetEnterEdit(sal_Bool bSet) { bEnterEdit = bSet; }
sal_Bool GetEnterEdit() const { return bEnterEdit; }
void SetExtendFormat(sal_Bool bSet) { bExtendFormat = bSet; }
sal_Bool GetExtendFormat() const { return bExtendFormat; }
void SetRangeFinder(sal_Bool bSet) { bRangeFinder = bSet; }
sal_Bool GetRangeFinder() const { return bRangeFinder; }
void SetExpandRefs(sal_Bool bSet) { bExpandRefs = bSet; }
sal_Bool GetExpandRefs() const { return bExpandRefs; }
void SetMarkHeader(sal_Bool bSet) { bMarkHeader = bSet; }
sal_Bool GetMarkHeader() const { return bMarkHeader; }
void SetUseTabCol(sal_Bool bSet) { bUseTabCol = bSet; }
sal_Bool GetUseTabCol() const { return bUseTabCol; }
void SetTextWysiwyg(sal_Bool bSet) { bTextWysiwyg = bSet; }
sal_Bool GetTextWysiwyg() const { return bTextWysiwyg; }
void SetReplaceCellsWarn(sal_Bool bSet) { bReplCellsWarn = bSet; }
sal_Bool GetReplaceCellsWarn() const { return bReplCellsWarn; }
void SetLegacyCellSelection(sal_Bool bSet) { bLegacyCellSelection = bSet; }
sal_Bool GetLegacyCellSelection() const { return bLegacyCellSelection; }
void SetMoveSelection(bool bSet) { bMoveSelection = bSet; }
bool GetMoveSelection() const { return bMoveSelection; }
void SetEnterEdit(bool bSet) { bEnterEdit = bSet; }
bool GetEnterEdit() const { return bEnterEdit; }
void SetExtendFormat(bool bSet) { bExtendFormat = bSet; }
bool GetExtendFormat() const { return bExtendFormat; }
void SetRangeFinder(bool bSet) { bRangeFinder = bSet; }
bool GetRangeFinder() const { return bRangeFinder; }
void SetExpandRefs(bool bSet) { bExpandRefs = bSet; }
bool GetExpandRefs() const { return bExpandRefs; }
void SetMarkHeader(bool bSet) { bMarkHeader = bSet; }
bool GetMarkHeader() const { return bMarkHeader; }
void SetUseTabCol(bool bSet) { bUseTabCol = bSet; }
bool GetUseTabCol() const { return bUseTabCol; }
void SetTextWysiwyg(bool bSet) { bTextWysiwyg = bSet; }
bool GetTextWysiwyg() const { return bTextWysiwyg; }
void SetReplaceCellsWarn(bool bSet) { bReplCellsWarn = bSet; }
bool GetReplaceCellsWarn() const { return bReplCellsWarn; }
void SetLegacyCellSelection(bool bSet) { bLegacyCellSelection = bSet; }
bool GetLegacyCellSelection() const { return bLegacyCellSelection; }
const ScInputOptions& operator= ( const ScInputOptions& rOpt );
};
......
......@@ -50,15 +50,15 @@ ScInputOptions::~ScInputOptions()
void ScInputOptions::SetDefaults()
{
nMoveDir = DIR_BOTTOM;
bMoveSelection = sal_True;
bMoveSelection = true;
bEnterEdit = false;
bExtendFormat = false;
bRangeFinder = sal_True;
bRangeFinder = true;
bExpandRefs = false;
bMarkHeader = sal_True;
bMarkHeader = true;
bUseTabCol = false;
bTextWysiwyg = false;
bReplCellsWarn = sal_True;
bReplCellsWarn = true;
bLegacyCellSelection = false;
}
......
......@@ -1288,7 +1288,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
if ( rOptSet.HasItem(SID_SC_INPUT_TEXTWYSIWYG,&pItem) )
{
sal_Bool bNew = ((const SfxBoolItem*)pItem)->GetValue();
if ( bNew != pInputCfg->GetTextWysiwyg() )
if ( bNew != ( pInputCfg->GetTextWysiwyg() ? 1 : 0 ) )
{
pInputCfg->SetTextWysiwyg( bNew );
bSaveInputOptions = true;
......
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