summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-10 16:55:21 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-10 20:21:13 -0500
commit12343c15568dcc2c9209d8ca41fda2263122448f (patch)
tree3212a89c6cd8ea2e0aee7103aa9669bbb8a6f307 /sc/source/ui/inc
parent99745dbcbb25b61437914c9782475d0b67a4b0bd (diff)
parentce6308e4fad2281241bf4ca78280eba29f744d43 (diff)
Merge commit 'ooo/DEV300_m101' into integration/dev300_m101
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/AccessibleText.hxx8
-rw-r--r--sc/source/ui/inc/IAnyRefDialog.hxx8
-rw-r--r--sc/source/ui/inc/acredlin.hxx60
-rw-r--r--sc/source/ui/inc/anyrefdg.hxx52
-rw-r--r--sc/source/ui/inc/areasave.hxx10
-rw-r--r--sc/source/ui/inc/areasdlg.hxx16
-rw-r--r--sc/source/ui/inc/asciiopt.hxx30
-rw-r--r--sc/source/ui/inc/attrdlg.hxx2
-rw-r--r--sc/source/ui/inc/auditsh.hxx2
-rw-r--r--sc/source/ui/inc/autofmt.hxx16
-rw-r--r--sc/source/ui/inc/autostyl.hxx10
-rw-r--r--sc/source/ui/inc/cbutton.hxx14
-rw-r--r--sc/source/ui/inc/cellsh.hxx4
-rw-r--r--sc/source/ui/inc/colrowba.hxx26
-rw-r--r--sc/source/ui/inc/condfrmt.hrc6
-rw-r--r--sc/source/ui/inc/condfrmt.hxx13
-rw-r--r--sc/source/ui/inc/conflictsdlg.hxx26
-rw-r--r--sc/source/ui/inc/consdlg.hxx16
-rw-r--r--sc/source/ui/inc/content.hxx48
-rw-r--r--sc/source/ui/inc/corodlg.hxx8
-rw-r--r--sc/source/ui/inc/crdlg.hxx4
-rw-r--r--sc/source/ui/inc/crnrdlg.hxx12
-rw-r--r--sc/source/ui/inc/csvruler.hxx6
-rw-r--r--sc/source/ui/inc/dapitype.hxx2
-rw-r--r--sc/source/ui/inc/datafdlg.hxx2
-rw-r--r--sc/source/ui/inc/dbdocfun.hxx36
-rw-r--r--sc/source/ui/inc/dbfunc.hxx62
-rw-r--r--sc/source/ui/inc/dbnamdlg.hxx8
-rw-r--r--sc/source/ui/inc/delcldlg.hxx4
-rw-r--r--sc/source/ui/inc/delcodlg.hxx14
-rw-r--r--sc/source/ui/inc/docfunc.hxx144
-rw-r--r--sc/source/ui/inc/docsh.hxx207
-rw-r--r--sc/source/ui/inc/dpcontrol.hxx2
-rw-r--r--sc/source/ui/inc/drawsh.hxx8
-rw-r--r--sc/source/ui/inc/drawview.hxx12
-rw-r--r--sc/source/ui/inc/drtxtob.hxx10
-rw-r--r--sc/source/ui/inc/drwtrans.hxx20
-rw-r--r--sc/source/ui/inc/dwfunctr.hxx22
-rw-r--r--sc/source/ui/inc/editable.hxx10
-rw-r--r--sc/source/ui/inc/editsh.hxx6
-rw-r--r--sc/source/ui/inc/fieldwnd.hxx33
-rw-r--r--sc/source/ui/inc/filldlg.hxx33
-rw-r--r--sc/source/ui/inc/filtdlg.hxx36
-rw-r--r--sc/source/ui/inc/foptmgr.hxx2
-rw-r--r--sc/source/ui/inc/formula.hxx22
-rw-r--r--sc/source/ui/inc/fuconarc.hxx8
-rw-r--r--sc/source/ui/inc/fuconcustomshape.hxx8
-rw-r--r--sc/source/ui/inc/fuconpol.hxx8
-rw-r--r--sc/source/ui/inc/fuconrec.hxx8
-rw-r--r--sc/source/ui/inc/fuconstr.hxx12
-rw-r--r--sc/source/ui/inc/fuconuno.hxx12
-rw-r--r--sc/source/ui/inc/fudraw.hxx10
-rw-r--r--sc/source/ui/inc/fuedipo.hxx8
-rw-r--r--sc/source/ui/inc/fumark.hxx14
-rw-r--r--sc/source/ui/inc/funcpage.hxx14
-rw-r--r--sc/source/ui/inc/funcutl.hxx6
-rw-r--r--sc/source/ui/inc/fupoor.hxx16
-rw-r--r--sc/source/ui/inc/fusel.hxx14
-rw-r--r--sc/source/ui/inc/futext.hxx14
-rw-r--r--sc/source/ui/inc/gridmerg.hxx4
-rw-r--r--sc/source/ui/inc/gridwin.hxx104
-rw-r--r--sc/source/ui/inc/groupdlg.hxx10
-rw-r--r--sc/source/ui/inc/hdrcont.hxx36
-rw-r--r--sc/source/ui/inc/hfedtdlg.hxx4
-rw-r--r--sc/source/ui/inc/highred.hxx6
-rw-r--r--sc/source/ui/inc/hiranges.hxx4
-rw-r--r--sc/source/ui/inc/imoptdlg.hxx24
-rw-r--r--sc/source/ui/inc/impex.hxx86
-rw-r--r--sc/source/ui/inc/inputhdl.hxx102
-rw-r--r--sc/source/ui/inc/inputwin.hxx36
-rw-r--r--sc/source/ui/inc/inscldlg.hxx4
-rw-r--r--sc/source/ui/inc/inscodlg.hxx42
-rw-r--r--sc/source/ui/inc/instbdlg.hxx16
-rw-r--r--sc/source/ui/inc/lbseldlg.hxx2
-rw-r--r--sc/source/ui/inc/linkarea.hxx4
-rw-r--r--sc/source/ui/inc/msgpool.hxx2
-rw-r--r--sc/source/ui/inc/mtrindlg.hxx6
-rw-r--r--sc/source/ui/inc/mvtabdlg.hxx10
-rw-r--r--sc/source/ui/inc/namecrea.hxx6
-rw-r--r--sc/source/ui/inc/namedlg.hxx8
-rw-r--r--sc/source/ui/inc/namepast.hxx4
-rw-r--r--sc/source/ui/inc/navcitem.hxx4
-rw-r--r--sc/source/ui/inc/navipi.hxx24
-rw-r--r--sc/source/ui/inc/navsett.hxx18
-rw-r--r--sc/source/ui/inc/notemark.hxx10
-rw-r--r--sc/source/ui/inc/olinefun.hxx24
-rw-r--r--sc/source/ui/inc/olinewin.hxx2
-rw-r--r--sc/source/ui/inc/opredlin.hxx2
-rw-r--r--sc/source/ui/inc/optload.hxx2
-rw-r--r--sc/source/ui/inc/optsolver.hxx20
-rw-r--r--sc/source/ui/inc/output.hxx86
-rw-r--r--sc/source/ui/inc/pagedata.hxx14
-rw-r--r--sc/source/ui/inc/parawin.hxx46
-rw-r--r--sc/source/ui/inc/pfiltdlg.hxx10
-rw-r--r--sc/source/ui/inc/pfuncache.hxx4
-rw-r--r--sc/source/ui/inc/pntlock.hxx24
-rw-r--r--sc/source/ui/inc/popmenu.hxx12
-rw-r--r--sc/source/ui/inc/preview.hxx64
-rw-r--r--sc/source/ui/inc/prevloc.hxx40
-rw-r--r--sc/source/ui/inc/prevwsh.hxx30
-rw-r--r--sc/source/ui/inc/printfun.hxx118
-rw-r--r--sc/source/ui/inc/privsplt.hxx4
-rw-r--r--sc/source/ui/inc/pvfundlg.hxx26
-rw-r--r--sc/source/ui/inc/pvlaydlg.hxx46
-rw-r--r--sc/source/ui/inc/redcom.hxx2
-rw-r--r--sc/source/ui/inc/reffact.hxx16
-rw-r--r--sc/source/ui/inc/refundo.hxx2
-rw-r--r--sc/source/ui/inc/rfindlst.hxx10
-rw-r--r--sc/source/ui/inc/scendlg.hxx10
-rw-r--r--sc/source/ui/inc/scuiasciiopt.hxx12
-rw-r--r--sc/source/ui/inc/scuiautofmt.hxx8
-rw-r--r--sc/source/ui/inc/scuiimoptdlg.hxx13
-rw-r--r--sc/source/ui/inc/scuitphfedit.hxx16
-rw-r--r--sc/source/ui/inc/select.hxx26
-rw-r--r--sc/source/ui/inc/seltrans.hxx2
-rw-r--r--sc/source/ui/inc/servobj.hxx6
-rw-r--r--sc/source/ui/inc/shtabdlg.hxx12
-rw-r--r--sc/source/ui/inc/simpref.hxx22
-rw-r--r--sc/source/ui/inc/sizedev.hxx4
-rw-r--r--sc/source/ui/inc/solvrdlg.hxx8
-rw-r--r--sc/source/ui/inc/sortdlg.hxx20
-rw-r--r--sc/source/ui/inc/spelldialog.hxx2
-rw-r--r--sc/source/ui/inc/spelleng.hxx4
-rw-r--r--sc/source/ui/inc/strindlg.hxx4
-rw-r--r--sc/source/ui/inc/styledlg.hxx6
-rw-r--r--sc/source/ui/inc/tabbgcolordlg.hxx7
-rw-r--r--sc/source/ui/inc/tabcont.hxx12
-rw-r--r--sc/source/ui/inc/tabopdlg.hxx6
-rw-r--r--sc/source/ui/inc/tabpages.hxx16
-rw-r--r--sc/source/ui/inc/tabsplit.hxx4
-rw-r--r--sc/source/ui/inc/tabview.hxx163
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx144
-rw-r--r--sc/source/ui/inc/tbinsert.hxx8
-rw-r--r--sc/source/ui/inc/tbzoomsliderctrl.hxx10
-rw-r--r--sc/source/ui/inc/textdlgs.hxx4
-rw-r--r--sc/source/ui/inc/tpcalc.hxx6
-rw-r--r--sc/source/ui/inc/tpcompatibility.hxx2
-rw-r--r--sc/source/ui/inc/tpformula.hxx2
-rw-r--r--sc/source/ui/inc/tphf.hxx14
-rw-r--r--sc/source/ui/inc/tphfedit.hxx4
-rw-r--r--sc/source/ui/inc/tpprint.hxx4
-rw-r--r--sc/source/ui/inc/tpsort.hxx24
-rw-r--r--sc/source/ui/inc/tpstat.hxx2
-rw-r--r--sc/source/ui/inc/tpsubt.hxx30
-rw-r--r--sc/source/ui/inc/tptable.hxx4
-rw-r--r--sc/source/ui/inc/tpusrlst.hxx22
-rw-r--r--sc/source/ui/inc/tpview.hxx4
-rw-r--r--sc/source/ui/inc/transobj.hxx17
-rw-r--r--sc/source/ui/inc/ui_pch.hxx4
-rw-r--r--sc/source/ui/inc/uiitems.hxx56
-rw-r--r--sc/source/ui/inc/undobase.hxx19
-rw-r--r--sc/source/ui/inc/undoblk.hxx258
-rw-r--r--sc/source/ui/inc/undocell.hxx76
-rw-r--r--sc/source/ui/inc/undodat.hxx122
-rw-r--r--sc/source/ui/inc/undodraw.hxx10
-rw-r--r--sc/source/ui/inc/undoolk.hxx2
-rw-r--r--sc/source/ui/inc/undostyl.hxx4
-rw-r--r--sc/source/ui/inc/undotab.hxx90
-rw-r--r--sc/source/ui/inc/validate.hxx26
-rw-r--r--sc/source/ui/inc/viewdata.hxx122
-rw-r--r--sc/source/ui/inc/viewfunc.hxx203
-rw-r--r--sc/source/ui/inc/viewutil.hxx14
162 files changed, 2060 insertions, 2054 deletions
diff --git a/sc/source/ui/inc/AccessibleText.hxx b/sc/source/ui/inc/AccessibleText.hxx
index eaa68f0e6aa2..43d3c1aba20d 100644
--- a/sc/source/ui/inc/AccessibleText.hxx
+++ b/sc/source/ui/inc/AccessibleText.hxx
@@ -150,7 +150,7 @@ public:
virtual void UpdateData() { }
virtual void SetDoUpdate(sal_Bool /* bValue */) { }
- virtual sal_Bool IsDirty() const { return sal_False; }
+ virtual sal_Bool IsDirty() const { return false; }
DECL_LINK( NotifyHdl, EENotify* );
protected:
@@ -267,7 +267,7 @@ public:
virtual void UpdateData() { }
virtual void SetDoUpdate(sal_Bool /* bValue */) { }
- virtual sal_Bool IsDirty() const { return sal_False; }
+ virtual sal_Bool IsDirty() const { return false; }
private:
ScPreviewViewForwarder* mpViewForwarder;
ScPreviewShell* mpViewShell;
@@ -300,7 +300,7 @@ public:
virtual void UpdateData() { }
virtual void SetDoUpdate(sal_Bool /* bValue */) { }
- virtual sal_Bool IsDirty() const { return sal_False; }
+ virtual sal_Bool IsDirty() const { return false; }
private:
ScPreviewViewForwarder* mpViewForwarder;
ScPreviewShell* mpViewShell;
@@ -349,7 +349,7 @@ public:
virtual void UpdateData() {}
virtual void SetDoUpdate( sal_Bool /* bValue */ ) {}
- virtual sal_Bool IsDirty() const { return sal_False; }
+ virtual sal_Bool IsDirty() const { return false; }
};
diff --git a/sc/source/ui/inc/IAnyRefDialog.hxx b/sc/source/ui/inc/IAnyRefDialog.hxx
index d23f1d5ceebf..afd90f5305f3 100644
--- a/sc/source/ui/inc/IAnyRefDialog.hxx
+++ b/sc/source/ui/inc/IAnyRefDialog.hxx
@@ -46,11 +46,11 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) = 0;
virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL ) = 0;
- virtual void RefInputDone( BOOL bForced = FALSE ) = 0;
- virtual BOOL IsTableLocked() const = 0;
- virtual BOOL IsRefInputMode() const = 0;
+ virtual void RefInputDone( sal_Bool bForced = false ) = 0;
+ virtual sal_Bool IsTableLocked() const = 0;
+ virtual sal_Bool IsRefInputMode() const = 0;
- virtual BOOL IsDocAllowed( SfxObjectShell* pDocSh ) const = 0;
+ virtual sal_Bool IsDocAllowed( SfxObjectShell* pDocSh ) const = 0;
virtual void AddRefEntry() = 0;
virtual void SetActive() = 0;
virtual void ViewShellChanged( ScTabViewShell* pScViewShell ) = 0;
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index aeff805d72ca..f984c2347fe5 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -107,10 +107,10 @@ public:
SCTAB nTable;
SCCOL nCol;
SCROW nRow;
- ULONG nActionNo;
- ULONG nInfo;
- BOOL bIsRejectable;
- BOOL bIsAcceptable;
+ sal_uLong nActionNo;
+ sal_uLong nInfo;
+ sal_Bool bIsRejectable;
+ sal_Bool bIsAcceptable;
};
typedef long LExpNum;
@@ -153,15 +153,15 @@ private:
String aStrChildContent;
String aStrChildOrgContent;
String aStrEmpty;
- ULONG nAcceptCount;
- ULONG nRejectCount;
- BOOL bAcceptEnableFlag;
- BOOL bRejectEnableFlag;
- BOOL bNeedsUpdate;
- BOOL bIgnoreMsg;
- BOOL bNoSelection;
- BOOL bHasFilterEntry;
- BOOL bUseColor;
+ sal_uLong nAcceptCount;
+ sal_uLong nRejectCount;
+ sal_Bool bAcceptEnableFlag;
+ sal_Bool bRejectEnableFlag;
+ sal_Bool bNeedsUpdate;
+ sal_Bool bIgnoreMsg;
+ sal_Bool bNoSelection;
+ sal_Bool bHasFilterEntry;
+ sal_Bool bUseColor;
//ScChgTrackExps aExpandArray;
void Init();
@@ -190,51 +190,51 @@ private:
protected:
virtual void Resize();
- virtual BOOL Close();
+ virtual sal_Bool Close();
void RejectFiltered();
void AcceptFiltered();
- BOOL IsValidAction(const ScChangeAction* pScChangeAction);
+ sal_Bool IsValidAction(const ScChangeAction* pScChangeAction);
String* MakeTypeString(ScChangeActionType eType);
SvLBoxEntry* InsertChangeAction(const ScChangeAction* pScChangeAction,ScChangeActionState eState,
- SvLBoxEntry* pParent=NULL,BOOL bDelMaster=FALSE,
- BOOL bDisabled=FALSE,ULONG nPos=LIST_APPEND);
+ SvLBoxEntry* pParent=NULL,sal_Bool bDelMaster=false,
+ sal_Bool bDisabled=false,sal_uLong nPos=LIST_APPEND);
SvLBoxEntry* InsertFilteredAction(const ScChangeAction* pScChangeAction,ScChangeActionState eState,
- SvLBoxEntry* pParent=NULL,BOOL bDelMaster=FALSE,
- BOOL bDisabled=FALSE,ULONG nPos=LIST_APPEND);
+ SvLBoxEntry* pParent=NULL,sal_Bool bDelMaster=false,
+ sal_Bool bDisabled=false,sal_uLong nPos=LIST_APPEND);
SvLBoxEntry* InsertChangeActionContent(const ScChangeActionContent* pScChangeAction,
- SvLBoxEntry* pParent,ULONG nSpecial);
+ SvLBoxEntry* pParent,sal_uLong nSpecial);
void GetDependents( const ScChangeAction* pScChangeAction,
ScChangeActionTable& aActionTable,
SvLBoxEntry* pEntry);
- BOOL InsertContentChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent);
+ sal_Bool InsertContentChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent);
- BOOL InsertAcceptedORejected(SvLBoxEntry* pParent);
+ sal_Bool InsertAcceptedORejected(SvLBoxEntry* pParent);
- BOOL InsertDeletedChilds(const ScChangeAction *pChangeAction, ScChangeActionTable* pActionTable,
+ sal_Bool InsertDeletedChilds(const ScChangeAction *pChangeAction, ScChangeActionTable* pActionTable,
SvLBoxEntry* pParent);
- BOOL InsertChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent);
+ sal_Bool InsertChilds(ScChangeActionTable* pActionTable,SvLBoxEntry* pParent);
- void AppendChanges(ScChangeTrack* pChanges,ULONG nStartAction, ULONG nEndAction,
- ULONG nPos=LIST_APPEND);
+ void AppendChanges(ScChangeTrack* pChanges,sal_uLong nStartAction, sal_uLong nEndAction,
+ sal_uLong nPos=LIST_APPEND);
- void RemoveEntrys(ULONG nStartAction,ULONG nEndAction);
- void UpdateEntrys(ScChangeTrack* pChgTrack, ULONG nStartAction,ULONG nEndAction);
+ void RemoveEntrys(sal_uLong nStartAction,sal_uLong nEndAction);
+ void UpdateEntrys(ScChangeTrack* pChgTrack, sal_uLong nStartAction,sal_uLong nEndAction);
void UpdateView();
void ClearView();
- BOOL Expand(ScChangeTrack* pChanges,const ScChangeAction* pScChangeAction,
- SvLBoxEntry* pEntry, BOOL bFilter=FALSE);
+ sal_Bool Expand(ScChangeTrack* pChanges,const ScChangeAction* pScChangeAction,
+ SvLBoxEntry* pEntry, sal_Bool bFilter=false);
public:
ScAcceptChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx
index fa49f6dea5cf..c1c2ec29029c 100644
--- a/sc/source/ui/inc/anyrefdg.hxx
+++ b/sc/source/ui/inc/anyrefdg.hxx
@@ -63,7 +63,7 @@ class ScFormulaReferenceHelper
SfxBindings* m_pBindings;
::std::auto_ptr<Accelerator>
pAccel; // fuer Enter/Escape
- BOOL* pHiddenMarks; // Merkfeld fuer versteckte Controls
+ sal_Bool* pHiddenMarks; // Merkfeld fuer versteckte Controls
SCTAB nRefTab; // used for ShowReference
String sOldDialogText; // Originaltitel des Dialogfensters
@@ -72,9 +72,9 @@ class ScFormulaReferenceHelper
Size aOldEditSize; // Originalgroesse des Eingabefeldes
Point aOldButtonPos; // Originalpositiuon des Buttons
- BOOL bEnableColorRef;
- BOOL bHighLightRef;
- BOOL bAccInserted;
+ sal_Bool bEnableColorRef;
+ sal_Bool bHighLightRef;
+ sal_Bool bAccInserted;
DECL_LINK( AccelSelectHdl, Accelerator* );
@@ -89,25 +89,25 @@ public:
void ShowReference( const XubString& rStr );
void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
- void HideReference( BOOL bDoneRefMode = TRUE );
+ void HideReference( sal_Bool bDoneRefMode = sal_True );
void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
- void RefInputDone( BOOL bForced = FALSE );
+ void RefInputDone( sal_Bool bForced = false );
void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
inline void SetWindow(Window* _pWindow) { m_pWindow = _pWindow; }
- BOOL DoClose( USHORT nId );
- void SetDispatcherLock( BOOL bLock );
- void EnableSpreadsheets( BOOL bFlag = TRUE, BOOL bChilds = TRUE );
+ sal_Bool DoClose( sal_uInt16 nId );
+ void SetDispatcherLock( sal_Bool bLock );
+ void EnableSpreadsheets( sal_Bool bFlag = sal_True, sal_Bool bChilds = sal_True );
void ViewShellChanged( ScTabViewShell* pScViewShell );
- static void enableInput(BOOL _bInput);
+ static void enableInput(sal_Bool _bInput);
protected:
Window * GetWindow(){ return m_pWindow; }
public:
bool CanInputStart( const formula::RefEdit *pEdit ){ return !!pEdit; }
- bool CanInputDone( BOOL bForced ){ return pRefEdit && (bForced || !pRefBtn); }
+ bool CanInputDone( sal_Bool bForced ){ return pRefEdit && (bForced || !pRefBtn); }
};
//============================================================================
@@ -138,15 +138,15 @@ private:
protected:
- virtual BOOL DoClose( USHORT nId );
+ virtual sal_Bool DoClose( sal_uInt16 nId );
- void SetDispatcherLock( BOOL bLock );
+ void SetDispatcherLock( sal_Bool bLock );
//Overwrite TWindow will implemented by ScRefHdlrImplBase
//virtual long PreNotify( NotifyEvent& rNEvt );
virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
- virtual void RefInputDone( BOOL bForced = FALSE );
+ virtual void RefInputDone( sal_Bool bForced = false );
void ShowSimpleReference( const XubString& rStr );
void ShowFormulaReference( const XubString& rStr );
@@ -154,18 +154,18 @@ protected:
public:
ScRefHandler( Window &rWindow, SfxBindings* pB/*, SfxChildWindow* pCW,
- Window* pParent, USHORT nResId*/, bool bBindRef );
+ Window* pParent, sal_uInt16 nResId*/, bool bBindRef );
virtual ~ScRefHandler();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc ) = 0;
virtual void AddRefEntry();
- virtual BOOL IsRefInputMode() const;
- virtual BOOL IsTableLocked() const;
- virtual BOOL IsDocAllowed( SfxObjectShell* pDocSh ) const;
+ virtual sal_Bool IsRefInputMode() const;
+ virtual sal_Bool IsTableLocked() const;
+ virtual sal_Bool IsDocAllowed( SfxObjectShell* pDocSh ) const;
virtual void ShowReference( const XubString& rStr );
- virtual void HideReference( BOOL bDoneRefMode = TRUE );
+ virtual void HideReference( sal_Bool bDoneRefMode = sal_True );
virtual void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
virtual void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
@@ -175,7 +175,7 @@ public:
//SfxBindings& GetBindings();
virtual void SetActive() = 0;
-// virtual BOOL Close();
+// virtual sal_Bool Close();
//Overwrite TWindow will implemented by ScRefHdlrImplBase
//virtual void StateChanged( StateChangedType nStateChange );
@@ -183,7 +183,7 @@ public:
bool EnterRefMode();
bool LeaveRefMode();
inline bool CanInputStart( const formula::RefEdit *pEdit );
- inline bool CanInputDone( BOOL bForced );
+ inline bool CanInputDone( sal_Bool bForced );
};
//============================================================================
@@ -212,12 +212,12 @@ private:
template<class TWindow, bool bBindRef>
template<class TBindings, class TChildWindow, class TParentWindow, class TResId>
ScRefHdlrImplBase<TWindow, bBindRef>::ScRefHdlrImplBase( TBindings* pB, TChildWindow* pCW,
- TParentWindow* pParent, TResId nResId):TWindow(pB, pCW, pParent, ScResId(static_cast<USHORT>( nResId ) ) ), ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef ){}
+ TParentWindow* pParent, TResId nResId):TWindow(pB, pCW, pParent, ScResId(static_cast<sal_uInt16>( nResId ) ) ), ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef ){}
template<class TWindow, bool bBindRef >
template<class TParentWindow, class TResId, class TArg>
ScRefHdlrImplBase<TWindow,bBindRef>::ScRefHdlrImplBase( TParentWindow* pParent, TResId nResIdP, const TArg &rArg, SfxBindings *pB /*= NULL*/ )
-:TWindow( pParent, ScResId(static_cast<USHORT>( nResIdP )), rArg ), ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef ){}
+:TWindow( pParent, ScResId(static_cast<sal_uInt16>( nResIdP )), rArg ), ScRefHandler( *static_cast<TWindow*>(this), pB, bBindRef ){}
template<class TWindow, bool bBindRef >
ScRefHdlrImplBase<TWindow,bBindRef>::~ScRefHdlrImplBase(){}
@@ -231,12 +231,12 @@ struct ScRefHdlrImpl: ScRefHdlrImplBase<TBase, bBindRef >
template<class T1, class T2, class T3, class T4>
ScRefHdlrImpl( const T1 & rt1, const T2 & rt2, const T3 & rt3, const T4 & rt4 ):ScRefHdlrImplBase<TBase, bBindRef >(rt1, rt2, rt3, rt4 )
{
- SC_MOD()->RegisterRefWindow( static_cast<USHORT>( static_cast<TDerived*>(this)->SLOTID ), this );
+ SC_MOD()->RegisterRefWindow( static_cast<sal_uInt16>( static_cast<TDerived*>(this)->SLOTID ), this );
}
~ScRefHdlrImpl()
{
- SC_MOD()->UnregisterRefWindow( static_cast<USHORT>( static_cast<TDerived*>(this)->SLOTID ), this );
+ SC_MOD()->UnregisterRefWindow( static_cast<sal_uInt16>( static_cast<TDerived*>(this)->SLOTID ), this );
}
};
//============================================================================
@@ -252,7 +252,7 @@ inline bool ScRefHandler::CanInputStart( const formula::RefEdit *pEdit )
return m_aHelper.CanInputStart( pEdit );
}
-inline bool ScRefHandler::CanInputDone( BOOL bForced )
+inline bool ScRefHandler::CanInputDone( sal_Bool bForced )
{
return m_aHelper.CanInputDone( bForced );
}
diff --git a/sc/source/ui/inc/areasave.hxx b/sc/source/ui/inc/areasave.hxx
index c1ba5b4726a0..c1a7eeb9aa65 100644
--- a/sc/source/ui/inc/areasave.hxx
+++ b/sc/source/ui/inc/areasave.hxx
@@ -45,7 +45,7 @@ private:
String aOptions;
String aSourceArea;
ScRange aDestArea;
- ULONG nRefresh;
+ sal_uLong nRefresh;
public:
ScAreaLinkSaver( const ScAreaLink& rSource );
@@ -54,8 +54,8 @@ public:
virtual ScDataObject* Clone() const;
- BOOL IsEqual( const ScAreaLink& rCompare ) const;
- BOOL IsEqualSource( const ScAreaLink& rCompare ) const;
+ sal_Bool IsEqual( const ScAreaLink& rCompare ) const;
+ sal_Bool IsEqualSource( const ScAreaLink& rCompare ) const;
void WriteToLink( ScAreaLink& rLink ) const;
void InsertNewLink( ScDocument* pDoc ) const;
@@ -71,9 +71,9 @@ public:
virtual ScDataObject* Clone() const;
- ScAreaLinkSaver* operator[](USHORT nIndex) const {return (ScAreaLinkSaver*)At(nIndex);}
+ ScAreaLinkSaver* operator[](sal_uInt16 nIndex) const {return (ScAreaLinkSaver*)At(nIndex);}
- BOOL IsEqual( const ScDocument* pDoc ) const;
+ sal_Bool IsEqual( const ScDocument* pDoc ) const;
void Restore( ScDocument* pDoc ) const;
// returns NULL if empty
diff --git a/sc/source/ui/inc/areasdlg.hxx b/sc/source/ui/inc/areasdlg.hxx
index ed579ea065b7..fafd293a2a4b 100644
--- a/sc/source/ui/inc/areasdlg.hxx
+++ b/sc/source/ui/inc/areasdlg.hxx
@@ -52,25 +52,25 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
virtual void AddRefEntry();
- virtual BOOL IsTableLocked() const;
+ virtual sal_Bool IsTableLocked() const;
virtual void SetActive();
virtual void Deactivate();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
- ListBox aLbPrintArea;
FixedLine aFlPrintArea;
+ ListBox aLbPrintArea;
formula::RefEdit aEdPrintArea;
formula::RefButton aRbPrintArea;
- ListBox aLbRepeatRow;
FixedLine aFlRepeatRow;
+ ListBox aLbRepeatRow;
formula::RefEdit aEdRepeatRow;
formula::RefButton aRbRepeatRow;
- ListBox aLbRepeatCol;
FixedLine aFlRepeatCol;
+ ListBox aLbRepeatCol;
formula::RefEdit aEdRepeatCol;
formula::RefButton aRbRepeatCol;
@@ -78,7 +78,7 @@ private:
CancelButton aBtnCancel;
HelpButton aBtnHelp;
- BOOL bDlgLostFocus;
+ sal_Bool bDlgLostFocus;
formula::RefEdit* pRefInputEdit;
ScDocument* pDoc;
ScViewData* pViewData;
@@ -87,9 +87,9 @@ private:
#ifdef _AREASDLG_CXX
private:
void Impl_Reset();
- BOOL Impl_CheckRefStrings();
+ sal_Bool Impl_CheckRefStrings();
void Impl_FillLists();
- BOOL Impl_GetItem( Edit* pEd, SfxStringItem& rItem );
+ sal_Bool Impl_GetItem( Edit* pEd, SfxStringItem& rItem );
// Handler:
DECL_LINK( Impl_SelectHdl, ListBox* );
diff --git a/sc/source/ui/inc/asciiopt.hxx b/sc/source/ui/inc/asciiopt.hxx
index 7581f7f8d072..7fb3c937538d 100644
--- a/sc/source/ui/inc/asciiopt.hxx
+++ b/sc/source/ui/inc/asciiopt.hxx
@@ -48,19 +48,19 @@
class SC_DLLPUBLIC ScAsciiOptions
{
private:
- BOOL bFixedLen;
+ sal_Bool bFixedLen;
String aFieldSeps;
- BOOL bMergeFieldSeps;
+ sal_Bool bMergeFieldSeps;
bool bQuotedFieldAsText;
bool bDetectSpecialNumber;
sal_Unicode cTextSep;
CharSet eCharSet;
LanguageType eLang;
- BOOL bCharSetSystem;
+ sal_Bool bCharSetSystem;
long nStartRow;
- USHORT nInfoCount;
+ sal_uInt16 nInfoCount;
xub_StrLen* pColStart; //! TODO replace with vector
- BYTE* pColFormat; //! TODO replace with vector
+ sal_uInt8* pColFormat; //! TODO replace with vector
public:
ScAsciiOptions();
@@ -71,7 +71,7 @@ public:
ScAsciiOptions& operator=( const ScAsciiOptions& rCpy );
- BOOL operator==( const ScAsciiOptions& rCmp ) const;
+ sal_Bool operator==( const ScAsciiOptions& rCmp ) const;
void ReadFromString( const String& rString );
String WriteToString() const;
@@ -79,31 +79,31 @@ public:
void InterpretColumnList( const String& rString );
CharSet GetCharSet() const { return eCharSet; }
- BOOL GetCharSetSystem() const { return bCharSetSystem; }
+ sal_Bool GetCharSetSystem() const { return bCharSetSystem; }
const String& GetFieldSeps() const { return aFieldSeps; }
- BOOL IsMergeSeps() const { return bMergeFieldSeps; }
+ sal_Bool IsMergeSeps() const { return bMergeFieldSeps; }
bool IsQuotedAsText() const { return bQuotedFieldAsText; }
bool IsDetectSpecialNumber() const { return bDetectSpecialNumber; }
sal_Unicode GetTextSep() const { return cTextSep; }
- BOOL IsFixedLen() const { return bFixedLen; }
- USHORT GetInfoCount() const { return nInfoCount; }
+ sal_Bool IsFixedLen() const { return bFixedLen; }
+ sal_uInt16 GetInfoCount() const { return nInfoCount; }
const xub_StrLen* GetColStart() const { return pColStart; }
- const BYTE* GetColFormat() const { return pColFormat; }
+ const sal_uInt8* GetColFormat() const { return pColFormat; }
long GetStartRow() const { return nStartRow; }
LanguageType GetLanguage() const { return eLang; }
void SetCharSet( CharSet eNew ) { eCharSet = eNew; }
- void SetCharSetSystem( BOOL bSet ) { bCharSetSystem = bSet; }
- void SetFixedLen( BOOL bSet ) { bFixedLen = bSet; }
+ void SetCharSetSystem( sal_Bool bSet ) { bCharSetSystem = bSet; }
+ void SetFixedLen( sal_Bool bSet ) { bFixedLen = bSet; }
void SetFieldSeps( const String& rStr ) { aFieldSeps = rStr; }
- void SetMergeSeps( BOOL bSet ) { bMergeFieldSeps = bSet; }
+ void SetMergeSeps( sal_Bool bSet ) { bMergeFieldSeps = bSet; }
void SetQuotedAsText(bool bSet) { bQuotedFieldAsText = bSet; }
void SetDetectSpecialNumber(bool bSet) { bDetectSpecialNumber = bSet; }
void SetTextSep( sal_Unicode c ) { cTextSep = c; }
void SetStartRow( long nRow) { nStartRow= nRow; }
void SetLanguage(LanguageType e) { eLang = e; }
- void SetColInfo( USHORT nCount, const xub_StrLen* pStart, const BYTE* pFormat );
+ void SetColInfo( sal_uInt16 nCount, const xub_StrLen* pStart, const sal_uInt8* pFormat );
void SetColumnInfo( const ScCsvExpDataVec& rDataVec );
};
diff --git a/sc/source/ui/inc/attrdlg.hxx b/sc/source/ui/inc/attrdlg.hxx
index 07a2ed16726e..8f1bae4260ff 100644
--- a/sc/source/ui/inc/attrdlg.hxx
+++ b/sc/source/ui/inc/attrdlg.hxx
@@ -55,7 +55,7 @@ public:
~ScAttrDlg();
protected:
- virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage );
+ virtual void PageCreated( sal_uInt16 nPageId, SfxTabPage& rTabPage );
private:
DECL_LINK( OkHandler, void* ); // fuer DoppelClick-Beenden in TabPages
diff --git a/sc/source/ui/inc/auditsh.hxx b/sc/source/ui/inc/auditsh.hxx
index 20d9702aeefa..0d11a49f517d 100644
--- a/sc/source/ui/inc/auditsh.hxx
+++ b/sc/source/ui/inc/auditsh.hxx
@@ -40,7 +40,7 @@ class ScAuditingShell : public SfxShell
{
private:
ScViewData* pViewData;
- USHORT nFunction;
+ sal_uInt16 nFunction;
public:
TYPEINFO();
diff --git a/sc/source/ui/inc/autofmt.hxx b/sc/source/ui/inc/autofmt.hxx
index d8952ee2cbf6..408e5a892107 100644
--- a/sc/source/ui/inc/autofmt.hxx
+++ b/sc/source/ui/inc/autofmt.hxx
@@ -71,7 +71,7 @@ private:
VirtualDevice aVD;
SvtScriptedTextHelper aScriptedText;
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > xBreakIter;
- BOOL bFitWidth;
+ sal_Bool bFitWidth;
svx::frame::Array maArray; /// Implementation to draw the frame borders.
bool mbRTL;
Size aPrvSize;
@@ -90,7 +90,7 @@ private:
//-------------------------------------------
SC_DLLPRIVATE void Init ();
SC_DLLPRIVATE void DoPaint ( const Rectangle& rRect );
- SC_DLLPRIVATE void CalcCellArray ( BOOL bFitWidth );
+ SC_DLLPRIVATE void CalcCellArray ( sal_Bool bFitWidth );
SC_DLLPRIVATE void CalcLineMap ();
SC_DLLPRIVATE void PaintCells ();
@@ -98,7 +98,7 @@ private:
conjunction with class svx::frame::Array (svx/framelinkarray.hxx), which
expects size_t coordinates. */
- SC_DLLPRIVATE USHORT GetFormatIndex( size_t nCol, size_t nRow ) const;
+ SC_DLLPRIVATE sal_uInt16 GetFormatIndex( size_t nCol, size_t nRow ) const;
SC_DLLPRIVATE const SvxBoxItem& GetBoxItem( size_t nCol, size_t nRow ) const;
SC_DLLPRIVATE const SvxLineItem& GetDiagItem( size_t nCol, size_t nRow, bool bTLBR ) const;
@@ -106,26 +106,26 @@ private:
SC_DLLPRIVATE void DrawStrings();
SC_DLLPRIVATE void DrawBackground();
- SC_DLLPRIVATE void MakeFonts ( USHORT nIndex,
+ SC_DLLPRIVATE void MakeFonts ( sal_uInt16 nIndex,
Font& rFont,
Font& rCJKFont,
Font& rCTLFont );
- SC_DLLPRIVATE String MakeNumberString( String cellString, BOOL bAddDec );
+ SC_DLLPRIVATE String MakeNumberString( String cellString, sal_Bool bAddDec );
SC_DLLPRIVATE void DrawFrameLine ( const SvxBorderLine& rLineD,
Point from,
Point to,
- BOOL bHorizontal,
+ sal_Bool bHorizontal,
const SvxBorderLine& rLineLT,
const SvxBorderLine& rLineL,
const SvxBorderLine& rLineLB,
const SvxBorderLine& rLineRT,
const SvxBorderLine& rLineR,
const SvxBorderLine& rLineRB );
- SC_DLLPRIVATE void CheckPriority ( USHORT nCurLine,
+ SC_DLLPRIVATE void CheckPriority ( sal_uInt16 nCurLine,
AutoFmtLine eLine,
SvxBorderLine& rLine );
- SC_DLLPRIVATE void GetLines ( USHORT nIndex, AutoFmtLine eLine,
+ SC_DLLPRIVATE void GetLines ( sal_uInt16 nIndex, AutoFmtLine eLine,
SvxBorderLine& rLineD,
SvxBorderLine& rLineLT,
SvxBorderLine& rLineL,
diff --git a/sc/source/ui/inc/autostyl.hxx b/sc/source/ui/inc/autostyl.hxx
index 3dcf57fbf39c..c45be3bb0a78 100644
--- a/sc/source/ui/inc/autostyl.hxx
+++ b/sc/source/ui/inc/autostyl.hxx
@@ -47,13 +47,13 @@ private:
ScDocShell* pDocSh;
Timer aTimer;
Timer aInitTimer;
- ULONG nTimerStart;
+ sal_uLong nTimerStart;
boost::ptr_vector<ScAutoStyleData> aEntries;
boost::ptr_vector<ScAutoStyleInitData> aInitials;
void ExecuteEntries();
- void AdjustEntries(ULONG nDiff);
- void StartTimer(ULONG nNow);
+ void AdjustEntries(sal_uLong nDiff);
+ void StartTimer(sal_uLong nNow);
DECL_LINK( TimerHdl, Timer* );
DECL_LINK( InitHdl, Timer* );
@@ -62,8 +62,8 @@ public:
~ScAutoStyleList();
void AddInitial( const ScRange& rRange, const String& rStyle1,
- ULONG nTimeout, const String& rStyle2 );
- void AddEntry( ULONG nTimeout, const ScRange& rRange, const String& rStyle );
+ sal_uLong nTimeout, const String& rStyle2 );
+ void AddEntry( sal_uLong nTimeout, const ScRange& rRange, const String& rStyle );
void ExecuteAllNow();
};
diff --git a/sc/source/ui/inc/cbutton.hxx b/sc/source/ui/inc/cbutton.hxx
index b74fec6276ae..dc588ebb02f8 100644
--- a/sc/source/ui/inc/cbutton.hxx
+++ b/sc/source/ui/inc/cbutton.hxx
@@ -49,16 +49,16 @@ public:
void Draw( const Point& rAt,
const Size& rSize,
- BOOL bState,
- BOOL bBtnIn = FALSE );
+ sal_Bool bState,
+ sal_Bool bBtnIn = false );
void Draw( const Point& rAt,
- BOOL bState,
- BOOL bBtnIn = FALSE )
+ sal_Bool bState,
+ sal_Bool bBtnIn = false )
{ Draw( rAt, aBtnSize, bState, bBtnIn ); }
- void Draw( BOOL bState,
- BOOL bBtnIn = FALSE )
+ void Draw( sal_Bool bState,
+ sal_Bool bBtnIn = false )
{ Draw( aBtnPos, aBtnSize, bState, bBtnIn ); }
void SetOptSizePixel();
@@ -71,7 +71,7 @@ public:
private:
void ImpDrawArrow( const Rectangle& rRect,
- BOOL bState );
+ sal_Bool bState );
protected:
OutputDevice* pOut;
diff --git a/sc/source/ui/inc/cellsh.hxx b/sc/source/ui/inc/cellsh.hxx
index f942f2c49699..6bbdd8ab6e27 100644
--- a/sc/source/ui/inc/cellsh.hxx
+++ b/sc/source/ui/inc/cellsh.hxx
@@ -59,12 +59,12 @@ class ScCellShell: public ScFormatShell
{
private:
CellShell_Impl* pImpl;
- BOOL bPastePossible;
+ sal_Bool bPastePossible;
void GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats );
void ExecuteExternalSource(
const String& _rFile, const String& _rFilter, const String& _rOptions,
- const String& _rSource, ULONG _nRefresh, SfxRequest& _rRequest );
+ const String& _rSource, sal_uLong _nRefresh, SfxRequest& _rRequest );
void ExecuteDataPilotDialog();
diff --git a/sc/source/ui/inc/colrowba.hxx b/sc/source/ui/inc/colrowba.hxx
index b4e1ba481ca0..fdc4b191972a 100644
--- a/sc/source/ui/inc/colrowba.hxx
+++ b/sc/source/ui/inc/colrowba.hxx
@@ -51,24 +51,24 @@ public:
~ScColBar();
virtual SCCOLROW GetPos();
- virtual USHORT GetEntrySize( SCCOLROW nEntryNo );
+ virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo );
virtual String GetEntryText( SCCOLROW nEntryNo );
- virtual BOOL IsLayoutRTL(); // only for columns
+ virtual sal_Bool IsLayoutRTL(); // only for columns
- virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewSize );
+ virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize );
virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd );
- virtual void SetMarking( BOOL bSet );
+ virtual void SetMarking( sal_Bool bSet );
virtual void SelectWindow();
- virtual BOOL IsDisabled();
- virtual BOOL ResizeAllowed();
+ virtual sal_Bool IsDisabled();
+ virtual sal_Bool ResizeAllowed();
virtual void DrawInvert( long nDragPos );
virtual String GetDragHelp( long nVal );
- BOOL UseNumericHeader() const;
+ sal_Bool UseNumericHeader() const;
};
@@ -85,19 +85,19 @@ public:
~ScRowBar();
virtual SCCOLROW GetPos();
- virtual USHORT GetEntrySize( SCCOLROW nEntryNo );
+ virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo );
virtual String GetEntryText( SCCOLROW nEntryNo );
- virtual BOOL IsMirrored(); // only for columns
+ virtual sal_Bool IsMirrored(); // only for columns
virtual SCROW GetHiddenCount( SCROW nEntryNo ); // only for columns
- virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewSize );
+ virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize );
virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd );
- virtual void SetMarking( BOOL bSet );
+ virtual void SetMarking( sal_Bool bSet );
virtual void SelectWindow();
- virtual BOOL IsDisabled();
- virtual BOOL ResizeAllowed();
+ virtual sal_Bool IsDisabled();
+ virtual sal_Bool ResizeAllowed();
virtual void DrawInvert( long nDragPos );
diff --git a/sc/source/ui/inc/condfrmt.hrc b/sc/source/ui/inc/condfrmt.hrc
index 223e2f8d3918..e1013438d219 100644
--- a/sc/source/ui/inc/condfrmt.hrc
+++ b/sc/source/ui/inc/condfrmt.hrc
@@ -63,6 +63,12 @@
#define FL_SEP1 41
#define FL_SEP2 42
+//IAccessibility2 Implementation 2009-----
+#define LABEL_FORMARTTING_CONDITIONS 5043
+#define LABEL_CONDITIONS 5044
+#define LABEL_CONDITION_VALUE 5045
+//-----IAccessibility2 Implementation 2009
+
#define BTN_OK 31
#define BTN_CANCEL 32
#define BTN_HELP 33
diff --git a/sc/source/ui/inc/condfrmt.hxx b/sc/source/ui/inc/condfrmt.hxx
index 1cb7b8cc83b0..85d7b6e225da 100644
--- a/sc/source/ui/inc/condfrmt.hxx
+++ b/sc/source/ui/inc/condfrmt.hxx
@@ -54,9 +54,9 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
virtual void AddRefEntry();
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
CheckBox aCbxCond1;
@@ -70,8 +70,6 @@ private:
FixedText aFtCond1Template;
ListBox aLbCond1Template;
PushButton aBtnNew1;
- FixedLine aFlSep1;
-
CheckBox aCbxCond2;
ListBox aLbCond21;
ListBox aLbCond22;
@@ -83,8 +81,6 @@ private:
FixedText aFtCond2Template;
ListBox aLbCond2Template;
PushButton aBtnNew2;
- FixedLine aFlSep2;
-
CheckBox aCbxCond3;
ListBox aLbCond31;
ListBox aLbCond32;
@@ -124,9 +120,10 @@ private:
Size aCond3Size1;
Size aCond3Size2;
Size aCond3Size3;
-
+ FixedLine aFlSep2;
+ FixedLine aFlSep1;
formula::RefEdit* pEdActive;
- BOOL bDlgLostFocus;
+ sal_Bool bDlgLostFocus;
ScDocument* pDoc;
#ifdef _CONDFRMT_CXX
diff --git a/sc/source/ui/inc/conflictsdlg.hxx b/sc/source/ui/inc/conflictsdlg.hxx
index d7ba96ab526a..5dcdd07d62fe 100644
--- a/sc/source/ui/inc/conflictsdlg.hxx
+++ b/sc/source/ui/inc/conflictsdlg.hxx
@@ -50,7 +50,7 @@ enum ScConflictAction
SC_CONFLICT_ACTION_KEEP_OTHER
};
-typedef ::std::vector< ULONG > ScChangeActionList;
+typedef ::std::vector< sal_uLong > ScChangeActionList;
//=============================================================================
@@ -63,8 +63,8 @@ struct ScConflictsListEntry
ScChangeActionList maSharedActions;
ScChangeActionList maOwnActions;
- bool HasSharedAction( ULONG nSharedAction ) const;
- bool HasOwnAction( ULONG nOwnAction ) const;
+ bool HasSharedAction( sal_uLong nSharedAction ) const;
+ bool HasOwnAction( sal_uLong nOwnAction ) const;
};
@@ -83,10 +83,10 @@ private:
static void Transform_Impl( ScChangeActionList& rActionList, ScChangeActionMergeMap* pMergeMap );
public:
- static bool HasOwnAction( ScConflictsList& rConflictsList, ULONG nOwnAction );
+ static bool HasOwnAction( ScConflictsList& rConflictsList, sal_uLong nOwnAction );
- static ScConflictsListEntry* GetSharedActionEntry( ScConflictsList& rConflictsList, ULONG nSharedAction );
- static ScConflictsListEntry* GetOwnActionEntry( ScConflictsList& rConflictsList, ULONG nOwnAction );
+ static ScConflictsListEntry* GetSharedActionEntry( ScConflictsList& rConflictsList, sal_uLong nSharedAction );
+ static ScConflictsListEntry* GetOwnActionEntry( ScConflictsList& rConflictsList, sal_uLong nOwnAction );
static void TransformConflictsList( ScConflictsList& rConflictsList,
ScChangeActionMergeMap* pSharedMap, ScChangeActionMergeMap* pOwnMap );
@@ -101,19 +101,19 @@ class ScConflictsFinder
{
private:
ScChangeTrack* mpTrack;
- ULONG mnStartShared;
- ULONG mnEndShared;
- ULONG mnStartOwn;
- ULONG mnEndOwn;
+ sal_uLong mnStartShared;
+ sal_uLong mnEndShared;
+ sal_uLong mnStartOwn;
+ sal_uLong mnEndOwn;
ScConflictsList& mrConflictsList;
static bool DoActionsIntersect( const ScChangeAction* pAction1, const ScChangeAction* pAction2 );
ScConflictsListEntry* GetIntersectingEntry( const ScChangeAction* pAction ) const;
- ScConflictsListEntry* GetEntry( ULONG nSharedAction, const ScChangeActionList& rOwnActions );
+ ScConflictsListEntry* GetEntry( sal_uLong nSharedAction, const ScChangeActionList& rOwnActions );
public:
- ScConflictsFinder( ScChangeTrack* pTrack, ULONG nStartShared, ULONG nEndShared,
- ULONG nStartOwn, ULONG nEndOwn, ScConflictsList& rConflictsList );
+ ScConflictsFinder( ScChangeTrack* pTrack, sal_uLong nStartShared, sal_uLong nEndShared,
+ sal_uLong nStartOwn, sal_uLong nEndOwn, ScConflictsList& rConflictsList );
virtual ~ScConflictsFinder();
bool Find();
diff --git a/sc/source/ui/inc/consdlg.hxx b/sc/source/ui/inc/consdlg.hxx
index d90a871e8c36..fa4fe9e41651 100644
--- a/sc/source/ui/inc/consdlg.hxx
+++ b/sc/source/ui/inc/consdlg.hxx
@@ -53,10 +53,10 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const { return TRUE; }
+ virtual sal_Bool IsRefInputMode() const { return sal_True; }
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
protected:
virtual void Deactivate();
@@ -100,17 +100,17 @@ private:
ScDocument* pDoc;
ScRangeUtil* pRangeUtil;
ScAreaData* pAreaData;
- USHORT nAreaDataCount;
- USHORT nWhichCons;
+ sal_uInt16 nAreaDataCount;
+ sal_uInt16 nWhichCons;
formula::RefEdit* pRefInputEdit;
- BOOL bDlgLostFocus;
+ sal_Bool bDlgLostFocus;
#ifdef _CONSDLG_CXX
private:
void Init ();
void FillAreaLists ();
- BOOL VerifyEdit ( formula::RefEdit* pEd );
+ sal_Bool VerifyEdit ( formula::RefEdit* pEd );
DECL_LINK( OkHdl, void* );
DECL_LINK( ClickHdl, PushButton* );
@@ -118,8 +118,8 @@ private:
DECL_LINK( ModifyHdl, formula::RefEdit* );
DECL_LINK( SelectHdl, ListBox* );
- ScSubTotalFunc LbPosToFunc( USHORT nPos );
- USHORT FuncToLbPos( ScSubTotalFunc eFunc );
+ ScSubTotalFunc LbPosToFunc( sal_uInt16 nPos );
+ sal_uInt16 FuncToLbPos( ScSubTotalFunc eFunc );
#endif // _CONSDLG_CXX
};
diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx
index 03924cc998cf..1de37c004126 100644
--- a/sc/source/ui/inc/content.hxx
+++ b/sc/source/ui/inc/content.hxx
@@ -51,7 +51,7 @@ class ScAreaLink;
#define SC_CONTENT_DRAWING 8
#define SC_CONTENT_COUNT 9
-const ULONG SC_CONTENT_NOCHILD = ~0UL;
+const sal_uLong SC_CONTENT_NOCHILD = ~0UL;
//
// TreeListBox fuer Inhalte
@@ -62,24 +62,24 @@ class ScContentTree : public SvTreeListBox
ScNavigatorDlg* pParentWindow;
ImageList aEntryImages;
SvLBoxEntry* pRootNodes[SC_CONTENT_COUNT];
- USHORT nRootType; // als Root eingestellt
+ sal_uInt16 nRootType; // als Root eingestellt
String aManualDoc; // im Navigator umgeschaltet (Title)
- BOOL bHiddenDoc; // verstecktes aktiv?
+ sal_Bool bHiddenDoc; // verstecktes aktiv?
String aHiddenName; // URL zum Laden
String aHiddenTitle; // fuer Anzeige
ScDocument* pHiddenDocument; // temporaer
- USHORT pPosList[SC_CONTENT_COUNT]; // fuer die Reihenfolge
+ sal_uInt16 pPosList[SC_CONTENT_COUNT]; // fuer die Reihenfolge
- static BOOL bIsInDrag; // static, falls der Navigator im ExecuteDrag geloescht wird
+ static sal_Bool bIsInDrag; // static, falls der Navigator im ExecuteDrag geloescht wird
ScDocShell* GetManualOrCurrent();
- void InitRoot(USHORT nType);
- void ClearType(USHORT nType);
+ void InitRoot(sal_uInt16 nType);
+ void ClearType(sal_uInt16 nType);
void ClearAll();
- void InsertContent( USHORT nType, const String& rValue );
- void GetDrawNames( USHORT nType );
+ void InsertContent( sal_uInt16 nType, const String& rValue );
+ void GetDrawNames( sal_uInt16 nType );
void GetTableNames();
void GetAreaNames();
@@ -90,24 +90,24 @@ class ScContentTree : public SvTreeListBox
void GetDrawingNames();
void GetNoteStrings();
- static bool IsPartOfType( USHORT nContentType, USHORT nObjIdentifier );
+ static bool IsPartOfType( sal_uInt16 nContentType, sal_uInt16 nObjIdentifier );
- BOOL DrawNamesChanged( USHORT nType );
- BOOL NoteStringsChanged();
+ sal_Bool DrawNamesChanged( sal_uInt16 nType );
+ sal_Bool NoteStringsChanged();
- ScAddress GetNotePos( ULONG nIndex );
- const ScAreaLink* GetLink( ULONG nIndex );
+ ScAddress GetNotePos( sal_uLong nIndex );
+ const ScAreaLink* GetLink( sal_uLong nIndex );
/** Returns the indexes of the specified listbox entry.
@param rnRootIndex Root index of specified entry is returned.
@param rnChildIndex Index of the entry inside its root is returned (or SC_CONTENT_NOCHILD if entry is root).
@param pEntry The entry to examine. */
- void GetEntryIndexes( USHORT& rnRootIndex, ULONG& rnChildIndex, SvLBoxEntry* pEntry ) const;
+ void GetEntryIndexes( sal_uInt16& rnRootIndex, sal_uLong& rnChildIndex, SvLBoxEntry* pEntry ) const;
/** Returns the child index of the specified listbox entry.
@param pEntry The entry to examine or NULL for the selected entry.
@return Index of the entry inside its root or SC_CONTENT_NOCHILD if entry is root. */
- ULONG GetChildIndex( SvLBoxEntry* pEntry ) const;
+ sal_uLong GetChildIndex( SvLBoxEntry* pEntry ) const;
void DoDrag();
@@ -117,8 +117,8 @@ class ScContentTree : public SvTreeListBox
DECL_STATIC_LINK( ScContentTree, ExecDragHdl, void* );
protected:
-// virtual BOOL Drop( const DropEvent& rEvt );
-// virtual BOOL QueryDrop( DropEvent& rEvt );
+// virtual sal_Bool Drop( const DropEvent& rEvt );
+// virtual sal_Bool QueryDrop( DropEvent& rEvt );
using SvTreeListBox::ExecuteDrop;
@@ -137,18 +137,18 @@ public:
virtual void MouseButtonDown( const MouseEvent& rMEvt );
virtual void KeyInput( const KeyEvent& rKEvt );
- void InitWindowBits( BOOL bButtons );
+ void InitWindowBits( sal_Bool bButtons );
- void Refresh( USHORT nType = 0 );
+ void Refresh( sal_uInt16 nType = 0 );
void ToggleRoot();
- void SetRootType( USHORT nNew );
- USHORT GetRootType() const { return nRootType; }
+ void SetRootType( sal_uInt16 nNew );
+ sal_uInt16 GetRootType() const { return nRootType; }
void ActiveDocChanged();
void ResetManualDoc();
void SetManualDoc(const String& rName);
- BOOL LoadFile(const String& rUrl);
+ sal_Bool LoadFile(const String& rUrl);
void SelectDoc(const String& rName);
const String& GetHiddenTitle() const { return aHiddenTitle; }
@@ -158,7 +158,7 @@ public:
/** Stores the current listbox state in the navigator settings. */
void StoreSettings() const;
- static BOOL IsInDrag() { return bIsInDrag; }
+ static sal_Bool IsInDrag() { return bIsInDrag; }
};
diff --git a/sc/source/ui/inc/corodlg.hxx b/sc/source/ui/inc/corodlg.hxx
index fcf692500351..87662e0f3da1 100644
--- a/sc/source/ui/inc/corodlg.hxx
+++ b/sc/source/ui/inc/corodlg.hxx
@@ -42,8 +42,8 @@ class ScColRowLabelDlg : public ModalDialog
{
public:
ScColRowLabelDlg( Window* pParent,
- BOOL bCol = FALSE,
- BOOL bRow = FALSE )
+ sal_Bool bCol = false,
+ sal_Bool bRow = false )
: ModalDialog( pParent, ScResId( RID_SCDLG_CHARTCOLROW ) ),
aFlColRow ( this, ScResId(6) ),
aBtnRow ( this, ScResId(2) ),
@@ -57,8 +57,8 @@ public:
aBtnRow.Check( bRow );
}
- BOOL IsCol() { return aBtnCol.IsChecked(); }
- BOOL IsRow() { return aBtnRow.IsChecked(); }
+ sal_Bool IsCol() { return aBtnCol.IsChecked(); }
+ sal_Bool IsRow() { return aBtnRow.IsChecked(); }
private:
FixedLine aFlColRow;
diff --git a/sc/source/ui/inc/crdlg.hxx b/sc/source/ui/inc/crdlg.hxx
index 544926756286..648544ee117f 100644
--- a/sc/source/ui/inc/crdlg.hxx
+++ b/sc/source/ui/inc/crdlg.hxx
@@ -31,7 +31,7 @@
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include "scui_def.hxx"
@@ -43,7 +43,7 @@ public:
ScColOrRowDlg( Window* pParent,
const String& rStrTitle,
const String& rStrLabel,
- BOOL bColDefault = TRUE );
+ sal_Bool bColDefault = sal_True );
~ScColOrRowDlg();
private:
diff --git a/sc/source/ui/inc/crnrdlg.hxx b/sc/source/ui/inc/crnrdlg.hxx
index 8a8540bbd5d8..7c5c58b9bc5d 100644
--- a/sc/source/ui/inc/crnrdlg.hxx
+++ b/sc/source/ui/inc/crnrdlg.hxx
@@ -51,9 +51,9 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
FixedLine aFlAssign;
@@ -84,15 +84,15 @@ private:
ScViewData* pViewData;
ScDocument* pDoc;
formula::RefEdit* pEdActive;
- BOOL bDlgLostFocus;
+ sal_Bool bDlgLostFocus;
#ifdef _CRNRDLG_CXX
private:
void Init ();
void UpdateNames ();
- void UpdateRangeData ( const ScRange& rRange, BOOL bColName );
- void SetColRowData( const ScRange& rLabelRange,BOOL bRef=FALSE);
- void AdjustColRowData( const ScRange& rDataRange,BOOL bRef=FALSE);
+ void UpdateRangeData ( const ScRange& rRange, sal_Bool bColName );
+ void SetColRowData( const ScRange& rLabelRange,sal_Bool bRef=false);
+ void AdjustColRowData( const ScRange& rDataRange,sal_Bool bRef=false);
DECL_LINK( CancelBtnHdl, void * );
DECL_LINK( OkBtnHdl, void * );
DECL_LINK( AddBtnHdl, void * );
diff --git a/sc/source/ui/inc/csvruler.hxx b/sc/source/ui/inc/csvruler.hxx
index 3d2d01da8b0f..c0c1f99cc5da 100644
--- a/sc/source/ui/inc/csvruler.hxx
+++ b/sc/source/ui/inc/csvruler.hxx
@@ -78,7 +78,7 @@ public:
virtual void SetPosSizePixel(
long nX, long nY,
long nWidth, long nHeight,
- USHORT nFlags = WINDOW_POSSIZE_ALL );
+ sal_uInt16 nFlags = WINDOW_POSSIZE_ALL );
/** Apply current layout data to the ruler. */
void ApplyLayout( const ScCsvLayoutData& rOldData );
@@ -90,7 +90,7 @@ private:
SC_DLLPRIVATE void InitSizeData();
/** Moves cursor to a new position.
- @param bScroll TRUE = The method may scroll the ruler. */
+ @param bScroll sal_True = The method may scroll the ruler. */
SC_DLLPRIVATE void MoveCursor( sal_Int32 nPos, bool bScroll = true );
/** Moves cursor to the given direction. */
SC_DLLPRIVATE void MoveCursorRel( ScMoveMode eDir );
@@ -151,7 +151,7 @@ private:
/** Moves tracking to a new position. */
SC_DLLPRIVATE void MoveMouseTracking( sal_Int32 nPos );
/** Applies tracking action for the current tracking position.
- @param bApply TRUE = apply action, FALSE = cancel action. */
+ @param bApply sal_True = apply action, sal_False = cancel action. */
SC_DLLPRIVATE void EndMouseTracking( bool bApply );
// painting ---------------------------------------------------------------
diff --git a/sc/source/ui/inc/dapitype.hxx b/sc/source/ui/inc/dapitype.hxx
index 6c3ba731a342..54eefe20f520 100644
--- a/sc/source/ui/inc/dapitype.hxx
+++ b/sc/source/ui/inc/dapitype.hxx
@@ -52,7 +52,7 @@ private:
HelpButton aBtnHelp;
public:
- ScDataPilotSourceTypeDlg( Window* pParent, BOOL bEnableExternal );
+ ScDataPilotSourceTypeDlg( Window* pParent, sal_Bool bEnableExternal );
~ScDataPilotSourceTypeDlg();
bool IsDatabase() const;
diff --git a/sc/source/ui/inc/datafdlg.hxx b/sc/source/ui/inc/datafdlg.hxx
index b9a338ff0289..5742e7ac8550 100644
--- a/sc/source/ui/inc/datafdlg.hxx
+++ b/sc/source/ui/inc/datafdlg.hxx
@@ -81,7 +81,7 @@ private:
SCROW nStartRow;
SCROW nEndRow;
SCTAB nTab;
- BOOL bNoSelection;
+ sal_Bool bNoSelection;
FixedText** pFixedTexts;
Edit** pEdits;
diff --git a/sc/source/ui/inc/dbdocfun.hxx b/sc/source/ui/inc/dbdocfun.hxx
index aad57b0502f1..132eb9a3750b 100644
--- a/sc/source/ui/inc/dbdocfun.hxx
+++ b/sc/source/ui/inc/dbdocfun.hxx
@@ -82,42 +82,42 @@ public:
void UpdateImport( const String& rTarget, const String& rDBName,
const String& rTableName, const String& rStatement,
- BOOL bNative, BYTE nType,
+ sal_Bool bNative, sal_uInt8 nType,
const ::com::sun::star::uno::Reference<
::com::sun::star::sdbc::XResultSet >& xResultSet,
const SbaSelectionList* pSelection );
- BOOL DoImport( SCTAB nTab, const ScImportParam& rParam,
+ sal_Bool DoImport( SCTAB nTab, const ScImportParam& rParam,
const ::com::sun::star::uno::Reference<
::com::sun::star::sdbc::XResultSet >& xResultSet,
- const SbaSelectionList* pSelection, BOOL bRecord,
- BOOL bAddrInsert = FALSE );
+ const SbaSelectionList* pSelection, sal_Bool bRecord,
+ sal_Bool bAddrInsert = false );
- BOOL DoImportUno( const ScAddress& rPos,
+ sal_Bool DoImportUno( const ScAddress& rPos,
const com::sun::star::uno::Sequence<
com::sun::star::beans::PropertyValue>& aArgs );
static void ShowInBeamer( const ScImportParam& rParam, SfxViewFrame* pFrame );
- BOOL Sort( SCTAB nTab, const ScSortParam& rSortParam,
- BOOL bRecord, BOOL bPaint, BOOL bApi );
+ sal_Bool Sort( SCTAB nTab, const ScSortParam& rSortParam,
+ sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi );
- SC_DLLPUBLIC BOOL Query( SCTAB nTab, const ScQueryParam& rQueryParam,
- const ScRange* pAdvSource, BOOL bRecord, BOOL bApi );
+ SC_DLLPUBLIC sal_Bool Query( SCTAB nTab, const ScQueryParam& rQueryParam,
+ const ScRange* pAdvSource, sal_Bool bRecord, sal_Bool bApi );
- BOOL DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam,
+ sal_Bool DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam,
const ScSortParam* pForceNewSort,
- BOOL bRecord, BOOL bApi );
+ sal_Bool bRecord, sal_Bool bApi );
- BOOL AddDBRange( const String& rName, const ScRange& rRange, BOOL bApi );
- BOOL DeleteDBRange( const String& rName, BOOL bApi );
- BOOL RenameDBRange( const String& rOld, const String& rNew, BOOL bApi );
- BOOL ModifyDBData( const ScDBData& rNewData, BOOL bApi ); // Name unveraendert
+ sal_Bool AddDBRange( const String& rName, const ScRange& rRange, sal_Bool bApi );
+ sal_Bool DeleteDBRange( const String& rName, sal_Bool bApi );
+ sal_Bool RenameDBRange( const String& rOld, const String& rNew, sal_Bool bApi );
+ sal_Bool ModifyDBData( const ScDBData& rNewData, sal_Bool bApi ); // Name unveraendert
- BOOL RepeatDB( const String& rDBName, BOOL bRecord, BOOL bApi );
+ sal_Bool RepeatDB( const String& rDBName, sal_Bool bRecord, sal_Bool bApi );
- BOOL DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewObj,
- BOOL bRecord, BOOL bApi, BOOL bAllowMove = FALSE );
+ sal_Bool DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewObj,
+ sal_Bool bRecord, sal_Bool bApi, sal_Bool bAllowMove = false );
};
diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx
index 6c04731e341f..823b4509fcc5 100644
--- a/sc/source/ui/inc/dbfunc.hxx
+++ b/sc/source/ui/inc/dbfunc.hxx
@@ -58,37 +58,37 @@ public:
// nur UISort wiederholt bei Bedarf die Teilergebnisse
void UISort( const ScSortParam& rSortParam,
- BOOL bRecord = TRUE );
+ sal_Bool bRecord = sal_True );
void Sort( const ScSortParam& rSortParam,
- BOOL bRecord = TRUE, BOOL bPaint = TRUE );
+ sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True );
SC_DLLPUBLIC void Query( const ScQueryParam& rQueryParam,
- const ScRange* pAdvSource, BOOL bRecord );
- void DoSubTotals( const ScSubTotalParam& rParam, BOOL bRecord = TRUE,
+ const ScRange* pAdvSource, sal_Bool bRecord );
+ void DoSubTotals( const ScSubTotalParam& rParam, sal_Bool bRecord = sal_True,
const ScSortParam* pForceNewSort = NULL );
void ToggleAutoFilter();
void HideAutoFilter();
- void RepeatDB( BOOL bRecord = TRUE );
+ void RepeatDB( sal_Bool bRecord = sal_True );
- BOOL ImportData( const ScImportParam& rParam, BOOL bRecord = TRUE );
+ sal_Bool ImportData( const ScImportParam& rParam, sal_Bool bRecord = sal_True );
void GotoDBArea( const String& rDBName );
// DB-Bereich vom Cursor
- ScDBData* GetDBData( BOOL bMarkArea = TRUE, ScGetDBMode eMode = SC_DB_MAKE, ScGetDBSelection eSel = SC_DBSEL_KEEP, bool bShrinkToData = false, bool bExpandRows = false );
+ ScDBData* GetDBData( sal_Bool bMarkArea = true, ScGetDBMode eMode = SC_DB_MAKE, ScGetDBSelection eSel = SC_DBSEL_KEEP, bool bShrinkToData = false, bool bExpandRows = false );
void NotifyCloseDbNameDlg( const ScDBCollection& rNewColl, const List& rDelAreaList );
- void Consolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE );
+ void Consolidate( const ScConsolidateParam& rParam, sal_Bool bRecord = sal_True );
- bool MakePivotTable( const ScDPSaveData& rData, const ScRange& rDest, BOOL bNewTable,
- const ScDPObject& rSource, BOOL bApi = FALSE );
+ bool MakePivotTable( const ScDPSaveData& rData, const ScRange& rDest, sal_Bool bNewTable,
+ const ScDPObject& rSource, sal_Bool bApi = false );
void DeletePivotTable();
void RecalcPivotTable();
- BOOL HasSelectionForDateGroup( ScDPNumGroupInfo& rOldInfo, sal_Int32& rParts );
- BOOL HasSelectionForNumGroup( ScDPNumGroupInfo& rOldInfo );
+ sal_Bool HasSelectionForDateGroup( ScDPNumGroupInfo& rOldInfo, sal_Int32& rParts );
+ sal_Bool HasSelectionForNumGroup( ScDPNumGroupInfo& rOldInfo );
void GroupDataPilot();
void DateGroupDataPilot( const ScDPNumGroupInfo& rInfo, sal_Int32 nParts );
void NumGroupDataPilot( const ScDPNumGroupInfo& rInfo );
@@ -96,35 +96,35 @@ public:
void DataPilotInput( const ScAddress& rPos, const String& rString );
bool DataPilotSort( const ScAddress& rPos, bool bAscending, sal_uInt16* pUserListId = NULL );
- BOOL DataPilotMove( const ScRange& rSource, const ScAddress& rDest );
+ sal_Bool DataPilotMove( const ScRange& rSource, const ScAddress& rDest );
- BOOL HasSelectionForDrillDown( USHORT& rOrientation );
- void SetDataPilotDetails( BOOL bShow, const String* pNewDimensionName = NULL );
+ sal_Bool HasSelectionForDrillDown( sal_uInt16& rOrientation );
+ void SetDataPilotDetails( sal_Bool bShow, const String* pNewDimensionName = NULL );
void ShowDataPilotSourceData( ScDPObject& rDPObj,
const ::com::sun::star::uno::Sequence< ::com::sun::star::sheet::DataPilotFieldFilter >& rFilters );
- void MakeOutline( BOOL bColumns, BOOL bRecord = TRUE );
- void RemoveOutline( BOOL bColumns, BOOL bRecord = TRUE );
- void RemoveAllOutlines( BOOL bRecord = TRUE );
- void TestRemoveOutline( BOOL& rCol, BOOL& rRow );
+ void MakeOutline( sal_Bool bColumns, sal_Bool bRecord = sal_True );
+ void RemoveOutline( sal_Bool bColumns, sal_Bool bRecord = sal_True );
+ void RemoveAllOutlines( sal_Bool bRecord = sal_True );
+ void TestRemoveOutline( sal_Bool& rCol, sal_Bool& rRow );
- void AutoOutline( BOOL bRecord = TRUE );
+ void AutoOutline( sal_Bool bRecord = sal_True );
- void SelectLevel( BOOL bColumns, USHORT nLevel,
- BOOL bRecord = TRUE, BOOL bPaint = TRUE );
- void ShowOutline( BOOL bColumns, USHORT nLevel, USHORT nEntry,
- BOOL bRecord = TRUE, BOOL bPaint = TRUE );
- void HideOutline( BOOL bColumns, USHORT nLevel, USHORT nEntry,
- BOOL bRecord = TRUE, BOOL bPaint = TRUE );
+ void SelectLevel( sal_Bool bColumns, sal_uInt16 nLevel,
+ sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True );
+ void ShowOutline( sal_Bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry,
+ sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True );
+ void HideOutline( sal_Bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry,
+ sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True );
- void ShowMarkedOutlines( BOOL bRecord = TRUE );
- void HideMarkedOutlines( BOOL bRecord = TRUE );
- BOOL OutlinePossible(BOOL bHide);
+ void ShowMarkedOutlines( sal_Bool bRecord = sal_True );
+ void HideMarkedOutlines( sal_Bool bRecord = sal_True );
+ sal_Bool OutlinePossible(sal_Bool bHide);
- void UpdateCharts(BOOL bAllCharts = FALSE); // Default: am Cursor
+ void UpdateCharts(sal_Bool bAllCharts = false); // Default: am Cursor
- static USHORT DoUpdateCharts( const ScAddress& rPos, ScDocument* pDoc, BOOL bAllCharts );
+ static sal_uInt16 DoUpdateCharts( const ScAddress& rPos, ScDocument* pDoc, sal_Bool bAllCharts );
};
diff --git a/sc/source/ui/inc/dbnamdlg.hxx b/sc/source/ui/inc/dbnamdlg.hxx
index cd7f757f3937..a2df8f728379 100644
--- a/sc/source/ui/inc/dbnamdlg.hxx
+++ b/sc/source/ui/inc/dbnamdlg.hxx
@@ -53,9 +53,9 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
FixedLine aFlName;
@@ -80,7 +80,7 @@ private:
PushButton aBtnRemove;
MoreButton aBtnMore;
- BOOL bSaved;
+ sal_Bool bSaved;
const String aStrAdd; // "Hinzufuegen"
@@ -93,7 +93,7 @@ private:
ScViewData* pViewData;
ScDocument* pDoc;
- BOOL bRefInputMode;
+ sal_Bool bRefInputMode;
ScAddress::Details aAddrDetails;
ScDBCollection aLocalDbCol;
diff --git a/sc/source/ui/inc/delcldlg.hxx b/sc/source/ui/inc/delcldlg.hxx
index e1bbcc0f9b59..59cb84e5f3a7 100644
--- a/sc/source/ui/inc/delcldlg.hxx
+++ b/sc/source/ui/inc/delcldlg.hxx
@@ -31,7 +31,7 @@
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
@@ -53,7 +53,7 @@ private:
public:
- ScDeleteCellDlg( Window* pParent, BOOL bDisallowCellMove = FALSE );
+ ScDeleteCellDlg( Window* pParent, sal_Bool bDisallowCellMove = false );
~ScDeleteCellDlg();
DelCellCmd GetDelCellCmd() const;
diff --git a/sc/source/ui/inc/delcodlg.hxx b/sc/source/ui/inc/delcodlg.hxx
index 15050229b507..d7a203f75dea 100644
--- a/sc/source/ui/inc/delcodlg.hxx
+++ b/sc/source/ui/inc/delcodlg.hxx
@@ -31,7 +31,7 @@
#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include "global.hxx"
//------------------------------------------------------------------------
@@ -52,21 +52,21 @@ private:
CancelButton aBtnCancel;
HelpButton aBtnHelp;
- BOOL bObjectsDisabled;
+ sal_Bool bObjectsDisabled;
- static BOOL bPreviousAllCheck;
- static USHORT nPreviousChecks;
+ static sal_Bool bPreviousAllCheck;
+ static sal_uInt16 nPreviousChecks;
- void DisableChecks( BOOL bDelAllChecked = TRUE );
+ void DisableChecks( sal_Bool bDelAllChecked = sal_True );
DECL_LINK( DelAllHdl, void * );
public:
ScDeleteContentsDlg( Window* pParent,
- USHORT nCheckDefaults = 0 );
+ sal_uInt16 nCheckDefaults = 0 );
~ScDeleteContentsDlg();
void DisableObjects();
- USHORT GetDelContentsCmdBits() const;
+ sal_uInt16 GetDelContentsCmdBits() const;
};
diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx
index 8fb4fcd83e76..0719b640072b 100644
--- a/sc/source/ui/inc/docfunc.hxx
+++ b/sc/source/ui/inc/docfunc.hxx
@@ -59,11 +59,11 @@ class ScDocFunc
private:
ScDocShell& rDocShell;
- BOOL AdjustRowHeight( const ScRange& rRange, BOOL bPaint = TRUE );
+ sal_Bool AdjustRowHeight( const ScRange& rRange, sal_Bool bPaint = true );
void CreateOneName( ScRangeName& rList,
SCCOL nPosX, SCROW nPosY, SCTAB nTab,
SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
- BOOL& rCancel, BOOL bApi );
+ sal_Bool& rCancel, sal_Bool bApi );
void NotifyInputHandler( const ScAddress& rPos );
public:
@@ -72,29 +72,29 @@ public:
DECL_LINK( NotifyDrawUndo, SdrUndoAction* );
- BOOL DetectiveAddPred(const ScAddress& rPos);
- BOOL DetectiveDelPred(const ScAddress& rPos);
- BOOL DetectiveAddSucc(const ScAddress& rPos);
- BOOL DetectiveDelSucc(const ScAddress& rPos);
- BOOL DetectiveAddError(const ScAddress& rPos);
- BOOL DetectiveMarkInvalid(SCTAB nTab);
- BOOL DetectiveDelAll(SCTAB nTab);
- BOOL DetectiveRefresh(BOOL bAutomatic = FALSE);
+ sal_Bool DetectiveAddPred(const ScAddress& rPos);
+ sal_Bool DetectiveDelPred(const ScAddress& rPos);
+ sal_Bool DetectiveAddSucc(const ScAddress& rPos);
+ sal_Bool DetectiveDelSucc(const ScAddress& rPos);
+ sal_Bool DetectiveAddError(const ScAddress& rPos);
+ sal_Bool DetectiveMarkInvalid(SCTAB nTab);
+ sal_Bool DetectiveDelAll(SCTAB nTab);
+ sal_Bool DetectiveRefresh(sal_Bool bAutomatic = false);
void DetectiveCollectAllPreds(const ScRangeList& rSrcRanges, ::std::vector<ScTokenRef>& rRefTokens);
void DetectiveCollectAllSuccs(const ScRangeList& rSrcRanges, ::std::vector<ScTokenRef>& rRefTokens);
- BOOL DeleteContents( const ScMarkData& rMark, USHORT nFlags,
- BOOL bRecord, BOOL bApi );
+ sal_Bool DeleteContents( const ScMarkData& rMark, sal_uInt16 nFlags,
+ sal_Bool bRecord, sal_Bool bApi );
- BOOL TransliterateText( const ScMarkData& rMark, sal_Int32 nType,
- BOOL bRecord, BOOL bApi );
+ sal_Bool TransliterateText( const ScMarkData& rMark, sal_Int32 nType,
+ sal_Bool bRecord, sal_Bool bApi );
- BOOL SetNormalString( const ScAddress& rPos, const String& rText, BOOL bApi );
- BOOL PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, BOOL bApi );
- BOOL PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine,
- BOOL bInterpret, BOOL bApi );
- BOOL SetCellText( const ScAddress& rPos, const String& rText,
- BOOL bInterpret, BOOL bEnglish, BOOL bApi,
+ sal_Bool SetNormalString( const ScAddress& rPos, const String& rText, sal_Bool bApi );
+ sal_Bool PutCell( const ScAddress& rPos, ScBaseCell* pNewCell, sal_Bool bApi );
+ sal_Bool PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine,
+ sal_Bool bInterpret, sal_Bool bApi );
+ sal_Bool SetCellText( const ScAddress& rPos, const String& rText,
+ sal_Bool bInterpret, sal_Bool bEnglish, sal_Bool bApi,
const String& rFormulaNmsp,
const formula::FormulaGrammar::Grammar eGrammar );
@@ -105,91 +105,91 @@ public:
bool ShowNote( const ScAddress& rPos, bool bShow = true );
inline bool HideNote( const ScAddress& rPos ) { return ShowNote( rPos, false ); }
- bool SetNoteText( const ScAddress& rPos, const String& rNoteText, BOOL bApi );
- bool ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor, const String* pDate, BOOL bApi );
+ bool SetNoteText( const ScAddress& rPos, const String& rNoteText, sal_Bool bApi );
+ bool ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor, const String* pDate, sal_Bool bApi );
- BOOL ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& rPattern,
- BOOL bRecord, BOOL bApi );
- BOOL ApplyStyle( const ScMarkData& rMark, const String& rStyleName,
- BOOL bRecord, BOOL bApi );
+ sal_Bool ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& rPattern,
+ sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool ApplyStyle( const ScMarkData& rMark, const String& rStyleName,
+ sal_Bool bRecord, sal_Bool bApi );
- BOOL InsertCells( const ScRange& rRange,const ScMarkData* pTabMark,
- InsCellCmd eCmd, BOOL bRecord, BOOL bApi,
- BOOL bPartOfPaste = FALSE );
- BOOL DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark,
- DelCellCmd eCmd, BOOL bRecord, BOOL bApi );
+ sal_Bool InsertCells( const ScRange& rRange,const ScMarkData* pTabMark,
+ InsCellCmd eCmd, sal_Bool bRecord, sal_Bool bApi,
+ sal_Bool bPartOfPaste = false );
+ sal_Bool DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark,
+ DelCellCmd eCmd, sal_Bool bRecord, sal_Bool bApi );
- BOOL MoveBlock( const ScRange& rSource, const ScAddress& rDestPos,
- BOOL bCut, BOOL bRecord, BOOL bPaint, BOOL bApi );
+ sal_Bool MoveBlock( const ScRange& rSource, const ScAddress& rDestPos,
+ sal_Bool bCut, sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi );
- BOOL InsertTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi );
- BOOL RenameTable( SCTAB nTab, const String& rName, BOOL bRecord, BOOL bApi );
- BOOL DeleteTable( SCTAB nTab, BOOL bRecord, BOOL bApi );
+ sal_Bool InsertTable( SCTAB nTab, const String& rName, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool RenameTable( SCTAB nTab, const String& rName, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool DeleteTable( SCTAB nTab, sal_Bool bRecord, sal_Bool bApi );
bool SetTabBgColor( SCTAB nTab, const Color& rColor, bool bRecord, bool bApi );
bool SetTabBgColor( ScUndoTabColorInfo::List& rUndoTabColorList, bool bRecord, bool bApi );
- BOOL SetTableVisible( SCTAB nTab, BOOL bVisible, BOOL bApi );
+ sal_Bool SetTableVisible( SCTAB nTab, sal_Bool bVisible, sal_Bool bApi );
- BOOL SetLayoutRTL( SCTAB nTab, BOOL bRTL, BOOL bApi );
+ sal_Bool SetLayoutRTL( SCTAB nTab, sal_Bool bRTL, sal_Bool bApi );
- SC_DLLPUBLIC BOOL SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges,
- SCTAB nTab, ScSizeMode eMode, USHORT nSizeTwips,
- BOOL bRecord, BOOL bApi );
+ SC_DLLPUBLIC sal_Bool SetWidthOrHeight( sal_Bool bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges,
+ SCTAB nTab, ScSizeMode eMode, sal_uInt16 nSizeTwips,
+ sal_Bool bRecord, sal_Bool bApi );
- BOOL InsertPageBreak( BOOL bColumn, const ScAddress& rPos,
- BOOL bRecord, BOOL bSetModified, BOOL bApi );
- BOOL RemovePageBreak( BOOL bColumn, const ScAddress& rPos,
- BOOL bRecord, BOOL bSetModified, BOOL bApi );
+ sal_Bool InsertPageBreak( sal_Bool bColumn, const ScAddress& rPos,
+ sal_Bool bRecord, sal_Bool bSetModified, sal_Bool bApi );
+ sal_Bool RemovePageBreak( sal_Bool bColumn, const ScAddress& rPos,
+ sal_Bool bRecord, sal_Bool bSetModified, sal_Bool bApi );
void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect );
- BOOL Protect( SCTAB nTab, const String& rPassword, BOOL bApi );
- BOOL Unprotect( SCTAB nTab, const String& rPassword, BOOL bApi );
+ sal_Bool Protect( SCTAB nTab, const String& rPassword, sal_Bool bApi );
+ sal_Bool Unprotect( SCTAB nTab, const String& rPassword, sal_Bool bApi );
- BOOL ClearItems( const ScMarkData& rMark, const USHORT* pWhich, BOOL bApi );
- BOOL ChangeIndent( const ScMarkData& rMark, BOOL bIncrement, BOOL bApi );
- BOOL AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark,
- USHORT nFormatNo, BOOL bRecord, BOOL bApi );
+ sal_Bool ClearItems( const ScMarkData& rMark, const sal_uInt16* pWhich, sal_Bool bApi );
+ sal_Bool ChangeIndent( const ScMarkData& rMark, sal_Bool bIncrement, sal_Bool bApi );
+ sal_Bool AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark,
+ sal_uInt16 nFormatNo, sal_Bool bRecord, sal_Bool bApi );
- BOOL EnterMatrix( const ScRange& rRange, const ScMarkData* pTabMark,
+ sal_Bool EnterMatrix( const ScRange& rRange, const ScMarkData* pTabMark,
const ScTokenArray* pTokenArray,
- const String& rString, BOOL bApi, BOOL bEnglish,
+ const String& rString, sal_Bool bApi, sal_Bool bEnglish,
const String& rFormulaNmsp,
const formula::FormulaGrammar::Grammar );
- BOOL TabOp( const ScRange& rRange, const ScMarkData* pTabMark,
- const ScTabOpParam& rParam, BOOL bRecord, BOOL bApi );
+ sal_Bool TabOp( const ScRange& rRange, const ScMarkData* pTabMark,
+ const ScTabOpParam& rParam, sal_Bool bRecord, sal_Bool bApi );
- BOOL FillSimple( const ScRange& rRange, const ScMarkData* pTabMark,
- FillDir eDir, BOOL bRecord, BOOL bApi );
- BOOL FillSeries( const ScRange& rRange, const ScMarkData* pTabMark,
+ sal_Bool FillSimple( const ScRange& rRange, const ScMarkData* pTabMark,
+ FillDir eDir, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool FillSeries( const ScRange& rRange, const ScMarkData* pTabMark,
FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd,
double fStart, double fStep, double fMax,
- BOOL bRecord, BOOL bApi );
+ sal_Bool bRecord, sal_Bool bApi );
// FillAuto: rRange wird von Source-Range auf Dest-Range angepasst
- SC_DLLPUBLIC BOOL FillAuto( ScRange& rRange, const ScMarkData* pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, ULONG nCount, double fStep, double fMax, BOOL bRecord, BOOL bApi );
+ SC_DLLPUBLIC sal_Bool FillAuto( ScRange& rRange, const ScMarkData* pTabMark, FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd, sal_uLong nCount, double fStep, double fMax, sal_Bool bRecord, sal_Bool bApi );
- BOOL FillAuto( ScRange& rRange, const ScMarkData* pTabMark,
- FillDir eDir, ULONG nCount, BOOL bRecord, BOOL bApi );
+ sal_Bool FillAuto( ScRange& rRange, const ScMarkData* pTabMark,
+ FillDir eDir, sal_uLong nCount, sal_Bool bRecord, sal_Bool bApi );
- BOOL ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd, BOOL bApi );
+ sal_Bool ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd, sal_Bool bApi );
- BOOL MergeCells( const ScCellMergeOption& rOption, BOOL bContents,
- BOOL bRecord, BOOL bApi );
- BOOL UnmergeCells( const ScRange& rRange, BOOL bRecord, BOOL bApi );
- bool UnmergeCells( const ScCellMergeOption& rOption, BOOL bRecord, BOOL bApi );
+ sal_Bool MergeCells( const ScCellMergeOption& rOption, sal_Bool bContents,
+ sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool UnmergeCells( const ScRange& rRange, sal_Bool bRecord, sal_Bool bApi );
+ bool UnmergeCells( const ScCellMergeOption& rOption, sal_Bool bRecord, sal_Bool bApi );
bool SetNewRangeNames( ScRangeName* pNewRanges, bool bModifyDoc = true ); // takes ownership of pNewRanges
bool ModifyRangeNames( const ScRangeName& rNewRanges );
- BOOL CreateNames( const ScRange& rRange, USHORT nFlags, BOOL bApi );
- BOOL InsertNameList( const ScAddress& rStartPos, BOOL bApi );
+ sal_Bool CreateNames( const ScRange& rRange, sal_uInt16 nFlags, sal_Bool bApi );
+ sal_Bool InsertNameList( const ScAddress& rStartPos, sal_Bool bApi );
- BOOL InsertAreaLink( const String& rFile, const String& rFilter,
+ sal_Bool InsertAreaLink( const String& rFile, const String& rFilter,
const String& rOptions, const String& rSource,
- const ScRange& rDestRange, ULONG nRefresh,
- BOOL bFitBlock, BOOL bApi );
+ const ScRange& rDestRange, sal_uLong nRefresh,
+ sal_Bool bFitBlock, sal_Bool bApi );
};
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index a88cbf575376..4f3cefbd68a6 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -50,7 +50,6 @@
class ScEditEngineDefaulter;
class FontList;
-class PrintDialog;
class SfxStyleSheetBasePool;
class SfxStyleSheetHint;
struct ChartSelectionInfo;
@@ -79,7 +78,7 @@ struct ScColWidthParam;
namespace sfx2 { class FileDialogHelper; }
struct DocShell_Impl;
-typedef ::boost::unordered_map< ULONG, ULONG > ScChangeActionMergeMap;
+typedef ::boost::unordered_map< sal_uLong, sal_uLong > ScChangeActionMergeMap;
//==================================================================
@@ -107,16 +106,16 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener
//SfxObjectCreateMode eShellMode;
- BOOL bIsInplace; // wird von der View gesetzt
- BOOL bHeaderOn;
- BOOL bFooterOn;
- BOOL bNoInformLost;
- BOOL bIsEmpty;
- BOOL bIsInUndo;
- BOOL bDocumentModifiedPending;
- USHORT nDocumentLock;
+ sal_Bool bIsInplace; // wird von der View gesetzt
+ sal_Bool bHeaderOn;
+ sal_Bool bFooterOn;
+ sal_Bool bNoInformLost;
+ sal_Bool bIsEmpty;
+ sal_Bool bIsInUndo;
+ sal_Bool bDocumentModifiedPending;
+ sal_uInt16 nDocumentLock;
sal_Int16 nCanUpdate; // stores the UpdateDocMode from loading a document till update links
- BOOL bUpdateEnabled;
+ sal_Bool bUpdateEnabled;
ScDBData* pOldAutoDBRange;
@@ -150,23 +149,23 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener
ScDocShell & mrDocShell;
};
- SC_DLLPRIVATE BOOL LoadXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
- SC_DLLPRIVATE BOOL SaveXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
+ SC_DLLPRIVATE sal_Bool LoadXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
+ SC_DLLPRIVATE sal_Bool SaveXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
SC_DLLPRIVATE SCTAB GetSaveTab();
- SC_DLLPRIVATE ULONG DBaseImport( const String& rFullFileName, CharSet eCharSet,
+ SC_DLLPRIVATE sal_uLong DBaseImport( const String& rFullFileName, CharSet eCharSet,
ScColWidthParam aColWidthParam[MAXCOLCOUNT], ScFlatBoolRowSegments& rRowHeightsRecalc );
- SC_DLLPRIVATE ULONG DBaseExport( const String& rFullFileName, CharSet eCharSet,
- BOOL& bHasMemo );
+ SC_DLLPRIVATE sal_uLong DBaseExport( const String& rFullFileName, CharSet eCharSet,
+ sal_Bool& bHasMemo );
- SC_DLLPRIVATE static BOOL MoveFile( const INetURLObject& rSource, const INetURLObject& rDest );
- SC_DLLPRIVATE static BOOL KillFile( const INetURLObject& rURL );
- SC_DLLPRIVATE static BOOL IsDocument( const INetURLObject& rURL );
+ SC_DLLPRIVATE static sal_Bool MoveFile( const INetURLObject& rSource, const INetURLObject& rDest );
+ SC_DLLPRIVATE static sal_Bool KillFile( const INetURLObject& rURL );
+ SC_DLLPRIVATE static sal_Bool IsDocument( const INetURLObject& rURL );
- SC_DLLPRIVATE void LockPaint_Impl(BOOL bDoc);
- SC_DLLPRIVATE void UnlockPaint_Impl(BOOL bDoc);
- SC_DLLPRIVATE void LockDocument_Impl(USHORT nNew);
- SC_DLLPRIVATE void UnlockDocument_Impl(USHORT nNew);
+ SC_DLLPRIVATE void LockPaint_Impl(sal_Bool bDoc);
+ SC_DLLPRIVATE void UnlockPaint_Impl(sal_Bool bDoc);
+ SC_DLLPRIVATE void LockDocument_Impl(sal_uInt16 nNew);
+ SC_DLLPRIVATE void UnlockDocument_Impl(sal_uInt16 nNew);
SC_DLLPRIVATE void EnableSharedSettings( bool bEnable );
SC_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > LoadSharedDocument();
@@ -188,14 +187,15 @@ public:
~ScDocShell();
using SotObject::GetInterface;
- using SfxShell::Activate; // with BOOL bMDI
- using SfxShell::Deactivate; // with BOOL bMDI
+ using SfxShell::Activate; // with sal_Bool bMDI
+ using SfxShell::Deactivate; // with sal_Bool bMDI
using SfxObjectShell::Print; // print styles
virtual void Activate();
virtual void Deactivate();
- virtual SfxUndoManager* GetUndoManager();
+ virtual ::svl::IUndoManager*
+ GetUndoManager();
virtual void FillClass( SvGlobalName * pClassName,
sal_uInt32 * pFormat,
@@ -203,40 +203,40 @@ public:
String * pFullTypeName,
String * pShortTypeName,
sal_Int32 nFileFormat,
- sal_Bool bTemplate = sal_False ) const;
-
- virtual BOOL InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
- virtual BOOL Load( SfxMedium& rMedium );
- virtual BOOL LoadFrom( SfxMedium& rMedium );
- virtual BOOL ConvertFrom( SfxMedium &rMedium );
- virtual BOOL Save();
- virtual BOOL SaveAs( SfxMedium& rMedium );
- virtual BOOL ConvertTo( SfxMedium &rMedium );
- virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE );
+ sal_Bool bTemplate = false ) const;
+
+ virtual sal_Bool InitNew( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
+ virtual sal_Bool Load( SfxMedium& rMedium );
+ virtual sal_Bool LoadFrom( SfxMedium& rMedium );
+ virtual sal_Bool ConvertFrom( SfxMedium &rMedium );
+ virtual sal_Bool Save();
+ virtual sal_Bool SaveAs( SfxMedium& rMedium );
+ virtual sal_Bool ConvertTo( SfxMedium &rMedium );
+ virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = false );
virtual void PrepareReload();
- virtual BOOL IsInformationLost();
+ virtual sal_Bool IsInformationLost();
virtual void LoadStyles( SfxObjectShell &rSource );
- virtual BOOL Insert( SfxObjectShell &rSource,
- USHORT nSourceIdx1, USHORT nSourceIdx2, USHORT nSourceIdx3,
- USHORT &nIdx1, USHORT &nIdx2, USHORT &nIdx3, USHORT &rIdxDeleted );
+ virtual sal_Bool Insert( SfxObjectShell &rSource,
+ sal_uInt16 nSourceIdx1, sal_uInt16 nSourceIdx2, sal_uInt16 nSourceIdx3,
+ sal_uInt16 &nIdx1, sal_uInt16 &nIdx2, sal_uInt16 &nIdx3, sal_uInt16 &rIdxDeleted );
- virtual BOOL SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& ); // SfxInPlaceObject
- virtual BOOL DoSaveCompleted( SfxMedium * pNewStor); // SfxObjectShell
- virtual sal_Bool QuerySlotExecutable( USHORT nSlotId );
+ virtual sal_Bool SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& ); // SfxInPlaceObject
+ virtual sal_Bool DoSaveCompleted( SfxMedium * pNewStor); // SfxObjectShell
+ virtual sal_Bool QuerySlotExecutable( sal_uInt16 nSlotId );
virtual void Draw( OutputDevice *, const JobSetup & rSetup,
- USHORT nAspect = ASPECT_CONTENT );
+ sal_uInt16 nAspect = ASPECT_CONTENT );
virtual void SetVisArea( const Rectangle & rVisArea );
using SfxObjectShell::GetVisArea;
- virtual Rectangle GetVisArea( USHORT nAspect ) const;
+ virtual Rectangle GetVisArea( sal_uInt16 nAspect ) const;
virtual Printer* GetDocumentPrinter();
- virtual void SetModified( BOOL = TRUE );
+ virtual void SetModified( sal_Bool = sal_True );
- void SetVisAreaOrSize( const Rectangle& rVisArea, BOOL bModifyStart );
+ void SetVisAreaOrSize( const Rectangle& rVisArea, sal_Bool bModifyStart );
virtual SfxDocumentInfoDialog* CreateDocumentInfoDialog( Window *pParent,
const SfxItemSet &rSet );
@@ -246,8 +246,8 @@ public:
ScDocument* GetDocument() { return &aDocument; }
ScDocFunc& GetDocFunc() { return *pDocFunc; }
- SfxPrinter* GetPrinter( BOOL bCreateIfNotExist = TRUE );
- USHORT SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL );
+ SfxPrinter* GetPrinter( sal_Bool bCreateIfNotExist = sal_True );
+ sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL );
void UpdateFontList();
@@ -266,63 +266,56 @@ public:
void GetStatePageStyle( SfxViewShell& rCaller, SfxItemSet& rSet, SCTAB nCurTab );
void CompareDocument( ScDocument& rOtherDoc );
- void MergeDocument( ScDocument& rOtherDoc, bool bShared = false, bool bCheckDuplicates = false, ULONG nOffset = 0, ScChangeActionMergeMap* pMergeMap = NULL, bool bInverseMap = false );
+ void MergeDocument( ScDocument& rOtherDoc, bool bShared = false, bool bCheckDuplicates = false, sal_uLong nOffset = 0, ScChangeActionMergeMap* pMergeMap = NULL, bool bInverseMap = false );
bool MergeSharedDocument( ScDocShell* pSharedDocShell );
ScChangeAction* GetChangeAction( const ScAddress& rPos );
void SetChangeComment( ScChangeAction* pAction, const String& rComment );
- void ExecuteChangeCommentDialog( ScChangeAction* pAction, Window* pParent,BOOL bPrevNext=TRUE );
+ void ExecuteChangeCommentDialog( ScChangeAction* pAction, Window* pParent,sal_Bool bPrevNext=sal_True );
/// Protect/unprotect ChangeTrack and return <TRUE/> if
/// protection was successfully changed.
- /// If bJustQueryIfProtected==TRUE protection is not
+ /// If bJustQueryIfProtected==sal_True protection is not
/// changed and <TRUE/> is returned if not protected or
/// password was entered correctly.
- BOOL ExecuteChangeProtectionDialog( Window* _pParent, BOOL bJustQueryIfProtected = FALSE );
+ sal_Bool ExecuteChangeProtectionDialog( Window* _pParent, sal_Bool bJustQueryIfProtected = false );
- void SetPrintZoom( SCTAB nTab, USHORT nScale, USHORT nPages );
- BOOL AdjustPrintZoom( const ScRange& rRange );
+ void SetPrintZoom( SCTAB nTab, sal_uInt16 nScale, sal_uInt16 nPages );
+ sal_Bool AdjustPrintZoom( const ScRange& rRange );
- void LoadStylesArgs( ScDocShell& rSource, BOOL bReplace, BOOL bCellStyles, BOOL bPageStyles );
+ void LoadStylesArgs( ScDocShell& rSource, sal_Bool bReplace, sal_Bool bCellStyles, sal_Bool bPageStyles );
- void PageStyleModified( const String& rStyleName, BOOL bApi );
+ void PageStyleModified( const String& rStyleName, sal_Bool bApi );
void NotifyStyle( const SfxStyleSheetHint& rHint );
void DoAutoStyle( const ScRange& rRange, const String& rStyle );
Window* GetActiveDialogParent();
- void ErrorMessage( USHORT nGlobStrId );
- BOOL IsEditable() const;
+ void ErrorMessage( sal_uInt16 nGlobStrId );
+ sal_Bool IsEditable() const;
- BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab );
+ sal_Bool AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab );
void UpdateAllRowHeights( const ScMarkData* pTabMark = NULL );
void UpdatePendingRowHeights( SCTAB nUpdateTab, bool bBefore = false );
void RefreshPivotTables( const ScRange& rSource );
- void DoConsolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE );
- void UseScenario( SCTAB nTab, const String& rName, BOOL bRecord = TRUE );
+ void DoConsolidate( const ScConsolidateParam& rParam, sal_Bool bRecord = sal_True );
+ void UseScenario( SCTAB nTab, const String& rName, sal_Bool bRecord = sal_True );
SCTAB MakeScenario( SCTAB nTab, const String& rName, const String& rComment,
- const Color& rColor, USHORT nFlags,
- ScMarkData& rMark, BOOL bRecord = TRUE );
+ const Color& rColor, sal_uInt16 nFlags,
+ ScMarkData& rMark, sal_Bool bRecord = sal_True );
void ModifyScenario( SCTAB nTab, const String& rName, const String& rComment,
- const Color& rColor, USHORT nFlags );
- ULONG TransferTab( ScDocShell& rSrcDocShell, SCTAB nSrcPos,
- SCTAB nDestPos, BOOL bInsertNew,
- BOOL bNotifyAndPaint );
+ const Color& rColor, sal_uInt16 nFlags );
+ sal_uLong TransferTab( ScDocShell& rSrcDocShell, SCTAB nSrcPos,
+ SCTAB nDestPos, sal_Bool bInsertNew,
+ sal_Bool bNotifyAndPaint );
- BOOL MoveTable( SCTAB nSrcTab, SCTAB nDestTab, BOOL bCopy, BOOL bRecord );
+ sal_Bool MoveTable( SCTAB nSrcTab, SCTAB nDestTab, sal_Bool bCopy, sal_Bool bRecord );
- void DoRecalc( BOOL bApi );
- void DoHardRecalc( BOOL bApi );
+ void DoRecalc( sal_Bool bApi );
+ void DoHardRecalc( sal_Bool bApi );
- bool CheckPrint( PrintDialog* pPrintDialog, ScMarkData* pMarkData,
- bool bForceSelected, bool bIsAPI );
- void PreparePrint( PrintDialog* pPrintDialog, ScMarkData* pMarkData );
- void Print( SfxProgress& rProgress, PrintDialog* pPrintDialog,
- ScMarkData* pMarkData, Window* pDialogParent,
- BOOL bForceSelected, BOOL bIsAPI );
-
- void UpdateOle( const ScViewData* pViewData, BOOL bSnapSize = FALSE );
- BOOL IsOle();
+ void UpdateOle( const ScViewData* pViewData, sal_Bool bSnapSize = false);
+ sal_Bool IsOle();
void DBAreaDeleted( SCTAB nTab, SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
ScDBData* GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGetDBSelection eSel );
@@ -331,35 +324,37 @@ public:
virtual void ReconnectDdeLink(SfxObjectShell& rServer);
void UpdateLinks(); // Link-Eintraege aktuallisieren
- BOOL ReloadTabLinks(); // Links ausfuehren (Inhalt aktualisieren)
+ sal_Bool ReloadTabLinks(); // Links ausfuehren (Inhalt aktualisieren)
virtual void CheckConfigOptions();
void PostEditView( ScEditEngineDefaulter* pEditEngine, const ScAddress& rCursorPos );
void PostPaint( SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab,
- SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, USHORT nPart,
- USHORT nExtFlags = 0 );
- void PostPaint( const ScRange& rRange, USHORT nPart, USHORT nExtFlags = 0 );
+ SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab, sal_uInt16 nPart,
+ sal_uInt16 nExtFlags = 0 );
+ void PostPaint( const ScRange& rRange, sal_uInt16 nPart, sal_uInt16 nExtFlags = 0 );
void PostPaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab );
void PostPaintCell( const ScAddress& rPos );
void PostPaintGridAll();
void PostPaintExtras();
+ bool IsPaintLocked() const { return pPaintLockData != NULL; }
+
void PostDataChanged();
- void UpdatePaintExt( USHORT& rExtFlags, SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab,
+ void UpdatePaintExt( sal_uInt16& rExtFlags, SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab,
SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab );
- void UpdatePaintExt( USHORT& rExtFlags, const ScRange& rRange );
+ void UpdatePaintExt( sal_uInt16& rExtFlags, const ScRange& rRange );
- void SetDocumentModified( BOOL bIsModified = TRUE );
- void SetDrawModified( BOOL bIsModified = TRUE );
+ void SetDocumentModified( sal_Bool bIsModified = sal_True );
+ void SetDrawModified( sal_Bool bIsModified = sal_True );
void LockPaint();
void UnlockPaint();
- USHORT GetLockCount() const;
- void SetLockCount(USHORT nNew);
+ sal_uInt16 GetLockCount() const;
+ void SetLockCount(sal_uInt16 nNew);
void LockDocument();
void UnlockDocument();
@@ -368,19 +363,19 @@ public:
virtual SfxStyleSheetBasePool* GetStyleSheetPool();
- void SetInplace( BOOL bInplace );
- BOOL IsEmpty() const;
- void SetEmpty(BOOL bSet);
+ void SetInplace( sal_Bool bInplace );
+ sal_Bool IsEmpty() const;
+ void SetEmpty(sal_Bool bSet);
- BOOL IsInUndo() const { return bIsInUndo; }
- void SetInUndo(BOOL bSet);
+ sal_Bool IsInUndo() const { return bIsInUndo; }
+ void SetInUndo(sal_Bool bSet);
void CalcOutputFactor();
double GetOutputFactor() const;
void GetPageOnFromPageStyleSet( const SfxItemSet* pStyleSet,
SCTAB nCurTab,
- BOOL& rbHeader,
- BOOL& rbFooter );
+ sal_Bool& rbHeader,
+ sal_Bool& rbFooter );
virtual long DdeGetData( const String& rItem, const String& rMimeType,
::com::sun::star::uno::Any & rValue );
@@ -392,17 +387,17 @@ public:
SfxBindings* GetViewBindings();
- ScTabViewShell* GetBestViewShell( BOOL bOnlyVisible = TRUE );
+ ScTabViewShell* GetBestViewShell( sal_Bool bOnlyVisible = sal_True );
ScSbxDocHelper* GetDocHelperObject() { return pDocHelper; }
- void SetDocumentModifiedPending( BOOL bVal )
+ void SetDocumentModifiedPending( sal_Bool bVal )
{ bDocumentModifiedPending = bVal; }
- BOOL IsDocumentModifiedPending() const
+ sal_Bool IsDocumentModifiedPending() const
{ return bDocumentModifiedPending; }
- BOOL IsUpdateEnabled() const
+ sal_Bool IsUpdateEnabled() const
{ return bUpdateEnabled; }
- void SetUpdateEnabled(BOOL bValue)
+ void SetUpdateEnabled(sal_Bool bValue)
{ bUpdateEnabled = bValue; }
OutputDevice* GetRefDevice(); // WYSIWYG: Printer, otherwise VirtualDevice...
@@ -410,7 +405,7 @@ public:
static ScViewData* GetViewData();
static SCTAB GetCurTab();
- static ScDocShell* GetShellByNum( USHORT nDocNo );
+ static ScDocShell* GetShellByNum( sal_uInt16 nDocNo );
static String GetOwnFilterName();
static String GetHtmlFilterName();
static String GetWebQueryFilterName();
@@ -418,7 +413,7 @@ public:
static String GetLotusFilterName();
static String GetDBaseFilterName();
static String GetDifFilterName();
- static BOOL HasAutomaticTableName( const String& rFilter );
+ static sal_Bool HasAutomaticTableName( const String& rFilter );
DECL_LINK( RefreshDBDataHdl, ScRefreshTimer* );
@@ -462,8 +457,8 @@ class SC_DLLPUBLIC ScDocShellModificator
{
ScDocShell& rDocShell;
ScRefreshTimerProtector aProtector;
- BOOL bAutoCalcShellDisabled;
- BOOL bIdleDisabled;
+ sal_Bool bAutoCalcShellDisabled;
+ sal_Bool bIdleDisabled;
// not implemented
ScDocShellModificator( const ScDocShellModificator& );
diff --git a/sc/source/ui/inc/dpcontrol.hxx b/sc/source/ui/inc/dpcontrol.hxx
index 489e6b23e05d..ec868b9e8ba0 100644
--- a/sc/source/ui/inc/dpcontrol.hxx
+++ b/sc/source/ui/inc/dpcontrol.hxx
@@ -115,7 +115,7 @@ public:
virtual void execute() = 0;
};
- explicit ScMenuFloatingWindow(Window* pParent, ScDocument* pDoc, USHORT nMenuStackLevel = 0);
+ explicit ScMenuFloatingWindow(Window* pParent, ScDocument* pDoc, sal_uInt16 nMenuStackLevel = 0);
virtual ~ScMenuFloatingWindow();
virtual void MouseMove(const MouseEvent& rMEvt);
diff --git a/sc/source/ui/inc/drawsh.hxx b/sc/source/ui/inc/drawsh.hxx
index e0a9ee9674eb..17296dcbce10 100644
--- a/sc/source/ui/inc/drawsh.hxx
+++ b/sc/source/ui/inc/drawsh.hxx
@@ -77,13 +77,13 @@ public:
void StateFormatPaintbrush(SfxItemSet& rSet);
void ExecuteMacroAssign( SdrObject* pObj, Window* pWin );
- void ExecuteLineDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff );
- void ExecuteAreaDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff );
- void ExecuteTextAttrDlg( SfxRequest& rReq, USHORT nTabPage = 0xffff );
+ void ExecuteLineDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
+ void ExecuteAreaDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
+ void ExecuteTextAttrDlg( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
ScDrawView* GetDrawView();
- BOOL AreAllObjectsOnLayer(USHORT nLayerNo,const SdrMarkList& rMark);
+ sal_Bool AreAllObjectsOnLayer(sal_uInt16 nLayerNo,const SdrMarkList& rMark);
};
diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx
index b49cd1488453..ca3eb42e208a 100644
--- a/sc/source/ui/inc/drawview.hxx
+++ b/sc/source/ui/inc/drawview.hxx
@@ -49,7 +49,7 @@ class ScDrawView: public FmFormView
Fraction aScaleY;
SdrDropMarkerOverlay* pDropMarker;
SdrObject* pDropMarkObj;
- BOOL bInConstruct;
+ sal_Bool bInConstruct;
void Construct();
void UpdateBrowser();
@@ -77,12 +77,12 @@ public:
void MarkDropObj( SdrObject* pObj );
- void SetMarkedToLayer( BYTE nLayerNo );
+ void SetMarkedToLayer( sal_uInt8 nLayerNo );
void InvalidateAttribs();
void InvalidateDrawTextAttrs();
- BOOL BeginDrag( Window* pWindow, const Point& rStartPos );
+ sal_Bool BeginDrag( Window* pWindow, const Point& rStartPos );
void DoCut();
void DoCopy();
@@ -102,16 +102,16 @@ public:
void UpdateIMap( SdrObject* pObj );
- USHORT GetPopupMenuId();
+ sal_uInt16 GetPopupMenuId();
void UpdateUserViewOptions();
void SetMarkedOriginalSize();
- BOOL SelectObject( const String& rName );
+ sal_Bool SelectObject( const String& rName );
bool HasMarkedControl() const;
bool HasMarkedInternal() const;
- bool InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, ULONG nOptions=0);
+ bool InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, sal_uLong nOptions=0);
/** Returns the selected object, if it is the caption object of a cell note.
@param ppCaptData (out-param) If not null, returns the pointer to the caption object data. */
diff --git a/sc/source/ui/inc/drtxtob.hxx b/sc/source/ui/inc/drtxtob.hxx
index 4baea1857e55..ae6be419b942 100644
--- a/sc/source/ui/inc/drtxtob.hxx
+++ b/sc/source/ui/inc/drtxtob.hxx
@@ -35,7 +35,7 @@
#include "shellids.hxx"
-USHORT ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId()
+sal_uInt16 ScGetFontWorkId(); // statt SvxFontWorkChildWindow::GetChildWindowId()
class ScViewData;
class TransferableDataHelper;
@@ -45,7 +45,7 @@ class ScDrawTextObjectBar : public SfxShell
{
ScViewData* pViewData;
TransferableClipboardListener* pClipEvtLstnr;
- BOOL bPastePossible;
+ sal_Bool bPastePossible;
DECL_LINK( ClipboardChanged, TransferableDataHelper* );
@@ -67,8 +67,8 @@ public:
void GetAttrState( SfxItemSet& rSet );
void ExecuteToggle( SfxRequest &rReq );
- BOOL ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
- BOOL ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
+ sal_Bool ExecuteCharDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
+ sal_Bool ExecuteParaDlg( const SfxItemSet& rArgs, SfxItemSet& rOutSet );
void ExecuteExtra( SfxRequest &rReq );
void ExecFormText(SfxRequest& rReq); // StarFontWork
@@ -78,7 +78,7 @@ private:
void ExecuteGlobal( SfxRequest &rReq ); // von Execute gerufen fuer ganze Objekte
void GetGlobalClipState( SfxItemSet& rSet );
void ExecutePasteContents( SfxRequest &rReq );
- BOOL IsNoteEdit();
+ sal_Bool IsNoteEdit();
};
diff --git a/sc/source/ui/inc/drwtrans.hxx b/sc/source/ui/inc/drwtrans.hxx
index 7690f860be41..c1194f9bd5cc 100644
--- a/sc/source/ui/inc/drwtrans.hxx
+++ b/sc/source/ui/inc/drwtrans.hxx
@@ -35,6 +35,8 @@
#include <sfx2/objsh.hxx>
#include "global.hxx"
+#include "charthelper.hxx"
+#include "rangelst.hxx"
class SdrModel;
@@ -57,17 +59,19 @@ private:
// extracted from model in ctor:
Size aSrcSize;
INetBookmark* pBookmark;
- BOOL bGraphic;
- BOOL bGrIsBit;
- BOOL bOleObj;
+ sal_Bool bGraphic;
+ sal_Bool bGrIsBit;
+ sal_Bool bOleObj;
// source information for drag&drop:
// (view is needed to handle drawing obejcts)
SdrView* pDragSourceView;
- USHORT nDragSourceFlags;
- BOOL bDragWasInternal;
+ sal_uInt16 nDragSourceFlags;
+ sal_Bool bDragWasInternal;
sal_uInt32 nSourceDocID;
+ ScRangeListVector m_aProtectedChartRangesVector;
+
void InitDocShell();
SdrOle2Obj* GetSingleObject();
@@ -89,11 +93,11 @@ public:
void SetDrawPersist( const SfxObjectShellRef& rRef );
void SetDragSource( ScDrawView* pView );
void SetDragSourceObj( SdrObject* pObj, SCTAB nTab );
- void SetDragSourceFlags( USHORT nFlags );
+ void SetDragSourceFlags( sal_uInt16 nFlags );
void SetDragWasInternal();
SdrView* GetDragSourceView() { return pDragSourceView; }
- USHORT GetDragSourceFlags() const { return nDragSourceFlags; }
+ sal_uInt16 GetDragSourceFlags() const { return nDragSourceFlags; }
void SetSourceDocID( sal_uInt32 nVal )
{ nSourceDocID = nVal; }
@@ -102,6 +106,8 @@ public:
static ScDrawTransferObj* GetOwnClipboard( Window* pUIWin );
virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( com::sun::star::uno::RuntimeException );
static const com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
+
+ const ScRangeListVector& GetProtectedChartRangesVector() const { return m_aProtectedChartRangesVector; }
};
#endif
diff --git a/sc/source/ui/inc/dwfunctr.hxx b/sc/source/ui/inc/dwfunctr.hxx
index 1bb4206f3990..85387e5c11ae 100644
--- a/sc/source/ui/inc/dwfunctr.hxx
+++ b/sc/source/ui/inc/dwfunctr.hxx
@@ -52,7 +52,7 @@
class ScFunctionChildWindow : public SfxChildWindow
{
public:
- ScFunctionChildWindow( Window*, USHORT, SfxBindings*,
+ ScFunctionChildWindow( Window*, sal_uInt16, SfxBindings*,
SfxChildWinInfo* );
SFX_DECL_CHILDWINDOW(ScFunctionChildWindow);
@@ -79,17 +79,17 @@ private:
SfxChildAlignment eSfxOldAlignment;
ImageButton aInsertButton;
FixedText aFiFuncDesc;
- USHORT nLeftSlot;
- USHORT nRightSlot;
- ULONG nMinWidth;
- ULONG nMinHeight;
+ sal_uInt16 nLeftSlot;
+ sal_uInt16 nRightSlot;
+ sal_uLong nMinWidth;
+ sal_uLong nMinHeight;
Size aOldSize;
- BOOL bSizeFlag;
- BOOL bInit;
+ sal_Bool bSizeFlag;
+ sal_Bool bInit;
short nDockMode;
Point aSplitterInitPos;
const ScFuncDesc* pFuncDesc;
- USHORT nArgs;
+ sal_uInt16 nArgs;
String** pArgArr;
@@ -97,7 +97,7 @@ private:
void UpdateFunctionList();
void UpdateLRUList();
- void DoEnter(BOOL bOk); //@@ ???
+ void DoEnter(sal_Bool bOk); //@@ ???
void SetDescription();
void SetLeftRightSize();
void SetTopBottonSize();
@@ -114,7 +114,7 @@ private:
protected:
- virtual BOOL Close();
+ virtual sal_Bool Close();
virtual void Resize();
virtual void Resizing( Size& rSize );
virtual void SetSize();
@@ -136,7 +136,7 @@ public:
using SfxDockingWindow::Notify;
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
- void SetSlotIDs( USHORT nLeft, USHORT nRight )
+ void SetSlotIDs( sal_uInt16 nLeft, sal_uInt16 nRight )
{ nLeftSlot = nLeft; nRightSlot = nRight; }
void InitLRUList();
diff --git a/sc/source/ui/inc/editable.hxx b/sc/source/ui/inc/editable.hxx
index a0519be1b788..7e0e0472da65 100644
--- a/sc/source/ui/inc/editable.hxx
+++ b/sc/source/ui/inc/editable.hxx
@@ -40,8 +40,8 @@ class ScRange;
class ScEditableTester
{
- BOOL bIsEditable;
- BOOL bOnlyMatrix;
+ sal_Bool bIsEditable;
+ sal_Bool bOnlyMatrix;
public:
// no test in ctor
@@ -78,9 +78,9 @@ public:
void TestSelection( ScDocument* pDoc, const ScMarkData& rMark );
void TestView( ScViewFunc* pView );
- BOOL IsEditable() const { return bIsEditable; }
- BOOL IsFormatEditable() const { return bIsEditable || bOnlyMatrix; }
- USHORT GetMessageId() const;
+ sal_Bool IsEditable() const { return bIsEditable; }
+ sal_Bool IsFormatEditable() const { return bIsEditable || bOnlyMatrix; }
+ sal_uInt16 GetMessageId() const;
};
#endif
diff --git a/sc/source/ui/inc/editsh.hxx b/sc/source/ui/inc/editsh.hxx
index 5e915aa2a89e..bd6b75ae2ede 100644
--- a/sc/source/ui/inc/editsh.hxx
+++ b/sc/source/ui/inc/editsh.hxx
@@ -49,8 +49,8 @@ private:
EditView* pEditView;
ScViewData* pViewData;
TransferableClipboardListener* pClipEvtLstnr;
- BOOL bPastePossible;
- BOOL bIsInsertMode;
+ sal_Bool bPastePossible;
+ sal_Bool bIsInsertMode;
const SvxURLField* GetURLField();
ScInputHandler* GetMyInputHdl();
@@ -78,7 +78,7 @@ public:
void ExecuteUndo(SfxRequest& rReq);
void GetUndoState(SfxItemSet &rSet);
- String GetSelectionText( BOOL bWholeWord );
+ String GetSelectionText( sal_Bool bWholeWord );
};
diff --git a/sc/source/ui/inc/fieldwnd.hxx b/sc/source/ui/inc/fieldwnd.hxx
index 78358557444c..e9aaee89604a 100644
--- a/sc/source/ui/inc/fieldwnd.hxx
+++ b/sc/source/ui/inc/fieldwnd.hxx
@@ -29,6 +29,7 @@
#ifndef SC_FIELDWND_HXX
#define SC_FIELDWND_HXX
+#include <utility>
#include <vector>
#include "address.hxx"
#include "dpglobal.hxx"
@@ -40,19 +41,33 @@
class ScDPLayoutDlg;
class ScAccessibleDataPilotControl;
-//===================================================================
+const size_t PIVOTFIELD_INVALID = static_cast< size_t >( -1 );
-/** Type of content area. */
-enum ScDPFieldType
+// ============================================================================
+
+/** Type of the pivot table field window. */
+enum ScPivotFieldType
+{
+ PIVOTFIELDTYPE_PAGE, /// Window for all page fields.
+ PIVOTFIELDTYPE_COL, /// Window for all column fields.
+ PIVOTFIELDTYPE_ROW, /// Window for all row fields.
+ PIVOTFIELDTYPE_DATA, /// Window for all data fields.
+ PIVOTFIELDTYPE_SELECT /// Selection window with all fields.
+};
+
+/** Type of an end tracking event. */
+enum ScPivotFieldEndTracking
{
- TYPE_PAGE, /// Area for all page fields.
- TYPE_ROW, /// Area for all row fields.
- TYPE_COL, /// Area for all column fields.
- TYPE_DATA, /// Area for all data fields.
- TYPE_SELECT /// Selection area with all fields.
+ ENDTRACKING_SUSPEND, /// Stop tracking in this window, but tracking still active (in another window).
+ ENDTRACKING_CANCEL, /// Tracking has been cancelled.
+ ENDTRACKING_DROP /// Tracking has ended, a field has been dropped.
};
-//-------------------------------------------------------------------
+// ============================================================================
+
+typedef ::std::pair< const ScPivotFuncData*, size_t > ScPivotFuncDataEntry;
+
+// ============================================================================
/**
* Represents a field area in the DataPilot layout dialog. This base class
diff --git a/sc/source/ui/inc/filldlg.hxx b/sc/source/ui/inc/filldlg.hxx
index ddd5621c558f..abecfa27c75a 100644
--- a/sc/source/ui/inc/filldlg.hxx
+++ b/sc/source/ui/inc/filldlg.hxx
@@ -53,7 +53,7 @@ public:
String aStartStr,
double fStep,
double fMax,
- USHORT nPossDir );
+ sal_uInt16 nPossDir );
~ScFillSeriesDlg();
FillDir GetFillDir() const { return theFillDir; }
@@ -65,9 +65,18 @@ public:
String GetStartStr() const { return aEdStartVal.GetText(); }
- void SetEdStartValEnabled(BOOL bFlag=FALSE);
+ void SetEdStartValEnabled(sal_Bool bFlag=false);
private:
+ FixedText aFtStartVal;
+ Edit aEdStartVal;
+ String aStartStrVal;
+
+ FixedText aFtEndVal;
+ Edit aEdEndVal;
+
+ FixedText aFtIncrement;
+ Edit aEdIncrement;
FixedLine aFlDirection;
RadioButton aBtnDown;
RadioButton aBtnRight;
@@ -87,17 +96,7 @@ private:
RadioButton aBtnDayOfWeek;
RadioButton aBtnMonth;
RadioButton aBtnYear;
-
- BOOL bStartValFlag;
- FixedText aFtStartVal;
- Edit aEdStartVal;
- String aStartStrVal;
-
- FixedText aFtEndVal;
- Edit aEdEndVal;
-
- FixedText aFtIncrement;
- Edit aEdIncrement;
+ sal_Bool bStartValFlag;
OKButton aBtnOk;
CancelButton aBtnCancel;
@@ -117,10 +116,10 @@ private:
#ifdef _FILLDLG_CXX
private:
- void Init( USHORT nPossDir );
- BOOL CheckStartVal();
- BOOL CheckIncrementVal();
- BOOL CheckEndVal();
+ void Init( sal_uInt16 nPossDir );
+ sal_Bool CheckStartVal();
+ sal_Bool CheckIncrementVal();
+ sal_Bool CheckEndVal();
DECL_LINK( OKHdl, void * );
DECL_LINK( DisableHdl, Button * );
diff --git a/sc/source/ui/inc/filtdlg.hxx b/sc/source/ui/inc/filtdlg.hxx
index 44ea68f8e9c9..47a9dc414824 100644
--- a/sc/source/ui/inc/filtdlg.hxx
+++ b/sc/source/ui/inc/filtdlg.hxx
@@ -94,13 +94,13 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
void SliderMoved();
- USHORT GetSliderPos();
- void RefreshEditRow( USHORT nOffset );
+ sal_uInt16 GetSliderPos();
+ void RefreshEditRow( sal_uInt16 nOffset );
private:
FixedLine aFlCriteria;
@@ -148,7 +148,7 @@ private:
ScFilterOptionsMgr* pOptionsMgr;
- const USHORT nWhichQuery;
+ const sal_uInt16 nWhichQuery;
const ScQueryParam theQueryData;
ScQueryItem* pOutItem;
ScViewData* pViewData;
@@ -160,12 +160,12 @@ private:
ListBox* aCondLbArr[4];
ListBox* aConnLbArr[4];
bool mbHasDates[MAXQUERY];
- BOOL bRefreshExceptQuery[MAXQUERY];
- USHORT nFieldCount;
- BOOL bRefInputMode;
+ sal_Bool bRefreshExceptQuery[MAXQUERY];
+ sal_uInt16 nFieldCount;
+ sal_Bool bRefInputMode;
TypedScStrCollection* pEntryLists[MAXCOLCOUNT];
- USHORT nHeaderPos[MAXCOLCOUNT];
+ sal_uInt16 nHeaderPos[MAXCOLCOUNT];
// Hack: RefInput-Kontrolle
Timer* pTimer;
@@ -175,10 +175,10 @@ private:
void Init ( const SfxItemSet& rArgSet );
void FillFieldLists ();
void FillAreaList ();
- void UpdateValueList ( USHORT nList );
- void UpdateHdrInValueList( USHORT nList );
- void ClearValueList ( USHORT nList );
- USHORT GetFieldSelPos ( SCCOL nField );
+ void UpdateValueList ( sal_uInt16 nList );
+ void UpdateHdrInValueList( sal_uInt16 nList );
+ void ClearValueList ( sal_uInt16 nList );
+ sal_uInt16 GetFieldSelPos ( SCCOL nField );
ScQueryItem* GetOutputItem ();
// Handler:
@@ -205,14 +205,14 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
- ListBox aLbFilterArea;
FixedText aFtFilterArea;
+ ListBox aLbFilterArea;
formula::RefEdit aEdFilterArea;
formula::RefButton aRbFilterArea;
@@ -227,14 +227,14 @@ private:
ScFilterOptionsMgr* pOptionsMgr;
- const USHORT nWhichQuery;
+ const sal_uInt16 nWhichQuery;
const ScQueryParam theQueryData;
ScQueryItem* pOutItem;
ScViewData* pViewData;
ScDocument* pDoc;
formula::RefEdit* pRefInputEdit;
- BOOL bRefInputMode;
+ sal_Bool bRefInputMode;
// Hack: RefInput-Kontrolle
Timer* pTimer;
diff --git a/sc/source/ui/inc/foptmgr.hxx b/sc/source/ui/inc/foptmgr.hxx
index 18164f1b7d35..5ba7345cd314 100644
--- a/sc/source/ui/inc/foptmgr.hxx
+++ b/sc/source/ui/inc/foptmgr.hxx
@@ -72,7 +72,7 @@ public:
const String& refStrUndefined );
~ScFilterOptionsMgr();
- BOOL VerifyPosStr ( const String& rPosStr ) const;
+ sal_Bool VerifyPosStr ( const String& rPosStr ) const;
private:
Dialog* pDlg;
diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx
index ea8298bea0ef..306aaa565d8d 100644
--- a/sc/source/ui/inc/formula.hxx
+++ b/sc/source/ui/inc/formula.hxx
@@ -82,11 +82,11 @@ public:
virtual void notifyChange();
virtual void fill();
virtual bool calculateValue(const String& _sExpression,String& _rResult);
- virtual void doClose(BOOL _bOk);
+ virtual void doClose(sal_Bool _bOk);
virtual void insertEntryToLRUList(const formula::IFunctionDescription* pDesc);
virtual void showReference(const String& _sFormula);
- virtual void dispatch(BOOL _bOK,BOOL _bMartixChecked);
- virtual void setDispatcherLock( BOOL bLock );
+ virtual void dispatch(sal_Bool _bOK,sal_Bool _bMartixChecked);
+ virtual void setDispatcherLock( sal_Bool bLock );
virtual void setReferenceInput(const formula::FormEditData* _pData);
virtual void deleteFormData();
virtual void clear();
@@ -103,31 +103,31 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XFormulaOpCodeMapper> getFormulaOpCodeMapper() const;
virtual ::com::sun::star::table::CellAddress getReferencePosition() const;
- virtual BOOL Close();
+ virtual sal_Bool Close();
// sc::IAnyRefDialog
virtual void ShowReference(const String& _sRef);
- virtual void HideReference( BOOL bDoneRefMode = TRUE );
+ virtual void HideReference( sal_Bool bDoneRefMode = sal_True );
virtual void SetReference( const ScRange& rRef, ScDocument* pD );
virtual void ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
virtual void ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
- virtual void RefInputDone( BOOL bForced = FALSE );
- virtual BOOL IsTableLocked() const;
- virtual BOOL IsRefInputMode() const;
+ virtual void RefInputDone( sal_Bool bForced = false );
+ virtual sal_Bool IsTableLocked() const;
+ virtual sal_Bool IsRefInputMode() const;
- virtual BOOL IsDocAllowed( SfxObjectShell* pDocSh ) const;
+ virtual sal_Bool IsDocAllowed( SfxObjectShell* pDocSh ) const;
virtual void AddRefEntry();
virtual void SetActive();
virtual void ViewShellChanged( ScTabViewShell* pScViewShell );
protected:
virtual void RefInputStart( formula::RefEdit* pEdit, formula::RefButton* pButton = NULL );
- ULONG FindFocusWin(Window *pWin);
+ sal_uLong FindFocusWin(Window *pWin);
void SaveLRUEntry(const ScFuncDesc* pFuncDesc);
void HighlightFunctionParas(const String& aFormula);
- BOOL IsInputHdl(ScInputHandler* pHdl);
+ sal_Bool IsInputHdl(ScInputHandler* pHdl);
ScInputHandler* GetNextInputHandler(ScDocShell* pDocShell,PtrTabViewShell* ppViewSh);
};
diff --git a/sc/source/ui/inc/fuconarc.hxx b/sc/source/ui/inc/fuconarc.hxx
index ea7a67d5d356..232d5c0e1b79 100644
--- a/sc/source/ui/inc/fuconarc.hxx
+++ b/sc/source/ui/inc/fuconarc.hxx
@@ -45,10 +45,10 @@ class FuConstArc : public FuConstruct
virtual ~FuConstArc();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fuconcustomshape.hxx b/sc/source/ui/inc/fuconcustomshape.hxx
index 6afa6be65021..6fb89242cbc0 100644
--- a/sc/source/ui/inc/fuconcustomshape.hxx
+++ b/sc/source/ui/inc/fuconcustomshape.hxx
@@ -43,10 +43,10 @@ public:
virtual ~FuConstCustomShape();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fuconpol.hxx b/sc/source/ui/inc/fuconpol.hxx
index 894dcd4193eb..0104388ac03a 100644
--- a/sc/source/ui/inc/fuconpol.hxx
+++ b/sc/source/ui/inc/fuconpol.hxx
@@ -47,10 +47,10 @@ class FuConstPolygon : public FuConstruct
virtual ~FuConstPolygon();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fuconrec.hxx b/sc/source/ui/inc/fuconrec.hxx
index dede18b8b03f..5c0cf72735c7 100644
--- a/sc/source/ui/inc/fuconrec.hxx
+++ b/sc/source/ui/inc/fuconrec.hxx
@@ -45,10 +45,10 @@ class FuConstRectangle : public FuConstruct
virtual ~FuConstRectangle();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fuconstr.hxx b/sc/source/ui/inc/fuconstr.hxx
index 66c55a981caf..5468e2f60f6a 100644
--- a/sc/source/ui/inc/fuconstr.hxx
+++ b/sc/source/ui/inc/fuconstr.hxx
@@ -51,13 +51,13 @@ class FuConstruct : public FuDraw
virtual ~FuConstruct();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
- virtual BYTE Command(const CommandEvent& rCEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_uInt8 Command(const CommandEvent& rCEvt);
- BOOL SimpleMouseButtonUp(const MouseEvent& rMEvt);
+ sal_Bool SimpleMouseButtonUp(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fuconuno.hxx b/sc/source/ui/inc/fuconuno.hxx
index 44ce6876a4bc..efb19ccf39e7 100644
--- a/sc/source/ui/inc/fuconuno.hxx
+++ b/sc/source/ui/inc/fuconuno.hxx
@@ -41,8 +41,8 @@
class FuConstUnoControl : public FuConstruct
{
protected:
- UINT32 nInventor;
- UINT16 nIdentifier;
+ sal_uInt32 nInventor;
+ sal_uInt16 nIdentifier;
public:
FuConstUnoControl(ScTabViewShell* pViewSh, Window* pWin, ScDrawView* pView,
@@ -50,10 +50,10 @@ public:
virtual ~FuConstUnoControl();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fudraw.hxx b/sc/source/ui/inc/fudraw.hxx
index a88580144301..c2820c5c0569 100644
--- a/sc/source/ui/inc/fudraw.hxx
+++ b/sc/source/ui/inc/fudraw.hxx
@@ -49,7 +49,7 @@ class FuDraw : public FuPoor
SdrModel* pDoc, SfxRequest& rReq);
virtual ~FuDraw();
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
virtual void ScrollStart();
virtual void ScrollEnd();
@@ -59,14 +59,14 @@ class FuDraw : public FuPoor
virtual void ForcePointer(const MouseEvent* pMEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
// II
virtual void SelectionHasChanged();
- BOOL IsSizingOrMovingNote( const MouseEvent& rMEvt ) const;
+ sal_Bool IsSizingOrMovingNote( const MouseEvent& rMEvt ) const;
private:
void DoModifiers(const MouseEvent& rMEvt);
diff --git a/sc/source/ui/inc/fuedipo.hxx b/sc/source/ui/inc/fuedipo.hxx
index 3b27834f7a56..892fd748fbb8 100644
--- a/sc/source/ui/inc/fuedipo.hxx
+++ b/sc/source/ui/inc/fuedipo.hxx
@@ -46,10 +46,10 @@ class FuEditPoints : public FuDraw
virtual ~FuEditPoints();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
diff --git a/sc/source/ui/inc/fumark.hxx b/sc/source/ui/inc/fumark.hxx
index 61d287ea30f4..58f22302ea24 100644
--- a/sc/source/ui/inc/fumark.hxx
+++ b/sc/source/ui/inc/fumark.hxx
@@ -44,8 +44,8 @@ class FuMarkRect : public FuPoor
protected:
Point aBeginPos;
Rectangle aZoomRect;
- BOOL bVisible;
- BOOL bStartDrag;
+ sal_Bool bVisible;
+ sal_Bool bStartDrag;
ScRangeListRef aSourceRange;
public:
@@ -53,7 +53,7 @@ class FuMarkRect : public FuPoor
SdrModel* pDoc, SfxRequest& rReq);
virtual ~FuMarkRect();
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
virtual void ScrollStart();
virtual void ScrollEnd();
@@ -63,10 +63,10 @@ class FuMarkRect : public FuPoor
virtual void ForcePointer(const MouseEvent* pMEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
- virtual BYTE Command(const CommandEvent& rCEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_uInt8 Command(const CommandEvent& rCEvt);
};
diff --git a/sc/source/ui/inc/funcpage.hxx b/sc/source/ui/inc/funcpage.hxx
index 799f5e260645..ca24748cc5a7 100644
--- a/sc/source/ui/inc/funcpage.hxx
+++ b/sc/source/ui/inc/funcpage.hxx
@@ -103,15 +103,15 @@ public:
ScFuncPage( Window* pParent);
- void SetCategory(USHORT nCat);
- void SetFunction(USHORT nFunc);
+ void SetCategory(sal_uInt16 nCat);
+ void SetFunction(sal_uInt16 nFunc);
void SetFocus();
- USHORT GetCategory();
- USHORT GetFunction();
- USHORT GetFunctionEntryCount();
+ sal_uInt16 GetCategory();
+ sal_uInt16 GetFunction();
+ sal_uInt16 GetFunctionEntryCount();
- USHORT GetFuncPos(const ScFuncDesc*);
- const ScFuncDesc* GetFuncDesc( USHORT nPos ) const;
+ sal_uInt16 GetFuncPos(const ScFuncDesc*);
+ const ScFuncDesc* GetFuncDesc( sal_uInt16 nPos ) const;
String GetSelFunctionName() const;
void SetDoubleClickHdl( const Link& rLink ) { aDoubleClickLink = rLink; }
diff --git a/sc/source/ui/inc/funcutl.hxx b/sc/source/ui/inc/funcutl.hxx
index afa8e1f5c853..d7878714e4f2 100644
--- a/sc/source/ui/inc/funcutl.hxx
+++ b/sc/source/ui/inc/funcutl.hxx
@@ -64,7 +64,7 @@ private:
MultiLineEdit* pMEdit;
Link aSelChangedLink;
Selection aOldSel;
- BOOL bMouseFlag;
+ sal_Bool bMouseFlag;
DECL_LINK( ChangedHdl, ScEditBox* );
protected:
@@ -99,7 +99,7 @@ public:
ArgEdit( Window* pParent, const ResId& rResId );
void Init( ArgEdit* pPrevEdit, ArgEdit* pNextEdit,
- ScrollBar& rArgSlider, USHORT nArgCount );
+ ScrollBar& rArgSlider, sal_uInt16 nArgCount );
protected:
virtual void KeyInput( const KeyEvent& rKEvt );
@@ -108,7 +108,7 @@ private:
ArgEdit* pEdPrev;
ArgEdit* pEdNext;
ScrollBar* pSlider;
- USHORT nArgs;
+ sal_uInt16 nArgs;
};
diff --git a/sc/source/ui/inc/fupoor.hxx b/sc/source/ui/inc/fupoor.hxx
index 237432e763f2..5638b3bc6f68 100644
--- a/sc/source/ui/inc/fupoor.hxx
+++ b/sc/source/ui/inc/fupoor.hxx
@@ -71,7 +71,7 @@ protected:
Timer aDragTimer; // fuer Drag&Drop
DECL_LINK( DragTimerHdl, Timer * );
DECL_LINK( DragHdl, void * );
- BOOL bIsInDragMode;
+ sal_Bool bIsInDragMode;
Point aMDPos; // Position von MouseButtonDown
// member to hold state of the mouse buttons for creation
@@ -95,16 +95,16 @@ public:
virtual void DoPaste();
// Mouse- & Key-Events; Returnwert=TRUE: Event wurde bearbeitet
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent&) { return FALSE; }
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent&) { return false; }
// moved from inline to *.cxx
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt); // { return FALSE; }
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt); // { return FALSE; }
// moved from inline to *.cxx
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt); // { return FALSE; }
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt); // { return FALSE; }
- virtual BYTE Command(const CommandEvent& rCEvt);
+ virtual sal_uInt8 Command(const CommandEvent& rCEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
@@ -114,9 +114,9 @@ public:
void SetWindow(Window* pWin) { pWindow = pWin; }
- USHORT GetSlotID() const { return( aSfxRequest.GetSlot() ); }
+ sal_uInt16 GetSlotID() const { return( aSfxRequest.GetSlot() ); }
- BOOL IsDetectiveHit( const Point& rLogicPos );
+ sal_Bool IsDetectiveHit( const Point& rLogicPos );
void StopDragTimer();
diff --git a/sc/source/ui/inc/fusel.hxx b/sc/source/ui/inc/fusel.hxx
index 7f0783537624..d13ddc3e9558 100644
--- a/sc/source/ui/inc/fusel.hxx
+++ b/sc/source/ui/inc/fusel.hxx
@@ -50,11 +50,11 @@ public:
virtual ~FuSelection();
// Mouse- & Key-Events
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
- virtual BYTE Command(const CommandEvent& rCEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_uInt8 Command(const CommandEvent& rCEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
@@ -64,10 +64,10 @@ public:
protected:
// Outliner* pOutliner;
// OutlinerView* pOutlinerView;
- BOOL bVCAction;
+ sal_Bool bVCAction;
private:
- BOOL TestDetective( SdrPageView* pPV, const Point& rPos ); // -> fusel2
+ sal_Bool TestDetective( SdrPageView* pPV, const Point& rPos ); // -> fusel2
bool IsNoteCaptionMarked() const;
bool IsNoteCaptionClicked( const Point& rPos ) const;
diff --git a/sc/source/ui/inc/futext.hxx b/sc/source/ui/inc/futext.hxx
index 2af36d3aa5de..f3150424ba50 100644
--- a/sc/source/ui/inc/futext.hxx
+++ b/sc/source/ui/inc/futext.hxx
@@ -43,7 +43,7 @@ class SdrOutliner;
class FuText : public FuConstruct
{
protected:
-// USHORT nOldObjectBar;
+// sal_uInt16 nOldObjectBar;
SdrTextObj* pTextObj;
public:
@@ -52,10 +52,10 @@ public:
virtual ~FuText();
- virtual BOOL KeyInput(const KeyEvent& rKEvt);
- virtual BOOL MouseMove(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonUp(const MouseEvent& rMEvt);
- virtual BOOL MouseButtonDown(const MouseEvent& rMEvt);
+ virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
+ virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
+ virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
virtual void Activate(); // Function aktivieren
virtual void Deactivate(); // Function deaktivieren
@@ -65,8 +65,8 @@ public:
virtual void SelectionHasChanged();
void SetInEditMode( SdrObject* pObj = NULL, const Point* pMousePixel = NULL,
- BOOL bCursorToEnd = FALSE, const KeyEvent* pInitialKey = NULL );
- void StopEditMode(BOOL bTextDirection = FALSE);
+ sal_Bool bCursorToEnd = false, const KeyEvent* pInitialKey = NULL );
+ void StopEditMode(sal_Bool bTextDirection = false);
void StopDragMode(SdrObject* pObject);
// Create default drawing objects via keyboard
diff --git a/sc/source/ui/inc/gridmerg.hxx b/sc/source/ui/inc/gridmerg.hxx
index d8cd2d16b7b4..86cae4fdfab8 100644
--- a/sc/source/ui/inc/gridmerg.hxx
+++ b/sc/source/ui/inc/gridmerg.hxx
@@ -44,8 +44,8 @@ private:
long nVarStart;
long nVarDiff;
long nCount;
- BOOL bVertical;
- BOOL bOptimize;
+ sal_Bool bVertical;
+ sal_Bool bOptimize;
void AddLine( long nStart, long nEnd, long nPos );
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index 46d3f6cdee91..a3762b40d421 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -147,61 +147,61 @@ private:
::std::auto_ptr<ScDPFieldPopupWindow> mpDPFieldPopup;
::std::auto_ptr<ScDPFieldButton> mpFilterButton;
- USHORT nCursorHideCount;
+ sal_uInt16 nCursorHideCount;
- BOOL bMarking;
+ sal_Bool bMarking;
- USHORT nButtonDown;
- BOOL bEEMouse; // Edit-Engine hat Maus
- BYTE nMouseStatus;
- BYTE nNestedButtonState; // track nested button up/down calls
+ sal_uInt16 nButtonDown;
+ sal_Bool bEEMouse; // Edit-Engine hat Maus
+ sal_uInt8 nMouseStatus;
+ sal_uInt8 nNestedButtonState; // track nested button up/down calls
- BOOL bDPMouse; // DataPilot-D&D (neue Pivottabellen)
+ sal_Bool bDPMouse; // DataPilot-D&D (neue Pivottabellen)
long nDPField;
ScDPObject* pDragDPObj; //! name?
- BOOL bRFMouse; // RangeFinder-Drag
- BOOL bRFSize;
- USHORT nRFIndex;
+ sal_Bool bRFMouse; // RangeFinder-Drag
+ sal_Bool bRFSize;
+ sal_uInt16 nRFIndex;
SCsCOL nRFAddX;
SCsROW nRFAddY;
- USHORT nPagebreakMouse; // Pagebreak-Modus Drag
+ sal_uInt16 nPagebreakMouse; // Pagebreak-Modus Drag
SCCOLROW nPagebreakBreak;
SCCOLROW nPagebreakPrev;
ScRange aPagebreakSource;
ScRange aPagebreakDrag;
- BOOL bPagebreakDrawn;
+ sal_Bool bPagebreakDrawn;
- BYTE nPageScript;
+ sal_uInt8 nPageScript;
long nLastClickX;
long nLastClickY;
- BOOL bDragRect;
+ sal_Bool bDragRect;
SCCOL nDragStartX;
SCROW nDragStartY;
SCCOL nDragEndX;
SCROW nDragEndY;
InsCellCmd meDragInsertMode;
- USHORT nCurrentPointer;
+ sal_uInt16 nCurrentPointer;
- BOOL bIsInScroll;
- BOOL bIsInPaint;
+ sal_Bool bIsInScroll;
+ sal_Bool bIsInPaint;
ScDDComboBoxButton aComboButton;
Point aCurMousePos;
- USHORT nPaintCount;
+ sal_uInt16 nPaintCount;
Rectangle aRepaintPixel;
- BOOL bNeedsRepaint;
+ sal_Bool bNeedsRepaint;
- BOOL bAutoMarkVisible;
+ sal_Bool bAutoMarkVisible;
ScAddress aAutoMarkPos;
- BOOL bListValButton;
+ sal_Bool bListValButton;
ScAddress aListValPos;
Rectangle aInvertRect;
@@ -209,15 +209,15 @@ private:
DECL_LINK( PopupModeEndHdl, FloatingWindow* );
DECL_LINK( PopupSpellingHdl, SpellCallbackInfo* );
- BOOL TestMouse( const MouseEvent& rMEvt, BOOL bAction );
+ sal_Bool TestMouse( const MouseEvent& rMEvt, sal_Bool bAction );
- BOOL DoPageFieldSelection( SCCOL nCol, SCROW nRow );
+ sal_Bool DoPageFieldSelection( SCCOL nCol, SCROW nRow );
bool DoAutoFilterButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt );
void DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt );
void DPMouseMove( const MouseEvent& rMEvt );
void DPMouseButtonUp( const MouseEvent& rMEvt );
- void DPTestMouse( const MouseEvent& rMEvt, BOOL bMove );
+ void DPTestMouse( const MouseEvent& rMEvt, sal_Bool bMove );
/**
* Check if the mouse click is on a field popup button.
@@ -229,24 +229,24 @@ private:
void DPLaunchFieldPopupMenu(
const Point& rScrPos, const Size& rScrSize, const ScAddress& rPos, ScDPObject* pDPObj);
- void RFMouseMove( const MouseEvent& rMEvt, BOOL bUp );
+ void RFMouseMove( const MouseEvent& rMEvt, sal_Bool bUp );
- void PagebreakMove( const MouseEvent& rMEvt, BOOL bUp );
+ void PagebreakMove( const MouseEvent& rMEvt, sal_Bool bUp );
- void UpdateDragRect( BOOL bShowRange, const Rectangle& rPosRect );
+ void UpdateDragRect( sal_Bool bShowRange, const Rectangle& rPosRect );
- BOOL IsAutoFilterActive( SCCOL nCol, SCROW nRow, SCTAB nTab );
- void ExecFilter( ULONG nSel, SCCOL nCol, SCROW nRow,
+ sal_Bool IsAutoFilterActive( SCCOL nCol, SCROW nRow, SCTAB nTab );
+ void ExecFilter( sal_uLong nSel, SCCOL nCol, SCROW nRow,
const String& aValue, bool bCheckForDates );
- void FilterSelect( ULONG nSel );
+ void FilterSelect( sal_uLong nSel );
void ExecDataSelect( SCCOL nCol, SCROW nRow, const String& rStr );
- void ExecPageFieldSelect( SCCOL nCol, SCROW nRow, BOOL bHasSelection, const String& rStr );
+ void ExecPageFieldSelect( SCCOL nCol, SCROW nRow, sal_Bool bHasSelection, const String& rStr );
- BOOL HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange );
+ sal_Bool HasScenarioButton( const Point& rPosPixel, ScRange& rScenRange );
- BOOL DropScroll( const Point& rMousePos );
+ sal_Bool DropScroll( const Point& rMousePos );
sal_Int8 AcceptPrivateDrop( const AcceptDropEvent& rEvt );
sal_Int8 ExecutePrivateDrop( const ExecuteDropEvent& rEvt );
@@ -255,33 +255,33 @@ private:
void HandleMouseButtonDown( const MouseEvent& rMEvt );
- BOOL DrawMouseButtonDown(const MouseEvent& rMEvt);
- BOOL DrawMouseButtonUp(const MouseEvent& rMEvt);
- BOOL DrawMouseMove(const MouseEvent& rMEvt);
- BOOL DrawKeyInput(const KeyEvent& rKEvt);
- BOOL DrawCommand(const CommandEvent& rCEvt);
- BOOL DrawHasMarkedObj();
+ sal_Bool DrawMouseButtonDown(const MouseEvent& rMEvt);
+ sal_Bool DrawMouseButtonUp(const MouseEvent& rMEvt);
+ sal_Bool DrawMouseMove(const MouseEvent& rMEvt);
+ sal_Bool DrawKeyInput(const KeyEvent& rKEvt);
+ sal_Bool DrawCommand(const CommandEvent& rCEvt);
+ sal_Bool DrawHasMarkedObj();
void DrawEndAction();
void DrawMarkDropObj( SdrObject* pObj );
SdrObject* GetEditObject();
- BOOL IsMyModel(SdrEditView* pSdrView);
+ sal_Bool IsMyModel(SdrEditView* pSdrView);
- void DrawRedraw( ScOutputData& rOutputData, ScUpdateMode eMode, ULONG nLayer );
+ void DrawRedraw( ScOutputData& rOutputData, ScUpdateMode eMode, sal_uLong nLayer );
void DrawSdrGrid( const Rectangle& rDrawingRect, OutputDevice* pContentDev );
void DrawAfterScroll(/*BOOL bVal*/);
Rectangle GetListValButtonRect( const ScAddress& rButtonPos );
void DrawPagePreview( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, OutputDevice* pContentDev );
- BOOL GetEditUrl( const Point& rPos,
+ sal_Bool GetEditUrl( const Point& rPos,
String* pName=0, String* pUrl=0, String* pTarget=0 );
- BOOL GetEditUrlOrError( BOOL bSpellErr, const Point& rPos,
+ sal_Bool GetEditUrlOrError( sal_Bool bSpellErr, const Point& rPos,
String* pName=0, String* pUrl=0, String* pTarget=0 );
- BOOL HitRangeFinder( const Point& rMouse, BOOL& rCorner, USHORT* pIndex = NULL,
+ sal_Bool HitRangeFinder( const Point& rMouse, sal_Bool& rCorner, sal_uInt16* pIndex = NULL,
SCsCOL* pAddX = NULL, SCsROW* pAddY = NULL );
- USHORT HitPageBreak( const Point& rMouse, ScRange* pSource = NULL,
+ sal_uInt16 HitPageBreak( const Point& rMouse, ScRange* pSource = NULL,
SCCOLROW* pBreak = NULL, SCCOLROW* pPrev = NULL );
void PasteSelection( const Point& rPosPixel );
@@ -340,7 +340,7 @@ public:
void UpdateFormulas();
- void DoAutoFilterMenue( SCCOL nCol, SCROW nRow, BOOL bDataSelect );
+ void DoAutoFilterMenue( SCCOL nCol, SCROW nRow, sal_Bool bDataSelect );
void DoScenarioMenue( const ScRange& rScenRange );
void LaunchPageFieldMenu( SCCOL nCol, SCROW nRow );
@@ -356,27 +356,27 @@ public:
ScUpdateMode eMode = SC_UPDATE_ALL );
void InvertSimple( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
- BOOL bTestMerge = FALSE, BOOL bRepeat = FALSE );
+ sal_Bool bTestMerge = false, sal_Bool bRepeat = false );
void CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddress);
void HideCursor();
void ShowCursor();
- void UpdateAutoFillMark(BOOL bMarked, const ScRange& rMarkRange);
+ void UpdateAutoFillMark(sal_Bool bMarked, const ScRange& rMarkRange);
- void UpdateListValPos( BOOL bVisible, const ScAddress& rPos );
+ void UpdateListValPos( sal_Bool bVisible, const ScAddress& rPos );
- BOOL ShowNoteMarker( SCsCOL nPosX, SCsROW nPosY, BOOL bKeyboard );
+ sal_Bool ShowNoteMarker( SCsCOL nPosX, SCsROW nPosY, sal_Bool bKeyboard );
void HideNoteMarker();
- MapMode GetDrawMapMode( BOOL bForce = FALSE );
+ MapMode GetDrawMapMode( sal_Bool bForce = false );
void ContinueDrag();
void StopMarking();
void UpdateInputContext();
- void CheckInverted() { if (nPaintCount) bNeedsRepaint = TRUE; }
+ void CheckInverted() { if (nPaintCount) bNeedsRepaint = sal_True; }
void DoInvertRect( const Rectangle& rPixel );
diff --git a/sc/source/ui/inc/groupdlg.hxx b/sc/source/ui/inc/groupdlg.hxx
index 557044f16a3e..1510d1cf6154 100644
--- a/sc/source/ui/inc/groupdlg.hxx
+++ b/sc/source/ui/inc/groupdlg.hxx
@@ -31,7 +31,7 @@
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
//------------------------------------------------------------------------
@@ -40,12 +40,12 @@ class ScGroupDlg : public ModalDialog
{
public:
ScGroupDlg( Window* pParent,
- USHORT nResId,
- BOOL bUnGroup = FALSE,
- BOOL bRows = TRUE );
+ sal_uInt16 nResId,
+ sal_Bool bUnGroup = false,
+ sal_Bool bRows = sal_True );
~ScGroupDlg();
- BOOL GetColsChecked() const;
+ sal_Bool GetColsChecked() const;
private:
FixedLine aFlFrame;
diff --git a/sc/source/ui/inc/hdrcont.hxx b/sc/source/ui/inc/hdrcont.hxx
index c4cc590fc7ed..da614f7fa762 100644
--- a/sc/source/ui/inc/hdrcont.hxx
+++ b/sc/source/ui/inc/hdrcont.hxx
@@ -51,10 +51,10 @@ private:
SelectionEngine* pSelEngine;
Font aNormFont;
Font aBoldFont;
- BOOL bBoldSet;
+ sal_Bool bBoldSet;
- USHORT nFlags;
- BOOL bVertical; // Vertikal = Zeilenheader
+ sal_uInt16 nFlags;
+ sal_Bool bVertical; // Vertikal = Zeilenheader
long nWidth;
long nSmallWidth;
@@ -64,18 +64,18 @@ private:
SCCOLROW nMarkStart;
SCCOLROW nMarkEnd;
- BOOL bMarkRange;
+ sal_Bool bMarkRange;
- BOOL bDragging; // Groessen aendern
+ sal_Bool bDragging; // Groessen aendern
SCCOLROW nDragNo;
long nDragStart;
long nDragPos;
- BOOL bDragMoved;
+ sal_Bool bDragMoved;
- BOOL bIgnoreMove;
+ sal_Bool bIgnoreMove;
long GetScrPos( SCCOLROW nEntryNo );
- SCCOLROW GetMousePos( const MouseEvent& rMEvt, BOOL& rBorder );
+ SCCOLROW GetMousePos( const MouseEvent& rMEvt, sal_Bool& rBorder );
bool IsSelectionAllowed(SCCOLROW nPos) const;
void ShowDragHelp();
@@ -98,20 +98,20 @@ protected:
// neue Methoden
virtual SCCOLROW GetPos() = 0; // aktuelle Position (Scrolling)
- virtual USHORT GetEntrySize( SCCOLROW nEntryNo ) = 0; // Breite / Hoehe (Pixel)
+ virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) = 0; // Breite / Hoehe (Pixel)
virtual String GetEntryText( SCCOLROW nEntryNo ) = 0;
virtual SCCOLROW GetHiddenCount( SCCOLROW nEntryNo );
- virtual BOOL IsLayoutRTL();
- virtual BOOL IsMirrored();
+ virtual sal_Bool IsLayoutRTL();
+ virtual sal_Bool IsMirrored();
- virtual void SetEntrySize( SCCOLROW nPos, USHORT nNewWidth ) = 0;
+ virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewWidth ) = 0;
virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) = 0;
- virtual void SetMarking( BOOL bSet );
+ virtual void SetMarking( sal_Bool bSet );
virtual void SelectWindow();
- virtual BOOL IsDisabled();
- virtual BOOL ResizeAllowed();
+ virtual sal_Bool IsDisabled();
+ virtual sal_Bool ResizeAllowed();
virtual String GetDragHelp( long nVal );
virtual void DrawInvert( long nDragPos );
@@ -119,14 +119,14 @@ protected:
public:
ScHeaderControl( Window* pParent, SelectionEngine* pSelectionEngine,
- SCCOLROW nNewSize, USHORT nNewFlags );
+ SCCOLROW nNewSize, sal_uInt16 nNewFlags );
~ScHeaderControl();
- void SetIgnoreMove(BOOL bSet) { bIgnoreMove = bSet; }
+ void SetIgnoreMove(sal_Bool bSet) { bIgnoreMove = bSet; }
void StopMarking();
- void SetMark( BOOL bNewSet, SCCOLROW nNewStart, SCCOLROW nNewEnd );
+ void SetMark( sal_Bool bNewSet, SCCOLROW nNewStart, SCCOLROW nNewEnd );
long GetWidth() const { return nWidth; }
long GetSmallWidth() const { return nSmallWidth; }
diff --git a/sc/source/ui/inc/hfedtdlg.hxx b/sc/source/ui/inc/hfedtdlg.hxx
index 335fe9618b50..0f63f2e7bae9 100644
--- a/sc/source/ui/inc/hfedtdlg.hxx
+++ b/sc/source/ui/inc/hfedtdlg.hxx
@@ -46,11 +46,11 @@ public:
Window* pParent,
const SfxItemSet& rCoreSet,
const String& rPageStyle,
- USHORT nResId = RID_SCDLG_HFEDIT );
+ sal_uInt16 nResId = RID_SCDLG_HFEDIT );
~ScHFEditDlg();
- virtual void PageCreated( USHORT nId, SfxTabPage& rPage );
+ virtual void PageCreated( sal_uInt16 nId, SfxTabPage& rPage );
};
diff --git a/sc/source/ui/inc/highred.hxx b/sc/source/ui/inc/highred.hxx
index 090905c481e8..d3b6b24513a0 100644
--- a/sc/source/ui/inc/highred.hxx
+++ b/sc/source/ui/inc/highred.hxx
@@ -95,7 +95,7 @@ private:
protected:
- virtual void RefInputDone( BOOL bForced = FALSE );
+ virtual void RefInputDone( sal_Bool bForced = false );
public:
ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
@@ -105,8 +105,8 @@ public:
virtual void SetActive();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL Close();
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool Close();
+ virtual sal_Bool IsRefInputMode() const;
};
diff --git a/sc/source/ui/inc/hiranges.hxx b/sc/source/ui/inc/hiranges.hxx
index a79bfad079c4..e14c74938bdd 100644
--- a/sc/source/ui/inc/hiranges.hxx
+++ b/sc/source/ui/inc/hiranges.hxx
@@ -52,9 +52,9 @@ public:
ScHighlightRanges();
~ScHighlightRanges();
- ULONG Count() const { return aEntries.Count(); }
+ sal_uLong Count() const { return aEntries.Count(); }
void Insert( ScHighlightEntry* pNew ) { aEntries.Insert(pNew, LIST_APPEND); }
- ScHighlightEntry* GetObject( ULONG nIndex ) const
+ ScHighlightEntry* GetObject( sal_uLong nIndex ) const
{ return (ScHighlightEntry*)aEntries.GetObject(nIndex); }
};
diff --git a/sc/source/ui/inc/imoptdlg.hxx b/sc/source/ui/inc/imoptdlg.hxx
index 49f574bbf055..016b0e863304 100644
--- a/sc/source/ui/inc/imoptdlg.hxx
+++ b/sc/source/ui/inc/imoptdlg.hxx
@@ -33,7 +33,7 @@
#include <vcl/fixed.hxx>
#include <vcl/combobox.hxx>
#include <vcl/lstbox.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <svx/txencbox.hxx>
#include "scdllapi.h"
#include "global.hxx"
@@ -45,19 +45,19 @@ class SC_DLLPUBLIC ScImportOptions
public:
ScImportOptions()
: nFieldSepCode(0), nTextSepCode(0),
- eCharSet(RTL_TEXTENCODING_DONTKNOW), bFixedWidth(FALSE),
- bSaveAsShown(FALSE)
+ eCharSet(RTL_TEXTENCODING_DONTKNOW), bFixedWidth(false),
+ bSaveAsShown(false), bQuoteAllText(false)
{}
ScImportOptions( const String& rStr );
ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, const String& rStr )
: nFieldSepCode(nFieldSep), nTextSepCode(nTextSep), aStrFont(rStr),
- bFixedWidth(FALSE), bSaveAsShown(FALSE)
+ bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false)
{ eCharSet = ScGlobal::GetCharsetValue(aStrFont); }
ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, rtl_TextEncoding nEnc )
: nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
- bFixedWidth(FALSE), bSaveAsShown(FALSE)
+ bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false)
{ SetTextEncoding( nEnc ); }
ScImportOptions( const ScImportOptions& rCpy )
@@ -66,7 +66,8 @@ public:
aStrFont (rCpy.aStrFont),
eCharSet (rCpy.eCharSet),
bFixedWidth (rCpy.bFixedWidth),
- bSaveAsShown (rCpy.bSaveAsShown)
+ bSaveAsShown (rCpy.bSaveAsShown),
+ bQuoteAllText (rCpy.bQuoteAllText)
{}
ScImportOptions& operator=( const ScImportOptions& rCpy )
@@ -77,10 +78,11 @@ public:
eCharSet = rCpy.eCharSet;
bFixedWidth = rCpy.bFixedWidth;
bSaveAsShown = rCpy.bSaveAsShown;
+ bQuoteAllText = rCpy.bQuoteAllText;
return *this;
}
- BOOL operator==( const ScImportOptions& rCmp )
+ sal_Bool operator==( const ScImportOptions& rCmp )
{
return
nFieldSepCode == rCmp.nFieldSepCode
@@ -88,7 +90,8 @@ public:
&& eCharSet == rCmp.eCharSet
&& aStrFont == rCmp.aStrFont
&& bFixedWidth == rCmp.bFixedWidth
- && bSaveAsShown == rCmp.bSaveAsShown;
+ && bSaveAsShown == rCmp.bSaveAsShown
+ && bQuoteAllText == rCmp.bQuoteAllText;
}
String BuildString() const;
@@ -98,8 +101,9 @@ public:
sal_Unicode nTextSepCode;
String aStrFont;
CharSet eCharSet;
- BOOL bFixedWidth;
- BOOL bSaveAsShown;
+ sal_Bool bFixedWidth;
+ sal_Bool bSaveAsShown;
+ sal_Bool bQuoteAllText;
};
diff --git a/sc/source/ui/inc/impex.hxx b/sc/source/ui/inc/impex.hxx
index 343e952abb3e..a4c28b1150e7 100644
--- a/sc/source/ui/inc/impex.hxx
+++ b/sc/source/ui/inc/impex.hxx
@@ -63,33 +63,33 @@ class SC_DLLPUBLIC ScImportExport
ScRange aRange;
String aStreamPath;
String aNonConvertibleChars;
- ULONG nSizeLimit;
+ sal_uLong nSizeLimit;
sal_Unicode cSep; // Separator
sal_Unicode cStr; // String Delimiter
- BOOL bFormulas; // Formeln im Text?
- BOOL bIncludeFiltered; // include filtered rows? (default true)
- BOOL bAll; // keine Selektion
- BOOL bSingle; // Einfachselektion
- BOOL bUndo; // Mit Undo?
- BOOL bOverflow; // zuviele Zeilen/Spalten
+ sal_Bool bFormulas; // Formeln im Text?
+ sal_Bool bIncludeFiltered; // include filtered rows? (default true)
+ sal_Bool bAll; // keine Selektion
+ sal_Bool bSingle; // Einfachselektion
+ sal_Bool bUndo; // Mit Undo?
+ sal_Bool bOverflow; // zuviele Zeilen/Spalten
bool mbApi;
ScExportTextOptions mExportTextOptions;
ScAsciiOptions* pExtOptions; // erweiterte Optionen
- BOOL StartPaste(); // Protect-Check, Undo einrichten
+ sal_Bool StartPaste(); // Protect-Check, Undo einrichten
void EndPaste(); // Undo/Redo-Aktionen, Repaint
- BOOL Doc2Text( SvStream& );
- BOOL Text2Doc( SvStream& );
- BOOL Doc2Sylk( SvStream& );
- BOOL Sylk2Doc( SvStream& );
- BOOL Doc2HTML( SvStream&, const String& );
- BOOL Doc2RTF( SvStream& );
- BOOL Doc2Dif( SvStream& );
- BOOL Dif2Doc( SvStream& );
- BOOL ExtText2Doc( SvStream& ); // mit pExtOptions
- BOOL RTF2Doc( SvStream&, const String& rBaseURL );
- BOOL HTML2Doc( SvStream&, const String& rBaseURL );
+ sal_Bool Doc2Text( SvStream& );
+ sal_Bool Text2Doc( SvStream& );
+ sal_Bool Doc2Sylk( SvStream& );
+ sal_Bool Sylk2Doc( SvStream& );
+ sal_Bool Doc2HTML( SvStream&, const String& );
+ sal_Bool Doc2RTF( SvStream& );
+ sal_Bool Doc2Dif( SvStream& );
+ sal_Bool Dif2Doc( SvStream& );
+ sal_Bool ExtText2Doc( SvStream& ); // mit pExtOptions
+ sal_Bool RTF2Doc( SvStream&, const String& rBaseURL );
+ sal_Bool HTML2Doc( SvStream&, const String& rBaseURL );
public:
ScImportExport( ScDocument* ); // Gesamtdokument
@@ -100,22 +100,22 @@ public:
void SetExtOptions( const ScAsciiOptions& rOpt );
- BOOL IsDoubleRef() const { return BOOL( !( bAll || bSingle ) ); }
- BOOL IsSingleRef() const { return bSingle; }
- BOOL IsNoRef() const { return bAll; }
- BOOL IsRef() const { return BOOL( !bAll ); }
+ sal_Bool IsDoubleRef() const { return sal_Bool( !( bAll || bSingle ) ); }
+ sal_Bool IsSingleRef() const { return bSingle; }
+ sal_Bool IsNoRef() const { return bAll; }
+ sal_Bool IsRef() const { return sal_Bool( !bAll ); }
const ScRange& GetRange() const { return aRange; }
- BOOL IsUndo() const { return bUndo; }
- void SetUndo( BOOL b ) { bUndo = b; }
+ sal_Bool IsUndo() const { return bUndo; }
+ void SetUndo( sal_Bool b ) { bUndo = b; }
- static BOOL IsFormatSupported( ULONG nFormat );
+ static sal_Bool IsFormatSupported( sal_uLong nFormat );
static const sal_Unicode* ScanNextFieldFromString( const sal_Unicode* p,
String& rField, sal_Unicode cStr, const sal_Unicode* pSeps, bool bMergeSeps, bool& rbIsQuoted );
- static void WriteUnicodeOrByteString( SvStream& rStrm, const String& rString, BOOL bZero = FALSE );
+ static void WriteUnicodeOrByteString( SvStream& rStrm, const String& rString, sal_Bool bZero = false );
static void WriteUnicodeOrByteEndl( SvStream& rStrm );
- static inline BOOL IsEndianSwap( const SvStream& rStrm );
+ static inline sal_Bool IsEndianSwap( const SvStream& rStrm );
//! only if stream is only used in own (!) memory
static inline void SetNoEndianSwap( SvStream& rStrm );
@@ -124,29 +124,29 @@ public:
void SetSeparator( sal_Unicode c ) { cSep = c; }
sal_Unicode GetDelimiter() const { return cStr; }
void SetDelimiter( sal_Unicode c ) { cStr = c; }
- BOOL IsFormulas() const { return bFormulas; }
- void SetFormulas( BOOL b ) { bFormulas = b; }
- BOOL IsIncludeFiltered() const { return bIncludeFiltered; }
- void SetIncludeFiltered( BOOL b ) { bIncludeFiltered = b; }
+ sal_Bool IsFormulas() const { return bFormulas; }
+ void SetFormulas( sal_Bool b ) { bFormulas = b; }
+ sal_Bool IsIncludeFiltered() const { return bIncludeFiltered; }
+ void SetIncludeFiltered( sal_Bool b ) { bIncludeFiltered = b; }
- void SetSizeLimit( ULONG nNew ) { nSizeLimit = nNew; } // momentan nur fuer Ascii
+ void SetSizeLimit( sal_uLong nNew ) { nSizeLimit = nNew; } // momentan nur fuer Ascii
void SetStreamPath( const String& rPath ) { aStreamPath = rPath; }
const String& GetStreamPath() const { return aStreamPath; }
- BOOL ImportString( const ::rtl::OUString&, ULONG=FORMAT_STRING );
- BOOL ExportString( ::rtl::OUString&, ULONG=FORMAT_STRING );
- BOOL ExportByteString( ByteString&, rtl_TextEncoding, ULONG=FORMAT_STRING );
+ sal_Bool ImportString( const ::rtl::OUString&, sal_uLong=FORMAT_STRING );
+ sal_Bool ExportString( ::rtl::OUString&, sal_uLong=FORMAT_STRING );
+ sal_Bool ExportByteString( ByteString&, rtl_TextEncoding, sal_uLong=FORMAT_STRING );
- BOOL ImportStream( SvStream&, const String& rBaseURL, ULONG=FORMAT_STRING );
- BOOL ExportStream( SvStream&, const String& rBaseURL, ULONG=FORMAT_STRING );
+ sal_Bool ImportStream( SvStream&, const String& rBaseURL, sal_uLong=FORMAT_STRING );
+ sal_Bool ExportStream( SvStream&, const String& rBaseURL, sal_uLong=FORMAT_STRING );
- BOOL ImportData( const String& rMimeType,
+ sal_Bool ImportData( const String& rMimeType,
const ::com::sun::star::uno::Any & rValue );
- BOOL ExportData( const String& rMimeType,
+ sal_Bool ExportData( const String& rMimeType,
::com::sun::star::uno::Any & rValue );
- BOOL IsOverflow() const { return bOverflow; } // nach dem Importieren
+ sal_Bool IsOverflow() const { return bOverflow; } // nach dem Importieren
const String& GetNonConvertibleChars() const { return aNonConvertibleChars; }
@@ -157,7 +157,7 @@ public:
};
-inline BOOL ScImportExport::IsEndianSwap( const SvStream& rStrm )
+inline sal_Bool ScImportExport::IsEndianSwap( const SvStream& rStrm )
{
#ifdef OSL_BIGENDIAN
return rStrm.GetNumberFormatInt() != NUMBERFORMAT_INT_BIGENDIAN;
@@ -185,7 +185,7 @@ public:
rStr.getLength() * sizeof(sal_Unicode), STREAM_READ)
{
SetStreamCharSet( RTL_TEXTENCODING_UNICODE );
- SetEndianSwap( FALSE );
+ SetEndianSwap( false );
}
};
diff --git a/sc/source/ui/inc/inputhdl.hxx b/sc/source/ui/inc/inputhdl.hxx
index b6fb5eead65a..76c4daca74cc 100644
--- a/sc/source/ui/inc/inputhdl.hxx
+++ b/sc/source/ui/inc/inputhdl.hxx
@@ -70,38 +70,38 @@ private:
TypedScStrCollection* pFormulaData;
TypedScStrCollection* pFormulaDataPara;
Window* pTipVisibleParent;
- ULONG nTipVisible;
+ sal_uLong nTipVisible;
Window* pTipVisibleSecParent;
- ULONG nTipVisibleSec;
+ sal_uLong nTipVisibleSec;
String aManualTip;
String aAutoSearch;
- USHORT nAutoPos;
- BOOL bUseTab; // Blaettern moeglich
+ sal_uInt16 nAutoPos;
+ sal_Bool bUseTab; // Blaettern moeglich
- BOOL bTextValid; // Text noch nicht in Edit-Engine
+ sal_Bool bTextValid; // Text noch nicht in Edit-Engine
String aCurrentText;
String aFormText; // fuer Funktions-Autopilot
xub_StrLen nFormSelStart; // Selektion fuer Funktions-Autopilot
xub_StrLen nFormSelEnd;
- USHORT nAutoPar; // autom.parentheses than can be overwritten
+ sal_uInt16 nAutoPar; // autom.parentheses than can be overwritten
ScAddress aCursorPos;
ScInputMode eMode;
- BOOL bModified;
- BOOL bSelIsRef;
- BOOL bFormulaMode;
- BOOL bInRangeUpdate;
- BOOL bParenthesisShown;
- BOOL bCreatingFuncView;
- BOOL bInEnterHandler;
- BOOL bCommandErrorShown;
- BOOL bInOwnChange;
-
- BOOL bProtected;
- BOOL bCellHasPercentFormat;
- ULONG nValidation;
+ sal_Bool bModified;
+ sal_Bool bSelIsRef;
+ sal_Bool bFormulaMode;
+ sal_Bool bInRangeUpdate;
+ sal_Bool bParenthesisShown;
+ sal_Bool bCreatingFuncView;
+ sal_Bool bInEnterHandler;
+ sal_Bool bCommandErrorShown;
+ sal_Bool bInOwnChange;
+
+ sal_Bool bProtected;
+ sal_Bool bCellHasPercentFormat;
+ sal_uLong nValidation;
SvxCellHorJustify eAttrAdjust;
Fraction aScaleX; // fuer Ref-MapMode
@@ -112,15 +112,15 @@ private:
const ScPatternAttr* pLastPattern;
SfxItemSet* pEditDefaults;
- BOOL bLastIsSymbol;
+ sal_Bool bLastIsSymbol;
ScInputHdlState* pLastState;
Timer* pDelayTimer;
ScRangeFindList* pRangeFindList;
- static BOOL bAutoComplete; // aus App-Optionen
- static BOOL bOptLoaded;
+ static sal_Bool bAutoComplete; // aus App-Optionen
+ static sal_Bool bOptLoaded;
#ifdef _INPUTHDL_CXX
private:
@@ -141,11 +141,11 @@ private:
DECL_LINK( DelayTimer, Timer* );
void GetColData();
void UseColData();
- void NextAutoEntry( BOOL bBack );
+ void NextAutoEntry( sal_Bool bBack );
void UpdateAdjust( sal_Unicode cTyped );
void GetFormulaData();
void UseFormulaData();
- void NextFormulaEntry( BOOL bBack );
+ void NextFormulaEntry( sal_Bool bBack );
void PasteFunctionData();
void PasteManualTip();
EditView* GetFuncEditView();
@@ -156,7 +156,7 @@ private:
void UpdateAutoCorrFlag();
void ResetAutoPar();
void AutoParAdded();
- BOOL CursorAtClosingPar();
+ sal_Bool CursorAtClosingPar();
void SkipClosingPar();
DECL_LINK( ModifyHdl, void* );
DECL_LINK( ShowHideTipVisibleParentListener, VclWindowEvent* );
@@ -168,36 +168,38 @@ public:
virtual ~ScInputHandler();
void SetMode( ScInputMode eNewMode );
- BOOL IsInputMode() const { return (eMode != SC_INPUT_NONE); }
- BOOL IsEditMode() const { return (eMode != SC_INPUT_NONE &&
+ sal_Bool IsInputMode() const { return (eMode != SC_INPUT_NONE); }
+ sal_Bool IsEditMode() const { return (eMode != SC_INPUT_NONE &&
eMode != SC_INPUT_TYPE); }
- BOOL IsTopMode() const { return (eMode == SC_INPUT_TOP); }
+ sal_Bool IsTopMode() const { return (eMode == SC_INPUT_TOP); }
const String& GetEditString();
const String& GetFormString() const { return aFormText; }
- BOOL GetTextAndFields( ScEditEngineDefaulter& rDestEngine );
+ const ScAddress& GetCursorPos() const { return aCursorPos; }
- BOOL KeyInput( const KeyEvent& rKEvt, BOOL bStartEdit = FALSE );
- void EnterHandler( BYTE nBlockMode = 0 );
+ sal_Bool GetTextAndFields( ScEditEngineDefaulter& rDestEngine );
+
+ sal_Bool KeyInput( const KeyEvent& rKEvt, sal_Bool bStartEdit = false );
+ void EnterHandler( sal_uInt8 nBlockMode = 0 );
void CancelHandler();
void SetReference( const ScRange& rRef, ScDocument* pDoc );
void AddRefEntry();
- BOOL InputCommand( const CommandEvent& rCEvt, BOOL bForce );
+ sal_Bool InputCommand( const CommandEvent& rCEvt, sal_Bool bForce );
- void InsertFunction( const String& rFuncName, BOOL bAddPar = TRUE );
+ void InsertFunction( const String& rFuncName, sal_Bool bAddPar = sal_True );
void ClearText();
void InputSelection( EditView* pView );
- void InputChanged( EditView* pView, BOOL bFromNotify = FALSE );
+ void InputChanged( EditView* pView, sal_Bool bFromNotify = false );
void ViewShellGone(ScTabViewShell* pViewSh);
void SetRefViewShell(ScTabViewShell* pRefVsh) {pRefViewSh=pRefVsh;}
- void NotifyChange( const ScInputHdlState* pState, BOOL bForce = FALSE,
+ void NotifyChange( const ScInputHdlState* pState, sal_Bool bForce = false,
ScTabViewShell* pSourceSh = NULL,
- BOOL bStopEditing = TRUE);
+ sal_Bool bStopEditing = sal_True);
void UpdateCellAdjust( SvxCellHorJustify eJust );
void ResetDelayTimer(); //BugId 54702
@@ -215,21 +217,21 @@ public:
EditView* GetTableView() { return pTableView; }
EditView* GetTopView() { return pTopView; }
- BOOL DataChanging( sal_Unicode cTyped = 0, BOOL bFromCommand = FALSE );
- void DataChanged( BOOL bFromTopNotify = FALSE );
+ sal_Bool DataChanging( sal_Unicode cTyped = 0, sal_Bool bFromCommand = false );
+ void DataChanged( sal_Bool bFromTopNotify = false );
- BOOL TakesReturn() const { return ( nTipVisible != 0 ); }
+ sal_Bool TakesReturn() const { return ( nTipVisible != 0 ); }
- void SetModified() { bModified = TRUE; }
+ void SetModified() { bModified = sal_True; }
- BOOL GetSelIsRef() const { return bSelIsRef; }
- void SetSelIsRef(BOOL bSet) { bSelIsRef = bSet; }
+ sal_Bool GetSelIsRef() const { return bSelIsRef; }
+ void SetSelIsRef(sal_Bool bSet) { bSelIsRef = bSet; }
void ShowRefFrame();
ScRangeFindList* GetRangeFindList() { return pRangeFindList; }
- void UpdateRange( USHORT nIndex, const ScRange& rNew );
+ void UpdateRange( sal_uInt16 nIndex, const ScRange& rNew );
// Kommunikation mit Funktionsautopilot
void InputGetSelection ( xub_StrLen& rStart, xub_StrLen& rEnd );
@@ -237,19 +239,19 @@ public:
void InputReplaceSelection ( const String& rStr );
String InputGetFormulaStr ();
- BOOL IsFormulaMode() const { return bFormulaMode; }
+ sal_Bool IsFormulaMode() const { return bFormulaMode; }
ScInputWindow* GetInputWindow() { return pInputWin; }
void SetInputWindow( ScInputWindow* pNew ) { pInputWin = pNew; }
- void StopInputWinEngine( BOOL bAll );
+ void StopInputWinEngine( sal_Bool bAll );
- BOOL IsInEnterHandler() const { return bInEnterHandler; }
- BOOL IsInOwnChange() const { return bInOwnChange; }
+ sal_Bool IsInEnterHandler() const { return bInEnterHandler; }
+ sal_Bool IsInOwnChange() const { return bInOwnChange; }
- BOOL IsModalMode( SfxObjectShell* pDocSh );
+ sal_Bool IsModalMode( SfxObjectShell* pDocSh );
void ForgetLastPattern();
- void UpdateSpellSettings( BOOL bFromStartTab = FALSE );
+ void UpdateSpellSettings( sal_Bool bFromStartTab = false );
void FormulaPreview();
@@ -258,7 +260,7 @@ public:
// eigentlich private, fuer SID_INPUT_SUM public
void InitRangeFinder( const String& rFormula );
- static void SetAutoComplete(BOOL bSet) { bAutoComplete = bSet; }
+ static void SetAutoComplete(sal_Bool bSet) { bAutoComplete = bSet; }
};
//========================================================================
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index 46dbe9eb920a..27bc405f24c5 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -56,18 +56,18 @@ public:
void SetTextString( const String& rString );
const String& GetTextString() const;
- BOOL IsInputActive();
+ sal_Bool IsInputActive();
EditView* GetEditView();
// fuer FunktionsAutopiloten
void MakeDialogEditView();
void StartEditEngine();
- void StopEditEngine( BOOL bAll );
+ void StopEditEngine( sal_Bool bAll );
virtual void DataChanged( const DataChangedEvent& rDCEvt );
- void SetFormulaMode( BOOL bSet );
+ void SetFormulaMode( sal_Bool bSet );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
@@ -104,13 +104,13 @@ private:
ScEditEngineDefaulter* pEditEngine; // erst bei Bedarf angelegt
EditView* pEditView;
AccTextDataVector maAccTextDatas; // #i105267# text datas may be cloned, remember all copies
- BOOL bIsRTL;
- BOOL bIsInsertMode;
- BOOL bFormulaMode;
+ sal_Bool bIsRTL;
+ sal_Bool bIsInsertMode;
+ sal_Bool bFormulaMode;
// #102710#; this flag should be true if a key input or a command is handled
// it prevents the call of InputChanged in the ModifyHandler of the EditEngine
- BOOL bInputMode;
+ sal_Bool bInputMode;
};
//========================================================================
@@ -120,16 +120,16 @@ class ScPosWnd : public ComboBox, public SfxListener // Positionsanzeige
private:
String aPosStr;
Accelerator* pAccel;
- ULONG nTipVisible;
- BOOL bFormulaMode;
- BOOL bTopHadFocus;
+ sal_uLong nTipVisible;
+ sal_Bool bFormulaMode;
+ sal_Bool bTopHadFocus;
public:
ScPosWnd( Window* pParent );
virtual ~ScPosWnd();
void SetPos( const String& rPosStr ); // angezeigter Text
- void SetFormulaMode( BOOL bSet );
+ void SetFormulaMode( sal_Bool bSet );
protected:
virtual void Select();
@@ -159,17 +159,17 @@ public:
virtual void Resize();
virtual void Select();
- void SetFuncString( const String& rString, BOOL bDoEdit = TRUE );
+ void SetFuncString( const String& rString, sal_Bool bDoEdit = sal_True );
void SetPosString( const String& rStr );
void SetTextString( const String& rString );
void SetOkCancelMode();
void SetSumAssignMode();
- void EnableButtons( BOOL bEnable = TRUE );
+ void EnableButtons( sal_Bool bEnable = sal_True );
- void SetFormulaMode( BOOL bSet );
+ void SetFormulaMode( sal_Bool bSet );
- BOOL IsInputActive();
+ sal_Bool IsInputActive();
EditView* GetEditView();
void TextGrabFocus();
@@ -181,7 +181,7 @@ public:
// Fuer FunktionsAutopiloten
void MakeDialogEditView();
- void StopEditEngine( BOOL bAll );
+ void StopEditEngine( sal_Bool bAll );
void SetInputHandler( ScInputHandler* pNew );
@@ -206,7 +206,7 @@ private:
String aTextCancel;
String aTextSum;
String aTextEqual;
- BOOL bIsOkCancelMode;
+ sal_Bool bIsOkCancelMode;
};
//==================================================================
@@ -215,7 +215,7 @@ class ScInputWindowWrapper : public SfxChildWindow
{
public:
ScInputWindowWrapper( Window* pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo );
diff --git a/sc/source/ui/inc/inscldlg.hxx b/sc/source/ui/inc/inscldlg.hxx
index 7c3965ef981c..41608bccdf83 100644
--- a/sc/source/ui/inc/inscldlg.hxx
+++ b/sc/source/ui/inc/inscldlg.hxx
@@ -30,7 +30,7 @@
#define SC_INSCLDLG_HXX
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
@@ -51,7 +51,7 @@ private:
HelpButton aBtnHelp;
public:
- ScInsertCellDlg( Window* pParent,BOOL bDisallowCellMove = FALSE );
+ ScInsertCellDlg( Window* pParent,sal_Bool bDisallowCellMove = false );
~ScInsertCellDlg();
InsCellCmd GetInsCellCmd() const;
diff --git a/sc/source/ui/inc/inscodlg.hxx b/sc/source/ui/inc/inscodlg.hxx
index 5888c1e72209..0b893ed0f7cc 100644
--- a/sc/source/ui/inc/inscodlg.hxx
+++ b/sc/source/ui/inc/inscodlg.hxx
@@ -30,7 +30,7 @@
#define SC_INSCODLG_HXX
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include "global.hxx"
@@ -41,20 +41,20 @@ class ScInsertContentsDlg : public ModalDialog
{
public:
ScInsertContentsDlg( Window* pParent,
- USHORT nCheckDefaults = 0,
+ sal_uInt16 nCheckDefaults = 0,
const String* pStrTitle = NULL );
~ScInsertContentsDlg();
- USHORT GetInsContentsCmdBits() const;
- USHORT GetFormulaCmdBits() const;
- BOOL IsSkipEmptyCells() const {return aBtnSkipEmptyCells.IsChecked();}
- BOOL IsTranspose() const {return aBtnTranspose.IsChecked();}
- BOOL IsLink() const {return aBtnLink.IsChecked();}
+ sal_uInt16 GetInsContentsCmdBits() const;
+ sal_uInt16 GetFormulaCmdBits() const;
+ sal_Bool IsSkipEmptyCells() const {return aBtnSkipEmptyCells.IsChecked();}
+ sal_Bool IsTranspose() const {return aBtnTranspose.IsChecked();}
+ sal_Bool IsLink() const {return aBtnLink.IsChecked();}
InsCellCmd GetMoveMode();
- void SetOtherDoc( BOOL bSet );
- void SetFillMode( BOOL bSet );
- void SetChangeTrack( BOOL bSet );
+ void SetOtherDoc( sal_Bool bSet );
+ void SetFillMode( sal_Bool bSet );
+ void SetChangeTrack( sal_Bool bSet );
void SetCellShiftDisabled( int nDisable );
private:
@@ -91,19 +91,19 @@ private:
CancelButton aBtnCancel;
HelpButton aBtnHelp;
- BOOL bOtherDoc;
- BOOL bFillMode;
- BOOL bChangeTrack;
- BOOL bMoveDownDisabled;
- BOOL bMoveRightDisabled;
+ sal_Bool bOtherDoc;
+ sal_Bool bFillMode;
+ sal_Bool bChangeTrack;
+ sal_Bool bMoveDownDisabled;
+ sal_Bool bMoveRightDisabled;
- static BOOL bPreviousAllCheck;
- static USHORT nPreviousChecks;
- static USHORT nPreviousChecks2;
- static USHORT nPreviousFormulaChecks;
- static USHORT nPreviousMoveMode; // enum InsCellCmd
+ static sal_Bool bPreviousAllCheck;
+ static sal_uInt16 nPreviousChecks;
+ static sal_uInt16 nPreviousChecks2;
+ static sal_uInt16 nPreviousFormulaChecks;
+ static sal_uInt16 nPreviousMoveMode; // enum InsCellCmd
- void DisableChecks( BOOL bInsAllChecked = TRUE );
+ void DisableChecks( sal_Bool bInsAllChecked = sal_True );
void TestModes();
// Handler
diff --git a/sc/source/ui/inc/instbdlg.hxx b/sc/source/ui/inc/instbdlg.hxx
index d0ae51329feb..718e6d107b9b 100644
--- a/sc/source/ui/inc/instbdlg.hxx
+++ b/sc/source/ui/inc/instbdlg.hxx
@@ -62,19 +62,20 @@ public:
virtual short Execute(); // ueberladen, um Dialog-Parent zu setzen
- BOOL GetTablesFromFile() { return aBtnFromFile.IsChecked(); }
- BOOL GetTablesAsLink() { return aBtnLink.IsChecked(); }
+ sal_Bool GetTablesFromFile() { return aBtnFromFile.IsChecked(); }
+ sal_Bool GetTablesAsLink() { return aBtnLink.IsChecked(); }
- const String* GetFirstTable( USHORT* pN = NULL );
- const String* GetNextTable( USHORT* pN = NULL );
+ const String* GetFirstTable( sal_uInt16* pN = NULL );
+ const String* GetNextTable( sal_uInt16* pN = NULL );
ScDocShell* GetDocShellTables() { return pDocShTables; }
- BOOL IsTableBefore() { return aBtnBefore.IsChecked(); }
+ sal_Bool IsTableBefore() { return aBtnBefore.IsChecked(); }
SCTAB GetTableCount() { return nTableCount;}
private:
+ FixedLine aFlPos;
RadioButton aBtnBefore;
RadioButton aBtnBehind;
- FixedLine aFlPos;
+ FixedLine aFlTable;
RadioButton aBtnNew;
RadioButton aBtnFromFile;
FixedText aFtCount;
@@ -85,7 +86,6 @@ private:
ScExpandedFixedText aFtPath;
PushButton aBtnBrowse;
CheckBox aBtnLink;
- FixedLine aFlTable;
OKButton aBtnOk;
CancelButton aBtnCancel;
HelpButton aBtnHelp;
@@ -98,7 +98,7 @@ private:
SfxObjectShellRef aDocShTablesRef;
bool bMustClose;
- USHORT nSelTabIndex; // fuer GetFirstTable() / GetNextTable()
+ sal_uInt16 nSelTabIndex; // fuer GetFirstTable() / GetNextTable()
String aStrCurSelTable;
SCTAB nTableCount;
diff --git a/sc/source/ui/inc/lbseldlg.hxx b/sc/source/ui/inc/lbseldlg.hxx
index f6e8946737d8..2f1c50828324 100644
--- a/sc/source/ui/inc/lbseldlg.hxx
+++ b/sc/source/ui/inc/lbseldlg.hxx
@@ -53,7 +53,7 @@ private:
public:
ScSelEntryDlg( Window* pParent,
- USHORT nResId,
+ sal_uInt16 nResId,
const String& aTitle,
const String& aLbTitle,
List& aEntryList );
diff --git a/sc/source/ui/inc/linkarea.hxx b/sc/source/ui/inc/linkarea.hxx
index 8c37f0a5685d..2a5ab6a18ccb 100644
--- a/sc/source/ui/inc/linkarea.hxx
+++ b/sc/source/ui/inc/linkarea.hxx
@@ -85,7 +85,7 @@ public:
void InitFromOldLink( const String& rFile, const String& rFilter,
const String& rOptions, const String& rSource,
- ULONG nRefresh );
+ sal_uLong nRefresh );
virtual short Execute(); // overwritten to set dialog parent
@@ -93,7 +93,7 @@ public:
String GetFilter(); // may be empty
String GetOptions(); // filter options
String GetSource(); // separated by ";"
- ULONG GetRefresh(); // 0 if disabled
+ sal_uLong GetRefresh(); // 0 if disabled
};
#endif
diff --git a/sc/source/ui/inc/msgpool.hxx b/sc/source/ui/inc/msgpool.hxx
index 76b5036b4000..25f182e74872 100644
--- a/sc/source/ui/inc/msgpool.hxx
+++ b/sc/source/ui/inc/msgpool.hxx
@@ -69,7 +69,7 @@ protected:
virtual ~ScMessagePool();
public:
- virtual SfxMapUnit GetMetric( USHORT nWhich ) const;
+ virtual SfxMapUnit GetMetric( sal_uInt16 nWhich ) const;
};
diff --git a/sc/source/ui/inc/mtrindlg.hxx b/sc/source/ui/inc/mtrindlg.hxx
index 1dedf6ae258d..c6e0e1b117e2 100644
--- a/sc/source/ui/inc/mtrindlg.hxx
+++ b/sc/source/ui/inc/mtrindlg.hxx
@@ -31,7 +31,7 @@
#include <vcl/dialog.hxx>
#include <vcl/field.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
@@ -41,11 +41,11 @@ class ScMetricInputDlg : public ModalDialog
{
public:
ScMetricInputDlg( Window* pParent,
- USHORT nResId, // Ableitung fuer jeden Dialog!
+ sal_uInt16 nResId, // Ableitung fuer jeden Dialog!
long nCurrent,
long nDefault,
FieldUnit eFUnit = FUNIT_MM,
- USHORT nDecimals = 2,
+ sal_uInt16 nDecimals = 2,
long nMaximum = 1000,
long nMinimum = 0,
long nFirst = 1,
diff --git a/sc/source/ui/inc/mvtabdlg.hxx b/sc/source/ui/inc/mvtabdlg.hxx
index e850d9bff41c..d563650fca05 100644
--- a/sc/source/ui/inc/mvtabdlg.hxx
+++ b/sc/source/ui/inc/mvtabdlg.hxx
@@ -32,7 +32,7 @@
#include "address.hxx"
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/lstbox.hxx>
#include <vcl/fixed.hxx>
#include <vcl/edit.hxx>
@@ -48,14 +48,14 @@ public:
ScMoveTableDlg( Window* pParent, const String& rDefault );
~ScMoveTableDlg();
- USHORT GetSelectedDocument () const;
+ sal_uInt16 GetSelectedDocument () const;
SCTAB GetSelectedTable () const;
bool GetCopyTable () const;
bool GetRenameTable () const;
void GetTabNameString( String& rString ) const;
void SetForceCopyTable ();
- void EnableCopyTable (BOOL bFlag=TRUE);
- void EnableRenameTable (BOOL bFlag=TRUE);
+ void EnableCopyTable (sal_Bool bFlag=true);
+ void EnableRenameTable (sal_Bool bFlag=true);
private:
void ResetRenameInput();
@@ -85,7 +85,7 @@ private:
const String& mrDefaultName;
- USHORT nDocument;
+ sal_uInt16 nDocument;
SCTAB nTable;
bool bCopyTable:1;
bool bRenameTable:1;
diff --git a/sc/source/ui/inc/namecrea.hxx b/sc/source/ui/inc/namecrea.hxx
index 852a3ce9c85c..1f494d685cb3 100644
--- a/sc/source/ui/inc/namecrea.hxx
+++ b/sc/source/ui/inc/namecrea.hxx
@@ -30,7 +30,7 @@
#define SC_NAMECREA_HXX
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include "scui_def.hxx"
@@ -46,9 +46,9 @@ protected:
CancelButton aCancelButton;
HelpButton aHelpButton;
public:
- ScNameCreateDlg( Window * pParent, USHORT nFlags );
+ ScNameCreateDlg( Window * pParent, sal_uInt16 nFlags );
- USHORT GetFlags() const;
+ sal_uInt16 GetFlags() const;
};
diff --git a/sc/source/ui/inc/namedlg.hxx b/sc/source/ui/inc/namedlg.hxx
index f86dcc8d6bb9..2939c3caab0b 100644
--- a/sc/source/ui/inc/namedlg.hxx
+++ b/sc/source/ui/inc/namedlg.hxx
@@ -64,7 +64,7 @@ private:
PushButton aBtnAdd;
PushButton aBtnRemove;
MoreButton aBtnMore;
- BOOL bSaved;
+ sal_Bool bSaved;
const String aStrAdd; // "Hinzufuegen"
const String aStrModify; // "Aendern"
@@ -95,7 +95,7 @@ private:
protected:
- virtual void RefInputDone( BOOL bForced = FALSE );
+ virtual void RefInputDone( sal_Bool bForced = false );
public:
@@ -105,10 +105,10 @@ public:
~ScNameDlg();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
};
diff --git a/sc/source/ui/inc/namepast.hxx b/sc/source/ui/inc/namepast.hxx
index 3c3547666f8f..c90c20904ffe 100644
--- a/sc/source/ui/inc/namepast.hxx
+++ b/sc/source/ui/inc/namepast.hxx
@@ -30,7 +30,7 @@
#define SC_NAMEPAST_HXX
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/lstbox.hxx>
@@ -51,7 +51,7 @@ protected:
HelpButton aHelpButton;
PushButton aInsListButton;
public:
- ScNamePasteDlg( Window * pParent, const ScRangeName* pList, BOOL bInsList=TRUE );
+ ScNamePasteDlg( Window * pParent, const ScRangeName* pList, sal_Bool bInsList=sal_True );
String GetSelectedName() const;
};
diff --git a/sc/source/ui/inc/navcitem.hxx b/sc/source/ui/inc/navcitem.hxx
index 90bef19cc410..7f03633061d2 100644
--- a/sc/source/ui/inc/navcitem.hxx
+++ b/sc/source/ui/inc/navcitem.hxx
@@ -40,11 +40,11 @@ class ScNavigatorDlg;
class ScNavigatorControllerItem : public SfxControllerItem
{
public:
- ScNavigatorControllerItem( USHORT nId,
+ ScNavigatorControllerItem( sal_uInt16 nId,
ScNavigatorDlg& rDlg,
SfxBindings& rBindings );
protected:
- virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pItem );
private:
diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index 7d3559e3de9b..1e5fa665ad1b 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -94,7 +94,7 @@ private:
private:
const ScenarioEntry* GetSelectedEntry() const;
- void ExecuteScenarioSlot( USHORT nSlotId );
+ void ExecuteScenarioSlot( sal_uInt16 nSlotId );
void SelectScenario();
void EditScenario();
void DeleteScenario( bool bQueryBox );
@@ -151,7 +151,7 @@ protected:
private:
ScNavigatorDlg& rDlg;
SCCOL nCol;
- USHORT nKeyGroup;
+ sal_uInt16 nKeyGroup;
void EvalText ();
void ExecuteCol ();
@@ -210,7 +210,7 @@ public:
CommandToolBox( ScNavigatorDlg* pParent, const ResId& rResId );
~CommandToolBox();
- void Select( USHORT nId );
+ void Select( sal_uInt16 nId );
void UpdateButtons();
void InitImageList();
@@ -272,11 +272,11 @@ private:
long nListModeHeight;
long nInitListHeight;
NavListMode eListMode;
- USHORT nDropMode;
+ sal_uInt16 nDropMode;
SCCOL nCurCol;
SCROW nCurRow;
SCTAB nCurTab;
- BOOL bFirstBig;
+ sal_Bool bFirstBig;
ScNavigatorControllerItem** ppBoundItems;
@@ -296,7 +296,7 @@ private:
ScTabViewShell* GetTabViewShell() const;
ScNavigatorSettings* GetNavigatorSettings();
- BOOL GetViewData();
+ sal_Bool GetViewData();
void UpdateColumn ( const SCCOL* pCol = NULL );
void UpdateRow ( const SCROW* pRow = NULL );
@@ -305,12 +305,12 @@ private:
void GetDocNames(const String* pSelEntry = NULL);
- void SetListMode ( NavListMode eMode, BOOL bSetSize = TRUE );
- void ShowList ( BOOL bShow, BOOL bSetSize );
- void ShowScenarios ( BOOL bShow, BOOL bSetSize );
+ void SetListMode ( NavListMode eMode, sal_Bool bSetSize = sal_True );
+ void ShowList ( sal_Bool bShow, sal_Bool bSetSize );
+ void ShowScenarios ( sal_Bool bShow, sal_Bool bSetSize );
- void SetDropMode(USHORT nNew);
- USHORT GetDropMode() const { return nDropMode; }
+ void SetDropMode(sal_uInt16 nNew);
+ sal_uInt16 GetDropMode() const { return nDropMode; }
const String& GetStrDragMode() const { return aStrDragMode; }
const String& GetStrDisplay() const { return aStrDisplay; }
@@ -348,7 +348,7 @@ class ScNavigatorDialogWrapper: public SfxChildWindowContext
{
public:
ScNavigatorDialogWrapper( Window* pParent,
- USHORT nId,
+ sal_uInt16 nId,
SfxBindings* pBindings,
SfxChildWinInfo* pInfo );
diff --git a/sc/source/ui/inc/navsett.hxx b/sc/source/ui/inc/navsett.hxx
index 3666a6be981a..6e4e85a10c39 100644
--- a/sc/source/ui/inc/navsett.hxx
+++ b/sc/source/ui/inc/navsett.hxx
@@ -38,21 +38,21 @@
class ScNavigatorSettings
{
private:
- ::std::vector< BOOL > maExpandedVec; /// Array of Booleans for expand state.
- USHORT mnRootSelected; /// Index of selected root entry.
- ULONG mnChildSelected; /// Index of selected child entry.
+ ::std::vector< sal_Bool > maExpandedVec; /// Array of Booleans for expand state.
+ sal_uInt16 mnRootSelected; /// Index of selected root entry.
+ sal_uLong mnChildSelected; /// Index of selected child entry.
public:
ScNavigatorSettings();
- inline void SetExpanded( USHORT nIndex, BOOL bExpand ) { maExpandedVec[ nIndex ] = bExpand; }
- inline BOOL IsExpanded( USHORT nIndex ) const { return maExpandedVec[ nIndex ]; }
+ inline void SetExpanded( sal_uInt16 nIndex, sal_Bool bExpand ) { maExpandedVec[ nIndex ] = bExpand; }
+ inline sal_Bool IsExpanded( sal_uInt16 nIndex ) const { return maExpandedVec[ nIndex ]; }
- inline void SetRootSelected( USHORT nIndex ) { mnRootSelected = nIndex; }
- inline USHORT GetRootSelected() const { return mnRootSelected; }
+ inline void SetRootSelected( sal_uInt16 nIndex ) { mnRootSelected = nIndex; }
+ inline sal_uInt16 GetRootSelected() const { return mnRootSelected; }
- inline void SetChildSelected( ULONG nIndex ) { mnChildSelected = nIndex; }
- inline ULONG GetChildSelected() const { return mnChildSelected; }
+ inline void SetChildSelected( sal_uLong nIndex ) { mnChildSelected = nIndex; }
+ inline sal_uLong GetChildSelected() const { return mnChildSelected; }
};
diff --git a/sc/source/ui/inc/notemark.hxx b/sc/source/ui/inc/notemark.hxx
index 03626bfeafb7..01eeec8dbcd5 100644
--- a/sc/source/ui/inc/notemark.hxx
+++ b/sc/source/ui/inc/notemark.hxx
@@ -50,27 +50,27 @@ private:
Rectangle aVisRect;
Timer aTimer;
MapMode aMapMode;
- BOOL bLeft;
- BOOL bByKeyboard;
+ sal_Bool bLeft;
+ sal_Bool bByKeyboard;
Rectangle aRect;
SdrModel* pModel;
SdrObject* pObject;
- BOOL bVisible;
+ sal_Bool bVisible;
DECL_LINK( TimeHdl, Timer* );
public:
ScNoteMarker( Window* pWin, Window* pRight, Window* pBottom, Window* pDiagonal,
ScDocument* pD, ScAddress aPos, const String& rUser,
- const MapMode& rMap, BOOL bLeftEdge, BOOL bForce, BOOL bKeyboard );
+ const MapMode& rMap, sal_Bool bLeftEdge, sal_Bool bForce, sal_Bool bKeyboard );
~ScNoteMarker();
void Draw();
void InvalidateWin();
ScAddress GetDocPos() const { return aDocPos; }
- BOOL IsByKeyboard() const { return bByKeyboard; }
+ sal_Bool IsByKeyboard() const { return bByKeyboard; }
};
diff --git a/sc/source/ui/inc/olinefun.hxx b/sc/source/ui/inc/olinefun.hxx
index 809db33df06d..2f0b00c3e580 100644
--- a/sc/source/ui/inc/olinefun.hxx
+++ b/sc/source/ui/inc/olinefun.hxx
@@ -46,21 +46,21 @@ public:
ScOutlineDocFunc( ScDocShell& rDocSh ): rDocShell(rDocSh) {}
~ScOutlineDocFunc() {}
- BOOL MakeOutline( const ScRange& rRange, BOOL bColumns, BOOL bRecord, BOOL bApi );
- BOOL RemoveOutline( const ScRange& rRange, BOOL bColumns, BOOL bRecord, BOOL bApi );
- BOOL RemoveAllOutlines( SCTAB nTab, BOOL bRecord, BOOL bApi );
- BOOL AutoOutline( const ScRange& rRange, BOOL bRecord, BOOL bApi );
+ sal_Bool MakeOutline( const ScRange& rRange, sal_Bool bColumns, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool RemoveOutline( const ScRange& rRange, sal_Bool bColumns, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool RemoveAllOutlines( SCTAB nTab, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool AutoOutline( const ScRange& rRange, sal_Bool bRecord, sal_Bool bApi );
- BOOL SelectLevel( SCTAB nTab, BOOL bColumns, USHORT nLevel,
- BOOL bRecord, BOOL bPaint, BOOL bApi );
+ sal_Bool SelectLevel( SCTAB nTab, sal_Bool bColumns, sal_uInt16 nLevel,
+ sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi );
- BOOL ShowMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi );
- BOOL HideMarkedOutlines( const ScRange& rRange, BOOL bRecord, BOOL bApi );
+ sal_Bool ShowMarkedOutlines( const ScRange& rRange, sal_Bool bRecord, sal_Bool bApi );
+ sal_Bool HideMarkedOutlines( const ScRange& rRange, sal_Bool bRecord, sal_Bool bApi );
- BOOL ShowOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry,
- BOOL bRecord, BOOL bPaint, BOOL bApi );
- BOOL HideOutline( SCTAB nTab, BOOL bColumns, USHORT nLevel, USHORT nEntry,
- BOOL bRecord, BOOL bPaint, BOOL bApi );
+ sal_Bool ShowOutline( SCTAB nTab, sal_Bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry,
+ sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi );
+ sal_Bool HideOutline( SCTAB nTab, sal_Bool bColumns, sal_uInt16 nLevel, sal_uInt16 nEntry,
+ sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi );
};
diff --git a/sc/source/ui/inc/olinewin.hxx b/sc/source/ui/inc/olinewin.hxx
index 266e67dd0999..e1dee0826d34 100644
--- a/sc/source/ui/inc/olinewin.hxx
+++ b/sc/source/ui/inc/olinewin.hxx
@@ -209,7 +209,7 @@ private:
long nLevelStart, long nEntryStart,
long nLevelEnd, long nEntryEnd );
/** Draws the specified image unpressed. */
- void DrawImageRel( long nLevelPos, long nEntryPos, USHORT nId );
+ void DrawImageRel( long nLevelPos, long nEntryPos, sal_uInt16 nId );
/** Draws a pressed or unpressed border. */
void DrawBorderRel( size_t nLevel, size_t nEntry, bool bPressed );
diff --git a/sc/source/ui/inc/opredlin.hxx b/sc/source/ui/inc/opredlin.hxx
index f6c3a2212ca9..116097c30532 100644
--- a/sc/source/ui/inc/opredlin.hxx
+++ b/sc/source/ui/inc/opredlin.hxx
@@ -69,7 +69,7 @@ public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
- virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual sal_Bool FillItemSet( SfxItemSet& rSet );
virtual void Reset( const SfxItemSet& rSet );
};
#endif
diff --git a/sc/source/ui/inc/optload.hxx b/sc/source/ui/inc/optload.hxx
index 26ffb04cb3be..14e1c4661903 100644
--- a/sc/source/ui/inc/optload.hxx
+++ b/sc/source/ui/inc/optload.hxx
@@ -58,7 +58,7 @@ public:
void SetDocument(ScDocument*);
- virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual sal_Bool FillItemSet( SfxItemSet& rSet );
virtual void Reset( const SfxItemSet& rSet );
};
diff --git a/sc/source/ui/inc/optsolver.hxx b/sc/source/ui/inc/optsolver.hxx
index f81fbf05cd1f..c7a06213c067 100644
--- a/sc/source/ui/inc/optsolver.hxx
+++ b/sc/source/ui/inc/optsolver.hxx
@@ -63,7 +63,7 @@ protected:
struct ScOptConditionRow
{
String aLeftStr;
- USHORT nOperator;
+ sal_uInt16 nOperator;
String aRightStr;
ScOptConditionRow() : nOperator(0) {}
@@ -74,9 +74,9 @@ struct ScOptConditionRow
class ScOptSolverSave
{
String maObjective;
- BOOL mbMax;
- BOOL mbMin;
- BOOL mbValue;
+ sal_Bool mbMax;
+ sal_Bool mbMin;
+ sal_Bool mbValue;
String maTarget;
String maVariable;
std::vector<ScOptConditionRow> maConditions;
@@ -84,16 +84,16 @@ class ScOptSolverSave
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> maProperties;
public:
- ScOptSolverSave( const String& rObjective, BOOL bMax, BOOL bMin, BOOL bValue,
+ ScOptSolverSave( const String& rObjective, sal_Bool bMax, sal_Bool bMin, sal_Bool bValue,
const String& rTarget, const String& rVariable,
const std::vector<ScOptConditionRow>& rConditions,
const String& rEngine,
const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProperties );
const String& GetObjective() const { return maObjective; }
- BOOL GetMax() const { return mbMax; }
- BOOL GetMin() const { return mbMin; }
- BOOL GetValue() const { return mbValue; }
+ sal_Bool GetMax() const { return mbMax; }
+ sal_Bool GetMin() const { return mbMin; }
+ sal_Bool GetValue() const { return mbValue; }
const String& GetTarget() const { return maTarget; }
const String& GetVariable() const { return maVariable; }
const std::vector<ScOptConditionRow>& GetConditions() const { return maConditions; }
@@ -110,9 +110,9 @@ public:
~ScOptSolverDlg();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
FixedText maFtObjectiveCell;
diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx
index 4f9d493aac14..b109d2951eb0 100644
--- a/sc/source/ui/inc/output.hxx
+++ b/sc/source/ui/inc/output.hxx
@@ -106,7 +106,7 @@ private:
ScOutputType eType; // Bildschirm/Drucker ...
double nPPTX; // Pixel per Twips
double nPPTY;
-// USHORT nZoom; // Zoom-Faktor (Prozent) - fuer GetFont
+// sal_uInt16 nZoom; // Zoom-Faktor (Prozent) - fuer GetFont
Fraction aZoomX;
Fraction aZoomY;
@@ -117,61 +117,61 @@ private:
// #114135#
FmFormView* pDrawView; // SdrView to paint to
- BOOL bEditMode; // InPlace editierte Zelle - nicht ausgeben
+ sal_Bool bEditMode; // InPlace editierte Zelle - nicht ausgeben
SCCOL nEditCol;
SCROW nEditRow;
- BOOL bMetaFile; // Ausgabe auf Metafile (nicht in Pixeln!)
- BOOL bSingleGrid; // beim Gitter bChanged auswerten
+ sal_Bool bMetaFile; // Ausgabe auf Metafile (nicht in Pixeln!)
+ sal_Bool bSingleGrid; // beim Gitter bChanged auswerten
- BOOL bPagebreakMode; // Seitenumbruch-Vorschau
- BOOL bSolidBackground; // weiss statt transparent
+ sal_Bool bPagebreakMode; // Seitenumbruch-Vorschau
+ sal_Bool bSolidBackground; // weiss statt transparent
- BOOL bUseStyleColor;
- BOOL bForceAutoColor;
+ sal_Bool bUseStyleColor;
+ sal_Bool bForceAutoColor;
- BOOL bSyntaxMode; // Syntax-Highlighting
+ sal_Bool bSyntaxMode; // Syntax-Highlighting
Color* pValueColor;
Color* pTextColor;
Color* pFormulaColor;
Color aGridColor;
- BOOL bShowNullValues;
- BOOL bShowFormulas;
- BOOL bShowSpellErrors; // Spell-Errors in EditObjekten anzeigen
- BOOL bMarkClipped;
+ sal_Bool bShowNullValues;
+ sal_Bool bShowFormulas;
+ sal_Bool bShowSpellErrors; // Spell-Errors in EditObjekten anzeigen
+ sal_Bool bMarkClipped;
- BOOL bSnapPixel;
+ sal_Bool bSnapPixel;
- BOOL bAnyRotated; // intern
- BOOL bAnyClipped; // intern
- BOOL bTabProtected;
- BYTE nTabTextDirection; // EEHorizontalTextDirection values
- BOOL bLayoutRTL;
+ sal_Bool bAnyRotated; // intern
+ sal_Bool bAnyClipped; // intern
+ sal_Bool bTabProtected;
+ sal_uInt8 nTabTextDirection; // EEHorizontalTextDirection values
+ sal_Bool bLayoutRTL;
// #i74769# use SdrPaintWindow direct, remember it during BeginDrawLayers/EndDrawLayers
SdrPaintWindow* mpTargetPaintWindow;
// private methods
- BOOL GetMergeOrigin( SCCOL nX, SCROW nY, SCSIZE nArrY,
- SCCOL& rOverX, SCROW& rOverY, BOOL bVisRowChanged );
- BOOL IsEmptyCellText( RowInfo* pThisRowInfo, SCCOL nX, SCROW nY );
+ sal_Bool GetMergeOrigin( SCCOL nX, SCROW nY, SCSIZE nArrY,
+ SCCOL& rOverX, SCROW& rOverY, sal_Bool bVisRowChanged );
+ sal_Bool IsEmptyCellText( RowInfo* pThisRowInfo, SCCOL nX, SCROW nY );
void GetVisibleCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell*& rpCell );
- BOOL IsAvailable( SCCOL nX, SCROW nY );
+ sal_Bool IsAvailable( SCCOL nX, SCROW nY );
void GetOutputArea( SCCOL nX, SCSIZE nArrY, long nPosX, long nPosY,
SCCOL nCellX, SCROW nCellY, long nNeeded,
const ScPatternAttr& rPattern,
- USHORT nHorJustify, bool bCellIsValue,
+ sal_uInt16 nHorJustify, bool bCellIsValue,
bool bBreak, bool bOverwrite,
OutputAreaParam& rParam );
void ShrinkEditEngine( EditEngine& rEngine, const Rectangle& rAlignRect,
long nLeftM, long nTopM, long nRightM, long nBottomM,
- BOOL bWidth, USHORT nOrient, long nAttrRotate, BOOL bPixelToLogic,
+ sal_Bool bWidth, sal_uInt16 nOrient, long nAttrRotate, sal_Bool bPixelToLogic,
long& rEngineWidth, long& rEngineHeight, long& rNeededPixel,
bool& rLeftClip, bool& rRightClip );
@@ -203,37 +203,37 @@ public:
// #114135#
void SetDrawView( FmFormView* pNew ) { pDrawView = pNew; }
- void SetSolidBackground( BOOL bSet ) { bSolidBackground = bSet; }
- void SetUseStyleColor( BOOL bSet ) { bUseStyleColor = bSet; }
+ void SetSolidBackground( sal_Bool bSet ) { bSolidBackground = bSet; }
+ void SetUseStyleColor( sal_Bool bSet ) { bUseStyleColor = bSet; }
void SetEditCell( SCCOL nCol, SCROW nRow );
- void SetSyntaxMode( BOOL bNewMode );
- void SetMetaFileMode( BOOL bNewMode );
- void SetSingleGrid( BOOL bNewMode );
+ void SetSyntaxMode( sal_Bool bNewMode );
+ void SetMetaFileMode( sal_Bool bNewMode );
+ void SetSingleGrid( sal_Bool bNewMode );
void SetGridColor( const Color& rColor );
- void SetMarkClipped( BOOL bSet );
- void SetShowNullValues ( BOOL bSet = TRUE );
- void SetShowFormulas ( BOOL bSet = TRUE );
- void SetShowSpellErrors( BOOL bSet = TRUE );
+ void SetMarkClipped( sal_Bool bSet );
+ void SetShowNullValues ( sal_Bool bSet = sal_True );
+ void SetShowFormulas ( sal_Bool bSet = sal_True );
+ void SetShowSpellErrors( sal_Bool bSet = sal_True );
void SetMirrorWidth( long nNew );
long GetScrW() const { return nScrW; }
long GetScrH() const { return nScrH; }
- void SetSnapPixel( BOOL bSet = TRUE );
+ void SetSnapPixel( sal_Bool bSet = sal_True );
- void DrawGrid( BOOL bGrid, BOOL bPage );
- void DrawStrings( BOOL bPixelToLogic = FALSE );
+ void DrawGrid( sal_Bool bGrid, sal_Bool bPage );
+ void DrawStrings( sal_Bool bPixelToLogic = false );
void DrawDocumentBackground();
void DrawBackground();
void DrawShadow();
- void DrawExtraShadow(BOOL bLeft, BOOL bTop, BOOL bRight, BOOL bBottom);
+ void DrawExtraShadow(sal_Bool bLeft, sal_Bool bTop, sal_Bool bRight, sal_Bool bBottom);
void DrawFrame();
// with logic MapMode set!
- void DrawEdit(BOOL bPixelToLogic);
+ void DrawEdit(sal_Bool bPixelToLogic);
void FindRotated();
- void DrawRotated(BOOL bPixelToLogic); // logisch
+ void DrawRotated(sal_Bool bPixelToLogic); // logisch
void DrawClear();
@@ -246,17 +246,17 @@ public:
void DrawingSingle(const sal_uInt16 nLayer);
void DrawSelectiveObjects(const sal_uInt16 nLayer);
- BOOL SetChangedClip(); // FALSE = nix
+ sal_Bool SetChangedClip(); // sal_False = nix
PolyPolygon GetChangedArea();
void FindChanged();
void SetPagebreakMode( ScPageBreakData* pPageData );
void DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
SCCOL nRefEndX, SCROW nRefEndY,
- const Color& rColor, BOOL bHandle );
+ const Color& rColor, sal_Bool bHandle );
void DrawOneChange( SCCOL nRefStartX, SCROW nRefStartY,
SCCOL nRefEndX, SCROW nRefEndY,
- const Color& rColor, USHORT nType );
+ const Color& rColor, sal_uInt16 nType );
void DrawChangeTrack();
void DrawClipMarks();
diff --git a/sc/source/ui/inc/pagedata.hxx b/sc/source/ui/inc/pagedata.hxx
index 31ce7a5db38c..f0114ddb2101 100644
--- a/sc/source/ui/inc/pagedata.hxx
+++ b/sc/source/ui/inc/pagedata.hxx
@@ -45,8 +45,8 @@ private:
size_t nPagesY;
SCROW* pPageEndY;
long nFirstPage;
- BOOL bTopDown;
- BOOL bAutomatic;
+ sal_Bool bTopDown;
+ sal_Bool bAutomatic;
public:
ScPrintRangeData();
@@ -65,10 +65,10 @@ public:
void SetFirstPage( long nNew ) { nFirstPage = nNew; }
long GetFirstPage() const { return nFirstPage; }
- void SetTopDown( BOOL bSet ) { bTopDown = bSet; }
- BOOL IsTopDown() const { return bTopDown; }
- void SetAutomatic( BOOL bSet ) { bAutomatic = bSet; }
- BOOL IsAutomatic() const { return bAutomatic; }
+ void SetTopDown( sal_Bool bSet ) { bTopDown = bSet; }
+ sal_Bool IsTopDown() const { return bTopDown; }
+ void SetAutomatic( sal_Bool bSet ) { bAutomatic = bSet; }
+ sal_Bool IsAutomatic() const { return bAutomatic; }
};
class ScPageBreakData
@@ -85,7 +85,7 @@ public:
size_t GetCount() const { return nUsed; }
ScPrintRangeData& GetData(size_t i);
- BOOL IsEqual( const ScPageBreakData& rOther ) const;
+ sal_Bool IsEqual( const ScPageBreakData& rOther ) const;
void AddPages();
};
diff --git a/sc/source/ui/inc/parawin.hxx b/sc/source/ui/inc/parawin.hxx
index 36fac42a01ca..bacbc2c35078 100644
--- a/sc/source/ui/inc/parawin.hxx
+++ b/sc/source/ui/inc/parawin.hxx
@@ -61,10 +61,10 @@ private:
Link aFxLink;
Link aArgModifiedLink;
- ::std::vector<USHORT> aVisibleArgMapping;
+ ::std::vector<sal_uInt16> aVisibleArgMapping;
const ScFuncDesc* pFuncDesc;
ScAnyRefDlg* pMyParent;
- USHORT nArgs; // unsuppressed arguments
+ sal_uInt16 nArgs; // unsuppressed arguments
Font aFntBold;
Font aFntLight;
@@ -89,10 +89,10 @@ private:
ArgEdit aEdArg4;
formula::RefButton aRefBtn4;
ScrollBar aSlider;
- BOOL bRefMode;
+ sal_Bool bRefMode;
- USHORT nEdFocus;
- USHORT nActiveLine;
+ sal_uInt16 nEdFocus;
+ sal_uInt16 nActiveLine;
ArgInput aArgInput[4];
String aDefaultString;
@@ -109,7 +109,7 @@ protected:
virtual void ArgumentModified();
virtual void FxClick();
- void InitArgInput( USHORT nPos, FixedText& rFtArg, ImageButton& rBtnFx,
+ void InitArgInput( sal_uInt16 nPos, FixedText& rFtArg, ImageButton& rBtnFx,
ArgEdit& rEdArg, formula::RefButton& rRefBtn);
void DelParaArray();
@@ -117,40 +117,40 @@ protected:
void SetArgumentText(const String& aText);
- void SetArgName (USHORT no,const String &aArg);
- void SetArgNameFont (USHORT no,const Font&);
- void SetArgVal (USHORT no,const String &aArg);
+ void SetArgName (sal_uInt16 no,const String &aArg);
+ void SetArgNameFont (sal_uInt16 no,const Font&);
+ void SetArgVal (sal_uInt16 no,const String &aArg);
- void HideParaLine(USHORT no);
- void ShowParaLine(USHORT no);
- void UpdateArgDesc( USHORT nArg );
- void UpdateArgInput( USHORT nOffset, USHORT i );
+ void HideParaLine(sal_uInt16 no);
+ void ShowParaLine(sal_uInt16 no);
+ void UpdateArgDesc( sal_uInt16 nArg );
+ void UpdateArgInput( sal_uInt16 nOffset, sal_uInt16 i );
public:
ScParaWin(ScAnyRefDlg* pParent,Point aPos);
~ScParaWin();
void SetFunctionDesc(const ScFuncDesc* pFDesc);
- void SetArgumentOffset(USHORT nOffset);
+ void SetArgumentOffset(sal_uInt16 nOffset);
void SetEditDesc(const String& aText);
void UpdateParas();
void ClearAll();
- BOOL IsRefMode() {return bRefMode;}
- void SetRefMode(BOOL bFlag) {bRefMode=bFlag;}
+ sal_Bool IsRefMode() {return bRefMode;}
+ void SetRefMode(sal_Bool bFlag) {bRefMode=bFlag;}
- USHORT GetActiveLine();
- void SetActiveLine(USHORT no);
+ sal_uInt16 GetActiveLine();
+ void SetActiveLine(sal_uInt16 no);
formula::RefEdit* GetActiveEdit();
String GetActiveArgName();
- String GetArgument(USHORT no);
- void SetArgument(USHORT no, const String& aString);
+ String GetArgument(sal_uInt16 no);
+ void SetArgument(sal_uInt16 no, const String& aString);
void SetArgumentFonts(const Font&aBoldFont,const Font&aLightFont);
- void SetEdFocus(USHORT nEditLine); //Sichtbare Editzeilen
- USHORT GetSliderPos();
- void SetSliderPos(USHORT nSliderPos);
+ void SetEdFocus(sal_uInt16 nEditLine); //Sichtbare Editzeilen
+ sal_uInt16 GetSliderPos();
+ void SetSliderPos(sal_uInt16 nSliderPos);
void SetScrollHdl( const Link& rLink ) { aScrollLink = rLink; }
const Link& GetScrollHdl() const { return aScrollLink; }
diff --git a/sc/source/ui/inc/pfiltdlg.hxx b/sc/source/ui/inc/pfiltdlg.hxx
index 6a57c9229eea..bb68e07b3891 100644
--- a/sc/source/ui/inc/pfiltdlg.hxx
+++ b/sc/source/ui/inc/pfiltdlg.hxx
@@ -97,14 +97,14 @@ private:
const String aStrRow;
const String aStrColumn;
- const USHORT nWhichQuery;
+ const sal_uInt16 nWhichQuery;
const ScQueryParam theQueryData;
ScQueryItem* pOutItem;
ScViewData* pViewData;
ScDocument* pDoc;
SCTAB nSrcTab;
- USHORT nFieldCount;
+ sal_uInt16 nFieldCount;
ComboBox* aValueEdArr[3];
ListBox* aFieldLbArr[3];
ListBox* aCondLbArr[3];
@@ -115,9 +115,9 @@ private:
private:
void Init ( const SfxItemSet& rArgSet );
void FillFieldLists ();
- void UpdateValueList ( USHORT nList );
- void ClearValueList ( USHORT nList );
- USHORT GetFieldSelPos ( SCCOL nField );
+ void UpdateValueList ( sal_uInt16 nList );
+ void ClearValueList ( sal_uInt16 nList );
+ sal_uInt16 GetFieldSelPos ( SCCOL nField );
// Handler:
DECL_LINK( LbSelectHdl, ListBox* );
diff --git a/sc/source/ui/inc/pfuncache.hxx b/sc/source/ui/inc/pfuncache.hxx
index 9ab60717c635..b64e9753e43d 100644
--- a/sc/source/ui/inc/pfuncache.hxx
+++ b/sc/source/ui/inc/pfuncache.hxx
@@ -67,7 +67,7 @@ public:
void SetRanges(const ScRangeList& rNew) { aRanges = rNew; }
void SetOptions(const ScPrintOptions& rNew) { aOptions = rNew; }
- BOOL operator==(const ScPrintSelectionStatus& rOther) const
+ sal_Bool operator==(const ScPrintSelectionStatus& rOther) const
{ return eMode == rOther.eMode && aRanges == rOther.aRanges && aOptions == rOther.aOptions; }
ScPrintSelectionMode GetMode() const { return eMode; }
@@ -110,7 +110,7 @@ public:
const ScPrintSelectionStatus& rStatus );
~ScPrintFuncCache();
- BOOL IsSameSelection( const ScPrintSelectionStatus& rStatus ) const;
+ sal_Bool IsSameSelection( const ScPrintSelectionStatus& rStatus ) const;
void InitLocations( const ScMarkData& rMark, OutputDevice* pDev );
bool FindLocation( const ScAddress& rCell, ScPrintPageLocation& rLocation ) const;
diff --git a/sc/source/ui/inc/pntlock.hxx b/sc/source/ui/inc/pntlock.hxx
index 1633a160632d..d88d89d745d7 100644
--- a/sc/source/ui/inc/pntlock.hxx
+++ b/sc/source/ui/inc/pntlock.hxx
@@ -35,32 +35,32 @@ class ScPaintLockData
{
private:
ScRangeListRef xRangeList;
- USHORT nMode;
- USHORT nLevel;
- USHORT nDocLevel;
- USHORT nParts;
- BOOL bModified;
+ sal_uInt16 nMode;
+ sal_uInt16 nLevel;
+ sal_uInt16 nDocLevel;
+ sal_uInt16 nParts;
+ sal_Bool bModified;
public:
- ScPaintLockData(USHORT nNewMode);
+ ScPaintLockData(sal_uInt16 nNewMode);
~ScPaintLockData();
- void AddRange( const ScRange& rRange, USHORT nP );
+ void AddRange( const ScRange& rRange, sal_uInt16 nP );
- void SetModified() { bModified = TRUE; }
+ void SetModified() { bModified = sal_True; }
void IncLevel(sal_Bool bDoc)
{ if (bDoc) ++nDocLevel; else ++nLevel; }
void DecLevel(sal_Bool bDoc)
{ if (bDoc) --nDocLevel; else --nLevel; }
const ScRangeListRef& GetRangeList() const { return xRangeList; }
- USHORT GetParts() const { return nParts; }
- USHORT GetLevel(sal_Bool bDoc) const
+ sal_uInt16 GetParts() const { return nParts; }
+ sal_uInt16 GetLevel(sal_Bool bDoc) const
{ return bDoc ? nDocLevel : nLevel; }
- BOOL GetModified() const { return bModified; }
+ sal_Bool GetModified() const { return bModified; }
// fuer Wiederherstellen nach Reset
- void SetLevel(USHORT nNew, sal_Bool bDoc)
+ void SetLevel(sal_uInt16 nNew, sal_Bool bDoc)
{ if (bDoc) nDocLevel = nNew; else nLevel = nNew; }
};
diff --git a/sc/source/ui/inc/popmenu.hxx b/sc/source/ui/inc/popmenu.hxx
index ee5bb314f213..a7ee2d7bfd3e 100644
--- a/sc/source/ui/inc/popmenu.hxx
+++ b/sc/source/ui/inc/popmenu.hxx
@@ -35,15 +35,15 @@
class SC_DLLPUBLIC ScPopupMenu : public PopupMenu
{
private:
- USHORT nSel;
- BOOL bHit;
+ sal_uInt16 nSel;
+ sal_Bool bHit;
protected:
virtual void Select();
public:
- ScPopupMenu() : nSel(0),bHit(FALSE) {}
- ScPopupMenu(const ResId& rRes) : PopupMenu(rRes),nSel(0),bHit(FALSE) {}
- USHORT GetSelected() const { return nSel; }
- BOOL WasHit() const { return bHit; }
+ ScPopupMenu() : nSel(0),bHit(false) {}
+ ScPopupMenu(const ResId& rRes) : PopupMenu(rRes),nSel(0),bHit(false) {}
+ sal_uInt16 GetSelected() const { return nSel; }
+ sal_Bool WasHit() const { return bHit; }
};
diff --git a/sc/source/ui/inc/preview.hxx b/sc/source/ui/inc/preview.hxx
index 870441a574c0..6988259526d0 100644
--- a/sc/source/ui/inc/preview.hxx
+++ b/sc/source/ui/inc/preview.hxx
@@ -41,11 +41,11 @@ class ScPreview : public Window
private:
// eingestellt:
long nPageNo; // Seite im Dokument
- USHORT nZoom; // eingestellter Zoom
+ sal_uInt16 nZoom; // eingestellter Zoom
Point aOffset; // positiv
// berechnet:
- BOOL bValid; // folgende Werte gueltig
+ sal_Bool bValid; // folgende Werte gueltig
SCTAB nTabCount;
SCTAB nTabsTested; // fuer wieviele Tabellen ist nPages gueltig?
long nPages[MAXTABCOUNT];
@@ -58,8 +58,8 @@ private:
Time aTime;
long nTotalPages;
Size aPageSize; // fuer GetOptimalZoom
- BOOL bStateValid;
- BOOL bLocationValid;
+ sal_Bool bStateValid;
+ sal_Bool bLocationValid;
ScPrintState aState;
ScPreviewLocationData* pLocationData; // stores table layout for accessibility API
FmFormView* pDrawView;
@@ -67,26 +67,26 @@ private:
SCTAB nCurTab;
// intern:
- BOOL bInPaint;
- BOOL bInGetState;
+ sal_Bool bInPaint;
+ sal_Bool bInGetState;
ScDocShell* pDocShell;
ScPreviewShell* pViewShell;
- BOOL bLeftRulerMove;
- BOOL bRightRulerMove;
- BOOL bTopRulerMove;
- BOOL bBottomRulerMove;
- BOOL bHeaderRulerMove;
- BOOL bFooterRulerMove;
-
- BOOL bLeftRulerChange;
- BOOL bRightRulerChange;
- BOOL bTopRulerChange;
- BOOL bBottomRulerChange;
- BOOL bHeaderRulerChange;
- BOOL bFooterRulerChange;
- BOOL bPageMargin;
- BOOL bColRulerMove;
+ sal_Bool bLeftRulerMove;
+ sal_Bool bRightRulerMove;
+ sal_Bool bTopRulerMove;
+ sal_Bool bBottomRulerMove;
+ sal_Bool bHeaderRulerMove;
+ sal_Bool bFooterRulerMove;
+
+ sal_Bool bLeftRulerChange;
+ sal_Bool bRightRulerChange;
+ sal_Bool bTopRulerChange;
+ sal_Bool bBottomRulerChange;
+ sal_Bool bHeaderRulerChange;
+ sal_Bool bFooterRulerChange;
+ sal_Bool bPageMargin;
+ sal_Bool bColRulerMove;
ScRange aPageArea;
long nRight[ MAXCOL+1 ];
long nLeftPosition;
@@ -104,7 +104,7 @@ private:
void UpdateDrawView();
void DoPrint( ScPreviewLocationData* pFillLocation );
- void InvalidateLocationData( ULONG nId );
+ void InvalidateLocationData( sal_uLong nId );
using Window::SetZoom;
@@ -127,18 +127,18 @@ public:
virtual void DataChanged( const DataChangedEvent& rDCEvt );
- void DataChanged(BOOL bNewTime = FALSE); // statt Invalidate rufen
+ void DataChanged(sal_Bool bNewTime = false); // statt Invalidate rufen
void DoInvalidate();
void SetXOffset( long nX );
void SetYOffset( long nY );
- void SetZoom(USHORT nNewZoom);
+ void SetZoom(sal_uInt16 nNewZoom);
void SetPageNo( long nPage );
- BOOL GetPageMargins()const { return bPageMargin; }
- void SetPageMargins( BOOL bVal ) { bPageMargin = bVal; }
- void DrawInvert( long nDragPos, USHORT nFlags );
- void DragMove( long nDragMovePos, USHORT nFlags );
+ sal_Bool GetPageMargins()const { return bPageMargin; }
+ void SetPageMargins( sal_Bool bVal ) { bPageMargin = bVal; }
+ void DrawInvert( long nDragPos, sal_uInt16 nFlags );
+ void DragMove( long nDragMovePos, sal_uInt16 nFlags );
const ScPreviewLocationData& GetLocationData();
@@ -146,19 +146,19 @@ public:
String GetPosString();
long GetPageNo() const { return nPageNo; }
- USHORT GetZoom() const { return nZoom; }
+ sal_uInt16 GetZoom() const { return nZoom; }
Point GetOffset() const { return aOffset; }
SCTAB GetTab() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTab; }
long GetTotalPages() { if (!bValid) { CalcPages(0); RecalcPages(); } return nTotalPages; }
- BOOL AllTested() const { return bValid && nTabsTested >= nTabCount; }
+ sal_Bool AllTested() const { return bValid && nTabsTested >= nTabCount; }
- USHORT GetOptimalZoom(BOOL bWidthOnly);
+ sal_uInt16 GetOptimalZoom(sal_Bool bWidthOnly);
long GetFirstPage(SCTAB nTab);
void CalcAll() { CalcPages(MAXTAB); }
- void SetInGetState(BOOL bSet) { bInGetState = bSet; }
+ void SetInGetState(sal_Bool bSet) { bInGetState = bSet; }
DECL_STATIC_LINK( ScPreview, InvalidateHdl, void* );
static void StaticInvalidate();
diff --git a/sc/source/ui/inc/prevloc.hxx b/sc/source/ui/inc/prevloc.hxx
index b706bdc6ca09..936803cd88c2 100644
--- a/sc/source/ui/inc/prevloc.hxx
+++ b/sc/source/ui/inc/prevloc.hxx
@@ -53,12 +53,12 @@ class ScPreviewLocationEntry;
struct ScPreviewColRowInfo
{
- BOOL bIsHeader;
+ sal_Bool bIsHeader;
SCCOLROW nDocIndex;
long nPixelStart;
long nPixelEnd;
- void Set( BOOL bHeader, SCCOLROW nIndex, long nStart, long nEnd )
+ void Set( sal_Bool bHeader, SCCOLROW nIndex, long nStart, long nEnd )
{
bIsHeader = bHeader;
nDocIndex = nIndex;
@@ -100,7 +100,7 @@ class ScPreviewLocationData
MapMode aDrawMapMode[SC_PREVIEW_MAXRANGES];
Rectangle aDrawRectangle[SC_PREVIEW_MAXRANGES];
sal_uInt8 aDrawRangeId[SC_PREVIEW_MAXRANGES];
- USHORT nDrawRanges;
+ sal_uInt16 nDrawRanges;
SCTAB nPrintTab;
boost::ptr_list<ScPreviewLocationEntry> aEntries;
@@ -113,11 +113,11 @@ public:
void SetCellMapMode( const MapMode& rMapMode );
void SetPrintTab( SCTAB nNew );
void Clear();
- void AddCellRange( const Rectangle& rRect, const ScRange& rRange, BOOL bRepCol, BOOL bRepRow,
+ void AddCellRange( const Rectangle& rRect, const ScRange& rRange, sal_Bool bRepCol, sal_Bool bRepRow,
const MapMode& rDrawMap );
- void AddColHeaders( const Rectangle& rRect, SCCOL nStartCol, SCCOL nEndCol, BOOL bRepCol );
- void AddRowHeaders( const Rectangle& rRect, SCROW nStartRow, SCROW nEndRow, BOOL bRepRow );
- void AddHeaderFooter( const Rectangle& rRect, BOOL bHeader, BOOL bLeft );
+ void AddColHeaders( const Rectangle& rRect, SCCOL nStartCol, SCCOL nEndCol, sal_Bool bRepCol );
+ void AddRowHeaders( const Rectangle& rRect, SCROW nStartRow, SCROW nEndRow, sal_Bool bRepRow );
+ void AddHeaderFooter( const Rectangle& rRect, sal_Bool bHeader, sal_Bool bLeft );
void AddNoteMark( const Rectangle& rRect, const ScAddress& rPos );
void AddNoteText( const Rectangle& rRect, const ScAddress& rPos );
@@ -126,24 +126,24 @@ public:
// Get info on visible columns/rows in the visible area
void GetTableInfo( const Rectangle& rVisiblePixel, ScPreviewTableInfo& rInfo ) const;
- USHORT GetDrawRanges() const { return nDrawRanges; }
- void GetDrawRange( USHORT nPos, Rectangle& rPixelRect, MapMode& rMapMode, sal_uInt8& rRangeId ) const;
+ sal_uInt16 GetDrawRanges() const { return nDrawRanges; }
+ void GetDrawRange( sal_uInt16 nPos, Rectangle& rPixelRect, MapMode& rMapMode, sal_uInt8& rRangeId ) const;
- BOOL GetHeaderPosition( Rectangle& rHeaderRect ) const;
- BOOL GetFooterPosition( Rectangle& rFooterRect ) const;
- BOOL IsHeaderLeft() const;
- BOOL IsFooterLeft() const;
+ sal_Bool GetHeaderPosition( Rectangle& rHeaderRect ) const;
+ sal_Bool GetFooterPosition( Rectangle& rFooterRect ) const;
+ sal_Bool IsHeaderLeft() const;
+ sal_Bool IsFooterLeft() const;
- long GetNoteCountInRange( const Rectangle& rVisiblePixel, BOOL bNoteMarks ) const;
- BOOL GetNoteInRange( const Rectangle& rVisiblePixel, long nIndex, BOOL bNoteMarks,
+ long GetNoteCountInRange( const Rectangle& rVisiblePixel, sal_Bool bNoteMarks ) const;
+ sal_Bool GetNoteInRange( const Rectangle& rVisiblePixel, long nIndex, sal_Bool bNoteMarks,
ScAddress& rCellPos, Rectangle& rNoteRect ) const;
- Rectangle GetNoteInRangeOutputRect(const Rectangle& rVisiblePixel, BOOL bNoteMarks,
+ Rectangle GetNoteInRangeOutputRect(const Rectangle& rVisiblePixel, sal_Bool bNoteMarks,
const ScAddress& aCellPos) const;
// Check if any cells (including column/row headers) are in the visible area
- BOOL HasCellsInRange( const Rectangle& rVisiblePixel ) const;
+ sal_Bool HasCellsInRange( const Rectangle& rVisiblePixel ) const;
- BOOL GetCellPosition( const ScAddress& rCellPos, Rectangle& rCellRect ) const;
+ sal_Bool GetCellPosition( const ScAddress& rCellPos, Rectangle& rCellRect ) const;
// returns the rectangle where the EditEngine draws the text of a Header Cell
// if bColHeader is true it returns the rectangle of the header of the column in rCellPos
@@ -152,8 +152,8 @@ public:
Rectangle GetCellOutputRect(const ScAddress& rCellPos) const;
// Query the range and rectangle of the main (non-repeat) cell range.
- // Returns FALSE if not contained.
- BOOL GetMainCellRange( ScRange& rRange, Rectangle& rPixRect ) const;
+ // Returns sal_False if not contained.
+ sal_Bool GetMainCellRange( ScRange& rRange, Rectangle& rPixRect ) const;
};
#endif
diff --git a/sc/source/ui/inc/prevwsh.hxx b/sc/source/ui/inc/prevwsh.hxx
index 861fba46d892..271a35260e99 100644
--- a/sc/source/ui/inc/prevwsh.hxx
+++ b/sc/source/ui/inc/prevwsh.hxx
@@ -58,7 +58,7 @@ class ScPreviewShell: public SfxViewShell
Window* pCorner;
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aSourceData; // ViewData
- BYTE nSourceDesignMode; // form design mode from TabView
+ sal_uInt8 nSourceDesignMode; // form design mode from TabView
SvxZoomType eZoom;
long nMaxVertPos;
@@ -67,11 +67,11 @@ class ScPreviewShell: public SfxViewShell
private:
void Construct( Window* pParent );
DECL_LINK(ScrollHandler, ScrollBar* );
- void DoScroll( USHORT nMode );
+ void DoScroll( sal_uInt16 nMode );
protected:
- virtual void Activate(BOOL bMDI);
- virtual void Deactivate(BOOL bMDI);
+ virtual void Activate(sal_Bool bMDI);
+ virtual void Deactivate(sal_Bool bMDI);
virtual void AdjustPosSizePixel( const Point &rPos, const Size &rSize );
@@ -82,11 +82,11 @@ protected:
virtual String GetDescription() const;
- virtual void WriteUserData(String &, BOOL bBrowse = FALSE);
- virtual void ReadUserData(const String &, BOOL bBrowse = FALSE);
+ virtual void WriteUserData(String &, sal_Bool bBrowse = false);
+ virtual void ReadUserData(const String &, sal_Bool bBrowse = false);
- virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False );
- virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False );
+ virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = false );
+ virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = false );
public:
TYPEINFO();
@@ -102,7 +102,7 @@ public:
void InitStartTable(SCTAB nTab);
void UpdateScrollBars();
- BOOL ScrollCommand( const CommandEvent& rCEvt );
+ sal_Bool ScrollCommand( const CommandEvent& rCEvt );
void Execute( SfxRequest& rReq );
void GetState( SfxItemSet& rSet );
@@ -111,22 +111,18 @@ public:
::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >
GetSourceData() const { return aSourceData; }
- BYTE GetSourceDesignMode() const { return nSourceDesignMode; }
+ sal_uInt8 GetSourceDesignMode() const { return nSourceDesignMode; }
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
- virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE );
- virtual USHORT SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false );
- virtual PrintDialog* CreatePrintDialog( Window* pParent );
+ virtual SfxPrinter* GetPrinter( sal_Bool bCreate = false );
+ virtual sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter, sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false );
virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions );
- virtual void PreparePrint( PrintDialog* pPrintDialog = NULL );
- virtual ErrCode DoPrint( SfxPrinter *pPrinter, PrintDialog *pPrintDialog, BOOL bSilent, BOOL bIsAPI );
- virtual USHORT Print( SfxProgress& rProgress, BOOL bIsAPI, PrintDialog* pPrintDialog = NULL );
void AddAccessibilityObject( SfxListener& rObject );
void RemoveAccessibilityObject( SfxListener& rObject );
void BroadcastAccessibility( const SfxHint &rHint );
- BOOL HasAccessibilityObjects();
+ sal_Bool HasAccessibilityObjects();
const ScPreviewLocationData& GetLocationData();
ScDocument* GetDocument();
diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx
index 41d33d693607..84f486999315 100644
--- a/sc/source/ui/inc/printfun.hxx
+++ b/sc/source/ui/inc/printfun.hxx
@@ -63,14 +63,14 @@ class FmFormView;
// Einstellungen fuer Kopf-/Fusszeilen
struct ScPrintHFParam
{
- BOOL bEnable;
- BOOL bDynamic;
- BOOL bShared;
+ sal_Bool bEnable;
+ sal_Bool bDynamic;
+ sal_Bool bShared;
long nHeight; // insgesamt (Hoehe+Abstand+Rahmen)
long nManHeight; // eingestellte Groesse (Min. bei dynamisch)
- USHORT nDistance;
- USHORT nLeft; // Raender
- USHORT nRight;
+ sal_uInt16 nDistance;
+ sal_uInt16 nLeft; // Raender
+ sal_uInt16 nRight;
const ScPageHFItem* pLeft;
const ScPageHFItem* pRight;
const SvxBoxItem* pBorder;
@@ -90,7 +90,7 @@ public:
MapMode aUserMapMode;
Paper ePaper;
Orientation eOrientation;
- USHORT nPaperBin;
+ sal_uInt16 nPaperBin;
};
struct ScPrintState // Variablen aus ScPrintFunc retten
@@ -100,7 +100,7 @@ struct ScPrintState // Variablen aus ScPrintFunc retten
SCROW nStartRow;
SCCOL nEndCol;
SCROW nEndRow;
- USHORT nZoom;
+ sal_uInt16 nZoom;
size_t nPagesX;
size_t nPagesY;
long nTabPages;
@@ -115,7 +115,7 @@ private:
SCROW nStartRow;
SCROW nEndRow;
size_t nPagesX;
- BOOL* pHidden;
+ sal_Bool* pHidden;
//! Anzahl wirklich sichtbarer cachen???
public:
@@ -133,7 +133,7 @@ public:
void SetPagesX(size_t nNew);
void SetHidden(size_t nX);
- BOOL IsHidden(size_t nX) const;
+ sal_Bool IsHidden(size_t nX) const;
size_t CountVisible() const;
};
@@ -151,10 +151,10 @@ private:
Point aSrcOffset; // Papier-1/100 mm
Point aOffset; // mit Faktor aus Seitenformat skaliert
- USHORT nManualZoom; // Zoom in Preview (Prozent)
- BOOL bClearWin; // Ausgabe vorher loeschen
- BOOL bUseStyleColor;
- BOOL bIsRender;
+ sal_uInt16 nManualZoom; // Zoom in Preview (Prozent)
+ sal_Bool bClearWin; // Ausgabe vorher loeschen
+ sal_Bool bUseStyleColor;
+ sal_Bool bIsRender;
SCTAB nPrintTab;
long nPageStart; // Offset fuer erste Seite
@@ -163,19 +163,19 @@ private:
const ScRange* pUserArea; // Selektion, wenn im Dialog eingestellt
const SfxItemSet* pParamSet; // eingestellte Vorlage
- BOOL bState; // aus State-struct erzeugt
+ sal_Bool bState; // aus State-struct erzeugt
// Parameter aus Vorlage:
- USHORT nLeftMargin;
- USHORT nTopMargin;
- USHORT nRightMargin;
- USHORT nBottomMargin;
- BOOL bCenterHor;
- BOOL bCenterVer;
- BOOL bLandscape;
- BOOL bSourceRangeValid;
-
- USHORT nPageUsage;
+ sal_uInt16 nLeftMargin;
+ sal_uInt16 nTopMargin;
+ sal_uInt16 nRightMargin;
+ sal_uInt16 nBottomMargin;
+ sal_Bool bCenterHor;
+ sal_Bool bCenterVer;
+ sal_Bool bLandscape;
+ sal_Bool bSourceRangeValid;
+
+ sal_uInt16 nPageUsage;
Size aPageSize; // Drucker-Twips
const SvxBoxItem* pBorderItem;
const SvxBrushItem* pBackgroundItem;
@@ -188,9 +188,9 @@ private:
ScPageAreaParam aAreaParam;
// berechnete Werte:
- USHORT nZoom;
- BOOL bPrintCurrentTable;
- BOOL bMultiArea;
+ sal_uInt16 nZoom;
+ sal_Bool bPrintCurrentTable;
+ sal_Bool bMultiArea;
long nTabPages;
long nTotalPages;
@@ -257,27 +257,27 @@ public:
~ScPrintFunc();
static void DrawToDev( ScDocument* pDoc, OutputDevice* pDev, double nPrintFactor,
- const Rectangle& rBound, ScViewData* pViewData, BOOL bMetaFile );
+ const Rectangle& rBound, ScViewData* pViewData, sal_Bool bMetaFile );
void SetDrawView( FmFormView* pNew );
void SetOffset( const Point& rOfs );
- void SetManualZoom( USHORT nNewZoom );
+ void SetManualZoom( sal_uInt16 nNewZoom );
void SetDateTime( const Date& rDate, const Time& rTime );
- void SetClearFlag( BOOL bFlag );
- void SetUseStyleColor( BOOL bFlag );
- void SetRenderFlag( BOOL bFlag );
+ void SetClearFlag( sal_Bool bFlag );
+ void SetUseStyleColor( sal_Bool bFlag );
+ void SetRenderFlag( sal_Bool bFlag );
void SetExclusivelyDrawOleAndDrawObjects();//for printing selected objects without surrounding cell contents
- BOOL UpdatePages();
+ sal_Bool UpdatePages();
void ApplyPrintSettings(); // aus DoPrint() schon gerufen
long DoPrint( const MultiSelection& rPageRanges,
- /*long nStartPage, long nDisplayStart, BOOL bDoPrint,
+ /*long nStartPage, long nDisplayStart, sal_Bool bDoPrint,
SfxProgress* pProgress, ScPreviewLocationData* pLocationData );*/
- long nStartPage, long nDisplayStart, BOOL bDoPrint = TRUE,
+ long nStartPage, long nDisplayStart, sal_Bool bDoPrint = sal_True,
SfxProgress* pProgress = NULL, ScPreviewLocationData* pLocationData = NULL);
// Werte abfragen - sofort
@@ -292,32 +292,32 @@ public:
double GetScaleX() const { return nScaleX; }
double GetScaleY() const { return nScaleY; }
long GetTotalPages() const { return nTotalPages; }
- USHORT GetZoom() const { return nZoom; }
+ sal_uInt16 GetZoom() const { return nZoom; }
void ResetBreaks( SCTAB nTab );
void GetPrintState( ScPrintState& rState );
- BOOL GetLastSourceRange( ScRange& rRange ) const;
- USHORT GetLeftMargin() const{return nLeftMargin;}
- USHORT GetRightMargin() const{return nRightMargin;}
- USHORT GetTopMargin() const{return nTopMargin;}
- USHORT GetBottomMargin() const{return nBottomMargin;}
- void SetLeftMargin(USHORT nRulerLeftDistance){ nLeftMargin = nRulerLeftDistance; }
- void SetRightMargin(USHORT nRulerRightDistance){ nRightMargin = nRulerRightDistance; }
- void SetTopMargin(USHORT nRulerTopDistance){ nTopMargin = nRulerTopDistance; }
- void SetBottomMargin(USHORT nRulerBottomDistance){ nBottomMargin = nRulerBottomDistance; }
+ sal_Bool GetLastSourceRange( ScRange& rRange ) const;
+ sal_uInt16 GetLeftMargin() const{return nLeftMargin;}
+ sal_uInt16 GetRightMargin() const{return nRightMargin;}
+ sal_uInt16 GetTopMargin() const{return nTopMargin;}
+ sal_uInt16 GetBottomMargin() const{return nBottomMargin;}
+ void SetLeftMargin(sal_uInt16 nRulerLeftDistance){ nLeftMargin = nRulerLeftDistance; }
+ void SetRightMargin(sal_uInt16 nRulerRightDistance){ nRightMargin = nRulerRightDistance; }
+ void SetTopMargin(sal_uInt16 nRulerTopDistance){ nTopMargin = nRulerTopDistance; }
+ void SetBottomMargin(sal_uInt16 nRulerBottomDistance){ nBottomMargin = nRulerBottomDistance; }
ScPrintHFParam GetHeader(){return aHdr;}
ScPrintHFParam GetFooter(){return aFtr;}
private:
void Construct( const ScPrintOptions* pOptions );
void InitParam( const ScPrintOptions* pOptions );
- void CalcZoom( USHORT nRangeNo );
+ void CalcZoom( sal_uInt16 nRangeNo );
void CalcPages();
long CountPages();
long CountNotePages();
- BOOL AdjustPrintArea( BOOL bNew );
+ sal_Bool AdjustPrintArea( sal_Bool bNew );
Size GetDocPageSize();
@@ -327,31 +327,31 @@ private:
void InitModes();
- BOOL IsLeft( long nPageNo );
- BOOL IsMirror( long nPageNo );
+ sal_Bool IsLeft( long nPageNo );
+ sal_Bool IsMirror( long nPageNo );
void ReplaceFields( long nPageNo ); // aendert Text in pEditEngine
void MakeTableString(); // setzt aTableStr
void PrintPage( long nPageNo,
SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
- BOOL bDoPrint, ScPreviewLocationData* pLocationData );
+ sal_Bool bDoPrint, ScPreviewLocationData* pLocationData );
void PrintArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
long nScrX, long nScrY,
- BOOL bShLeft, BOOL bShTop, BOOL bShRight, BOOL bShBottom );
+ sal_Bool bShLeft, sal_Bool bShTop, sal_Bool bShRight, sal_Bool bShBottom );
void LocateArea( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
- long nScrX, long nScrY, BOOL bRepCol, BOOL bRepRow,
+ long nScrX, long nScrY, sal_Bool bRepCol, sal_Bool bRepRow,
ScPreviewLocationData& rLocationData );
void PrintColHdr( SCCOL nX1, SCCOL nX2, long nScrX, long nScrY );
void PrintRowHdr( SCROW nY1, SCROW nY2, long nScrX, long nScrY );
void LocateColHdr( SCCOL nX1, SCCOL nX2, long nScrX, long nScrY,
- BOOL bRepCol, ScPreviewLocationData& rLocationData );
+ sal_Bool bRepCol, ScPreviewLocationData& rLocationData );
void LocateRowHdr( SCROW nY1, SCROW nY2, long nScrX, long nScrY,
- BOOL bRepRow, ScPreviewLocationData& rLocationData );
- void PrintHF( long nPageNo, BOOL bHeader, long nStartY,
- BOOL bDoPrint, ScPreviewLocationData* pLocationData );
+ sal_Bool bRepRow, ScPreviewLocationData& rLocationData );
+ void PrintHF( long nPageNo, sal_Bool bHeader, long nStartY,
+ sal_Bool bDoPrint, ScPreviewLocationData* pLocationData );
- long PrintNotes( long nPageNo, long nNoteStart, BOOL bDoPrint, ScPreviewLocationData* pLocationData );
- long DoNotes( long nNoteStart, BOOL bDoPrint, ScPreviewLocationData* pLocationData );
+ long PrintNotes( long nPageNo, long nNoteStart, sal_Bool bDoPrint, ScPreviewLocationData* pLocationData );
+ long DoNotes( long nNoteStart, sal_Bool bDoPrint, ScPreviewLocationData* pLocationData );
void DrawBorder( long nScrX, long nScrY, long nScrW, long nScrH,
const SvxBoxItem* pBorderData,
diff --git a/sc/source/ui/inc/privsplt.hxx b/sc/source/ui/inc/privsplt.hxx
index f7c9f325c06b..ff3af449551e 100644
--- a/sc/source/ui/inc/privsplt.hxx
+++ b/sc/source/ui/inc/privsplt.hxx
@@ -38,7 +38,7 @@ class ScPrivatSplit : public Control
private:
Link aCtrModifiedLink;
- BOOL aMovingFlag;
+ sal_Bool aMovingFlag;
Pointer aWinPointer;
SC_SPLIT_DIRECTION eScSplit;
short nOldX;
@@ -53,7 +53,7 @@ class ScPrivatSplit : public Control
short nDeltaY;
using Control::ImplInitSettings;
- void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground );
diff --git a/sc/source/ui/inc/pvfundlg.hxx b/sc/source/ui/inc/pvfundlg.hxx
index d2402bc02e32..b41293779b75 100644
--- a/sc/source/ui/inc/pvfundlg.hxx
+++ b/sc/source/ui/inc/pvfundlg.hxx
@@ -58,8 +58,8 @@ class ScDPFunctionListBox : public MultiListBox
public:
explicit ScDPFunctionListBox( Window* pParent, const ResId& rResId );
- void SetSelection( USHORT nFuncMask );
- USHORT GetSelection() const;
+ void SetSelection( sal_uInt16 nFuncMask );
+ sal_uInt16 GetSelection() const;
private:
void FillFunctionNames();
@@ -71,20 +71,20 @@ class ScDPFunctionDlg : public ModalDialog
{
typedef ::boost::unordered_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash > NameMapType;
public:
- explicit ScDPFunctionDlg( Window* pParent, const ScDPLabelDataVec& rLabelVec,
- const ScDPLabelData& rLabelData, const ScDPFuncData& rFuncData );
+ explicit ScDPFunctionDlg( Window* pParent, const ScDPLabelDataVector& rLabelVec,
+ const ScDPLabelData& rLabelData, const ScPivotFuncData& rFuncData );
- USHORT GetFuncMask() const;
+ sal_uInt16 GetFuncMask() const;
::com::sun::star::sheet::DataPilotFieldReference GetFieldRef() const;
private:
- void Init( const ScDPLabelData& rLabelData, const ScDPFuncData& rFuncData );
+ void Init( const ScDPLabelData& rLabelData, const ScPivotFuncData& rFuncData );
const ::rtl::OUString& GetBaseFieldName(const ::rtl::OUString& rLayoutName) const;
const ::rtl::OUString& GetBaseItemName(const ::rtl::OUString& rLayoutName) const;
/** Searches for a listbox entry, starts search at specified position. */
- sal_uInt16 FindBaseItemPos( const String& rEntry, USHORT nStartPos ) const;
+ sal_uInt16 FindBaseItemPos( const String& rEntry, sal_uInt16 nStartPos ) const;
DECL_LINK( SelectHdl, ListBox* );
DECL_LINK( DblClickHdl, MultiListBox* );
@@ -111,7 +111,7 @@ private:
ScDPListBoxWrapper maLbTypeWrp; /// Wrapper for direct usage of API constants.
- const ScDPLabelDataVec& mrLabelVec; /// Data of all labels.
+ const ScDPLabelDataVector& mrLabelVec; /// Data of all labels.
bool mbEmptyItem; /// true = Empty base item in listbox.
};
@@ -121,15 +121,15 @@ class ScDPSubtotalDlg : public ModalDialog
{
public:
explicit ScDPSubtotalDlg( Window* pParent, ScDPObject& rDPObj,
- const ScDPLabelData& rLabelData, const ScDPFuncData& rFuncData,
+ const ScDPLabelData& rLabelData, const ScPivotFuncData& rFuncData,
const ScDPNameVec& rDataFields, bool bEnableLayout );
- USHORT GetFuncMask() const;
+ sal_uInt16 GetFuncMask() const;
void FillLabelData( ScDPLabelData& rLabelData ) const;
private:
- void Init( const ScDPLabelData& rLabelData, const ScDPFuncData& rFuncData );
+ void Init( const ScDPLabelData& rLabelData, const ScPivotFuncData& rFuncData );
DECL_LINK( DblClickHdl, MultiListBox* );
DECL_LINK( RadioClickHdl, RadioButton* );
@@ -174,7 +174,7 @@ private:
const ::rtl::OUString& GetFieldName(const ::rtl::OUString& rLayoutName) const;
/** Searches for a listbox entry, starts search at specified position. */
- sal_uInt16 FindListBoxEntry( const ListBox& rLBox, const String& rEntry, USHORT nStartPos ) const;
+ sal_uInt16 FindListBoxEntry( const ListBox& rLBox, const String& rEntry, sal_uInt16 nStartPos ) const;
DECL_LINK( RadioClickHdl, RadioButton* );
DECL_LINK( CheckHdl, CheckBox* );
@@ -221,7 +221,7 @@ private:
class ScDPShowDetailDlg : public ModalDialog
{
public:
- explicit ScDPShowDetailDlg( Window* pParent, ScDPObject& rDPObj, USHORT nOrient );
+ explicit ScDPShowDetailDlg( Window* pParent, ScDPObject& rDPObj, sal_uInt16 nOrient );
virtual short Execute();
diff --git a/sc/source/ui/inc/pvlaydlg.hxx b/sc/source/ui/inc/pvlaydlg.hxx
index 7b4dad83ee08..1b04a1445800 100644
--- a/sc/source/ui/inc/pvlaydlg.hxx
+++ b/sc/source/ui/inc/pvlaydlg.hxx
@@ -29,9 +29,8 @@
#ifndef SC_PVLAYDLG_HXX
#define SC_PVLAYDLG_HXX
-#include <vector>
#include <memory>
-#include <boost/shared_ptr.hpp>
+#include <vector>
#include <vcl/lstbox.hxx>
#include <vcl/scrbar.hxx>
@@ -40,35 +39,12 @@
#include "pivot.hxx"
#include "anyrefdg.hxx"
#include "fieldwnd.hxx"
-#include "formula/funcutl.hxx"
-
-/*==========================================================================*\
-
- Eine Instanz der Klasse ScPivotLayoutDlg ist ein (semi-)modaler
- Dialog, in dem mit der Maus Felder mit Spaltenueberschriften den
- drei Pivot-Kategorien "Spalte", "Zeile" und "Daten" zugeordnet
- werden koennen.
- Der Dialog erhaelt in der Struktur LabelData Informationen ueber
- diese Ueberschriften (Name, Art (Zahl/String) und Funktionsmaske).
- Weiterhin werden drei PivotFeld-Arrays uebergeben, mit denen die
- drei Kategorie-Fenster initialisiert werden. Ein Kategorie-Fenster
- wird durch eine Instanz der Klasse FieldWindow dargestellt. Ein
- solches Fenster ist fuer die Darstellung der Datenstrukturen am
- Schirm zustaendig. Es meldet Mausaktionen an den Dialog weiter und
- bietet entsprechende Methoden zur Veraenderung der Darstellung.
- Der Dialog sorgt fuer den Abgleich der interenen Datenstrukturen mit
- der Bildschirmdarstellung. Ein weiteres FieldWindow (Select) bietet
- alle Tabellenueberschriften zur Auswahl an, ist also "read-only".
-
-\*==========================================================================*/
-
-//============================================================================
+// ============================================================================
class ScViewData;
class ScDocument;
class ScRangeData;
-struct ScDPFuncData;
class ScDPObject;
//============================================================================
@@ -91,21 +67,25 @@ public:
virtual ~ScDPLayoutDlg();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const { return bRefInputMode; }
+ virtual sal_Bool IsRefInputMode() const { return bRefInputMode; }
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
virtual void StateChanged( StateChangedType nStateChange );
void NotifyDoubleClick ( ScDPFieldType eType, size_t nFieldIndex );
PointerStyle NotifyMouseButtonDown( ScDPFieldType eType, size_t nFieldIndex );
void NotifyMouseButtonUp ( const Point& rAt );
PointerStyle NotifyMouseMove ( const Point& rAt );
- void NotifyFieldFocus ( ScDPFieldType eType, BOOL bGotFocus );
+ void NotifyFieldFocus ( ScDPFieldType eType, sal_Bool bGotFocus );
void NotifyMoveFieldToEnd ( ScDPFieldType eToType );
void NotifyRemoveField ( ScDPFieldType eType, size_t nFieldIndex );
protected:
- virtual void Deactivate();
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
+ virtual sal_Bool IsRefInputMode() const;
+ virtual void SetActive();
+ virtual sal_Bool Close();
private:
typedef boost::shared_ptr< ScDPFuncData > ScDPFuncDataRef;
@@ -157,7 +137,7 @@ private:
ScDPFieldType eDnDFromType;
size_t nDnDFromIndex;
- BOOL bIsDrag;
+ sal_Bool bIsDrag;
::formula::RefEdit* pEditActive;
@@ -198,8 +178,8 @@ private:
ScDPLabelData* GetLabelData ( SCsCOL nCol, size_t* pPos = NULL );
String GetLabelString ( SCsCOL nCol );
bool IsOrientationAllowed( SCsCOL nCol, ScDPFieldType eType );
- String GetFuncString ( USHORT& rFuncMask, BOOL bIsValue = TRUE );
- BOOL Contains ( ScDPFuncDataVec* pArr, SCsCOL nCol, size_t& nAt );
+ String GetFuncString ( sal_uInt16& rFuncMask, sal_Bool bIsValue = true );
+ sal_Bool Contains ( ScDPFuncDataVec* pArr, SCsCOL nCol, size_t& nAt );
void Remove ( ScDPFuncDataVec* pArr, size_t nAt );
void Insert ( ScDPFuncDataVec* pArr, const ScDPFuncData& rFData, size_t nAt );
diff --git a/sc/source/ui/inc/redcom.hxx b/sc/source/ui/inc/redcom.hxx
index f24478b96c35..c02a06b9ffec 100644
--- a/sc/source/ui/inc/redcom.hxx
+++ b/sc/source/ui/inc/redcom.hxx
@@ -57,7 +57,7 @@ protected:
public:
ScRedComDialog( Window* pParent, const SfxItemSet& rCoreSet,
- ScDocShell *,ScChangeAction *,BOOL bPrevNext = FALSE);
+ ScDocShell *,ScChangeAction *,sal_Bool bPrevNext = false);
~ScRedComDialog();
short Execute();
diff --git a/sc/source/ui/inc/reffact.hxx b/sc/source/ui/inc/reffact.hxx
index f170fa7dc0e4..fc30485dbe92 100644
--- a/sc/source/ui/inc/reffact.hxx
+++ b/sc/source/ui/inc/reffact.hxx
@@ -37,7 +37,7 @@
class Class : public SfxChildWindow \
{ \
public: \
- Class( Window*, USHORT, SfxBindings*, SfxChildWinInfo* ); \
+ Class( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* ); \
SFX_DECL_CHILDWINDOW(Class); \
};
@@ -69,7 +69,7 @@ class ScAcceptChgDlgWrapper: public SfxChildWindow
{
public:
ScAcceptChgDlgWrapper( Window*,
- USHORT,
+ sal_uInt16,
SfxBindings*,
SfxChildWinInfo* );
@@ -82,20 +82,20 @@ class ScSimpleRefDlgWrapper: public SfxChildWindow
{
public:
ScSimpleRefDlgWrapper( Window*,
- USHORT,
+ sal_uInt16,
SfxBindings*,
SfxChildWinInfo* );
SFX_DECL_CHILDWINDOW(Class);
- static void SetDefaultPosSize(Point aPos, Size aSize, BOOL bSet=TRUE);
+ static void SetDefaultPosSize(Point aPos, Size aSize, sal_Bool bSet=sal_True);
virtual String GetRefString();
virtual void SetRefString(const String& rStr);
void SetCloseHdl( const Link& rLink );
void SetUnoLinks( const Link& rDone, const Link& rAbort,
const Link& rChange );
- void SetFlags( BOOL bCloseOnButtonUp, BOOL bSingleCell, BOOL bMultiSelection );
- static void SetAutoReOpen(BOOL bFlag);
+ void SetFlags( sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection );
+ static void SetAutoReOpen(sal_Bool bFlag);
void StartRefInput();
};
@@ -106,13 +106,13 @@ class SC_DLLPUBLIC ScValidityRefChildWin : public SfxChildWindow
bool m_bFreeWindowLock:1;
Window * m_pSavedWndParent;
public:
- ScValidityRefChildWin( Window*, USHORT, SfxBindings*, SfxChildWinInfo* );
+ ScValidityRefChildWin( Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
SFX_DECL_CHILDWINDOW(ScValidityRefChildWin);
~ScValidityRefChildWin();
bool LockVisible( bool bLock ){ bool bVis = m_bVisibleLock; m_bVisibleLock = bLock; return bVis; }
bool LockFreeWindow( bool bLock ){ bool bFreeWindow = m_bFreeWindowLock; m_bFreeWindowLock = bLock; return bFreeWindow; }
void Hide(){ if( !m_bVisibleLock) SfxChildWindow::Hide(); }
- void Show( USHORT nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
+ void Show( sal_uInt16 nFlags ){ if( !m_bVisibleLock ) SfxChildWindow::Show( nFlags ); }
};
//==================================================================
diff --git a/sc/source/ui/inc/refundo.hxx b/sc/source/ui/inc/refundo.hxx
index 8abbd5155342..25de386d023e 100644
--- a/sc/source/ui/inc/refundo.hxx
+++ b/sc/source/ui/inc/refundo.hxx
@@ -61,7 +61,7 @@ public:
~ScRefUndoData();
void DeleteUnchanged( const ScDocument* pDoc );
- void DoUndo( ScDocument* pDoc, BOOL bUndoRefFirst );
+ void DoUndo( ScDocument* pDoc, sal_Bool bUndoRefFirst );
};
diff --git a/sc/source/ui/inc/rfindlst.hxx b/sc/source/ui/inc/rfindlst.hxx
index 7e6f08adc4f3..fed5f21e2b0e 100644
--- a/sc/source/ui/inc/rfindlst.hxx
+++ b/sc/source/ui/inc/rfindlst.hxx
@@ -38,11 +38,11 @@
struct ScRangeFindData
{
ScRange aRef;
- USHORT nFlags;
+ sal_uInt16 nFlags;
xub_StrLen nSelStart;
xub_StrLen nSelEnd;
- ScRangeFindData( const ScRange& rR, USHORT nF, xub_StrLen nS, xub_StrLen nE ) :
+ ScRangeFindData( const ScRange& rR, sal_uInt16 nF, xub_StrLen nS, xub_StrLen nE ) :
aRef(rR), nFlags(nF), nSelStart(nS), nSelEnd(nE) {}
};
@@ -56,12 +56,12 @@ public:
ScRangeFindList(const String& rName);
~ScRangeFindList();
- ULONG Count() const { return aEntries.Count(); }
+ sal_uLong Count() const { return aEntries.Count(); }
void Insert( ScRangeFindData* pNew ) { aEntries.Insert(pNew, LIST_APPEND); }
- ScRangeFindData* GetObject( ULONG nIndex ) const
+ ScRangeFindData* GetObject( sal_uLong nIndex ) const
{ return (ScRangeFindData*)aEntries.GetObject(nIndex); }
- void SetHidden( BOOL bSet ) { bHidden = bSet; }
+ void SetHidden( sal_Bool bSet ) { bHidden = bSet; }
const String& GetDocName() const { return aDocName; }
bool IsHidden() const { return bHidden; }
diff --git a/sc/source/ui/inc/scendlg.hxx b/sc/source/ui/inc/scendlg.hxx
index fac5b33220e7..e9acea5c11aa 100644
--- a/sc/source/ui/inc/scendlg.hxx
+++ b/sc/source/ui/inc/scendlg.hxx
@@ -33,7 +33,7 @@
#include <vcl/dialog.hxx>
#include <vcl/edit.hxx>
#include <vcl/fixed.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <svtools/svmedit.hxx>
#include <svtools/ctrlbox.hxx>
@@ -42,14 +42,14 @@
class ScNewScenarioDlg : public ModalDialog
{
public:
- ScNewScenarioDlg( Window* pParent, const String& rName, BOOL bEdit = FALSE, BOOL bSheetProtected = FALSE );
+ ScNewScenarioDlg( Window* pParent, const String& rName, sal_Bool bEdit = false, sal_Bool bSheetProtected = false );
~ScNewScenarioDlg();
void SetScenarioData( const String& rName, const String& rComment,
- const Color& rColor, USHORT nFlags );
+ const Color& rColor, sal_uInt16 nFlags );
void GetScenarioData( String& rName, String& rComment,
- Color& rColor, USHORT& rFlags ) const;
+ Color& rColor, sal_uInt16& rFlags ) const;
private:
FixedLine aFlName;
@@ -69,7 +69,7 @@ private:
CancelButton aBtnCancel;
HelpButton aBtnHelp;
const String aDefScenarioName;
- BOOL bIsEdit;
+ sal_Bool bIsEdit;
DECL_LINK( OkHdl, OKButton * );
DECL_LINK( EnableHdl, CheckBox * );
diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx
index 5e512e3f8763..133d310c664e 100644
--- a/sc/source/ui/inc/scuiasciiopt.hxx
+++ b/sc/source/ui/inc/scuiasciiopt.hxx
@@ -40,9 +40,9 @@
class ScImportAsciiDlg : public ModalDialog
{
SvStream* mpDatStream;
- ULONG mnStreamPos;
- ULONG* mpRowPosArray;
- ULONG mnRowPosCount;
+ sal_uLong mnStreamPos;
+ sal_uLong* mpRowPosArray;
+ sal_uLong mnRowPosCount;
String maPreviewLine[ CSV_PREVIEW_LINES ];
@@ -117,9 +117,9 @@ private:
void SetupSeparatorCtrls();
- bool GetLine( ULONG nLine, String &rText );
+ bool GetLine( sal_uLong nLine, String &rText );
void UpdateVertical();
- inline bool Seek( ULONG nPos ); // synced to and from mnStreamPos
+ inline bool Seek( sal_uLong nPos ); // synced to and from mnStreamPos
DECL_LINK( CharSetHdl, SvxTextEncodingBox* );
DECL_LINK( FirstRowHdl, NumericField* );
@@ -131,7 +131,7 @@ private:
};
-inline bool ScImportAsciiDlg::Seek(ULONG nPos)
+inline bool ScImportAsciiDlg::Seek(sal_uLong nPos)
{
bool bSuccess = true;
if (nPos != mnStreamPos && mpDatStream)
diff --git a/sc/source/ui/inc/scuiautofmt.hxx b/sc/source/ui/inc/scuiautofmt.hxx
index 69c5f5cb6bd8..00113dca3806 100644
--- a/sc/source/ui/inc/scuiautofmt.hxx
+++ b/sc/source/ui/inc/scuiautofmt.hxx
@@ -38,7 +38,7 @@ public:
ScDocument* pDoc );
~ScAutoFormatDlg();
- USHORT GetIndex() const { return nIndex; }
+ sal_uInt16 GetIndex() const { return nIndex; }
String GetCurrFormatName();
private:
@@ -69,9 +69,9 @@ private:
//------------------------
ScAutoFormat* pFormat;
const ScAutoFormatData* pSelFmtData;
- USHORT nIndex;
- BOOL bCoreDataChanged;
- BOOL bFmtInserted;
+ sal_uInt16 nIndex;
+ sal_Bool bCoreDataChanged;
+ sal_Bool bFmtInserted;
void Init ();
void UpdateChecks ();
diff --git a/sc/source/ui/inc/scuiimoptdlg.hxx b/sc/source/ui/inc/scuiimoptdlg.hxx
index 605dec3cd7f6..9a0de3c23f4c 100644
--- a/sc/source/ui/inc/scuiimoptdlg.hxx
+++ b/sc/source/ui/inc/scuiimoptdlg.hxx
@@ -40,12 +40,12 @@ class ScImportOptionsDlg : public ModalDialog
{
public:
ScImportOptionsDlg( Window* pParent,
- BOOL bAscii = TRUE,
+ sal_Bool bAscii = sal_True,
const ScImportOptions* pOptions = NULL,
const String* pStrTitle = NULL,
- BOOL bMultiByte = FALSE,
- BOOL bOnlyDbtoolsEncodings = FALSE,
- BOOL bImport = TRUE );
+ sal_Bool bMultiByte = false,
+ sal_Bool bOnlyDbtoolsEncodings = false,
+ sal_Bool bImport = sal_True );
~ScImportOptionsDlg();
@@ -59,17 +59,18 @@ private:
ComboBox aEdFieldSep;
FixedText aFtTextSep;
ComboBox aEdTextSep;
+ CheckBox aCbQuoteAll;
+ CheckBox aCbShown;
CheckBox aCbFixed;
OKButton aBtnOk;
CancelButton aBtnCancel;
HelpButton aBtnHelp;
- CheckBox aCbShown;
ScDelimiterTable* pFieldSepTab;
ScDelimiterTable* pTextSepTab;
private:
- USHORT GetCodeFromCombo( const ComboBox& rEd ) const;
+ sal_uInt16 GetCodeFromCombo( const ComboBox& rEd ) const;
DECL_LINK( FixedWidthHdl, CheckBox* );
DECL_LINK( DoubleClickHdl, ListBox* );
diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx
index 6c0d3768d7c3..b8c3e20b8136 100644
--- a/sc/source/ui/inc/scuitphfedit.hxx
+++ b/sc/source/ui/inc/scuitphfedit.hxx
@@ -60,7 +60,7 @@ class ScAccessibleEditObject;
class ScHFEditPage : public SfxTabPage
{
public:
- virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet );
virtual void Reset ( const SfxItemSet& rCoreSet );
void SetNumType(SvxNumType eNumType);
@@ -68,9 +68,9 @@ public:
protected:
ScHFEditPage( Window* pParent,
- USHORT nResId,
+ sal_uInt16 nResId,
const SfxItemSet& rCoreSet,
- USHORT nWhich, bool bHeader );
+ sal_uInt16 nWhich, bool bHeader );
virtual ~ScHFEditPage();
private:
@@ -94,7 +94,7 @@ private:
FixedInfo aFtInfo;
ScPopupMenu aPopUpFile;
- USHORT nWhich;
+ sal_uInt16 nWhich;
String aCmdArr[6];
private:
@@ -120,7 +120,7 @@ class ScRightHeaderEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
private:
ScRightHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
@@ -132,7 +132,7 @@ class ScLeftHeaderEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
private:
ScLeftHeaderEditPage( Window* pParent, const SfxItemSet& rSet );
@@ -144,7 +144,7 @@ class ScRightFooterEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
private:
ScRightFooterEditPage( Window* pParent, const SfxItemSet& rSet );
@@ -156,7 +156,7 @@ class ScLeftFooterEditPage : public ScHFEditPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
private:
ScLeftFooterEditPage( Window* pParent, const SfxItemSet& rSet );
diff --git a/sc/source/ui/inc/select.hxx b/sc/source/ui/inc/select.hxx
index c822ab267b1f..0c8ea64c4e0c 100644
--- a/sc/source/ui/inc/select.hxx
+++ b/sc/source/ui/inc/select.hxx
@@ -58,13 +58,13 @@ private:
ScViewData* pViewData;
ScViewSelectionEngine* pEngine;
- BOOL bAnchor;
- BOOL bStarted;
+ sal_Bool bAnchor;
+ sal_Bool bStarted;
ScAddress aAnchorPos;
ScSplitPos GetWhich();
- ULONG CalcUpdateInterval( const Size& rWinSize, const Point& rEffPos,
+ sal_uLong CalcUpdateInterval( const Size& rWinSize, const Point& rEffPos,
bool bLeftScroll, bool bTopScroll, bool bRightScroll, bool bBottomScroll );
public:
@@ -73,17 +73,17 @@ public:
void SetSelectionEngine( ScViewSelectionEngine* pSelEngine );
void SetAnchor( SCCOL nPosX, SCROW nPosY );
- void SetAnchorFlag( BOOL bSet );
+ void SetAnchorFlag( sal_Bool bSet );
virtual void BeginDrag();
virtual void CreateAnchor();
virtual void DestroyAnchor();
- virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE );
- virtual BOOL IsSelectionAtPoint( const Point& rPointPixel );
+ virtual sal_Bool SetCursorAtPoint( const Point& rPointPixel, sal_Bool bDontSelectAtCursor = false );
+ virtual sal_Bool IsSelectionAtPoint( const Point& rPointPixel );
virtual void DeselectAtPoint( const Point& rPointPixel );
virtual void DeselectAll();
- BOOL SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, BOOL bScroll );
+ sal_Bool SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, sal_Bool bScroll );
};
@@ -94,27 +94,27 @@ class ScHeaderFunctionSet : public FunctionSet // Spalten- / Zeilenkoep
{
private:
ScViewData* pViewData;
- BOOL bColumn; // Col- / Rowbar
+ sal_Bool bColumn; // Col- / Rowbar
ScSplitPos eWhich;
- BOOL bAnchor;
+ sal_Bool bAnchor;
SCCOLROW nCursorPos;
public:
ScHeaderFunctionSet( ScViewData* pNewViewData );
- void SetColumn( BOOL bSet );
+ void SetColumn( sal_Bool bSet );
void SetWhich( ScSplitPos eNew );
virtual void BeginDrag();
virtual void CreateAnchor();
virtual void DestroyAnchor();
- virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE );
- virtual BOOL IsSelectionAtPoint( const Point& rPointPixel );
+ virtual sal_Bool SetCursorAtPoint( const Point& rPointPixel, sal_Bool bDontSelectAtCursor = false );
+ virtual sal_Bool IsSelectionAtPoint( const Point& rPointPixel );
virtual void DeselectAtPoint( const Point& rPointPixel );
virtual void DeselectAll();
- void SetAnchorFlag(BOOL bSet) { bAnchor = bSet; }
+ void SetAnchorFlag(sal_Bool bSet) { bAnchor = bSet; }
};
diff --git a/sc/source/ui/inc/seltrans.hxx b/sc/source/ui/inc/seltrans.hxx
index 4fda9372a05e..9b0f39a39873 100644
--- a/sc/source/ui/inc/seltrans.hxx
+++ b/sc/source/ui/inc/seltrans.hxx
@@ -67,7 +67,7 @@ public:
virtual ~ScSelectionTransferObj();
void ForgetView();
- BOOL StillValid();
+ sal_Bool StillValid();
ScTabView* GetView() const { return pView; }
ScTransferObj* GetCellData();
diff --git a/sc/source/ui/inc/servobj.hxx b/sc/source/ui/inc/servobj.hxx
index 975781f05169..b0bb345de3e9 100644
--- a/sc/source/ui/inc/servobj.hxx
+++ b/sc/source/ui/inc/servobj.hxx
@@ -55,7 +55,7 @@ private:
ScDocShell* pDocSh;
ScRange aRange;
String aItemStr;
- BOOL bRefreshListener;
+ sal_Bool bRefreshListener;
void Clear();
@@ -63,9 +63,9 @@ public:
ScServerObject( ScDocShell* pShell, const String& rItem );
virtual ~ScServerObject();
- virtual BOOL GetData( ::com::sun::star::uno::Any & rData /*out param*/,
+ virtual sal_Bool GetData( ::com::sun::star::uno::Any & rData /*out param*/,
const String & rMimeType,
- BOOL bSynchron = FALSE );
+ sal_Bool bSynchron = false );
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
void EndListeningAll();
diff --git a/sc/source/ui/inc/shtabdlg.hxx b/sc/source/ui/inc/shtabdlg.hxx
index b4e2c1037509..90dd3e217031 100644
--- a/sc/source/ui/inc/shtabdlg.hxx
+++ b/sc/source/ui/inc/shtabdlg.hxx
@@ -39,11 +39,11 @@
class ScShowTabDlg : public ModalDialog
{
private:
+ FixedText aFtLbTitle;
::svtools::ToolTipMultiListBox aLb;
OKButton aBtnOk;
CancelButton aBtnCancel;
HelpButton aBtnHelp;
- FixedText aFtLbTitle;
DECL_LINK( DblClkHdl, void * );
@@ -54,14 +54,14 @@ public:
/** Sets dialog title, fixed text for listbox and help IDs. */
void SetDescription(
const String& rTitle, const String& rFixedText,
- ULONG nDlgHelpId, ULONG nLbHelpId );
+ const ::rtl::OString& nDlgHelpId, const rtl::OString& nLbHelpId );
/** Inserts a string into the ListBox. */
- void Insert( const String& rString, BOOL bSelected );
+ void Insert( const String& rString, sal_Bool bSelected );
- USHORT GetSelectEntryCount() const;
- String GetSelectEntry(USHORT nPos) const;
- USHORT GetSelectEntryPos(USHORT nPos) const;
+ sal_uInt16 GetSelectEntryCount() const;
+ String GetSelectEntry(sal_uInt16 nPos) const;
+ sal_uInt16 GetSelectEntryPos(sal_uInt16 nPos) const;
};
diff --git a/sc/source/ui/inc/simpref.hxx b/sc/source/ui/inc/simpref.hxx
index eadc59d90470..4dcf023b2780 100644
--- a/sc/source/ui/inc/simpref.hxx
+++ b/sc/source/ui/inc/simpref.hxx
@@ -64,14 +64,14 @@ private:
ScViewData* pViewData;
ScDocument* pDoc;
- BOOL bRefInputMode;
+ sal_Bool bRefInputMode;
ScRange theCurArea;
- BOOL bCloseFlag;
- BOOL bAutoReOpen;
- BOOL bCloseOnButtonUp;
- BOOL bSingleCell;
- BOOL bMultiSelection;
+ sal_Bool bCloseFlag;
+ sal_Bool bAutoReOpen;
+ sal_Bool bCloseOnButtonUp;
+ sal_Bool bSingleCell;
+ sal_Bool bMultiSelection;
void Init();
@@ -81,7 +81,7 @@ private:
protected:
- virtual void RefInputDone( BOOL bForced = FALSE );
+ virtual void RefInputDone( sal_Bool bForced = false );
public:
ScSimpleRefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
@@ -90,9 +90,9 @@ public:
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
void StartRefInput();
@@ -104,9 +104,9 @@ public:
void SetUnoLinks( const Link& rDone, const Link& rAbort,
const Link& rChange );
- void SetFlags( BOOL bSetCloseOnButtonUp, BOOL bSetSingleCell, BOOL bSetMultiSelection );
+ void SetFlags( sal_Bool bSetCloseOnButtonUp, sal_Bool bSetSingleCell, sal_Bool bSetMultiSelection );
- void SetAutoReOpen(BOOL bFlag) {bAutoReOpen=bFlag;}
+ void SetAutoReOpen(sal_Bool bFlag) {bAutoReOpen=bFlag;}
};
diff --git a/sc/source/ui/inc/sizedev.hxx b/sc/source/ui/inc/sizedev.hxx
index eb7a251fdd86..d3cd5362b2b7 100644
--- a/sc/source/ui/inc/sizedev.hxx
+++ b/sc/source/ui/inc/sizedev.hxx
@@ -37,7 +37,7 @@ class ScDocShell;
class ScSizeDeviceProvider
{
OutputDevice* pDevice;
- BOOL bOwner;
+ sal_Bool bOwner;
double nPPTX;
double nPPTY;
MapMode aOldMapMode;
@@ -49,7 +49,7 @@ public:
OutputDevice* GetDevice() const { return pDevice; }
double GetPPTX() const { return nPPTX; }
double GetPPTY() const { return nPPTY; }
- BOOL IsPrinter() const { return !bOwner; }
+ sal_Bool IsPrinter() const { return !bOwner; }
};
#endif
diff --git a/sc/source/ui/inc/solvrdlg.hxx b/sc/source/ui/inc/solvrdlg.hxx
index a7f4cf8cec0d..86eb96f15b70 100644
--- a/sc/source/ui/inc/solvrdlg.hxx
+++ b/sc/source/ui/inc/solvrdlg.hxx
@@ -59,9 +59,9 @@ public:
~ScSolverDlg();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const;
+ virtual sal_Bool IsRefInputMode() const;
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
FixedLine aFlVariables;
@@ -87,7 +87,7 @@ private:
ScDocument* pDoc;
const SCTAB nCurTab;
formula::RefEdit* pEdActive;
- BOOL bDlgLostFocus;
+ sal_Bool bDlgLostFocus;
const String errMsgInvalidVar;
const String errMsgInvalidForm;
const String errMsgNoFormula;
@@ -96,7 +96,7 @@ private:
#ifdef _SOLVRDLG_CXX
void Init();
- BOOL CheckTargetValue( String& rStrVal );
+ sal_Bool CheckTargetValue( String& rStrVal );
void RaiseError( ScSolverErr eError );
DECL_LINK( BtnHdl, PushButton* );
diff --git a/sc/source/ui/inc/sortdlg.hxx b/sc/source/ui/inc/sortdlg.hxx
index 7812b2a24499..1d6e01d02b25 100644
--- a/sc/source/ui/inc/sortdlg.hxx
+++ b/sc/source/ui/inc/sortdlg.hxx
@@ -51,21 +51,21 @@ public:
const SfxItemSet* pArgSet );
~ScSortDlg();
- void SetHeaders( BOOL bHeaders );
- void SetByRows ( BOOL bByRows );
- BOOL GetHeaders() const;
- BOOL GetByRows () const;
+ void SetHeaders( sal_Bool bHeaders );
+ void SetByRows ( sal_Bool bByRows );
+ sal_Bool GetHeaders() const;
+ sal_Bool GetByRows () const;
private:
- BOOL bIsHeaders;
- BOOL bIsByRows;
+ sal_Bool bIsHeaders;
+ sal_Bool bIsByRows;
};
-inline void ScSortDlg::SetHeaders( BOOL bHeaders ) { bIsHeaders = bHeaders; }
-inline void ScSortDlg::SetByRows ( BOOL bByRows ) { bIsByRows = bByRows; }
-inline BOOL ScSortDlg::GetHeaders() const { return bIsHeaders; }
-inline BOOL ScSortDlg::GetByRows () const { return bIsByRows; }
+inline void ScSortDlg::SetHeaders( sal_Bool bHeaders ) { bIsHeaders = bHeaders; }
+inline void ScSortDlg::SetByRows ( sal_Bool bByRows ) { bIsByRows = bByRows; }
+inline sal_Bool ScSortDlg::GetHeaders() const { return bIsHeaders; }
+inline sal_Bool ScSortDlg::GetByRows () const { return bIsByRows; }
class ScSortWarningDlg : public ModalDialog
{
diff --git a/sc/source/ui/inc/spelldialog.hxx b/sc/source/ui/inc/spelldialog.hxx
index d525c62597f1..3639007655a9 100644
--- a/sc/source/ui/inc/spelldialog.hxx
+++ b/sc/source/ui/inc/spelldialog.hxx
@@ -52,7 +52,7 @@ class ScSpellDialogChildWindow : public ::svx::SpellDialogChildWindow
public:
SFX_DECL_CHILDWINDOW( ScSpellDialogChildWindow );
- explicit ScSpellDialogChildWindow( Window* pParent, USHORT nId,
+ explicit ScSpellDialogChildWindow( Window* pParent, sal_uInt16 nId,
SfxBindings* pBindings, SfxChildWinInfo* pInfo );
virtual ~ScSpellDialogChildWindow();
diff --git a/sc/source/ui/inc/spelleng.hxx b/sc/source/ui/inc/spelleng.hxx
index e351c8ff2212..aae57483b8b6 100644
--- a/sc/source/ui/inc/spelleng.hxx
+++ b/sc/source/ui/inc/spelleng.hxx
@@ -121,7 +121,7 @@ public:
protected:
/** Callback from edit engine to check the next cell. */
- virtual BOOL SpellNextDocument();
+ virtual sal_Bool SpellNextDocument();
/** Returns true, if the current text contains a spelling error. */
virtual bool NeedsConversion();
@@ -155,7 +155,7 @@ public:
protected:
/** Callback from edit engine to convert the next cell. */
- virtual BOOL ConvertNextDocument();
+ virtual sal_Bool ConvertNextDocument();
/** Returns true, if the current text contains text to convert. */
virtual bool NeedsConversion();
diff --git a/sc/source/ui/inc/strindlg.hxx b/sc/source/ui/inc/strindlg.hxx
index af022443a80a..16630a099a41 100644
--- a/sc/source/ui/inc/strindlg.hxx
+++ b/sc/source/ui/inc/strindlg.hxx
@@ -32,7 +32,7 @@
#include <vcl/dialog.hxx>
#include <vcl/fixed.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <vcl/edit.hxx>
#include <layout/layout.hxx>
@@ -47,7 +47,7 @@ public:
const String& rTitle,
const String& rEditTitle,
const String& rDefault,
- ULONG nHelpId );
+ const rtl::OString& sHelpId, const rtl::OString& sEditHelpId );
~ScStringInputDlg();
void GetInputString( String& rString ) const;
diff --git a/sc/source/ui/inc/styledlg.hxx b/sc/source/ui/inc/styledlg.hxx
index 6114da813f03..73fab86b8088 100644
--- a/sc/source/ui/inc/styledlg.hxx
+++ b/sc/source/ui/inc/styledlg.hxx
@@ -40,15 +40,15 @@ class ScStyleDlg : public SfxStyleDialog
public:
ScStyleDlg( Window* pParent,
SfxStyleSheetBase& rStyleBase,
- USHORT nRscId );
+ sal_uInt16 nRscId );
~ScStyleDlg();
protected:
- virtual void PageCreated( USHORT nPageId, SfxTabPage& rTabPage );
+ virtual void PageCreated( sal_uInt16 nPageId, SfxTabPage& rTabPage );
virtual const SfxItemSet* GetRefreshedSet();
private:
- USHORT nDlgRsc;
+ sal_uInt16 nDlgRsc;
};
diff --git a/sc/source/ui/inc/tabbgcolordlg.hxx b/sc/source/ui/inc/tabbgcolordlg.hxx
index 56cf5691f57b..7c1870aa6cad 100644
--- a/sc/source/ui/inc/tabbgcolordlg.hxx
+++ b/sc/source/ui/inc/tabbgcolordlg.hxx
@@ -30,7 +30,8 @@
#define SC_TABBGCOLORDLG_HXX
#include <vcl/dialog.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/fixed.hxx>
+#include <vcl/button.hxx>
#include <svtools/valueset.hxx>
//------------------------------------------------------------------------
@@ -42,7 +43,7 @@ public:
const String& rTitle,
const String& rTabBgColorNoColorText,
const Color& rDefaultColor,
- ULONG nHelpId );
+ const rtl::OString& nHelpId );
~ScTabBgColorDlg();
void GetSelectedColor( Color& rColor ) const;
@@ -65,7 +66,7 @@ private:
HelpButton aBtnHelp;
Color aTabBgColor;
const String aTabBgColorNoColorText;
- ULONG mnHelpId;
+ rtl::OString msHelpId;
void FillColorValueSets_Impl();
diff --git a/sc/source/ui/inc/tabcont.hxx b/sc/source/ui/inc/tabcont.hxx
index c9892ecbceec..6e922fa00a29 100644
--- a/sc/source/ui/inc/tabcont.hxx
+++ b/sc/source/ui/inc/tabcont.hxx
@@ -46,13 +46,13 @@ class ScTabControl : public TabBar, public DropTargetHelper, public DragSourceHe
{
private:
ScViewData* pViewData;
- USHORT nMouseClickPageId; /// Last page ID after mouse button down/up
- USHORT nSelPageIdByMouse; /// Selected page ID, if selected with mouse
- BOOL bErrorShown;
+ sal_uInt16 nMouseClickPageId; /// Last page ID after mouse button down/up
+ sal_uInt16 nSelPageIdByMouse; /// Selected page ID, if selected with mouse
+ sal_Bool bErrorShown;
void DoDrag( const Region& rRegion );
- USHORT GetMaxId() const;
+ sal_uInt16 GetMaxId() const;
SCTAB GetPrivatDropPos(const Point& rPos );
protected:
@@ -79,9 +79,9 @@ public:
void UpdateInputContext();
void UpdateStatus();
- void ActivateView(BOOL bActivate);
+ void ActivateView(sal_Bool bActivate);
- void SetSheetLayoutRTL( BOOL bSheetRTL );
+ void SetSheetLayoutRTL( sal_Bool bSheetRTL );
};
diff --git a/sc/source/ui/inc/tabopdlg.hxx b/sc/source/ui/inc/tabopdlg.hxx
index c0f06f060184..4f43614adde8 100644
--- a/sc/source/ui/inc/tabopdlg.hxx
+++ b/sc/source/ui/inc/tabopdlg.hxx
@@ -60,10 +60,10 @@ public:
~ScTabOpDlg();
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc );
- virtual BOOL IsRefInputMode() const { return TRUE; }
+ virtual sal_Bool IsRefInputMode() const { return sal_True; }
virtual void SetActive();
- virtual BOOL Close();
+ virtual sal_Bool Close();
private:
FixedLine aFlVariables;
@@ -91,7 +91,7 @@ private:
ScDocument* pDoc;
const SCTAB nCurTab;
formula::RefEdit* pEdActive;
- BOOL bDlgLostFocus;
+ sal_Bool bDlgLostFocus;
const String errMsgNoFormula;
const String errMsgNoColRow;
const String errMsgWrongFormula;
diff --git a/sc/source/ui/inc/tabpages.hxx b/sc/source/ui/inc/tabpages.hxx
index 22ddc43e52c2..cec2618541ac 100644
--- a/sc/source/ui/inc/tabpages.hxx
+++ b/sc/source/ui/inc/tabpages.hxx
@@ -40,8 +40,8 @@ class ScTabPageProtection : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rAttrSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rCoreAttrs );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreAttrs );
virtual void Reset ( const SfxItemSet& );
protected:
@@ -65,12 +65,12 @@ private:
FixedInfo aTxtHint2;
// aktueller Status:
- BOOL bTriEnabled; // wenn vorher Dont-Care
- BOOL bDontCare; // alles auf TriState
- BOOL bProtect; // einzelne Einstellungen ueber TriState sichern
- BOOL bHideForm;
- BOOL bHideCell;
- BOOL bHidePrint;
+ sal_Bool bTriEnabled; // wenn vorher Dont-Care
+ sal_Bool bDontCare; // alles auf TriState
+ sal_Bool bProtect; // einzelne Einstellungen ueber TriState sichern
+ sal_Bool bHideForm;
+ sal_Bool bHideCell;
+ sal_Bool bHidePrint;
// Handler:
DECL_LINK( ButtonClickHdl, TriStateBox* pBox );
diff --git a/sc/source/ui/inc/tabsplit.hxx b/sc/source/ui/inc/tabsplit.hxx
index 9a369a0dd36f..23ba73b6b307 100644
--- a/sc/source/ui/inc/tabsplit.hxx
+++ b/sc/source/ui/inc/tabsplit.hxx
@@ -38,7 +38,7 @@ class ScTabSplitter : public Splitter
{
private:
ScViewData* pViewData;
- BOOL bFixed;
+ sal_Bool bFixed;
protected:
virtual void MouseMove( const MouseEvent& rMEvt );
@@ -52,7 +52,7 @@ public:
ScViewData* pData );
~ScTabSplitter();
- void SetFixed(BOOL bSet);
+ void SetFixed(sal_Bool bSet);
};
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index f331d93b61fd..7ca610e85453 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -71,14 +71,14 @@ class ScCornerButton : public Window
{
private:
ScViewData* pViewData;
- BOOL bAdd;
+ sal_Bool bAdd;
protected:
virtual void Paint( const Rectangle& rRect );
virtual void Resize();
virtual void MouseButtonDown( const MouseEvent& rMEvt );
public:
- ScCornerButton( Window* pParent, ScViewData* pData, BOOL bAdditional );
+ ScCornerButton( Window* pParent, ScViewData* pData, sal_Bool bAdditional );
~ScCornerButton();
virtual void StateChanged( StateChangedType nType );
@@ -107,7 +107,7 @@ private:
Size aFrameSize; // wie bei DoResize uebergeben
Point aBorderPos;
- BOOL bDrawSelMode; // nur Zeichenobjekte selektieren ?
+ sal_Bool bDrawSelMode; // nur Zeichenobjekte selektieren ?
FuPoor* pDrawActual;
FuPoor* pDrawOld;
@@ -135,21 +135,21 @@ private:
ScDocument* pBrushDocument; // cell formats for format paint brush
SfxItemSet* pDrawBrushSet; // drawing object attributes for paint brush
- BOOL bLockPaintBrush; // keep for more than one use?
+ sal_Bool bLockPaintBrush; // keep for more than one use?
Timer aScrollTimer;
ScGridWindow* pTimerWindow;
MouseEvent aTimerMEvt;
- ULONG nTipVisible;
+ sal_uLong nTipVisible;
- BOOL bDragging; // fuer Scrollbars
+ sal_Bool bDragging; // fuer Scrollbars
long nPrevDragPos;
- BOOL bIsBlockMode; // Block markieren
- BOOL bBlockNeg; // wird Markierung aufgehoben?
- BOOL bBlockCols; // werden ganze Spalten markiert?
- BOOL bBlockRows; // werden ganze Zeilen markiert?
+ sal_Bool bIsBlockMode; // Block markieren
+ sal_Bool bBlockNeg; // wird Markierung aufgehoben?
+ sal_Bool bBlockCols; // werden ganze Spalten markiert?
+ sal_Bool bBlockRows; // werden ganze Zeilen markiert?
SCCOL nBlockStartX;
SCCOL nBlockStartXOrig;
@@ -167,11 +167,11 @@ private:
double mfPendingTabBarWidth; // Tab bar width relative to frame window width.
- BOOL bMinimized;
- BOOL bInUpdateHeader;
- BOOL bInActivatePart;
- BOOL bInZoomUpdate;
- BOOL bMoveIsShift;
+ sal_Bool bMinimized;
+ sal_Bool bInUpdateHeader;
+ sal_Bool bInActivatePart;
+ sal_Bool bInZoomUpdate;
+ sal_Bool bMoveIsShift;
void Init();
@@ -189,8 +189,8 @@ private:
void UpdateVarZoom();
- static void SetScrollBar( ScrollBar& rScroll, long nRangeMax, long nVisible, long nPos, BOOL bLayoutRTL );
- static long GetScrollBarPos( ScrollBar& rScroll, BOOL bLayoutRTL );
+ static void SetScrollBar( ScrollBar& rScroll, long nRangeMax, long nVisible, long nPos, sal_Bool bLayoutRTL );
+ static long GetScrollBarPos( ScrollBar& rScroll, sal_Bool bLayoutRTL );
void GetPageMoveEndPosition(SCsCOL nMovX, SCsROW nMovY, SCsCOL& rPageX, SCsROW& rPageY);
void GetAreaMoveEndPosition(SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode,
@@ -212,11 +212,11 @@ protected:
void GetBorderSize( SvBorder& rBorder, const Size& rSize );
void ResetDrawDragMode();
- BOOL IsDrawTextEdit() const;
- void DrawEnableAnim(BOOL bSet);
- //HMHvoid DrawShowMarkHdl(BOOL bShow);
+ sal_Bool IsDrawTextEdit() const;
+ void DrawEnableAnim(sal_Bool bSet);
+ //HMHvoid DrawShowMarkHdl(sal_Bool bShow);
- void MakeDrawView( BYTE nForceDesignMode = SC_FORCEMODE_NONE );
+ void MakeDrawView( sal_uInt8 nForceDesignMode = SC_FORCEMODE_NONE );
void HideNoteMarker();
@@ -230,7 +230,7 @@ public:
void HideListBox();
- BOOL HasHintWindow() const { return pInputHintWindow != NULL; }
+ sal_Bool HasHintWindow() const { return pInputHintWindow != NULL; }
void RemoveHintWindow();
void TestHintWindow();
@@ -251,13 +251,13 @@ public:
/** Returns the pending tab bar width relative to the frame window width (0.0 ... 1.0). */
double GetPendingRelTabBarWidth() const;
- void DoResize( const Point& rOffset, const Size& rSize, BOOL bInner = FALSE );
- void RepeatResize( BOOL bUpdateFix = TRUE );
+ void DoResize( const Point& rOffset, const Size& rSize, sal_Bool bInner = false );
+ void RepeatResize( sal_Bool bUpdateFix = sal_True );
void UpdateFixPos();
Point GetGridOffset() const;
- BOOL IsDrawSelMode() const { return bDrawSelMode; }
- void SetDrawSelMode(BOOL bNew) { bDrawSelMode = bNew; }
+ sal_Bool IsDrawSelMode() const { return bDrawSelMode; }
+ void SetDrawSelMode(sal_Bool bNew) { bDrawSelMode = bNew; }
void SetDrawFuncPtr(FuPoor* pFuncPtr) { pDrawActual = pFuncPtr; }
void SetDrawFuncOldPtr(FuPoor* pFuncPtr) { pDrawOld = pFuncPtr; }
@@ -271,7 +271,7 @@ public:
ScPageBreakData* GetPageBreakData() { return pPageBreakData; }
ScHighlightRanges* GetHighlightRanges() { return pHighlightRanges; }
- void UpdatePageBreakData( BOOL bForcePaint = FALSE );
+ void UpdatePageBreakData( sal_Bool bForcePaint = false );
void DrawMarkRect( const Rectangle& rRect );
@@ -281,17 +281,18 @@ public:
ScViewFunctionSet* GetFunctionSet() { return &aFunctionSet; }
ScViewSelectionEngine* GetSelEngine() { return pSelEngine; }
- BOOL SelMouseButtonDown( const MouseEvent& rMEvt );
+ sal_Bool SelMouseButtonDown( const MouseEvent& rMEvt );
ScDrawView* GetScDrawView() { return pDrawView; }
SdrView* GetSdrView(); // gegen CLOKs
- BOOL IsMinimized() const { return bMinimized; }
+ sal_Bool IsMinimized() const { return bMinimized; }
- void TabChanged();
- void SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll );
+ // bSameTabButMoved = true if the same sheet as before is activated, used after moving/copying/inserting/deleting a sheet
+ void TabChanged( bool bSameTabButMoved = false );
+ void SetZoom( const Fraction& rNewX, const Fraction& rNewY, sal_Bool bAll );
SC_DLLPUBLIC void RefreshZoom();
- void SetPagebreakMode( BOOL bSet );
+ void SetPagebreakMode( sal_Bool bSet );
void UpdateLayerLocks();
@@ -301,8 +302,8 @@ public:
void UpdateInputLine();
void InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eType,
- BOOL bPaint = TRUE );
- void DoneRefMode( BOOL bContinue = FALSE );
+ sal_Bool bPaint = sal_True );
+ void DoneRefMode( sal_Bool bContinue = false );
void UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ );
void StopRefMode();
@@ -318,9 +319,9 @@ public:
void ActiveGrabFocus();
- void ClickCursor( SCCOL nPosX, SCROW nPosY, BOOL bControl );
+ void ClickCursor( SCCOL nPosX, SCROW nPosY, sal_Bool bControl );
- SC_DLLPUBLIC void SetCursor( SCCOL nPosX, SCROW nPosY, BOOL bNew = FALSE );
+ SC_DLLPUBLIC void SetCursor( SCCOL nPosX, SCROW nPosY, sal_Bool bNew = false );
SC_DLLPUBLIC void CellContentChanged();
void SelectionChanged();
@@ -348,10 +349,10 @@ public:
const ScSplitPos* pWhich = NULL );
SvxZoomType GetZoomType() const;
- void SetZoomType( SvxZoomType eNew, BOOL bAll );
- USHORT CalcZoom( SvxZoomType eType, USHORT nOldZoom );
+ void SetZoomType( SvxZoomType eNew, sal_Bool bAll );
+ sal_uInt16 CalcZoom( SvxZoomType eType, sal_uInt16 nOldZoom );
-// void CalcZoom( SvxZoomType eType, USHORT& rZoom, SCCOL& rCol, SCROW& rRow );
+// void CalcZoom( SvxZoomType eType, sal_uInt16& rZoom, SCCOL& rCol, SCROW& rRow );
sal_Bool HasPageFieldDataAtCursor() const;
void StartDataSelect();
@@ -363,39 +364,39 @@ public:
// MoveCursorEnd - links oben / benutzter Bereich
SC_DLLPUBLIC void MoveCursorAbs( SCsCOL nCurX, SCsROW nCurY, ScFollowMode eMode,
- BOOL bShift, BOOL bControl,
- BOOL bKeepOld = FALSE, BOOL bKeepSel = FALSE );
+ sal_Bool bShift, sal_Bool bControl,
+ sal_Bool bKeepOld = false, sal_Bool bKeepSel = false );
void MoveCursorRel( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode,
- BOOL bShift, BOOL bKeepSel = FALSE );
+ sal_Bool bShift, sal_Bool bKeepSel = false );
void MoveCursorPage( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode,
- BOOL bShift, BOOL bKeepSel = FALSE );
+ sal_Bool bShift, sal_Bool bKeepSel = false );
void MoveCursorArea( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode,
- BOOL bShift, BOOL bKeepSel = FALSE );
+ sal_Bool bShift, sal_Bool bKeepSel = false );
void MoveCursorEnd( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode,
- BOOL bShift, BOOL bKeepSel = FALSE );
- void MoveCursorScreen( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, BOOL bShift );
+ sal_Bool bShift, sal_Bool bKeepSel = false );
+ void MoveCursorScreen( SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode, sal_Bool bShift );
- void MoveCursorEnter( BOOL bShift ); // Shift fuer Richtung (kein Markieren)
+ void MoveCursorEnter( sal_Bool bShift ); // Shift fuer Richtung (kein Markieren)
- BOOL MoveCursorKeyInput( const KeyEvent& rKeyEvent );
+ sal_Bool MoveCursorKeyInput( const KeyEvent& rKeyEvent );
- void FindNextUnprot( BOOL bShift, BOOL bInSelection = TRUE );
+ void FindNextUnprot( sal_Bool bShift, sal_Bool bInSelection = sal_True );
- SC_DLLPUBLIC void SetTabNo( SCTAB nTab, BOOL bNew = FALSE, BOOL bExtendSelection = FALSE );
- void SelectNextTab( short nDir, BOOL bExtendSelection = FALSE );
+ SC_DLLPUBLIC void SetTabNo( SCTAB nTab, sal_Bool bNew = false, sal_Bool bExtendSelection = false );
+ void SelectNextTab( short nDir, sal_Bool bExtendSelection = false );
- void ActivateView( BOOL bActivate, BOOL bFirst );
+ void ActivateView( sal_Bool bActivate, sal_Bool bFirst );
void ActivatePart( ScSplitPos eWhich );
- BOOL IsInActivatePart() const { return bInActivatePart; }
+ sal_Bool IsInActivatePart() const { return bInActivatePart; }
void SetTimer( ScGridWindow* pWin, const MouseEvent& rMEvt );
void ResetTimer();
- void ScrollX( long nDeltaX, ScHSplitPos eWhich, BOOL bUpdBars = TRUE );
- void ScrollY( long nDeltaY, ScVSplitPos eWhich, BOOL bUpdBars = TRUE );
+ void ScrollX( long nDeltaX, ScHSplitPos eWhich, sal_Bool bUpdBars = sal_True );
+ void ScrollY( long nDeltaY, ScVSplitPos eWhich, sal_Bool bUpdBars = sal_True );
SC_DLLPUBLIC void ScrollLines( long nDeltaX, long nDeltaY ); // aktives
- BOOL ScrollCommand( const CommandEvent& rCEvt, ScSplitPos ePos );
+ sal_Bool ScrollCommand( const CommandEvent& rCEvt, ScSplitPos ePos );
void ScrollToObject( SdrObject* pDrawObj );
void MakeVisible( const Rectangle& rHMMRect );
@@ -413,7 +414,7 @@ public:
void PaintLeftArea( SCROW nStartRow, SCROW nEndRow );
void PaintLeft();
- BOOL PaintExtras();
+ sal_Bool PaintExtras();
void RecalcPPT();
@@ -444,25 +445,25 @@ public:
void InvalidateAttribs();
void MakeEditView( ScEditEngineDefaulter* pEngine, SCCOL nCol, SCROW nRow );
- void KillEditView( BOOL bNoPaint );
+ void KillEditView( sal_Bool bNoPaint );
void UpdateEditView();
// Bloecke
- void SelectAll( BOOL bContinue = FALSE );
+ void SelectAll( sal_Bool bContinue = false );
void SelectAllTables();
void DeselectAllTables();
void MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
- BOOL bCols = FALSE, BOOL bRows = FALSE, BOOL bCellSelection = FALSE );
+ sal_Bool bCols = false, sal_Bool bRows = false, sal_Bool bCellSelection = false );
void InitBlockMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
- BOOL bTestNeg = FALSE,
- BOOL bCols = FALSE, BOOL bRows = FALSE );
+ sal_Bool bTestNeg = false,
+ sal_Bool bCols = false, sal_Bool bRows = false );
void InitOwnBlockMode();
- void DoneBlockMode( BOOL bContinue = FALSE );
+ void DoneBlockMode( sal_Bool bContinue = false );
- BOOL IsBlockMode() const { return bIsBlockMode; }
+ sal_Bool IsBlockMode() const { return bIsBlockMode; }
void ExpandBlock(SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode);
void ExpandBlockPage(SCsCOL nMovX, SCsROW nMovY);
@@ -470,47 +471,47 @@ public:
void MarkColumns();
void MarkRows();
- void MarkDataArea( BOOL bIncludeCursor = TRUE );
+ void MarkDataArea( sal_Bool bIncludeCursor = sal_True );
void MarkMatrixFormula();
void Unmark();
- void MarkRange( const ScRange& rRange, BOOL bSetCursor = TRUE, BOOL bContinue = FALSE );
+ void MarkRange( const ScRange& rRange, sal_Bool bSetCursor = sal_True, sal_Bool bContinue = false );
- BOOL IsMarking( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
+ sal_Bool IsMarking( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
void PaintMarks( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow );
- void PaintBlock( BOOL bReset = FALSE );
+ void PaintBlock( sal_Bool bReset = false );
void SetMarkData( const ScMarkData& rNew );
void MarkDataChanged();
- void LockModifiers( USHORT nModifiers );
- USHORT GetLockedModifiers() const;
- void ViewOptionsHasChanged( BOOL bHScrollChanged,
- BOOL bGraphicsChanged = FALSE);
+ void LockModifiers( sal_uInt16 nModifiers );
+ sal_uInt16 GetLockedModifiers() const;
+ void ViewOptionsHasChanged( sal_Bool bHScrollChanged,
+ sal_Bool bGraphicsChanged = false);
Point GetMousePosPixel();
void SnapSplitPos( Point& rScreenPosPixel );
- void FreezeSplitters( BOOL bFreeze );
+ void FreezeSplitters( sal_Bool bFreeze );
void RemoveSplit();
void SplitAtCursor();
- void SplitAtPixel( const Point& rPixel, BOOL bHor, BOOL bVer );
+ void SplitAtPixel( const Point& rPixel, sal_Bool bHor, sal_Bool bVer );
void InvalidateSplit();
- void ErrorMessage( USHORT nGlobStrId );
- Window* GetParentOrChild( USHORT nChildId );
+ void ErrorMessage( sal_uInt16 nGlobStrId );
+ Window* GetParentOrChild( sal_uInt16 nChildId );
- void EnableRefInput(BOOL bFlag=TRUE);
+ void EnableRefInput(sal_Bool bFlag=sal_True);
Window* GetFrameWin() const { return pFrameWin; }
- BOOL HasPaintBrush() const { return pBrushDocument || pDrawBrushSet; }
+ sal_Bool HasPaintBrush() const { return pBrushDocument || pDrawBrushSet; }
ScDocument* GetBrushDocument() const { return pBrushDocument; }
SfxItemSet* GetDrawBrushSet() const { return pDrawBrushSet; }
- BOOL IsPaintBrushLocked() const { return bLockPaintBrush; }
- void SetBrushDocument( ScDocument* pNew, BOOL bLock );
- void SetDrawBrushSet( SfxItemSet* pNew, BOOL bLock );
+ sal_Bool IsPaintBrushLocked() const { return bLockPaintBrush; }
+ void SetBrushDocument( ScDocument* pNew, sal_Bool bLock );
+ void SetDrawBrushSet( SfxItemSet* pNew, sal_Bool bLock );
void ResetBrushDocument();
};
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index b4685657f577..49fd72ea8106 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -101,15 +101,15 @@ enum ObjectSelectionType
class ScTabViewShell: public SfxViewShell, public ScDBFunc
{
private:
- static USHORT nInsertCtrlState;
- static USHORT nInsCellsCtrlState;
- static USHORT nInsObjCtrlState;
+ static sal_uInt16 nInsertCtrlState;
+ static sal_uInt16 nInsCellsCtrlState;
+ static sal_uInt16 nInsObjCtrlState;
SvxHtmlOptions aHTMLOpt;
ObjectSelectionType eCurOST;
- USHORT nDrawSfxId;
- USHORT nCtrlSfxId;
- USHORT nFormSfxId;
+ sal_uInt16 nDrawSfxId;
+ sal_uInt16 nCtrlSfxId;
+ sal_uInt16 nFormSfxId;
String sDrawCustom; // current custom shape type
ScDrawShell* pDrawShell;
ScDrawTextObjectBar* pDrawTextShell;
@@ -145,36 +145,36 @@ private:
ScNavigatorSettings* pNavSettings;
// used in first Activate
- BOOL bFirstActivate;
+ sal_Bool bFirstActivate;
- BOOL bActiveDrawSh;
- BOOL bActiveDrawTextSh;
- BOOL bActivePivotSh;
- BOOL bActiveAuditingSh;
- BOOL bActiveDrawFormSh;
- BOOL bActiveOleObjectSh;
- BOOL bActiveChartSh;
- BOOL bActiveGraphicSh;
- BOOL bActiveMediaSh;
- BOOL bActiveEditSh;
+ sal_Bool bActiveDrawSh;
+ sal_Bool bActiveDrawTextSh;
+ sal_Bool bActivePivotSh;
+ sal_Bool bActiveAuditingSh;
+ sal_Bool bActiveDrawFormSh;
+ sal_Bool bActiveOleObjectSh;
+ sal_Bool bActiveChartSh;
+ sal_Bool bActiveGraphicSh;
+ sal_Bool bActiveMediaSh;
+ sal_Bool bActiveEditSh;
- BOOL bFormShellAtTop; // does the FormShell need to be on top?
+ sal_Bool bFormShellAtTop; // does the FormShell need to be on top?
- BOOL bDontSwitch; // EditShell nicht abschalten
- BOOL bInFormatDialog; // fuer GetSelectionText
- BOOL bPrintSelected; // for result of SvxPrtQryBox
+ sal_Bool bDontSwitch; // EditShell nicht abschalten
+ sal_Bool bInFormatDialog; // fuer GetSelectionText
+ sal_Bool bPrintSelected; // for result of SvxPrtQryBox
- BOOL bReadOnly; // um Status-Aenderungen zu erkennen
+ sal_Bool bReadOnly; // um Status-Aenderungen zu erkennen
SbxObject* pScSbxObject;
- BOOL bChartAreaValid; // wenn Chart aufgezogen wird
+ sal_Bool bChartAreaValid; // wenn Chart aufgezogen wird
String aEditChartName;
ScRangeListRef aChartSource;
Rectangle aChartPos;
SCTAB nChartDestTab;
- USHORT nCurRefDlgId;
+ sal_uInt16 nCurRefDlgId;
SfxBroadcaster* pAccessibilityBroadcaster;
@@ -182,7 +182,7 @@ private:
String aCurrShapeEnumCommand[ MASTERENUMCOMMANDS ];
private:
- void Construct( BYTE nForceDesignMode = SC_FORCEMODE_NONE );
+ void Construct( sal_uInt8 nForceDesignMode = SC_FORCEMODE_NONE );
SfxShell* GetMySubShell() const;
@@ -198,9 +198,9 @@ private:
DECL_LINK( HtmlOptionsHdl, void * );
protected:
- virtual void Activate(BOOL bMDI);
- virtual void Deactivate(BOOL bMDI);
- virtual USHORT PrepareClose( BOOL bUI = TRUE, BOOL bForBrowsing = FALSE );
+ virtual void Activate(sal_Bool bMDI);
+ virtual void Deactivate(sal_Bool bMDI);
+ virtual sal_uInt16 PrepareClose( sal_Bool bUI = sal_True, sal_Bool bForBrowsing = false );
virtual void ShowCursor(bool bOn);
@@ -216,14 +216,14 @@ protected:
virtual Size GetOptimalSizePixel() const;
- virtual String GetSelectionText( BOOL bWholeWord );
- virtual BOOL HasSelection( BOOL bText ) const;
+ virtual String GetSelectionText( sal_Bool bWholeWord );
+ virtual sal_Bool HasSelection( sal_Bool bText ) const;
virtual String GetDescription() const;
- virtual void WriteUserData(String &, BOOL bBrowse = FALSE);
- virtual void ReadUserData(const String &, BOOL bBrowse = FALSE);
- virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False );
- virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = sal_False );
+ virtual void WriteUserData(String &, sal_Bool bBrowse = false);
+ virtual void ReadUserData(const String &, sal_Bool bBrowse = false);
+ virtual void WriteUserDataSequence (::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = false );
+ virtual void ReadUserDataSequence (const ::com::sun::star::uno::Sequence < ::com::sun::star::beans::PropertyValue >&, sal_Bool bBrowse = false );
virtual void UIDeactivated( SfxInPlaceClient* pClient );
@@ -253,10 +253,10 @@ public:
void ExecuteInputDirect();
ScInputHandler* GetInputHandler() const;
- void UpdateInputHandler( BOOL bForce = FALSE, BOOL bStopEditing = TRUE );
+ void UpdateInputHandler( sal_Bool bForce = false, sal_Bool bStopEditing = sal_True );
void UpdateInputHandlerCellAdjust( SvxCellHorJustify eJust );
- BOOL TabKeyInput(const KeyEvent& rKEvt);
- BOOL SfxKeyInput(const KeyEvent& rKEvt);
+ sal_Bool TabKeyInput(const KeyEvent& rKEvt);
+ sal_Bool SfxKeyInput(const KeyEvent& rKEvt);
void SetActive();
@@ -303,32 +303,32 @@ public:
void GetDrawOptState(SfxItemSet &rSet);
- void SetDrawShell( BOOL bActive );
- void SetDrawTextShell( BOOL bActive );
+ void SetDrawShell( sal_Bool bActive );
+ void SetDrawTextShell( sal_Bool bActive );
- void SetPivotShell( BOOL bActive );
+ void SetPivotShell( sal_Bool bActive );
ScArea* GetPivotSource(){return pPivotSource;}
void SetPivotSource(ScArea* pSrc){pPivotSource=pSrc;}
void SetDialogDPObject( const ScDPObject* pObj );
const ScDPObject* GetDialogDPObject() const { return pDialogDPObject; }
- BOOL GetDontSwitch(){return bDontSwitch;}
- void SetDontSwitch(BOOL bFlag){bDontSwitch=bFlag;}
+ sal_Bool GetDontSwitch(){return bDontSwitch;}
+ void SetDontSwitch(sal_Bool bFlag){bDontSwitch=bFlag;}
- void SetAuditShell( BOOL bActive );
- void SetDrawFormShell( BOOL bActive );
- void SetEditShell(EditView* pView, BOOL bActive );
- void SetOleObjectShell( BOOL bActive );
- void SetChartShell( BOOL bActive );
- void SetGraphicShell( BOOL bActive );
- void SetMediaShell( BOOL bActive );
+ void SetAuditShell( sal_Bool bActive );
+ void SetDrawFormShell( sal_Bool bActive );
+ void SetEditShell(EditView* pView, sal_Bool bActive );
+ void SetOleObjectShell( sal_Bool bActive );
+ void SetChartShell( sal_Bool bActive );
+ void SetGraphicShell( sal_Bool bActive );
+ void SetMediaShell( sal_Bool bActive );
void SetDrawShellOrSub();
- void SetCurSubShell( ObjectSelectionType eOST, BOOL bForce = FALSE );
+ void SetCurSubShell( ObjectSelectionType eOST, sal_Bool bForce = false );
- void SetFormShellAtTop( BOOL bSet );
+ void SetFormShellAtTop( sal_Bool bSet );
ObjectSelectionType GetCurObjectSelectionType();
@@ -336,15 +336,15 @@ public:
void StopEditShell();
- BOOL IsDrawTextShell() const;
- BOOL IsAuditShell() const;
+ sal_Bool IsDrawTextShell() const;
+ sal_Bool IsAuditShell() const;
- void SetDrawTextUndo( SfxUndoManager* pUndoMgr );
+ void SetDrawTextUndo( ::svl::IUndoManager* pUndoMgr );
void FillFieldData( ScHeaderFieldData& rData );
void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest );
- BOOL GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const;
+ sal_Bool GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const;
void SetEditChartName(const String& aStr){aEditChartName=aStr;}
@@ -353,27 +353,21 @@ public:
ScNavigatorSettings* GetNavigatorSettings();
// Drucken:
- virtual SfxPrinter* GetPrinter( BOOL bCreate = FALSE );
- virtual USHORT SetPrinter( SfxPrinter* pNewPrinter,
- USHORT nDiffFlags = SFX_PRINTER_ALL, bool bIsApi=false );
+ virtual SfxPrinter* GetPrinter( sal_Bool bCreate = false );
+ virtual sal_uInt16 SetPrinter( SfxPrinter* pNewPrinter,
+ sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsApi=false );
- virtual PrintDialog* CreatePrintDialog( Window* pParent );
virtual SfxTabPage* CreatePrintOptionsPage( Window *pParent, const SfxItemSet &rOptions );
- virtual void PreparePrint( PrintDialog* pPrintDialog = NULL );
- virtual ErrCode DoPrint( SfxPrinter *pPrinter,
- PrintDialog *pPrintDialog,
- BOOL bSilent, BOOL bIsAPI );
- virtual USHORT Print( SfxProgress& rProgress, BOOL bIsAPI, PrintDialog* pPrintDialog = NULL );
void ConnectObject( SdrOle2Obj* pObj );
- BOOL ActivateObject( SdrOle2Obj* pObj, long nVerb );
+ sal_Bool ActivateObject( SdrOle2Obj* pObj, long nVerb );
void DeactivateOle();
SC_DLLPUBLIC static ScTabViewShell* GetActiveViewShell();
SfxModelessDialog* CreateRefDialog( SfxBindings* pB, SfxChildWindow* pCW,
SfxChildWinInfo* pInfo,
- Window* pParent, USHORT nSlotId );
+ Window* pParent, sal_uInt16 nSlotId );
void UpdateOleZoom();
inline SbxObject* GetScSbxObject() const
@@ -384,15 +378,15 @@ public:
FmFormShell* GetFormShell() const { return pFormShell; }
void InsertURL( const String& rName, const String& rURL, const String& rTarget,
- USHORT nMode );
+ sal_uInt16 nMode );
void InsertURLButton( const String& rName, const String& rURL, const String& rTarget,
const Point* pInsPos = NULL );
void InsertURLField( const String& rName, const String& rURL, const String& rTarget );
- BOOL SelectObject( const String& rName );
+ sal_Bool SelectObject( const String& rName );
- void SetInFormatDialog(BOOL bFlag) {bInFormatDialog=bFlag;}
- BOOL IsInFormatDialog() {return bInFormatDialog;}
+ void SetInFormatDialog(sal_Bool bFlag) {bInFormatDialog=bFlag;}
+ sal_Bool IsInFormatDialog() {return bInFormatDialog;}
void ForceMove() { Move(); }
@@ -403,20 +397,20 @@ public:
void UpdateNumberFormatter ( ScDocument* pDoc,
const SvxNumberInfoItem& rInfoItem );
- void ExecuteCellFormatDlg ( SfxRequest& rReq, USHORT nTabPage = 0xffff );
+ void ExecuteCellFormatDlg ( SfxRequest& rReq, sal_uInt16 nTabPage = 0xffff );
- BOOL GetFunction( String& rFuncStr, sal_uInt16 nErrCode = 0 );
+ sal_Bool GetFunction( String& rFuncStr, sal_uInt16 nErrCode = 0 );
void StartSimpleRefDialog( const String& rTitle, const String& rInitVal,
- BOOL bCloseOnButtonUp, BOOL bSingleCell, BOOL bMultiSelection );
+ sal_Bool bCloseOnButtonUp, sal_Bool bSingleCell, sal_Bool bMultiSelection );
void StopSimpleRefDialog();
- void SetCurRefDlgId( USHORT nNew );
+ void SetCurRefDlgId( sal_uInt16 nNew );
void AddAccessibilityObject( SfxListener& rObject );
void RemoveAccessibilityObject( SfxListener& rObject );
void BroadcastAccessibility( const SfxHint &rHint );
- BOOL HasAccessibilityObjects();
+ sal_Bool HasAccessibilityObjects();
bool ExecuteRetypePassDlg(ScPasswordHash eDesiredHash);
diff --git a/sc/source/ui/inc/tbinsert.hxx b/sc/source/ui/inc/tbinsert.hxx
index 7c0b0504d8c7..1910b2f7a081 100644
--- a/sc/source/ui/inc/tbinsert.hxx
+++ b/sc/source/ui/inc/tbinsert.hxx
@@ -33,20 +33,20 @@
class ScTbxInsertCtrl : public SfxToolBoxControl
{
- USHORT nLastSlotId;
+ sal_uInt16 nLastSlotId;
using SfxToolBoxControl::Select;
- virtual void Select( BOOL bMod1 = FALSE );
+ virtual void Select( sal_Bool bMod1 = false );
public:
SFX_DECL_TOOLBOX_CONTROL();
- ScTbxInsertCtrl( USHORT nSlotId, USHORT nId, ToolBox& rBox );
+ ScTbxInsertCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox );
~ScTbxInsertCtrl();
virtual SfxPopupWindowType GetPopupWindowType() const;
virtual SfxPopupWindow* CreatePopupWindow();
- virtual void StateChanged( USHORT nSID,
+ virtual void StateChanged( sal_uInt16 nSID,
SfxItemState eState,
const SfxPoolItem* pState );
};
diff --git a/sc/source/ui/inc/tbzoomsliderctrl.hxx b/sc/source/ui/inc/tbzoomsliderctrl.hxx
index 32581f1dc792..481801c14af4 100644
--- a/sc/source/ui/inc/tbzoomsliderctrl.hxx
+++ b/sc/source/ui/inc/tbzoomsliderctrl.hxx
@@ -41,10 +41,10 @@ class ScZoomSliderControl: public SfxToolBoxControl
{
public:
SFX_DECL_TOOLBOX_CONTROL();
- ScZoomSliderControl( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
+ ScZoomSliderControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
~ScZoomSliderControl();
- virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
virtual Window* CreateItemWindow( Window *pParent );
};
@@ -60,13 +60,13 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > m_xDispatchProvider;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
- USHORT Offset2Zoom( long nOffset ) const;
- long Zoom2Offset( USHORT nZoom ) const;
+ sal_uInt16 Offset2Zoom( long nOffset ) const;
+ long Zoom2Offset( sal_uInt16 nZoom ) const;
void DoPaint( const Rectangle& rRect );
public:
ScZoomSliderWnd( Window* pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >& rDispatchProvider,
- const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame , USHORT nCurrentZoom );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame , sal_uInt16 nCurrentZoom );
~ScZoomSliderWnd();
void UpdateFromItem( const SvxZoomSliderItem* pZoomSliderItem );
diff --git a/sc/source/ui/inc/textdlgs.hxx b/sc/source/ui/inc/textdlgs.hxx
index 24b68650ce16..202409e00d7b 100644
--- a/sc/source/ui/inc/textdlgs.hxx
+++ b/sc/source/ui/inc/textdlgs.hxx
@@ -43,7 +43,7 @@ private:
const SfxItemSet& rOutAttrs;
const SfxObjectShell& rDocShell;
- virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+ virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
public:
ScCharDlg( Window* pParent, const SfxItemSet* pAttr,
@@ -60,7 +60,7 @@ class ScParagraphDlg : public SfxTabDialog
private:
const SfxItemSet& rOutAttrs;
- virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
+ virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
public:
ScParagraphDlg( Window* pParent, const SfxItemSet* pAttr );
diff --git a/sc/source/ui/inc/tpcalc.hxx b/sc/source/ui/inc/tpcalc.hxx
index 608670181f46..9ab7c107561b 100644
--- a/sc/source/ui/inc/tpcalc.hxx
+++ b/sc/source/ui/inc/tpcalc.hxx
@@ -46,8 +46,8 @@ class ScTpCalcOptions : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rCoreSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet );
virtual void Reset ( const SfxItemSet& rCoreSet );
using SfxTabPage::DeactivatePage;
virtual int DeactivatePage ( SfxItemSet* pSet = NULL );
@@ -83,7 +83,7 @@ private:
ScDocOptions* pOldOptions;
ScDocOptions* pLocalOptions;
- USHORT nWhichCalc;
+ sal_uInt16 nWhichCalc;
#ifdef _TPCALC_CXX
private:
diff --git a/sc/source/ui/inc/tpcompatibility.hxx b/sc/source/ui/inc/tpcompatibility.hxx
index 54e29c534b46..70d043d5ddec 100644
--- a/sc/source/ui/inc/tpcompatibility.hxx
+++ b/sc/source/ui/inc/tpcompatibility.hxx
@@ -42,7 +42,7 @@ class ScTpCompatOptions : public SfxTabPage
public:
static SfxTabPage* Create (Window* pParent, const SfxItemSet& rCoreAttrs);
- virtual BOOL FillItemSet(SfxItemSet& rCoreAttrs);
+ virtual sal_Bool FillItemSet(SfxItemSet& rCoreAttrs);
virtual void Reset(const SfxItemSet& rCoreAttrs);
virtual int DeactivatePage(SfxItemSet* pSet = NULL);
diff --git a/sc/source/ui/inc/tpformula.hxx b/sc/source/ui/inc/tpformula.hxx
index 4103bf8fae57..41746603c5f1 100644
--- a/sc/source/ui/inc/tpformula.hxx
+++ b/sc/source/ui/inc/tpformula.hxx
@@ -47,7 +47,7 @@ public:
static SfxTabPage* Create (Window* pParent, const SfxItemSet& rCoreSet);
// static USHORT* GetRanges();
- virtual BOOL FillItemSet(SfxItemSet& rCoreSet);
+ virtual sal_Bool FillItemSet(SfxItemSet& rCoreSet);
virtual void Reset( const SfxItemSet& rCoreSet );
virtual int DeactivatePage(SfxItemSet* pSet = NULL);
diff --git a/sc/source/ui/inc/tphf.hxx b/sc/source/ui/inc/tphf.hxx
index 386015e0337c..171b1a56af90 100644
--- a/sc/source/ui/inc/tphf.hxx
+++ b/sc/source/ui/inc/tphf.hxx
@@ -30,7 +30,7 @@
#define SC_TPHF_HXX
-#include <svx/hdft2.hxx>
+#include <svx/hdft.hxx>
class ScStyleDlg;
@@ -42,16 +42,16 @@ public:
virtual ~ScHFPage();
virtual void Reset( const SfxItemSet& rSet );
- virtual BOOL FillItemSet( SfxItemSet& rOutSet );
+ virtual sal_Bool FillItemSet( SfxItemSet& rOutSet );
void SetPageStyle( const String& rName ) { aStrPageStyle = rName; }
void SetStyleDlg ( const ScStyleDlg* pDlg ) { pStyleDlg = pDlg; }
protected:
ScHFPage( Window* pParent,
- USHORT nResId,
+ sal_uInt16 nResId,
const SfxItemSet& rSet,
- USHORT nSetId );
+ sal_uInt16 nSetId );
virtual void ActivatePage();
virtual void DeactivatePage();
@@ -62,7 +62,7 @@ private:
PushButton aBtnEdit;
SfxItemSet aDataSet;
String aStrPageStyle;
- USHORT nPageUsage;
+ sal_uInt16 nPageUsage;
const ScStyleDlg* pStyleDlg;
#ifdef _TPHF_CXX
@@ -79,7 +79,7 @@ class ScHeaderPage : public ScHFPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
private:
ScHeaderPage( Window* pParent, const SfxItemSet& rSet );
@@ -91,7 +91,7 @@ class ScFooterPage : public ScHFPage
{
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
private:
ScFooterPage( Window* pParent, const SfxItemSet& rSet );
diff --git a/sc/source/ui/inc/tphfedit.hxx b/sc/source/ui/inc/tphfedit.hxx
index c9dfa06cc3b6..7c1a994e1080 100644
--- a/sc/source/ui/inc/tphfedit.hxx
+++ b/sc/source/ui/inc/tphfedit.hxx
@@ -109,7 +109,7 @@ private:
Timer aTimer;
ScPopupMenu* pPopupMenu;
Link aMLink;
- USHORT nSelected;
+ sal_uInt16 nSelected;
SC_DLLPRIVATE DECL_LINK( TimerHdl, Timer*);
@@ -127,7 +127,7 @@ public:
void SetPopupMenu(ScPopupMenu* pPopUp);
- USHORT GetSelected();
+ sal_uInt16 GetSelected();
void SetMenuHdl( const Link& rLink ) { aMLink = rLink; }
const Link& GetMenuHdl() const { return aMLink; }
diff --git a/sc/source/ui/inc/tpprint.hxx b/sc/source/ui/inc/tpprint.hxx
index bbd2f471c1e9..7aa00147fa64 100644
--- a/sc/source/ui/inc/tpprint.hxx
+++ b/sc/source/ui/inc/tpprint.hxx
@@ -46,8 +46,8 @@ class ScTpPrintOptions : public SfxTabPage
public:
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rCoreSet );
- static USHORT* GetRanges();
- virtual BOOL FillItemSet( SfxItemSet& rCoreSet );
+ static sal_uInt16* GetRanges();
+ virtual sal_Bool FillItemSet( SfxItemSet& rCoreSet );
virtual void Reset( const SfxItemSet& rCoreSet );
using SfxTabPage::DeactivatePage;
virtual int DeactivatePage( SfxItemSet* pSet = NULL );
diff --git a/sc/source/ui/inc/tpsort.hxx b/sc/source/ui/inc/tpsort.hxx
index f34d1236210a..8f22696c879d 100644
--- a/sc/source/ui/inc/tpsort.hxx
+++ b/sc/source/ui/inc/tpsort.hxx
@@ -62,8 +62,8 @@ public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rArgSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
protected:
@@ -94,16 +94,16 @@ private:
String aStrColumn;
String aStrRow;
- const USHORT nWhichSort;
+ const sal_uInt16 nWhichSort;
ScSortDlg* pDlg;
ScViewData* pViewData;
const ScSortParam& rSortData;
SCCOLROW nFieldArr[SC_MAXFIELDS];
- USHORT nFieldCount;
+ sal_uInt16 nFieldCount;
SCCOL nFirstCol;
SCROW nFirstRow;
- BOOL bHasHeader;
- BOOL bSortByRows;
+ sal_Bool bHasHeader;
+ sal_Bool bSortByRows;
ListBox* aSortLbArr[3];
RadioButton* aDirBtnArr[3][2];
@@ -112,10 +112,10 @@ private:
#ifdef _TPSORT_CXX
private:
void Init ();
- void DisableField ( USHORT nField );
- void EnableField ( USHORT nField );
+ void DisableField ( sal_uInt16 nField );
+ void EnableField ( sal_uInt16 nField );
void FillFieldLists ();
- USHORT GetFieldSelPos ( SCCOLROW nField );
+ sal_uInt16 GetFieldSelPos ( SCCOLROW nField );
// Handler ------------------------
DECL_LINK( SelectHdl, ListBox * );
@@ -148,8 +148,8 @@ public:
#define SfxTabPage ::SfxTabPage
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rArgSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
protected:
@@ -191,7 +191,7 @@ private:
String aStrNoName;
String aStrAreaLabel;
- const USHORT nWhichSort;
+ const sal_uInt16 nWhichSort;
const ScSortParam& rSortData;
ScViewData* pViewData;
ScDocument* pDoc;
diff --git a/sc/source/ui/inc/tpstat.hxx b/sc/source/ui/inc/tpstat.hxx
index 4016e682176b..46f6b7fdaf0e 100644
--- a/sc/source/ui/inc/tpstat.hxx
+++ b/sc/source/ui/inc/tpstat.hxx
@@ -48,7 +48,7 @@ private:
~ScDocStatPage();
protected:
- virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual sal_Bool FillItemSet( SfxItemSet& rSet );
virtual void Reset ( const SfxItemSet& rSet );
private:
diff --git a/sc/source/ui/inc/tpsubt.hxx b/sc/source/ui/inc/tpsubt.hxx
index 1a2bd22c4a5b..049633ad40b6 100644
--- a/sc/source/ui/inc/tpsubt.hxx
+++ b/sc/source/ui/inc/tpsubt.hxx
@@ -48,16 +48,16 @@ class ScDocument;
class ScTpSubTotalGroup : public SfxTabPage
{
protected:
- ScTpSubTotalGroup( Window* pParent, USHORT nResId,
+ ScTpSubTotalGroup( Window* pParent, sal_uInt16 nResId,
const SfxItemSet& rArgSet );
public:
virtual ~ScTpSubTotalGroup();
- static USHORT* GetRanges ();
- BOOL DoReset ( USHORT nGroupNo,
+ static sal_uInt16* GetRanges ();
+ sal_Bool DoReset ( sal_uInt16 nGroupNo,
const SfxItemSet& rArgSet );
- BOOL DoFillItemSet ( USHORT nGroupNo,
+ sal_Bool DoFillItemSet ( sal_uInt16 nGroupNo,
SfxItemSet& rArgSet );
protected:
FixedText aFtGroup;
@@ -72,17 +72,17 @@ protected:
ScViewData* pViewData;
ScDocument* pDoc;
- const USHORT nWhichSubTotals;
+ const sal_uInt16 nWhichSubTotals;
const ScSubTotalParam& rSubTotalData;
SCCOL nFieldArr[SC_MAXFIELDS];
- const USHORT nFieldCount;
+ const sal_uInt16 nFieldCount;
private:
void Init ();
void FillListBoxes ();
- ScSubTotalFunc LbPosToFunc ( USHORT nPos );
- USHORT FuncToLbPos ( ScSubTotalFunc eFunc );
- USHORT GetFieldSelPos ( SCCOL nField );
+ ScSubTotalFunc LbPosToFunc ( sal_uInt16 nPos );
+ sal_uInt16 FuncToLbPos ( ScSubTotalFunc eFunc );
+ sal_uInt16 GetFieldSelPos ( SCCOL nField );
// Handler ------------------------
DECL_LINK( SelectHdl, ListBox * );
@@ -102,7 +102,7 @@ public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rArgSet );
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
};
@@ -119,7 +119,7 @@ public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rArgSet );
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
};
@@ -136,7 +136,7 @@ public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rArgSet );
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
};
@@ -152,10 +152,10 @@ protected:
public:
virtual ~ScTpSubTotalOptions();
- static USHORT* GetRanges ();
+ static sal_uInt16* GetRanges ();
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rArgSet );
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
private:
@@ -172,7 +172,7 @@ private:
ScViewData* pViewData;
ScDocument* pDoc;
- const USHORT nWhichSubTotals;
+ const sal_uInt16 nWhichSubTotals;
const ScSubTotalParam& rSubTotalData;
private:
diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx
index b1b988811d6e..d72b9f306e4e 100644
--- a/sc/source/ui/inc/tptable.hxx
+++ b/sc/source/ui/inc/tptable.hxx
@@ -58,8 +58,8 @@ class ScTablePage : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rCoreSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet );
virtual void Reset ( const SfxItemSet& rCoreSet );
using SfxTabPage::DeactivatePage;
virtual int DeactivatePage ( SfxItemSet* pSet = NULL );
diff --git a/sc/source/ui/inc/tpusrlst.hxx b/sc/source/ui/inc/tpusrlst.hxx
index 2e277a14af8d..f627baa52225 100644
--- a/sc/source/ui/inc/tpusrlst.hxx
+++ b/sc/source/ui/inc/tpusrlst.hxx
@@ -47,8 +47,8 @@ class ScTpUserLists : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rAttrSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rCoreAttrs );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreAttrs );
virtual void Reset ( const SfxItemSet& rCoreAttrs );
using SfxTabPage::DeactivatePage;
virtual int DeactivatePage ( SfxItemSet* pSet = NULL );
@@ -79,7 +79,7 @@ private:
const String aStrCopyFrom;
const String aStrCopyErr;
- const USHORT nWhichUserLists;
+ const sal_uInt16 nWhichUserLists;
ScUserList* pUserLists;
ScDocument* pDoc;
@@ -87,20 +87,20 @@ private:
ScRangeUtil* pRangeUtil;
String aStrSelectedArea;
- BOOL bModifyMode;
- BOOL bCancelMode;
- BOOL bCopyDone;
- USHORT nCancelPos;
+ sal_Bool bModifyMode;
+ sal_Bool bCancelMode;
+ sal_Bool bCopyDone;
+ sal_uInt16 nCancelPos;
#ifdef _TPUSRLST_CXX
private:
void Init ();
- USHORT UpdateUserListBox ();
- void UpdateEntries ( USHORT nList );
+ sal_uInt16 UpdateUserListBox ();
+ void UpdateEntries ( sal_uInt16 nList );
void MakeListStr ( String& rListStr );
void AddNewList ( const String& rEntriesStr );
- void RemoveList ( USHORT nList );
- void ModifyList ( USHORT nSelList,
+ void RemoveList ( sal_uInt16 nList );
+ void ModifyList ( sal_uInt16 nSelList,
const String& rEntriesStr );
void CopyListFromArea ( const ScRefAddress& rStartPos,
const ScRefAddress& rEndPos );
diff --git a/sc/source/ui/inc/tpview.hxx b/sc/source/ui/inc/tpview.hxx
index 43a75433adda..68093f0ce0f5 100644
--- a/sc/source/ui/inc/tpview.hxx
+++ b/sc/source/ui/inc/tpview.hxx
@@ -100,7 +100,7 @@ class ScTpContentOptions : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rCoreSet );
- virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet );
virtual void Reset ( const SfxItemSet& rCoreSet );
using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage;
@@ -156,7 +156,7 @@ class ScTpLayoutOptions : public SfxTabPage
public:
static SfxTabPage* Create ( Window* pParent,
const SfxItemSet& rCoreSet );
- virtual BOOL FillItemSet ( SfxItemSet& rCoreSet );
+ virtual sal_Bool FillItemSet ( SfxItemSet& rCoreSet );
virtual void Reset ( const SfxItemSet& rCoreSet );
using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage;
diff --git a/sc/source/ui/inc/transobj.hxx b/sc/source/ui/inc/transobj.hxx
index 5940d806b43c..2afa83c05cb6 100644
--- a/sc/source/ui/inc/transobj.hxx
+++ b/sc/source/ui/inc/transobj.hxx
@@ -59,10 +59,11 @@ private:
SCCOL nDragHandleX;
SCROW nDragHandleY;
SCTAB nVisibleTab;
- USHORT nDragSourceFlags;
- BOOL bDragWasInternal;
- BOOL bUsedForLink;
+ sal_uInt16 nDragSourceFlags;
+ sal_Bool bDragWasInternal;
+ sal_Bool bUsedForLink;
bool bHasFiltered; // if has filtered rows
+ bool bUseInApi; // to recognize clipboard content copied from API
void InitDocShell();
static void StripRefs( ScDocument* pDoc, SCCOL nStartX, SCROW nStartY,
@@ -70,7 +71,7 @@ private:
ScDocument* pDestDoc=0,
SCCOL nSubX=0, SCROW nSubY=0 );
static void PaintToDev( OutputDevice* pDev, ScDocument* pDoc, double nPrintFactor,
- const ScRange& rBlock, BOOL bMetaFile );
+ const ScRange& rBlock, sal_Bool bMetaFile );
static void GetAreaSize( ScDocument* pDoc, SCTAB nTab1, SCTAB nTab2, SCROW& nRow, SCCOL& nCol );
public:
@@ -90,8 +91,9 @@ public:
SCCOL GetDragHandleX() const { return nDragHandleX; }
SCROW GetDragHandleY() const { return nDragHandleY; }
SCTAB GetVisibleTab() const { return nVisibleTab; }
- USHORT GetDragSourceFlags() const { return nDragSourceFlags; }
+ sal_uInt16 GetDragSourceFlags() const { return nDragSourceFlags; }
bool HasFilteredRows() const { return bHasFiltered; }
+ bool GetUseInApi() const { return bUseInApi; }
ScDocShell* GetSourceDocShell();
ScDocument* GetSourceDocument();
ScMarkData GetSourceMarkData();
@@ -100,12 +102,13 @@ public:
void SetDragHandlePos( SCCOL nX, SCROW nY );
void SetVisibleTab( SCTAB nNew );
void SetDragSource( ScDocShell* pSourceShell, const ScMarkData& rMark );
- void SetDragSourceFlags( USHORT nFlags );
+ void SetDragSourceFlags( sal_uInt16 nFlags );
void SetDragWasInternal();
+ SC_DLLPUBLIC void SetUseInApi( bool bSet );
static SC_DLLPUBLIC ScTransferObj* GetOwnClipboard( Window* pUIWin );
- static SfxObjectShell* SetDrawClipDoc( BOOL bAnyOle ); // update ScGlobal::pDrawClipDocShellRef
+ static SfxObjectShell* SetDrawClipDoc( sal_Bool bAnyOle ); // update ScGlobal::pDrawClipDocShellRef
virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( com::sun::star::uno::RuntimeException );
static const com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
};
diff --git a/sc/source/ui/inc/ui_pch.hxx b/sc/source/ui/inc/ui_pch.hxx
index fa8ba1abfc1f..c97c14143798 100644
--- a/sc/source/ui/inc/ui_pch.hxx
+++ b/sc/source/ui/inc/ui_pch.hxx
@@ -76,7 +76,7 @@
#include <vcl/outdev.hxx>
#include <vcl/pointr.hxx>
#include <vcl/ptrstyle.hxx>
-#include <vcl/wintypes.hxx>
+#include <tools/wintypes.hxx>
#include <vcl/event.hxx>
#include <limits.h>
#include <tools/errinf.hxx>
@@ -202,7 +202,7 @@
#include <svl/stritem.hxx>
#include <collect.hxx>
#include <svx/svdsob.hxx>
-#include <vcl/imagebtn.hxx>
+#include <vcl/button.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdglue.hxx>
#include <svx/svdlayer.hxx>
diff --git a/sc/source/ui/inc/uiitems.hxx b/sc/source/ui/inc/uiitems.hxx
index 4c6ae0914780..f35302c92901 100644
--- a/sc/source/ui/inc/uiitems.hxx
+++ b/sc/source/ui/inc/uiitems.hxx
@@ -56,7 +56,7 @@ class ScInputStatusItem : public SfxPoolItem
public:
TYPEINFO();
- ScInputStatusItem( USHORT nWhich,
+ ScInputStatusItem( sal_uInt16 nWhich,
const ScAddress& rCurPos,
const ScAddress& rStartPos,
const ScAddress& rEndPos,
@@ -94,16 +94,16 @@ public:
class ScTablesHint : public SfxHint
{
- USHORT nId;
+ sal_uInt16 nId;
SCTAB nTab1;
SCTAB nTab2;
public:
TYPEINFO();
- ScTablesHint(USHORT nNewId, SCTAB nTable1, SCTAB nTable2=0);
+ ScTablesHint(sal_uInt16 nNewId, SCTAB nTable1, SCTAB nTable2=0);
~ScTablesHint();
- USHORT GetId() const { return nId; }
+ sal_uInt16 GetId() const { return nId; }
SCTAB GetTab1() const { return nTab1; }
SCTAB GetTab2() const { return nTab2; }
};
@@ -129,16 +129,16 @@ private:
class ScIndexHint : public SfxHint
{
- USHORT nId;
- USHORT nIndex;
+ sal_uInt16 nId;
+ sal_uInt16 nIndex;
public:
TYPEINFO();
- ScIndexHint(USHORT nNewId, USHORT nIdx);
+ ScIndexHint(sal_uInt16 nNewId, sal_uInt16 nIdx);
~ScIndexHint();
- USHORT GetId() const { return nId; }
- USHORT GetIndex() const { return nIndex; }
+ sal_uInt16 GetId() const { return nId; }
+ sal_uInt16 GetIndex() const { return nIndex; }
};
//----------------------------------------------------------------------------
@@ -148,10 +148,10 @@ class SC_DLLPUBLIC ScSortItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScSortItem( USHORT nWhich,
+ ScSortItem( sal_uInt16 nWhich,
ScViewData* ptrViewData,
const ScSortParam* pSortData );
- ScSortItem( USHORT nWhich,
+ ScSortItem( sal_uInt16 nWhich,
const ScSortParam* pSortData );
ScSortItem( const ScSortItem& rItem );
~ScSortItem();
@@ -159,7 +159,7 @@ public:
virtual String GetValueText() const;
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberUd ) const;
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberUd ) const;
ScViewData* GetViewData () const { return pViewData; }
const ScSortParam& GetSortData () const { return theSortData; }
@@ -176,10 +176,10 @@ class SC_DLLPUBLIC ScQueryItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScQueryItem( USHORT nWhich,
+ ScQueryItem( sal_uInt16 nWhich,
ScViewData* ptrViewData,
const ScQueryParam* pQueryData );
- ScQueryItem( USHORT nWhich,
+ ScQueryItem( sal_uInt16 nWhich,
const ScQueryParam* pQueryData );
ScQueryItem( const ScQueryItem& rItem );
~ScQueryItem();
@@ -191,13 +191,13 @@ public:
ScViewData* GetViewData () const { return pViewData; }
const ScQueryParam& GetQueryData() const { return theQueryData; }
- BOOL GetAdvancedQuerySource(ScRange& rSource) const;
+ sal_Bool GetAdvancedQuerySource(ScRange& rSource) const;
void SetAdvancedQuerySource(const ScRange* pSource);
private:
ScViewData* pViewData;
ScQueryParam theQueryData;
- BOOL bIsAdvanced;
+ sal_Bool bIsAdvanced;
ScRange aAdvSource;
};
@@ -208,10 +208,10 @@ class SC_DLLPUBLIC ScSubTotalItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScSubTotalItem( USHORT nWhich,
+ ScSubTotalItem( sal_uInt16 nWhich,
ScViewData* ptrViewData,
const ScSubTotalParam* pSubTotalData );
- ScSubTotalItem( USHORT nWhich,
+ ScSubTotalItem( sal_uInt16 nWhich,
const ScSubTotalParam* pSubTotalData );
ScSubTotalItem( const ScSubTotalItem& rItem );
~ScSubTotalItem();
@@ -219,7 +219,7 @@ public:
virtual String GetValueText() const;
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberUd ) const;
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberUd ) const;
ScViewData* GetViewData () const { return pViewData; }
const ScSubTotalParam& GetSubTotalData() const { return theSubTotalData; }
@@ -236,7 +236,7 @@ class SC_DLLPUBLIC ScUserListItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScUserListItem( USHORT nWhich );
+ ScUserListItem( sal_uInt16 nWhich );
ScUserListItem( const ScUserListItem& rItem );
~ScUserListItem();
@@ -258,7 +258,7 @@ class ScConsolidateItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScConsolidateItem( USHORT nWhich,
+ ScConsolidateItem( sal_uInt16 nWhich,
const ScConsolidateParam* pParam );
ScConsolidateItem( const ScConsolidateItem& rItem );
~ScConsolidateItem();
@@ -280,8 +280,8 @@ class ScPivotItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScPivotItem( USHORT nWhich, const ScDPSaveData* pData,
- const ScRange* pRange, BOOL bNew );
+ ScPivotItem( sal_uInt16 nWhich, const ScDPSaveData* pData,
+ const ScRange* pRange, sal_Bool bNew );
ScPivotItem( const ScPivotItem& rItem );
~ScPivotItem();
@@ -291,12 +291,12 @@ public:
const ScDPSaveData& GetData() const { return *pSaveData; }
const ScRange& GetDestRange() const { return aDestRange; }
- BOOL IsNewSheet() const { return bNewSheet; }
+ sal_Bool IsNewSheet() const { return bNewSheet; }
private:
ScDPSaveData* pSaveData;
ScRange aDestRange;
- BOOL bNewSheet;
+ sal_Bool bNewSheet;
};
//----------------------------------------------------------------------------
@@ -306,7 +306,7 @@ class ScSolveItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScSolveItem( USHORT nWhich,
+ ScSolveItem( sal_uInt16 nWhich,
const ScSolveParam* pParam );
ScSolveItem( const ScSolveItem& rItem );
~ScSolveItem();
@@ -328,7 +328,7 @@ class ScTabOpItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScTabOpItem( USHORT nWhich,
+ ScTabOpItem( sal_uInt16 nWhich,
const ScTabOpParam* pParam );
ScTabOpItem( const ScTabOpItem& rItem );
~ScTabOpItem();
@@ -350,7 +350,7 @@ class ScCondFrmtItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScCondFrmtItem( USHORT nWhich,
+ ScCondFrmtItem( sal_uInt16 nWhich,
//! const ScConditionalFormat* pCondFrmt );
const ScConditionalFormat& rCondFrmt );
ScCondFrmtItem( const ScCondFrmtItem& rItem );
diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx
index 385f0892f5c3..abc6770157e0 100644
--- a/sc/source/ui/inc/undobase.hxx
+++ b/sc/source/ui/inc/undobase.hxx
@@ -32,6 +32,7 @@
#include <svl/undo.hxx>
#include "global.hxx"
#include "address.hxx"
+#include "docsh.hxx"
class ScDocument;
class ScDocShell;
@@ -48,12 +49,16 @@ public:
ScSimpleUndo( ScDocShell* pDocSh );
virtual ~ScSimpleUndo();
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual sal_Bool Merge( SfxUndoAction *pNextAction );
protected:
ScDocShell* pDocShell;
SfxUndoAction* pDetectiveUndo;
+ bool IsPaintLocked() const { return pDocShell->IsPaintLocked(); }
+
+ bool SetViewMarkData( const ScMarkData& rMarkData );
+
void BeginUndo();
void EndUndo();
void BeginRedo();
@@ -85,7 +90,7 @@ protected:
// void BeginRedo();
void EndRedo();
- BOOL AdjustHeight();
+ sal_Bool AdjustHeight();
void ShowBlock();
};
@@ -155,16 +160,16 @@ public:
SfxUndoAction* GetWrappedUndo() { return pWrappedUndo; }
void ForgetWrappedUndo();
- virtual BOOL IsLinked();
- virtual void SetLinked( BOOL bIsLinked );
+ virtual sal_Bool IsLinked();
+ virtual void SetLinked( sal_Bool bIsLinked );
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool Merge( SfxUndoAction *pNextAction );
virtual String GetComment() const;
virtual String GetRepeatComment(SfxRepeatTarget&) const;
- virtual USHORT GetId() const;
+ virtual sal_uInt16 GetId() const;
};
diff --git a/sc/source/ui/inc/undoblk.hxx b/sc/source/ui/inc/undoblk.hxx
index a6eb727a7554..d8617490219a 100644
--- a/sc/source/ui/inc/undoblk.hxx
+++ b/sc/source/ui/inc/undoblk.hxx
@@ -60,29 +60,29 @@ public:
ScUndoInsertCells( ScDocShell* pNewDocShell,
const ScRange& rRange, SCTAB nNewCount, SCTAB* pNewTabs, SCTAB* pNewScenarios,
InsCellCmd eNewCmd, ScDocument* pUndoDocument, ScRefUndoData* pRefData,
- BOOL bNewPartOfPaste );
+ sal_Bool bNewPartOfPaste );
virtual ~ScUndoInsertCells();
virtual void Undo();
virtual void Redo();
virtual void Repeat( SfxRepeatTarget& rTarget );
- virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const;
+ virtual sal_Bool CanRepeat( SfxRepeatTarget& rTarget ) const;
virtual String GetComment() const;
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual sal_Bool Merge( SfxUndoAction *pNextAction );
private:
ScRange aEffRange;
SCTAB nCount;
SCTAB* pTabs;
SCTAB* pScenarios;
- ULONG nEndChangeAction;
+ sal_uLong nEndChangeAction;
InsCellCmd eCmd;
- BOOL bPartOfPaste;
+ sal_Bool bPartOfPaste;
SfxUndoAction* pPasteUndo;
- void DoChange ( const BOOL bUndo );
+ void DoChange ( const sal_Bool bUndo );
void SetChangeTrack();
};
@@ -99,7 +99,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -108,11 +108,11 @@ private:
SCTAB nCount;
SCTAB* pTabs;
SCTAB* pScenarios;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
DelCellCmd eCmd;
- void DoChange ( const BOOL bUndo );
+ void DoChange ( const sal_Bool bUndo );
void SetChangeTrack();
};
@@ -122,7 +122,7 @@ class ScUndoDeleteMulti: public ScMoveUndo
public:
TYPEINFO();
ScUndoDeleteMulti( ScDocShell* pNewDocShell,
- BOOL bNewRows, BOOL bNeedsRefresh, SCTAB nNewTab,
+ sal_Bool bNewRows, sal_Bool bNeedsRefresh, SCTAB nNewTab,
const SCCOLROW* pRng, SCCOLROW nRngCnt,
ScDocument* pUndoDocument, ScRefUndoData* pRefData );
virtual ~ScUndoDeleteMulti();
@@ -130,18 +130,18 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
- BOOL bRows;
- BOOL bRefresh;
+ sal_Bool bRows;
+ sal_Bool bRefresh;
SCTAB nTab;
SCCOLROW* pRanges;
SCCOLROW nRangeCnt;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
void DoChange() const;
void SetChangeTrack();
@@ -162,7 +162,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -170,27 +170,27 @@ private:
ScMarkData aMarkData;
ScDocument* pUndoDoc;
ScRange aExtendedRange;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
void SetChangeTrack();
};
struct ScUndoPasteOptions
{
- USHORT nFunction;
- BOOL bSkipEmpty;
- BOOL bTranspose;
- BOOL bAsLink;
+ sal_uInt16 nFunction;
+ sal_Bool bSkipEmpty;
+ sal_Bool bTranspose;
+ sal_Bool bAsLink;
InsCellCmd eMoveMode;
ScUndoPasteOptions() :
nFunction( PASTE_NOFUNC ),
- bSkipEmpty( FALSE ),
- bTranspose( FALSE ),
- bAsLink( FALSE ),
+ bSkipEmpty( false ),
+ bTranspose( false ),
+ bAsLink( false ),
eMoveMode( INS_NONE )
{}
};
@@ -204,16 +204,16 @@ public:
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
const ScMarkData& rMark,
ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc,
- USHORT nNewFlags,
+ sal_uInt16 nNewFlags,
ScRefUndoData* pRefData, void* pFill1, void* pFill2, void* pFill3,
- BOOL bRedoIsFilled = TRUE,
+ sal_Bool bRedoIsFilled = sal_True,
const ScUndoPasteOptions* pOptions = NULL );
virtual ~ScUndoPaste();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -221,15 +221,15 @@ private:
ScMarkData aMarkData;
ScDocument* pUndoDoc;
ScDocument* pRedoDoc;
- USHORT nFlags;
+ sal_uInt16 nFlags;
ScRefUndoData* pRefUndoData;
ScRefUndoData* pRefRedoData;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
- BOOL bRedoFilled;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
+ sal_Bool bRedoFilled;
ScUndoPasteOptions aPasteOptions;
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
void SetChangeTrack();
};
@@ -239,27 +239,27 @@ class ScUndoDragDrop: public ScMoveUndo
public:
TYPEINFO();
ScUndoDragDrop( ScDocShell* pNewDocShell,
- const ScRange& rRange, ScAddress aNewDestPos, BOOL bNewCut,
+ const ScRange& rRange, ScAddress aNewDestPos, sal_Bool bNewCut,
ScDocument* pUndoDocument, ScRefUndoData* pRefData,
- BOOL bScenario );
+ sal_Bool bScenario );
virtual ~ScUndoDragDrop();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
ScRange aSrcRange;
ScRange aDestRange;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
- BOOL bCut;
- BOOL bKeepScenarioFlags;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
+ sal_Bool bCut;
+ sal_Bool bKeepScenarioFlags;
- void PaintArea( ScRange aRange, USHORT nExtFlags ) const;
+ void PaintArea( ScRange aRange, sal_uInt16 nExtFlags ) const;
void DoUndo( ScRange aRange ) const;
void SetChangeTrack();
@@ -273,14 +273,14 @@ public:
ScUndoDeleteContents( ScDocShell* pNewDocShell,
const ScMarkData& rMark,
const ScRange& rRange,
- ScDocument* pNewUndoDoc, BOOL bNewMulti,
- USHORT nNewFlags, BOOL bObjects );
+ ScDocument* pNewUndoDoc, sal_Bool bNewMulti,
+ sal_uInt16 nNewFlags, sal_Bool bObjects );
virtual ~ScUndoDeleteContents();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -289,12 +289,12 @@ private:
ScMarkData aMarkData;
ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten
SdrUndoAction* pDrawUndo; // geloeschte Objekte
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
- USHORT nFlags;
- BOOL bMulti; // Mehrfachselektion
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
+ sal_uInt16 nFlags;
+ sal_Bool bMulti; // Mehrfachselektion
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
void SetChangeTrack();
};
@@ -307,14 +307,14 @@ public:
const ScMarkData& rMark,
SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
- ScDocument* pNewUndoDoc, BOOL bNewMulti, SCTAB nSrc,
- USHORT nFlg, USHORT nFunc, BOOL bSkip, BOOL bLink );
+ ScDocument* pNewUndoDoc, sal_Bool bNewMulti, SCTAB nSrc,
+ sal_uInt16 nFlg, sal_uInt16 nFunc, sal_Bool bSkip, sal_Bool bLink );
virtual ~ScUndoFillTable();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -322,16 +322,16 @@ private:
ScRange aRange;
ScMarkData aMarkData;
ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
- USHORT nFlags;
- USHORT nFunction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
+ sal_uInt16 nFlags;
+ sal_uInt16 nFunction;
SCTAB nSrcTab;
- BOOL bMulti; // Mehrfachselektion
- BOOL bSkipEmpty;
- BOOL bAsLink;
+ sal_Bool bMulti; // Mehrfachselektion
+ sal_Bool bSkipEmpty;
+ sal_Bool bAsLink;
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
void SetChangeTrack();
};
@@ -344,7 +344,7 @@ public:
const ScMarkData& rMark,
SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
- ScDocument* pNewUndoDoc, BOOL bNewMulti,
+ ScDocument* pNewUndoDoc, sal_Bool bNewMulti,
const ScPatternAttr* pNewApply,
const SvxBoxItem* pNewOuter = NULL,
const SvxBoxInfoItem* pNewInner = NULL );
@@ -353,7 +353,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -363,12 +363,12 @@ private:
ScRange aRange;
ScEditDataArray aDataArray;
ScDocument* pUndoDoc;
- BOOL bMulti;
+ sal_Bool bMulti;
ScPatternAttr* pApplyPattern;
SvxBoxItem* pLineOuter;
SvxBoxInfoItem* pLineInner;
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
void ChangeEditData( const bool bUndo );
};
@@ -384,14 +384,14 @@ public:
ScDocument* pNewUndoDoc,
SCCOLROW nNewCnt, SCCOLROW* pNewRanges,
ScOutlineTable* pNewUndoTab,
- ScSizeMode eNewMode, USHORT nNewSizeTwips,
- BOOL bNewWidth );
+ ScSizeMode eNewMode, sal_uInt16 nNewSizeTwips,
+ sal_Bool bNewWidth );
virtual ~ScUndoWidthOrHeight();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -405,8 +405,8 @@ private:
ScOutlineTable* pUndoTab;
SCCOLROW nRangeCnt;
SCCOLROW* pRanges;
- USHORT nNewSize;
- BOOL bWidth;
+ sal_uInt16 nNewSize;
+ sal_Bool bWidth;
ScSizeMode eMode;
SdrUndoAction* pDrawUndo;
};
@@ -422,13 +422,13 @@ public:
FillDir eNewFillDir,
FillCmd eNewFillCmd, FillDateCmd eNewFillDateCmd,
double fNewStartValue, double fNewStepValue, double fNewMaxValue,
- USHORT nMaxShIndex );
+ sal_uInt16 nMaxShIndex );
virtual ~ScUndoAutoFill();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -442,9 +442,9 @@ private:
double fStartValue;
double fStepValue;
double fMaxValue;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
- USHORT nMaxSharedIndex;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
+ sal_uInt16 nMaxSharedIndex;
void SetChangeTrack();
};
@@ -461,7 +461,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -482,21 +482,21 @@ public:
ScUndoAutoFormat( ScDocShell* pNewDocShell,
const ScRange& rRange, ScDocument* pNewUndoDoc,
const ScMarkData& rMark,
- BOOL bNewSize, USHORT nNewFormatNo );
+ sal_Bool bNewSize, sal_uInt16 nNewFormatNo );
virtual ~ScUndoAutoFormat();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
ScDocument* pUndoDoc; // geloeschte Daten
ScMarkData aMarkData;
- BOOL bSize;
- USHORT nFormatNo;
+ sal_Bool bSize;
+ sal_uInt16 nFormatNo;
};
@@ -514,7 +514,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -524,8 +524,8 @@ private:
String aUndoStr; // Daten bei Einfachmarkierung
ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten
SvxSearchItem* pSearchItem;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
void SetChangeTrack();
};
@@ -543,13 +543,13 @@ public:
const ScRefAddress& rFormulaEnd,
const ScRefAddress& rRowCell,
const ScRefAddress& rColCell,
- BYTE nMode );
+ sal_uInt8 nMode );
virtual ~ScUndoTabOp();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -560,7 +560,7 @@ private:
ScRefAddress theFormulaEnd;
ScRefAddress theRowCell;
ScRefAddress theColCell;
- BYTE nMode;
+ sal_uInt8 nMode;
};
@@ -579,7 +579,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -589,8 +589,8 @@ private:
ScDocument* pUndoDoc; // Blockmarkierung und geloeschte Daten
ScAddress aNewCursorPos;
ScDocument* pRedoDoc; // Blockmarkierung und neue Daten
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
ScConversionParam maConvParam; /// Conversion type and parameters.
void DoChange( ScDocument* pRefDoc, const ScAddress& rCursorPos );
@@ -603,13 +603,13 @@ public:
TYPEINFO();
ScUndoRefConversion( ScDocShell* pNewDocShell,
const ScRange& aMarkRange, const ScMarkData& rMark,
- ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc, BOOL bNewMulti, USHORT nNewFlag);
+ ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc, sal_Bool bNewMulti, sal_uInt16 nNewFlag);
virtual ~ScUndoRefConversion();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -618,10 +618,10 @@ private:
ScDocument* pUndoDoc;
ScDocument* pRedoDoc;
ScRange aRange;
- BOOL bMulti;
- USHORT nFlags;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_Bool bMulti;
+ sal_uInt16 nFlags;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
void DoChange( ScDocument* pRefDoc);
void SetChangeTrack();
@@ -639,7 +639,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -664,7 +664,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -690,10 +690,10 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
- virtual USHORT GetId() const;
+ virtual sal_uInt16 GetId() const;
private:
ScMarkData aMarkData;
@@ -701,7 +701,7 @@ private:
String aStyleName;
ScRange aRange;
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
};
@@ -716,7 +716,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -739,7 +739,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -747,8 +747,8 @@ private:
ScDocument* pUndoDoc;
String aFormula;
formula::FormulaGrammar::AddressConvention eConv;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
void SetChangeTrack();
};
@@ -762,13 +762,13 @@ public:
const String& rDoc,
const String& rFlt, const String& rOpt,
const String& rArea, const ScRange& rDestRange,
- ULONG nRefreshDelay );
+ sal_uLong nRefreshDelay );
virtual ~ScUndoInsertAreaLink();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -778,7 +778,7 @@ private:
String aOptions;
String aAreaName;
ScRange aRange;
- ULONG nRefreshDelay;
+ sal_uLong nRefreshDelay;
};
@@ -790,13 +790,13 @@ public:
const String& rDoc,
const String& rFlt, const String& rOpt,
const String& rArea, const ScRange& rDestRange,
- ULONG nRefreshDelay );
+ sal_uLong nRefreshDelay );
virtual ~ScUndoRemoveAreaLink();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -806,7 +806,7 @@ private:
String aOptions;
String aAreaName;
ScRange aRange;
- ULONG nRefreshDelay;
+ sal_uLong nRefreshDelay;
};
@@ -818,19 +818,19 @@ public:
const String& rOldD,
const String& rOldF, const String& rOldO,
const String& rOldA, const ScRange& rOldR,
- ULONG nOldRD,
+ sal_uLong nOldRD,
const String& rNewD,
const String& rNewF, const String& rNewO,
const String& rNewA, const ScRange& rNewR,
- ULONG nNewRD,
+ sal_uLong nNewRD,
ScDocument* pUndo, ScDocument* pRedo,
- BOOL bDoInsert );
+ sal_Bool bDoInsert );
virtual ~ScUndoUpdateAreaLink();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -847,11 +847,11 @@ private:
ScRange aNewRange;
ScDocument* pUndoDoc;
ScDocument* pRedoDoc;
- ULONG nOldRefresh;
- ULONG nNewRefresh;
- BOOL bWithInsert;
+ sal_uLong nOldRefresh;
+ sal_uLong nNewRefresh;
+ sal_Bool bWithInsert;
- void DoChange( const BOOL bUndo ) const;
+ void DoChange( const sal_Bool bUndo ) const;
};
@@ -860,20 +860,20 @@ class ScUndoIndent: public ScBlockUndo
public:
TYPEINFO();
ScUndoIndent( ScDocShell* pNewDocShell, const ScMarkData& rMark,
- ScDocument* pNewUndoDoc, BOOL bIncrement );
+ ScDocument* pNewUndoDoc, sal_Bool bIncrement );
virtual ~ScUndoIndent();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
ScMarkData aMarkData;
ScDocument* pUndoDoc;
- BOOL bIsIncrement;
+ sal_Bool bIsIncrement;
};
@@ -888,7 +888,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -904,20 +904,20 @@ class ScUndoClearItems: public ScBlockUndo
public:
TYPEINFO();
ScUndoClearItems( ScDocShell* pNewDocShell, const ScMarkData& rMark,
- ScDocument* pNewUndoDoc, const USHORT* pW );
+ ScDocument* pNewUndoDoc, const sal_uInt16* pW );
virtual ~ScUndoClearItems();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
ScMarkData aMarkData;
ScDocument* pUndoDoc;
- USHORT* pWhich;
+ sal_uInt16* pWhich;
};
@@ -932,7 +932,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -954,7 +954,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -980,7 +980,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
diff --git a/sc/source/ui/inc/undocell.hxx b/sc/source/ui/inc/undocell.hxx
index 0def8a3d67ba..2ab9ab1a9cfa 100644
--- a/sc/source/ui/inc/undocell.hxx
+++ b/sc/source/ui/inc/undocell.hxx
@@ -52,13 +52,13 @@ public:
ScUndoCursorAttr( ScDocShell* pNewDocShell,
SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab,
const ScPatternAttr* pOldPat, const ScPatternAttr* pNewPat,
- const ScPatternAttr* pApplyPat, BOOL bAutomatic );
+ const ScPatternAttr* pApplyPat, sal_Bool bAutomatic );
virtual ~ScUndoCursorAttr();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -76,7 +76,7 @@ private:
ScPatternAttr* pApplyPattern;
::boost::shared_ptr<EditTextObject> pOldEditData;
::boost::shared_ptr<EditTextObject> pNewEditData;
- BOOL bIsAutomatic;
+ sal_Bool bIsAutomatic;
void DoChange( const ScPatternAttr* pWhichPattern, const ::boost::shared_ptr<EditTextObject>& pEditData ) const;
};
@@ -89,14 +89,14 @@ public:
ScUndoEnterData( ScDocShell* pNewDocShell,
SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab,
SCTAB nNewCount, SCTAB* pNewTabs,
- ScBaseCell** ppOldData, BOOL* pHasForm, ULONG* pOldForm,
+ ScBaseCell** ppOldData, sal_Bool* pHasForm, sal_uLong* pOldForm,
const String& rNewStr, EditTextObject* pObj = NULL );
virtual ~ScUndoEnterData();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -104,10 +104,10 @@ private:
String aNewString;
SCTAB* pTabs;
ScBaseCell** ppOldCells;
- BOOL* pHasFormat;
- ULONG* pOldFormats;
+ sal_Bool* pHasFormat;
+ sal_uLong* pOldFormats;
EditTextObject* pNewEditData;
- ULONG nEndChangeAction;
+ sal_uLong nEndChangeAction;
SCCOL nCol;
SCROW nRow;
SCTAB nTab;
@@ -124,13 +124,13 @@ public:
TYPEINFO();
ScUndoEnterValue( ScDocShell* pNewDocShell,
const ScAddress& rNewPos,
- ScBaseCell* pUndoCell, double nVal, BOOL bHeight );
+ ScBaseCell* pUndoCell, double nVal, sal_Bool bHeight );
virtual ~ScUndoEnterValue();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -138,8 +138,8 @@ private:
ScAddress aPos;
ScBaseCell* pOldCell;
double nValue;
- ULONG nEndChangeAction;
- BOOL bNeedHeight;
+ sal_uLong nEndChangeAction;
+ sal_Bool bNeedHeight;
void SetChangeTrack();
};
@@ -151,13 +151,13 @@ public:
TYPEINFO();
ScUndoPutCell( ScDocShell* pNewDocShell,
const ScAddress& rNewPos,
- ScBaseCell* pUndoCell, ScBaseCell* pRedoCell, BOOL bHeight );
+ ScBaseCell* pUndoCell, ScBaseCell* pRedoCell, sal_Bool bHeight );
virtual ~ScUndoPutCell();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -165,8 +165,8 @@ private:
ScAddress aPos;
ScBaseCell* pOldCell;
ScBaseCell* pEnteredCell;
- ULONG nEndChangeAction;
- BOOL bNeedHeight;
+ sal_uLong nEndChangeAction;
+ sal_Bool bNeedHeight;
void SetChangeTrack();
};
@@ -178,13 +178,13 @@ public:
TYPEINFO();
ScUndoPageBreak( ScDocShell* pNewDocShell,
SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab,
- BOOL bNewColumn, BOOL bNewInsert );
+ sal_Bool bNewColumn, sal_Bool bNewInsert );
virtual ~ScUndoPageBreak();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -192,10 +192,10 @@ private:
SCCOL nCol;
SCROW nRow;
SCTAB nTab;
- BOOL bColumn; // Spalten- oder Zeilenumbruch
- BOOL bInsert; // Einfuegen oder Loeschen
+ sal_Bool bColumn; // Spalten- oder Zeilenumbruch
+ sal_Bool bInsert; // Einfuegen oder Loeschen
- void DoChange( BOOL bInsert ) const;
+ void DoChange( sal_Bool bInsert ) const;
};
class ScUndoPrintZoom: public ScSimpleUndo
@@ -203,24 +203,24 @@ class ScUndoPrintZoom: public ScSimpleUndo
public:
TYPEINFO();
ScUndoPrintZoom( ScDocShell* pNewDocShell, SCTAB nT,
- USHORT nOS, USHORT nOP, USHORT nNS, USHORT nNP );
+ sal_uInt16 nOS, sal_uInt16 nOP, sal_uInt16 nNS, sal_uInt16 nNP );
virtual ~ScUndoPrintZoom();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
SCTAB nTab;
- USHORT nOldScale;
- USHORT nOldPages;
- USHORT nNewScale;
- USHORT nNewPages;
+ sal_uInt16 nOldScale;
+ sal_uInt16 nOldPages;
+ sal_uInt16 nNewScale;
+ sal_uInt16 nNewPages;
- void DoChange( BOOL bUndo );
+ void DoChange( sal_Bool bUndo );
};
class ScUndoThesaurus: public ScSimpleUndo
@@ -236,7 +236,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -248,9 +248,9 @@ private:
EditTextObject* pUndoTObject; // bei EditZelle
String aRedoStr;
EditTextObject* pRedoTObject;
- ULONG nEndChangeAction;
+ sal_uLong nEndChangeAction;
- void DoChange( BOOL bUndo, const String& rStr,
+ void DoChange( sal_Bool bUndo, const String& rStr,
const EditTextObject* pTObj );
void SetChangeTrack( ScBaseCell* pOldCell );
};
@@ -284,7 +284,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat( SfxRepeatTarget& rTarget );
- virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const;
+ virtual sal_Bool CanRepeat( SfxRepeatTarget& rTarget ) const;
virtual String GetComment() const;
@@ -312,7 +312,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat( SfxRepeatTarget& rTarget );
- virtual BOOL CanRepeat( SfxRepeatTarget& rTarget ) const;
+ virtual sal_Bool CanRepeat( SfxRepeatTarget& rTarget ) const;
virtual String GetComment() const;
@@ -335,14 +335,14 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
- BOOL bIsDelete;
+ sal_Bool bIsDelete;
ScDetOpList* pOldList;
- USHORT nAction;
+ sal_uInt16 nAction;
ScAddress aPos;
SdrUndoAction* pDrawUndo;
};
@@ -359,7 +359,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -367,7 +367,7 @@ private:
ScRangeName* pOldRanges;
ScRangeName* pNewRanges;
- void DoChange( BOOL bUndo );
+ void DoChange( sal_Bool bUndo );
};
diff --git a/sc/source/ui/inc/undodat.hxx b/sc/source/ui/inc/undodat.hxx
index 05e4b9eff433..2aebb30a0cc5 100644
--- a/sc/source/ui/inc/undodat.hxx
+++ b/sc/source/ui/inc/undodat.hxx
@@ -54,14 +54,14 @@ public:
TYPEINFO();
ScUndoDoOutline( ScDocShell* pNewDocShell,
SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab,
- ScDocument* pNewUndoDoc, BOOL bNewColumns,
- USHORT nNewLevel, USHORT nNewEntry, BOOL bNewShow );
+ ScDocument* pNewUndoDoc, sal_Bool bNewColumns,
+ sal_uInt16 nNewLevel, sal_uInt16 nNewEntry, sal_Bool bNewShow );
virtual ~ScUndoDoOutline();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -70,10 +70,10 @@ private:
SCCOLROW nEnd;
SCTAB nTab;
ScDocument* pUndoDoc;
- BOOL bColumns;
- USHORT nLevel;
- USHORT nEntry;
- BOOL bShow;
+ sal_Bool bColumns;
+ sal_uInt16 nLevel;
+ sal_uInt16 nEntry;
+ sal_Bool bShow;
};
@@ -85,13 +85,13 @@ public:
SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
ScOutlineTable* pNewUndoTab,
- BOOL bNewColumns, BOOL bNewMake );
+ sal_Bool bNewColumns, sal_Bool bNewMake );
virtual ~ScUndoMakeOutline();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -99,8 +99,8 @@ private:
ScAddress aBlockStart;
ScAddress aBlockEnd;
ScOutlineTable* pUndoTable;
- BOOL bColumns;
- BOOL bMake;
+ sal_Bool bColumns;
+ sal_Bool bMake;
};
@@ -111,13 +111,13 @@ public:
ScUndoOutlineLevel( ScDocShell* pNewDocShell,
SCCOLROW nNewStart, SCCOLROW nNewEnd, SCTAB nNewTab,
ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab,
- BOOL bNewColumns, USHORT nNewLevel );
+ sal_Bool bNewColumns, sal_uInt16 nNewLevel );
virtual ~ScUndoOutlineLevel();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -127,8 +127,8 @@ private:
SCTAB nTab;
ScDocument* pUndoDoc;
ScOutlineTable* pUndoTable;
- BOOL bColumns;
- USHORT nLevel;
+ sal_Bool bColumns;
+ sal_uInt16 nLevel;
};
@@ -140,13 +140,13 @@ public:
SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
ScDocument* pNewUndoDoc, ScOutlineTable* pNewUndoTab,
- BOOL bNewShow );
+ sal_Bool bNewShow );
virtual ~ScUndoOutlineBlock();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -155,7 +155,7 @@ private:
ScAddress aBlockEnd;
ScDocument* pUndoDoc;
ScOutlineTable* pUndoTable;
- BOOL bShow;
+ sal_Bool bShow;
};
@@ -172,7 +172,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -197,7 +197,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -223,7 +223,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -245,24 +245,24 @@ public:
TYPEINFO();
ScUndoSort( ScDocShell* pNewDocShell, SCTAB nNewTab,
const ScSortParam& rParam,
- BOOL bQuery, ScDocument* pNewUndoDoc,
+ sal_Bool bQuery, ScDocument* pNewUndoDoc,
ScDBCollection* pNewUndoDB, const ScRange* pDest = NULL );
virtual ~ScUndoSort();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
SCTAB nTab;
ScSortParam aSortParam;
- BOOL bRepeatQuery;
+ sal_Bool bRepeatQuery;
ScDocument* pUndoDoc;
ScDBCollection* pUndoDB; // wegen Quell- und Zielbereich
- BOOL bDestArea;
+ sal_Bool bDestArea;
ScRange aDestRange;
};
@@ -274,13 +274,13 @@ public:
ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab,
const ScQueryParam& rParam, ScDocument* pNewUndoDoc,
ScDBCollection* pNewUndoDB, const ScRange* pOld,
- BOOL bSize, const ScRange* pAdvSrc );
+ sal_Bool bSize, const ScRange* pAdvSrc );
virtual ~ScUndoQuery();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -292,9 +292,9 @@ private:
ScDBCollection* pUndoDB; // wegen Quell- und Zielbereich
ScRange aOldDest;
ScRange aAdvSource;
- BOOL bIsAdvanced;
- BOOL bDestArea;
- BOOL bDoSize;
+ sal_Bool bIsAdvanced;
+ sal_Bool bDestArea;
+ sal_Bool bDoSize;
};
@@ -302,20 +302,20 @@ class ScUndoAutoFilter: public ScDBFuncUndo
{
private:
String aDBName;
- BOOL bFilterSet;
+ sal_Bool bFilterSet;
- void DoChange( BOOL bUndo );
+ void DoChange( sal_Bool bUndo );
public:
TYPEINFO();
ScUndoAutoFilter( ScDocShell* pNewDocShell, const ScRange& rRange,
- const String& rName, BOOL bSet );
+ const String& rName, sal_Bool bSet );
virtual ~ScUndoAutoFilter();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
};
@@ -332,7 +332,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -356,7 +356,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -370,7 +370,7 @@ private:
ScDBData* pUndoDBData;
ScDBData* pRedoDBData;
SCCOL nFormulaCols;
- BOOL bRedoFilled;
+ sal_Bool bRedoFilled;
};
@@ -389,7 +389,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -404,7 +404,7 @@ private:
ScDBCollection* pUndoDB;
ScRange aOldQuery;
ScRange aNewQuery;
- BOOL bQuerySize;
+ sal_Bool bQuerySize;
};
@@ -415,13 +415,13 @@ public:
ScUndoDataPilot( ScDocShell* pNewDocShell,
ScDocument* pOldDoc, ScDocument* pNewDoc,
const ScDPObject* pOldObj, const ScDPObject* pNewObj,
- BOOL bMove );
+ sal_Bool bMove );
virtual ~ScUndoDataPilot();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -430,7 +430,7 @@ private:
ScDocument* pNewUndoDoc;
ScDPObject* pOldDPObject;
ScDPObject* pNewDPObject;
- BOOL bAllowMove;
+ sal_Bool bAllowMove;
};
@@ -440,7 +440,7 @@ public:
TYPEINFO();
ScUndoConsolidate( ScDocShell* pNewDocShell,
const ScArea& rArea, const ScConsolidateParam& rPar,
- ScDocument* pNewUndoDoc, BOOL bReference,
+ ScDocument* pNewUndoDoc, sal_Bool bReference,
SCROW nInsCount, ScOutlineTable* pTab,
ScDBData* pData );
virtual ~ScUndoConsolidate();
@@ -448,7 +448,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -456,7 +456,7 @@ private:
ScArea aDestArea;
ScDocument* pUndoDoc;
ScConsolidateParam aParam;
- BOOL bInsRef;
+ sal_Bool bInsRef;
SCSIZE nInsertCount;
ScOutlineTable* pUndoTab;
ScDBData* pUndoData;
@@ -469,29 +469,29 @@ public:
TYPEINFO();
ScUndoChartData( ScDocShell* pNewDocShell,
const String& rName, const ScRange& rNew,
- BOOL bColHdr, BOOL bRowHdr, BOOL bAdd );
+ sal_Bool bColHdr, sal_Bool bRowHdr, sal_Bool bAdd );
ScUndoChartData( ScDocShell* pNewDocShell,
const String& rName, const ScRangeListRef& rNew,
- BOOL bColHdr, BOOL bRowHdr, BOOL bAdd );
+ sal_Bool bColHdr, sal_Bool bRowHdr, sal_Bool bAdd );
virtual ~ScUndoChartData();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
String aChartName;
ScRangeListRef aOldRangeListRef;
- BOOL bOldColHeaders;
- BOOL bOldRowHeaders;
+ sal_Bool bOldColHeaders;
+ sal_Bool bOldRowHeaders;
// ScRange aNewRange;
ScRangeListRef aNewRangeListRef;
- BOOL bNewColHeaders;
- BOOL bNewRowHeaders;
- BOOL bAddRange;
+ sal_Bool bNewColHeaders;
+ sal_Bool bNewRowHeaders;
+ sal_Bool bAddRange;
void Init();
};
@@ -506,16 +506,16 @@ public:
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ,
const ScMarkData& rMark,
ScDocument* pNewUndoDoc, ScDocument* pNewRedoDoc,
- USHORT nNewFlags,
+ sal_uInt16 nNewFlags,
ScRefUndoData* pRefData, void* pFill1, void* pFill2, void* pFill3,
- BOOL bRedoIsFilled = TRUE
+ sal_Bool bRedoIsFilled = true
);
virtual ~ScUndoDataForm();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -523,14 +523,14 @@ private:
ScMarkData aMarkData;
ScDocument* pUndoDoc;
ScDocument* pRedoDoc;
- USHORT nFlags;
+ sal_uInt16 nFlags;
ScRefUndoData* pRefUndoData;
ScRefUndoData* pRefRedoData;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
- BOOL bRedoFilled;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
+ sal_Bool bRedoFilled;
- void DoChange( const BOOL bUndo );
+ void DoChange( const sal_Bool bUndo );
void SetChangeTrack();
};
diff --git a/sc/source/ui/inc/undodraw.hxx b/sc/source/ui/inc/undodraw.hxx
index 565766e3bccb..f8f633a2dc7c 100644
--- a/sc/source/ui/inc/undodraw.hxx
+++ b/sc/source/ui/inc/undodraw.hxx
@@ -46,16 +46,16 @@ public:
SfxUndoAction* GetDrawUndo() { return pDrawUndo; }
void ForgetDrawUndo();
- virtual BOOL IsLinked();
- virtual void SetLinked( BOOL bIsLinked );
+ virtual sal_Bool IsLinked();
+ virtual void SetLinked( sal_Bool bIsLinked );
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool Merge( SfxUndoAction *pNextAction );
virtual String GetComment() const;
virtual String GetRepeatComment(SfxRepeatTarget&) const;
- virtual USHORT GetId() const;
+ virtual sal_uInt16 GetId() const;
};
diff --git a/sc/source/ui/inc/undoolk.hxx b/sc/source/ui/inc/undoolk.hxx
index 132c0c1ac70c..9d34785ea1af 100644
--- a/sc/source/ui/inc/undoolk.hxx
+++ b/sc/source/ui/inc/undoolk.hxx
@@ -38,7 +38,7 @@ SdrUndoAction* GetSdrUndoAction ( ScDocument* pDoc );
void DoSdrUndoAction ( SdrUndoAction* pUndoAction, ScDocument* pDoc );
void RedoSdrUndoAction ( SdrUndoAction* pUndoAction );
void DeleteSdrUndoAction ( SdrUndoAction* pUndoAction );
-void EnableDrawAdjust ( ScDocument* pDoc, BOOL bEnable );
+void EnableDrawAdjust ( ScDocument* pDoc, sal_Bool bEnable );
diff --git a/sc/source/ui/inc/undostyl.hxx b/sc/source/ui/inc/undostyl.hxx
index 9e3b3ed9f87e..f5069ab031b0 100644
--- a/sc/source/ui/inc/undostyl.hxx
+++ b/sc/source/ui/inc/undostyl.hxx
@@ -79,7 +79,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
};
@@ -96,7 +96,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx
index 3306925fc5d7..0c6bec3782af 100644
--- a/sc/source/ui/inc/undotab.hxx
+++ b/sc/source/ui/inc/undotab.hxx
@@ -65,23 +65,23 @@ public:
ScUndoInsertTab(
ScDocShell* pNewDocShell,
SCTAB nTabNum,
- BOOL bApp,
+ sal_Bool bApp,
const String& rNewName);
virtual ~ScUndoInsertTab();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
String sNewName;
SdrUndoAction* pDrawUndo;
- ULONG nEndChangeAction;
+ sal_uLong nEndChangeAction;
SCTAB nTab;
- BOOL bAppend;
+ sal_Bool bAppend;
void SetChangeTrack();
};
@@ -93,14 +93,14 @@ public:
ScUndoInsertTables(
ScDocShell* pNewDocShell,
SCTAB nTabNum,
- BOOL bApp,
+ sal_Bool bApp,
SvStrings *pNewNameList);
virtual ~ScUndoInsertTables();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -108,10 +108,10 @@ private:
SdrUndoAction* pDrawUndo;
SvStrings* pNameList;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
SCTAB nTab;
- BOOL bAppend;
+ sal_Bool bAppend;
void SetChangeTrack();
};
@@ -131,14 +131,14 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
std::vector<SCTAB> theTabs;
- ULONG nStartChangeAction;
- ULONG nEndChangeAction;
+ sal_uLong nStartChangeAction;
+ sal_uLong nEndChangeAction;
void SetChangeTrack();
};
@@ -158,7 +158,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -187,7 +187,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -197,7 +197,7 @@ private:
::boost::shared_ptr< ::std::vector< ::rtl::OUString> > mpOldNames;
::boost::shared_ptr< ::std::vector< ::rtl::OUString> > mpNewNames;
- void DoChange( BOOL bUndo ) const;
+ void DoChange( sal_Bool bUndo ) const;
};
@@ -216,7 +216,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -246,7 +246,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -265,14 +265,14 @@ public:
ScDocShell* pNewDocShell,
SCTAB nSrc, SCTAB nDest,
const String& rN, const String& rC,
- const Color& rCol, USHORT nF,
+ const Color& rCol, sal_uInt16 nF,
const ScMarkData& rMark );
virtual ~ScUndoMakeScenario();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -282,7 +282,7 @@ private:
String aName;
String aComment;
Color aColor;
- USHORT nFlags;
+ sal_uInt16 nFlags;
ScMarkData aMarkData;
SdrUndoAction* pDrawUndo;
};
@@ -295,20 +295,20 @@ public:
ScUndoImportTab(
ScDocShell* pShell,
SCTAB nNewTab, SCTAB nNewCount,
- BOOL bNewLink );
+ sal_Bool bNewLink );
virtual ~ScUndoImportTab();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
SCTAB nTab;
SCTAB nCount;
- BOOL bLink;
+ sal_Bool bLink;
ScDocument* pRedoDoc;
SdrUndoAction* pDrawUndo;
@@ -328,7 +328,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -336,13 +336,13 @@ private:
String aDocName;
String aFltName;
String aOptions;
- ULONG nRefreshDelay;
- USHORT nCount;
+ sal_uLong nRefreshDelay;
+ sal_uInt16 nCount;
SCTAB* pTabs;
- BYTE* pModes;
+ sal_uInt8* pModes;
String* pTabNames;
- void DoChange( BOOL bLink ) const;
+ void DoChange( sal_Bool bLink ) const;
};
@@ -352,21 +352,21 @@ public:
TYPEINFO();
ScUndoShowHideTab(
ScDocShell* pShell,
- SCTAB nNewTab, BOOL bNewShow );
+ SCTAB nNewTab, sal_Bool bNewShow );
virtual ~ScUndoShowHideTab();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
SCTAB nTab;
- BOOL bShow;
+ sal_Bool bShow;
- void DoChange( BOOL bShow ) const;
+ void DoChange( sal_Bool bShow ) const;
};
// ============================================================================
@@ -382,7 +382,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -406,7 +406,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -429,7 +429,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -438,7 +438,7 @@ private:
ScPrintRangeSaver* pOldRanges;
ScPrintRangeSaver* pNewRanges;
- void DoChange( BOOL bUndo );
+ void DoChange( sal_Bool bUndo );
};
@@ -451,14 +451,14 @@ public:
const String& rON, const String& rNN,
const String& rOC, const String& rNC,
const Color& rOCol, const Color& rNCol,
- USHORT nOF, USHORT nNF );
+ sal_uInt16 nOF, sal_uInt16 nNF );
virtual ~ScUndoScenarioFlags();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -470,8 +470,8 @@ private:
String aNewComment;
Color aOldColor;
Color aNewColor;
- USHORT nOldFlags;
- USHORT nNewFlags;
+ sal_uInt16 nOldFlags;
+ sal_uInt16 nNewFlags;
};
@@ -488,7 +488,7 @@ public:
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
@@ -505,21 +505,21 @@ class ScUndoLayoutRTL : public ScSimpleUndo
{
public:
TYPEINFO();
- ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, BOOL bNewRTL );
+ ScUndoLayoutRTL( ScDocShell* pShell, SCTAB nNewTab, sal_Bool bNewRTL );
virtual ~ScUndoLayoutRTL();
virtual void Undo();
virtual void Redo();
virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+ virtual sal_Bool CanRepeat(SfxRepeatTarget& rTarget) const;
virtual String GetComment() const;
private:
SCTAB nTab;
- BOOL bRTL;
+ sal_Bool bRTL;
- void DoChange( BOOL bNew );
+ void DoChange( sal_Bool bNew );
};
#endif
diff --git a/sc/source/ui/inc/validate.hxx b/sc/source/ui/inc/validate.hxx
index 050c54a00121..0ad2ac9c6df2 100644
--- a/sc/source/ui/inc/validate.hxx
+++ b/sc/source/ui/inc/validate.hxx
@@ -108,9 +108,9 @@ public:
inline ScTabViewShell * GetTabViewShell();
bool SetupRefDlg();
- bool RemoveRefDlg( BOOL bRestoreModal = TRUE );
+ bool RemoveRefDlg( sal_Bool bRestoreModal = sal_True );
- virtual void SetModal( BOOL bModal ){ ScValidationDlgBase::SetModalInputMode( bModal ); }
+ virtual void SetModal( sal_Bool bModal ){ ScValidationDlgBase::SetModalInputMode( bModal ); }
virtual void SetReference( const ScRange& rRef, ScDocument* pDoc )
{
@@ -129,7 +129,7 @@ public:
DBG_ASSERT( false, "should not execute here!!!when the edit kill focus, should remove refhandler.\r\n" );
if ( IsInExecute() )
- EndDialog( FALSE );
+ EndDialog( false );
else if ( GetStyle() & WB_CLOSEABLE )
Close();
}
@@ -149,7 +149,7 @@ public:
(m_pHandler->*m_pRefInputStartPostHdl)( pEdit, pButton );
}
- virtual void RefInputDone( BOOL bForced = FALSE )
+ virtual void RefInputDone( sal_Bool bForced = false )
{
if( !CanInputDone( bForced ) )
return;
@@ -164,11 +164,11 @@ public:
(m_pHandler->*m_pRefInputDonePostHdl)();
}
- BOOL IsChildFocus();
+ sal_Bool IsChildFocus();
enum { SLOTID = SID_VALIDITY_REFERENCE };
- BOOL Close();
+ sal_Bool Close();
};
@@ -182,9 +182,9 @@ public:
virtual ~ScTPValidationValue();
static SfxTabPage* Create( Window* pParent, const SfxItemSet& rArgSet );
- static USHORT* GetRanges();
+ static sal_uInt16* GetRanges();
- virtual BOOL FillItemSet( SfxItemSet& rArgSet );
+ virtual sal_Bool FillItemSet( SfxItemSet& rArgSet );
virtual void Reset( const SfxItemSet& rArgSet );
private:
@@ -240,7 +240,7 @@ private:
void TidyListBoxes();
public:
- USHORT GetAllowEntryPos();
+ sal_uInt16 GetAllowEntryPos();
String GetMinText();
void SetupRefDlg();
void RemoveRefDlg();
@@ -271,8 +271,8 @@ public:
~ScTPValidationHelp();
static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
};
@@ -304,8 +304,8 @@ public:
~ScTPValidationError();
static SfxTabPage* Create ( Window* pParent, const SfxItemSet& rArgSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ static sal_uInt16* GetRanges ();
+ virtual sal_Bool FillItemSet ( SfxItemSet& rArgSet );
virtual void Reset ( const SfxItemSet& rArgSet );
};
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index f2e47ee9aeb1..83a15fc79b60 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -149,7 +149,7 @@ private:
bool bShowGrid; // per-sheet show grid-lines option.
- BOOL bOldCurValid; // "virtuelle" Cursorpos. bei zusammengefassten
+ sal_Bool bOldCurValid; // "virtuelle" Cursorpos. bei zusammengefassten
ScViewDataTable();
~ScViewDataTable();
@@ -220,14 +220,14 @@ private:
ScPasteFlags nPasteFlags;
ScSplitPos eEditActivePart; // the part that was active when edit mode was started
- BOOL bEditActive[4]; // aktiv?
- BOOL bActive; // aktives Fenster ?
- BOOL bIsRefMode; // Referenzeingabe
- BOOL bDelMarkValid; // nur gueltig bei SC_REFTYPE_FILL
- BYTE nFillMode; // Modus
- BOOL bPagebreak; // Seitenumbruch-Vorschaumodus
+ sal_Bool bEditActive[4]; // aktiv?
+ sal_Bool bActive; // aktives Fenster ?
+ sal_Bool bIsRefMode; // Referenzeingabe
+ sal_Bool bDelMarkValid; // nur gueltig bei SC_REFTYPE_FILL
+ sal_uInt8 nFillMode; // Modus
+ sal_Bool bPagebreak; // Seitenumbruch-Vorschaumodus
- BOOL bSelCtrlMouseClick; // special selection handling for ctrl-mouse-click
+ sal_Bool bSelCtrlMouseClick; // special selection handling for ctrl-mouse-click
SC_DLLPRIVATE DECL_LINK (EmptyEditHdl, EditStatus*);
SC_DLLPRIVATE DECL_LINK (EditEngineHdl, EditStatus*);
@@ -258,9 +258,9 @@ public:
Window* GetDialogParent(); // von tabvwsh weitergeleitet
Window* GetActiveWin(); // von View
ScDrawView* GetScDrawView(); // von View
- BOOL IsMinimized(); // von View
+ sal_Bool IsMinimized(); // von View
- void UpdateInputHandler( BOOL bForce = FALSE, BOOL bStopEditing = TRUE );
+ void UpdateInputHandler( sal_Bool bForce = false, sal_Bool bStopEditing = sal_True );
void WriteUserData(String& rData);
void ReadUserData(const String& rData);
@@ -271,8 +271,8 @@ public:
ScDocument* GetDocument() const;
- BOOL IsActive() const { return bActive; }
- void Activate(BOOL bActivate) { bActive = bActivate; }
+ sal_Bool IsActive() const { return bActive; }
+ void Activate(sal_Bool bActivate) { bActive = bActivate; }
void UpdateThis();
@@ -290,7 +290,7 @@ public:
SCROW GetPosY( ScVSplitPos eWhich ) const { return pThisTab->nPosY[eWhich]; }
SCCOL GetCurX() const { return pThisTab->nCurX; }
SCROW GetCurY() const { return pThisTab->nCurY; }
- BOOL HasOldCursor() const { return pThisTab->bOldCurValid; }
+ sal_Bool HasOldCursor() const { return pThisTab->bOldCurValid; }
SCCOL GetOldCurX() const;
SCROW GetOldCurY() const;
ScSplitMode GetHSplitMode() const { return pThisTab->eHSplitMode; }
@@ -299,7 +299,7 @@ public:
long GetVSplitPos() const { return pThisTab->nVSplitPos; }
SCCOL GetFixPosX() const { return pThisTab->nFixPosX; }
SCROW GetFixPosY() const { return pThisTab->nFixPosY; }
- BOOL IsPagebreakMode() const { return bPagebreak; }
+ sal_Bool IsPagebreakMode() const { return bPagebreak; }
bool IsPasteMode() const { return nPasteFlags & SC_PASTE_MODE; }
bool ShowPasteSource() const { return nPasteFlags & SC_PASTE_BORDER; }
@@ -315,16 +315,16 @@ public:
void SetVSplitPos( long nPos ) { pThisTab->nVSplitPos = nPos; }
void SetFixPosX( SCCOL nPos ) { pThisTab->nFixPosX = nPos; }
void SetFixPosY( SCROW nPos ) { pThisTab->nFixPosY = nPos; }
- void SetPagebreakMode( BOOL bSet );
+ void SetPagebreakMode( sal_Bool bSet );
void SetPasteMode ( ScPasteFlags nFlags ) { nPasteFlags = nFlags; }
- void SetZoomType( SvxZoomType eNew, BOOL bAll );
+ void SetZoomType( SvxZoomType eNew, sal_Bool bAll );
void SetZoomType( SvxZoomType eNew, std::vector< SCTAB >& tabs );
void SetZoom( const Fraction& rNewX, const Fraction& rNewY, std::vector< SCTAB >& tabs );
- void SetZoom( const Fraction& rNewX, const Fraction& rNewY, BOOL bAll );
+ void SetZoom( const Fraction& rNewX, const Fraction& rNewY, sal_Bool bAll );
void RefreshZoom();
- void SetSelCtrlMouseClick( BOOL bTmp ) { bSelCtrlMouseClick = bTmp; }
+ void SetSelCtrlMouseClick( sal_Bool bTmp ) { bSelCtrlMouseClick = bTmp; }
SvxZoomType GetZoomType() const { return pThisTab->eZoomType; }
const Fraction& GetZoomX() const { return bPagebreak ? pThisTab->aPageZoomX : pThisTab->aZoomX; }
@@ -349,31 +349,31 @@ public:
ScMarkType GetSimpleArea( ScRange & rRange, ScMarkData & rNewMark ) const;
void GetMultiArea( ScRangeListRef& rRange ) const;
- BOOL SimpleColMarked();
- BOOL SimpleRowMarked();
+ sal_Bool SimpleColMarked();
+ sal_Bool SimpleRowMarked();
- BOOL IsMultiMarked();
+ sal_Bool IsMultiMarked();
void SetFillMode( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow );
void SetDragMode( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
- BYTE nMode );
+ sal_uInt8 nMode );
void GetFillData( SCCOL& rStartCol, SCROW& rStartRow,
SCCOL& rEndCol, SCROW& rEndRow );
void ResetFillMode();
- BOOL IsAnyFillMode() { return nFillMode != SC_FILL_NONE; }
- BOOL IsFillMode() { return nFillMode == SC_FILL_FILL; }
- BYTE GetFillMode() { return nFillMode; }
+ sal_Bool IsAnyFillMode() { return nFillMode != SC_FILL_NONE; }
+ sal_Bool IsFillMode() { return nFillMode == SC_FILL_FILL; }
+ sal_uInt8 GetFillMode() { return nFillMode; }
// TRUE: Zelle ist zusammengefasst
- BOOL GetMergeSizePixel( SCCOL nX, SCROW nY, long& rSizeXPix, long& rSizeYPix );
- BOOL GetPosFromPixel( long nClickX, long nClickY, ScSplitPos eWhich,
+ sal_Bool GetMergeSizePixel( SCCOL nX, SCROW nY, long& rSizeXPix, long& rSizeYPix );
+ sal_Bool GetPosFromPixel( long nClickX, long nClickY, ScSplitPos eWhich,
SCsCOL& rPosX, SCsROW& rPosY,
- BOOL bTestMerge = TRUE, BOOL bRepair = FALSE,
- BOOL bNextIfLarge = TRUE );
+ sal_Bool bTestMerge = sal_True, sal_Bool bRepair = false,
+ sal_Bool bNextIfLarge = sal_True );
void GetMouseQuadrant( const Point& rClickPos, ScSplitPos eWhich,
- SCsCOL nPosX, SCsROW nPosY, BOOL& rLeft, BOOL& rTop );
+ SCsCOL nPosX, SCsROW nPosY, sal_Bool& rLeft, sal_Bool& rTop );
- BOOL IsRefMode() const { return bIsRefMode; }
+ sal_Bool IsRefMode() const { return bIsRefMode; }
ScRefType GetRefType() const { return eRefType; }
SCCOL GetRefStartX() const { return nRefStartX; }
SCROW GetRefStartY() const { return nRefStartY; }
@@ -382,7 +382,7 @@ public:
SCROW GetRefEndY() const { return nRefEndY; }
SCTAB GetRefEndZ() const { return nRefEndZ; }
- void SetRefMode( BOOL bNewMode, ScRefType eNewType )
+ void SetRefMode( sal_Bool bNewMode, ScRefType eNewType )
{ bIsRefMode = bNewMode; eRefType = eNewType; }
void SetRefStart( SCCOL nNewX, SCROW nNewY, SCTAB nNewZ )
@@ -390,11 +390,11 @@ public:
void SetRefEnd( SCCOL nNewX, SCROW nNewY, SCTAB nNewZ )
{ nRefEndX = nNewX; nRefEndY = nNewY; nRefEndZ = nNewZ; }
- void ResetDelMark() { bDelMarkValid = FALSE; }
+ void ResetDelMark() { bDelMarkValid = false; }
void SetDelMark( const ScRange& rRange )
- { aDelRange = rRange; bDelMarkValid = TRUE; }
+ { aDelRange = rRange; bDelMarkValid = sal_True; }
- BOOL GetDelMark( ScRange& rRange ) const
+ sal_Bool GetDelMark( ScRange& rRange ) const
{ rRange = aDelRange; return bDelMarkValid; }
inline void GetMoveCursor( SCCOL& rCurX, SCROW& rCurY );
@@ -402,20 +402,20 @@ public:
const ScViewOptions& GetOptions() const { return *pOptions; }
void SetOptions( const ScViewOptions& rOpt );
- BOOL IsGridMode () const { return pOptions->GetOption( VOPT_GRID ); }
- void SetGridMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_GRID, bNewMode ); }
- BOOL IsSyntaxMode () const { return pOptions->GetOption( VOPT_SYNTAX ); }
- void SetSyntaxMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_SYNTAX, bNewMode ); }
- BOOL IsHeaderMode () const { return pOptions->GetOption( VOPT_HEADER ); }
- void SetHeaderMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_HEADER, bNewMode ); }
- BOOL IsTabMode () const { return pOptions->GetOption( VOPT_TABCONTROLS ); }
- void SetTabMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_TABCONTROLS, bNewMode ); }
- BOOL IsVScrollMode () const { return pOptions->GetOption( VOPT_VSCROLL ); }
- void SetVScrollMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_VSCROLL, bNewMode ); }
- BOOL IsHScrollMode () const { return pOptions->GetOption( VOPT_HSCROLL ); }
- void SetHScrollMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_HSCROLL, bNewMode ); }
- BOOL IsOutlineMode () const { return pOptions->GetOption( VOPT_OUTLINER ); }
- void SetOutlineMode ( BOOL bNewMode ) { pOptions->SetOption( VOPT_OUTLINER, bNewMode ); }
+ sal_Bool IsGridMode () const { return pOptions->GetOption( VOPT_GRID ); }
+ void SetGridMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_GRID, bNewMode ); }
+ sal_Bool IsSyntaxMode () const { return pOptions->GetOption( VOPT_SYNTAX ); }
+ void SetSyntaxMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_SYNTAX, bNewMode ); }
+ sal_Bool IsHeaderMode () const { return pOptions->GetOption( VOPT_HEADER ); }
+ void SetHeaderMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_HEADER, bNewMode ); }
+ sal_Bool IsTabMode () const { return pOptions->GetOption( VOPT_TABCONTROLS ); }
+ void SetTabMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_TABCONTROLS, bNewMode ); }
+ sal_Bool IsVScrollMode () const { return pOptions->GetOption( VOPT_VSCROLL ); }
+ void SetVScrollMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_VSCROLL, bNewMode ); }
+ sal_Bool IsHScrollMode () const { return pOptions->GetOption( VOPT_HSCROLL ); }
+ void SetHScrollMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_HSCROLL, bNewMode ); }
+ sal_Bool IsOutlineMode () const { return pOptions->GetOption( VOPT_OUTLINER ); }
+ void SetOutlineMode ( sal_Bool bNewMode ) { pOptions->SetOption( VOPT_OUTLINER, bNewMode ); }
void KillEditView();
void ResetEditView();
@@ -423,13 +423,13 @@ public:
ScEditEngineDefaulter* pNewEngine,
Window* pWin, SCCOL nNewX, SCROW nNewY );
void GetEditView( ScSplitPos eWhich, EditView*& rViewPtr, SCCOL& rCol, SCROW& rRow );
- BOOL HasEditView( ScSplitPos eWhich ) const
+ sal_Bool HasEditView( ScSplitPos eWhich ) const
{ return pEditView[eWhich] && bEditActive[eWhich]; }
EditView* GetEditView( ScSplitPos eWhich ) const
{ return pEditView[eWhich]; }
void EditGrowX();
- void EditGrowY( BOOL bInitial = FALSE );
+ void EditGrowY( sal_Bool bInitial = false );
ScSplitPos GetEditActivePart() const { return eEditActivePart; }
SCCOL GetEditViewCol() const { return nEditCol; }
@@ -440,25 +440,25 @@ public:
SCROW GetEditEndRow() const { return nEditEndRow; }
Rectangle GetEditArea( ScSplitPos eWhich, SCCOL nPosX, SCROW nPosY, Window* pWin,
- const ScPatternAttr* pPattern, BOOL bForceToTop );
+ const ScPatternAttr* pPattern, sal_Bool bForceToTop );
void SetTabNo( SCTAB nNewTab );
void SetActivePart( ScSplitPos eNewActive );
Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScSplitPos eWhich,
- BOOL bAllowNeg = FALSE ) const;
+ sal_Bool bAllowNeg = false ) const;
Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScHSplitPos eWhich ) const;
Point GetScrPos( SCCOL nWhereX, SCROW nWhereY, ScVSplitPos eWhich ) const;
- SCCOL CellsAtX( SCsCOL nPosX, SCsCOL nDir, ScHSplitPos eWhichX, USHORT nScrSizeY = SC_SIZE_NONE ) const;
- SCROW CellsAtY( SCsROW nPosY, SCsROW nDir, ScVSplitPos eWhichY, USHORT nScrSizeX = SC_SIZE_NONE ) const;
+ SCCOL CellsAtX( SCsCOL nPosX, SCsCOL nDir, ScHSplitPos eWhichX, sal_uInt16 nScrSizeY = SC_SIZE_NONE ) const;
+ SCROW CellsAtY( SCsROW nPosY, SCsROW nDir, ScVSplitPos eWhichY, sal_uInt16 nScrSizeX = SC_SIZE_NONE ) const;
SCCOL VisibleCellsX( ScHSplitPos eWhichX ) const; // angezeigte komplette Zellen
SCROW VisibleCellsY( ScVSplitPos eWhichY ) const;
SCCOL PrevCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der vorgehenden Seite
SCROW PrevCellsY( ScVSplitPos eWhichY ) const;
- BOOL IsOle();
+ sal_Bool IsOle();
void SetScreen( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 );
void SetScreen( const Rectangle& rVisArea );
void SetScreenPos( const Point& rVisAreaStart );
@@ -478,8 +478,8 @@ public:
Point GetMousePosPixel();
- BOOL UpdateFixX(SCTAB nTab = MAXTAB+1);
- BOOL UpdateFixY(SCTAB nTab = MAXTAB+1);
+ sal_Bool UpdateFixX(SCTAB nTab = MAXTAB+1);
+ sal_Bool UpdateFixY(SCTAB nTab = MAXTAB+1);
SCCOL GetTabStartCol() const { return nTabStartCol; }
void SetTabStartCol(SCCOL nNew) { nTabStartCol = nNew; }
@@ -489,9 +489,9 @@ public:
const Size& GetScenButSize() const { return aScenButSize; }
void SetScenButSize(const Size& rNew) { aScenButSize = rNew; }
- BOOL IsSelCtrlMouseClick() { return bSelCtrlMouseClick; }
+ sal_Bool IsSelCtrlMouseClick() { return bSelCtrlMouseClick; }
- static inline long ToPixel( USHORT nTwips, double nFactor );
+ static inline long ToPixel( sal_uInt16 nTwips, double nFactor );
/** while (rScrY <= nEndPixels && rPosY <= nEndRow) add pixels of row
heights converted with nPPTY to rScrY, optimized for row height
@@ -515,7 +515,7 @@ public:
// ---------------------------------------------------------------------------
-inline long ScViewData::ToPixel( USHORT nTwips, double nFactor )
+inline long ScViewData::ToPixel( sal_uInt16 nTwips, double nFactor )
{
long nRet = (long)( nTwips * nFactor );
if ( !nRet && nTwips )
diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx
index 5aa485eb874e..9306cb8c3ad3 100644
--- a/sc/source/ui/inc/viewfunc.hxx
+++ b/sc/source/ui/inc/viewfunc.hxx
@@ -49,6 +49,7 @@ class SfxItemSet;
class SvxBorderLine;
class SvxBoxItem;
class SvxBoxInfoItem;
+class SfxStyleSheetBase;
class SfxStyleSheet;
class SfxPoolItem;
class EditTextObject;
@@ -75,7 +76,7 @@ class ScViewFunc : public ScTabView
private:
ScAddress aFormatSource; // fuer automatisches Erweitern von Formatierung
ScRange aFormatArea;
- BOOL bFormatValid;
+ sal_Bool bFormatValid;
public:
ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell );
@@ -85,192 +86,192 @@ public:
void GetSelectionFrame ( SvxBoxItem& rLineOuter,
SvxBoxInfoItem& rLineInner );
- BYTE GetSelectionScriptType();
+ sal_uInt8 GetSelectionScriptType();
- BOOL GetAutoSumArea(ScRangeList& rRangeList);
+ sal_Bool GetAutoSumArea(ScRangeList& rRangeList);
void EnterAutoSum(const ScRangeList& rRangeList, bool bSubTotal, const ScAddress& rAddr);
bool AutoSum( const ScRange& rRange, bool bSubTotal, bool bSetCursor, bool bContinue );
String GetAutoSumFormula( const ScRangeList& rRangeList, bool bSubTotal, const ScAddress& rAddr );
void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const String& rString,
- BOOL bRecord = TRUE, const EditTextObject* pData = NULL );
+ sal_Bool bRecord = sal_True, const EditTextObject* pData = NULL );
void EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& rValue );
void EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab, const EditTextObject* pData,
- BOOL bRecord = TRUE, BOOL bTestSimple = FALSE );
+ sal_Bool bRecord = sal_True, sal_Bool bTestSimple = false );
void EnterMatrix( const String& rString );
void EnterBlock( const String& rString, const EditTextObject* pData );
void EnterDataAtCursor( const String& rString ); //! nicht benutzt ?
- SC_DLLPUBLIC void CutToClip( ScDocument* pClipDoc = NULL, BOOL bIncludeObjects = FALSE );
- SC_DLLPUBLIC BOOL CopyToClip( ScDocument* pClipDoc = NULL, BOOL bCut = FALSE, BOOL bApi = FALSE,
- BOOL bIncludeObjects = FALSE, BOOL bStopEdit = TRUE );
- SC_DLLPUBLIC BOOL CopyToClip( ScDocument* pClipDoc, const ScRange& rRange, BOOL bCut = FALSE,
- BOOL bApi = FALSE, BOOL bIncludeObjects = FALSE, BOOL bStopEdit = TRUE );
+ SC_DLLPUBLIC void CutToClip( ScDocument* pClipDoc = NULL, sal_Bool bIncludeObjects = false );
+ SC_DLLPUBLIC sal_Bool CopyToClip( ScDocument* pClipDoc = NULL, sal_Bool bCut = false, sal_Bool bApi = false,
+ sal_Bool bIncludeObjects = false, sal_Bool bStopEdit = true );
+ SC_DLLPUBLIC sal_Bool CopyToClip( ScDocument* pClipDoc, const ScRange& rRange, sal_Bool bCut = false,
+ sal_Bool bApi = false, sal_Bool bIncludeObjects = false, sal_Bool bStopEdit = true );
ScTransferObj* CopyToTransferable();
- SC_DLLPUBLIC BOOL PasteFromClip( USHORT nFlags, ScDocument* pClipDoc,
- USHORT nFunction = PASTE_NOFUNC, BOOL bSkipEmpty = FALSE,
- BOOL bTranspose = FALSE, BOOL bAsLink = FALSE,
+ SC_DLLPUBLIC sal_Bool PasteFromClip( sal_uInt16 nFlags, ScDocument* pClipDoc,
+ sal_uInt16 nFunction = PASTE_NOFUNC, sal_Bool bSkipEmpty = false,
+ sal_Bool bTranspose = false, sal_Bool bAsLink = false,
InsCellCmd eMoveMode = INS_NONE,
- USHORT nUndoExtraFlags = IDF_NONE,
- BOOL bAllowDialogs = FALSE );
+ sal_uInt16 nUndoExtraFlags = IDF_NONE,
+ sal_Bool bAllowDialogs = false );
- void FillTab( USHORT nFlags, USHORT nFunction, BOOL bSkipEmpty, BOOL bAsLink );
+ void FillTab( sal_uInt16 nFlags, sal_uInt16 nFunction, sal_Bool bSkipEmpty, sal_Bool bAsLink );
SC_DLLPUBLIC void PasteFromSystem();
- SC_DLLPUBLIC BOOL PasteFromSystem( ULONG nFormatId, BOOL bApi = FALSE );
+ SC_DLLPUBLIC sal_Bool PasteFromSystem( sal_uLong nFormatId, sal_Bool bApi = false );
void PasteFromTransferable( const ::com::sun::star::uno::Reference<
::com::sun::star::datatransfer::XTransferable >& rxTransferable );
void PasteDraw();
void PasteDraw( const Point& rLogicPos, SdrModel* pModel,
- BOOL bGroup = FALSE, BOOL bSameDocClipboard = FALSE );
+ sal_Bool bGroup = false, sal_Bool bSameDocClipboard = false );
- BOOL PasteOnDrawObject( const ::com::sun::star::uno::Reference<
+ sal_Bool PasteOnDrawObject( const ::com::sun::star::uno::Reference<
::com::sun::star::datatransfer::XTransferable >& rxTransferable,
- SdrObject* pHitObj, BOOL bLink );
+ SdrObject* pHitObj, sal_Bool bLink );
- BOOL PasteDataFormat( ULONG nFormatId,
+ sal_Bool PasteDataFormat( sal_uLong nFormatId,
const ::com::sun::star::uno::Reference<
::com::sun::star::datatransfer::XTransferable >& rxTransferable,
SCCOL nPosX, SCROW nPosY, Point* pLogicPos = NULL,
- BOOL bLink = FALSE, BOOL bAllowDialogs = FALSE );
+ sal_Bool bLink = false, sal_Bool bAllowDialogs = false );
- BOOL PasteFile( const Point&, const String&, BOOL bLink=FALSE );
- BOOL PasteObject( const Point&, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >&, const Size* = NULL, const Graphic* = NULL, const ::rtl::OUString& = ::rtl::OUString(), sal_Int64 nAspect = ::com::sun::star::embed::Aspects::MSOLE_CONTENT );
- BOOL PasteBitmap( const Point&, const Bitmap& );
- BOOL PasteMetaFile( const Point&, const GDIMetaFile& );
- BOOL PasteGraphic( const Point& rPos, const Graphic& rGraphic,
+ sal_Bool PasteFile( const Point&, const String&, sal_Bool bLink=false );
+ sal_Bool PasteObject( const Point&, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >&, const Size* = NULL, const Graphic* = NULL, const ::rtl::OUString& = ::rtl::OUString(), sal_Int64 nAspect = ::com::sun::star::embed::Aspects::MSOLE_CONTENT );
+ sal_Bool PasteBitmap( const Point&, const Bitmap& );
+ sal_Bool PasteMetaFile( const Point&, const GDIMetaFile& );
+ sal_Bool PasteGraphic( const Point& rPos, const Graphic& rGraphic,
const String& rFile, const String& rFilter );
- BOOL PasteBookmark( ULONG nFormatId,
+ sal_Bool PasteBookmark( sal_uLong nFormatId,
const ::com::sun::star::uno::Reference<
::com::sun::star::datatransfer::XTransferable >& rxTransferable,
SCCOL nPosX, SCROW nPosY );
- BOOL PasteDDE( const ::com::sun::star::uno::Reference<
+ sal_Bool PasteDDE( const ::com::sun::star::uno::Reference<
::com::sun::star::datatransfer::XTransferable >& rxTransferable );
- BOOL ApplyGraphicToObject( SdrObject* pObject, const Graphic& rGraphic );
+ sal_Bool ApplyGraphicToObject( SdrObject* pObject, const Graphic& rGraphic );
void InsertBookmark( const String& rDescription, const String& rURL,
SCCOL nPosX, SCROW nPosY, const String* pTarget = NULL,
- BOOL bTryReplace = FALSE );
- BOOL HasBookmarkAtCursor( SvxHyperlinkItem* pContent );
+ sal_Bool bTryReplace = false );
+ sal_Bool HasBookmarkAtCursor( SvxHyperlinkItem* pContent );
long DropRequestHdl( Exchange* pExchange );
- BOOL MoveBlockTo( const ScRange& rSource, const ScAddress& rDestPos,
- BOOL bCut, BOOL bRecord, BOOL bPaint, BOOL bApi );
+ sal_Bool MoveBlockTo( const ScRange& rSource, const ScAddress& rDestPos,
+ sal_Bool bCut, sal_Bool bRecord, sal_Bool bPaint, sal_Bool bApi );
- BOOL LinkBlock( const ScRange& rSource, const ScAddress& rDestPos, BOOL bApi );
+ sal_Bool LinkBlock( const ScRange& rSource, const ScAddress& rDestPos, sal_Bool bApi );
- void CreateNames( USHORT nFlags );
- USHORT GetCreateNameFlags();
+ void CreateNames( sal_uInt16 nFlags );
+ sal_uInt16 GetCreateNameFlags();
void InsertNameList();
- BOOL InsertName( const String& rName, const String& rSymbol,
+ sal_Bool InsertName( const String& rName, const String& rSymbol,
const String& rType );
void ApplyAttributes( const SfxItemSet* pDialogSet, const SfxItemSet* pOldSet,
- BOOL bRecord = TRUE );
+ sal_Bool bRecord = sal_True );
void ApplyAttr( const SfxPoolItem& rAttrItem );
void ApplySelectionPattern( const ScPatternAttr& rAttr,
- BOOL bRecord = TRUE,
- BOOL bCursorOnly = FALSE );
+ sal_Bool bRecord = sal_True,
+ sal_Bool bCursorOnly = false );
void ApplyPatternLines( const ScPatternAttr& rAttr,
const SvxBoxItem* pNewOuter,
- const SvxBoxInfoItem* pNewInner, BOOL bRecord = TRUE );
+ const SvxBoxInfoItem* pNewInner, sal_Bool bRecord = sal_True );
void ApplyUserItemSet( const SfxItemSet& rItemSet );
const SfxStyleSheet* GetStyleSheetFromMarked();
void SetStyleSheetToMarked( SfxStyleSheet* pStyleSheet,
- BOOL bRecord = TRUE );
- void RemoveStyleSheetInUse( SfxStyleSheet* pStyleSheet );
- void UpdateStyleSheetInUse( SfxStyleSheet* pStyleSheet );
+ sal_Bool bRecord = sal_True );
+ void RemoveStyleSheetInUse( const SfxStyleSheetBase* pStyleSheet );
+ void UpdateStyleSheetInUse( const SfxStyleSheetBase* pStyleSheet );
- void SetNumberFormat( short nFormatType, ULONG nAdd = 0 );
+ void SetNumberFormat( short nFormatType, sal_uLong nAdd = 0 );
void SetNumFmtByStr( const String& rCode );
- void ChangeNumFmtDecimals( BOOL bIncrement );
+ void ChangeNumFmtDecimals( sal_Bool bIncrement );
void SetConditionalFormat( const ScConditionalFormat& rNew );
void SetValidation( const ScValidationData& rNew );
- void ChangeIndent( BOOL bIncrement );
+ void ChangeIndent( sal_Bool bIncrement );
void ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect );
void Protect( SCTAB nTab, const String& rPassword );
- BOOL Unprotect( SCTAB nTab, const String& rPassword );
+ sal_Bool Unprotect( SCTAB nTab, const String& rPassword );
- void DeleteCells( DelCellCmd eCmd, BOOL bRecord = TRUE );
- BOOL InsertCells( InsCellCmd eCmd, BOOL bRecord = TRUE, BOOL bPartOfPaste = FALSE );
- void DeleteMulti( BOOL bRows, BOOL bRecord = TRUE );
+ void DeleteCells( DelCellCmd eCmd, sal_Bool bRecord = sal_True );
+ sal_Bool InsertCells( InsCellCmd eCmd, sal_Bool bRecord = sal_True, sal_Bool bPartOfPaste = false );
+ void DeleteMulti( sal_Bool bRows, sal_Bool bRecord = sal_True );
- void DeleteContents( USHORT nFlags, BOOL bRecord = TRUE );
+ void DeleteContents( sal_uInt16 nFlags, sal_Bool bRecord = sal_True );
- void SetWidthOrHeight( BOOL bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges,
- ScSizeMode eMode, USHORT nSizeTwips,
- BOOL bRecord = TRUE, BOOL bPaint = TRUE,
+ void SetWidthOrHeight( sal_Bool bWidth, SCCOLROW nRangeCnt, SCCOLROW* pRanges,
+ ScSizeMode eMode, sal_uInt16 nSizeTwips,
+ sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True,
ScMarkData* pMarkData = NULL );
- void SetMarkedWidthOrHeight( BOOL bWidth, ScSizeMode eMode, USHORT nSizeTwips,
- BOOL bRecord = TRUE, BOOL bPaint = TRUE );
- void ShowMarkedColumns( BOOL bShow, BOOL bRecord = TRUE );
- void ShowMarkedRows( BOOL bShow, BOOL bRecord = TRUE );
+ void SetMarkedWidthOrHeight( sal_Bool bWidth, ScSizeMode eMode, sal_uInt16 nSizeTwips,
+ sal_Bool bRecord = sal_True, sal_Bool bPaint = sal_True );
+ void ShowMarkedColumns( sal_Bool bShow, sal_Bool bRecord = sal_True );
+ void ShowMarkedRows( sal_Bool bShow, sal_Bool bRecord = sal_True );
- BOOL AdjustBlockHeight( BOOL bPaint = TRUE, ScMarkData* pMarkData = NULL );
- BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, BOOL bPaint = TRUE );
+ sal_Bool AdjustBlockHeight( sal_Bool bPaint = sal_True, ScMarkData* pMarkData = NULL );
+ sal_Bool AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, sal_Bool bPaint = sal_True );
- void ModifyCellSize( ScDirection eDir, BOOL bOptimal );
+ void ModifyCellSize( ScDirection eDir, sal_Bool bOptimal );
- SC_DLLPUBLIC void InsertPageBreak( BOOL bColumn, BOOL bRecord = TRUE,
+ SC_DLLPUBLIC void InsertPageBreak( sal_Bool bColumn, sal_Bool bRecord = sal_True,
const ScAddress* pPos = NULL,
- BOOL bSetModified = TRUE );
- SC_DLLPUBLIC void DeletePageBreak( BOOL bColumn, BOOL bRecord = TRUE,
+ sal_Bool bSetModified = sal_True );
+ SC_DLLPUBLIC void DeletePageBreak( sal_Bool bColumn, sal_Bool bRecord = sal_True,
const ScAddress* pPos = NULL,
- BOOL bSetModified = TRUE );
+ sal_Bool bSetModified = sal_True );
void RemoveManualBreaks();
- void SetPrintZoom(USHORT nScale, USHORT nPages);
+ void SetPrintZoom(sal_uInt16 nScale, sal_uInt16 nPages);
void AdjustPrintZoom();
- BOOL TestMergeCells();
- BOOL TestRemoveMerge();
+ sal_Bool TestMergeCells();
+ sal_Bool TestRemoveMerge();
- BOOL MergeCells( BOOL bApi, BOOL& rDoContents, BOOL bRecord = TRUE, BOOL bCenter = FALSE );
- BOOL RemoveMerge( BOOL bRecord = TRUE );
+ sal_Bool MergeCells( sal_Bool bApi, sal_Bool& rDoContents, sal_Bool bRecord = true, sal_Bool bCenter = false );
+ sal_Bool RemoveMerge( sal_Bool bRecord = true );
- void FillSimple( FillDir eDir, BOOL bRecord = TRUE );
+ void FillSimple( FillDir eDir, sal_Bool bRecord = sal_True );
void FillSeries( FillDir eDir, FillCmd eCmd, FillDateCmd eDateCmd,
- double fStart, double fStep, double fMax, BOOL bRecord = TRUE );
+ double fStart, double fStep, double fMax, sal_Bool bRecord = sal_True );
void FillAuto( FillDir eDir, SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow, ULONG nCount, BOOL bRecord = TRUE );
+ SCCOL nEndCol, SCROW nEndRow, sal_uLong nCount, sal_Bool bRecord = sal_True );
void FillCrossDblClick();
void TransliterateText( sal_Int32 nType );
ScAutoFormatData* CreateAutoFormatData();
- void AutoFormat( USHORT nFormatNo, BOOL bRecord = TRUE );
+ void AutoFormat( sal_uInt16 nFormatNo, sal_Bool bRecord = sal_True );
void SearchAndReplace( const SvxSearchItem* pSearchItem,
- BOOL bAddUndo, BOOL bIsApi );
+ sal_Bool bAddUndo, sal_Bool bIsApi );
void Solve( const ScSolveParam& rParam );
- void TabOp( const ScTabOpParam& rParam, BOOL bRecord = TRUE );
+ void TabOp( const ScTabOpParam& rParam, sal_Bool bRecord = sal_True );
- BOOL InsertTable( const String& rName, SCTAB nTabNr, BOOL bRecord = TRUE );
- BOOL InsertTables(SvStrings *pNames, SCTAB nTab, SCTAB nCount, BOOL bRecord = TRUE);
+ sal_Bool InsertTable( const String& rName, SCTAB nTabNr, sal_Bool bRecord = sal_True );
+ sal_Bool InsertTables(SvStrings *pNames, SCTAB nTab, SCTAB nCount, sal_Bool bRecord = sal_True);
- BOOL AppendTable( const String& rName, BOOL bRecord = TRUE );
+ sal_Bool AppendTable( const String& rName, sal_Bool bRecord = sal_True );
- BOOL DeleteTable( SCTAB nTabNr, BOOL bRecord = TRUE );
- BOOL DeleteTables(const std::vector<SCTAB>& TheTabs, BOOL bRecord = TRUE );
+ sal_Bool DeleteTable( SCTAB nTabNr, sal_Bool bRecord = true );
+ sal_Bool DeleteTables(const std::vector<SCTAB>& TheTabs, sal_Bool bRecord = true );
- BOOL RenameTable( const String& rName, SCTAB nTabNr );
- void MoveTable( USHORT nDestDocNo, SCTAB nDestTab, BOOL bCopy, const String* pNewTabName = NULL );
+ sal_Bool RenameTable( const String& rName, SCTAB nTabNr );
+ void MoveTable( sal_uInt16 nDestDocNo, SCTAB nDestTab, sal_Bool bCopy, const String* pNewTabName = NULL );
void ImportTables( ScDocShell* pSrcShell,
SCTAB nCount, const SCTAB* pSrcTabs,
- BOOL bLink,SCTAB nTab);
+ sal_Bool bLink,SCTAB nTab);
bool SetTabBgColor( const Color& rColor, SCTAB nTabNr );
bool SetTabBgColor( ScUndoTabColorInfo::List& rUndoSetTabBgColorInfoList );
@@ -280,13 +281,13 @@ public:
const String& rTabName );
void InsertAreaLink( const String& rFile,
const String& rFilter, const String& rOptions,
- const String& rSource, ULONG nRefresh );
+ const String& rSource, sal_uLong nRefresh );
void ShowTable( const String& rName );
void HideTable( SCTAB nTabNr );
void MakeScenario( const String& rName, const String& rComment,
- const Color& rColor, USHORT nFlags );
+ const Color& rColor, sal_uInt16 nFlags );
void ExtendScenario();
void UseScenario( const String& rName );
@@ -298,22 +299,22 @@ public:
void InsertDraw();
void SetSelectionFrameLines( const SvxBorderLine* pLine,
- BOOL bColorOnly );
+ sal_Bool bColorOnly );
void SetNoteText( const ScAddress& rPos, const String& rNoteText );
void ReplaceNote( const ScAddress& rPos, const String& rNoteText, const String* pAuthor, const String* pDate );
- void DoRefConversion( BOOL bRecord = TRUE );
+ void DoRefConversion( sal_Bool bRecord = sal_True );
- void DoHangulHanjaConversion( BOOL bRecord = TRUE );
- void DoThesaurus( BOOL bRecord = TRUE );
+ void DoHangulHanjaConversion( sal_Bool bRecord = true );
+ void DoThesaurus( sal_Bool bRecord = true );
/** Generic implementation of sheet conversion functions. */
- void DoSheetConversion( const ScConversionParam& rParam, BOOL bRecord = TRUE );
+ void DoSheetConversion( const ScConversionParam& rParam, sal_Bool bRecord = sal_True );
- void SetPrintRanges( BOOL bEntireSheet,
+ void SetPrintRanges( sal_Bool bEntireSheet,
const String* pPrint,
const String* pRepCol, const String* pRepRow,
- BOOL bAddPrint );
+ sal_Bool bAddPrint );
void DetectiveAddPred();
void DetectiveDelPred();
@@ -332,8 +333,8 @@ public:
inline void HideNote() { ShowNote( false ); }
void EditNote();
- void ForgetFormatArea() { bFormatValid = FALSE; }
- BOOL SelectionEditable( BOOL* pOnlyNotBecauseOfMatrix = NULL );
+ void ForgetFormatArea() { bFormatValid = false; }
+ sal_Bool SelectionEditable( sal_Bool* pOnlyNotBecauseOfMatrix = NULL );
// Amelia Wang
SC_DLLPUBLIC void DataFormPutData( SCROW nCurrentRow ,
@@ -347,7 +348,7 @@ protected:
void UpdateLineAttrs( SvxBorderLine& rLine,
const SvxBorderLine* pDestLine,
const SvxBorderLine* pSrcLine,
- BOOL bColor );
+ sal_Bool bColor );
private:
@@ -359,12 +360,12 @@ private:
InsCellCmd eMoveMode, sal_uInt16 nCondFlags, sal_uInt16 nUndoFlags );
void PostPasteFromClip(const ScRange& rPasteRange, const ScMarkData& rMark);
- USHORT GetOptimalColWidth( SCCOL nCol, SCTAB nTab, BOOL bFormula );
+ sal_uInt16 GetOptimalColWidth( SCCOL nCol, SCTAB nTab, sal_Bool bFormula );
void StartFormatArea();
- BOOL TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, BOOL bAttrChanged );
+ sal_Bool TestFormatArea( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Bool bAttrChanged );
void DoAutoAttributes( SCCOL nCol, SCROW nRow, SCTAB nTab,
- BOOL bAttrChanged, BOOL bAddUndo );
+ sal_Bool bAttrChanged, sal_Bool bAddUndo );
void MarkAndJumpToRanges(const ScRangeList& rRanges);
};
diff --git a/sc/source/ui/inc/viewutil.hxx b/sc/source/ui/inc/viewutil.hxx
index 20f61b334a5c..d01faeae35ff 100644
--- a/sc/source/ui/inc/viewutil.hxx
+++ b/sc/source/ui/inc/viewutil.hxx
@@ -53,21 +53,21 @@ enum ScUpdateMode { SC_UPDATE_ALL, SC_UPDATE_CHANGED, SC_UPDATE_MARKS };
class ScViewUtil // static Methoden
{
public:
- static BOOL ExecuteCharMap( const SvxFontItem& rOldFont,
+ static sal_Bool ExecuteCharMap( const SvxFontItem& rOldFont,
SfxViewFrame& rFrame,
SvxFontItem& rNewFont,
String& rString );
- static BOOL IsActionShown( const ScChangeAction& rAction,
+ static sal_Bool IsActionShown( const ScChangeAction& rAction,
const ScChangeViewSettings& rSettings,
ScDocument& rDocument );
static void PutItemScript( SfxItemSet& rShellSet, const SfxItemSet& rCoreSet,
- USHORT nWhichId, USHORT nScript );
+ sal_uInt16 nWhichId, sal_uInt16 nScript );
- static USHORT GetEffLanguage( ScDocument* pDoc, const ScAddress& rPos );
+ static sal_uInt16 GetEffLanguage( ScDocument* pDoc, const ScAddress& rPos );
- static sal_Int32 GetTransliterationType( USHORT nSlotID );
+ static sal_Int32 GetTransliterationType( sal_uInt16 nSlotID );
static bool HasFiltered( const ScRange& rRange, ScDocument* pDoc );
/** Fit a range to cover nRows number of unfiltered rows.
@@ -75,7 +75,7 @@ public:
static bool FitToUnfilteredRows( ScRange & rRange, ScDocument * pDoc, size_t nRows );
static void UnmarkFiltered( ScMarkData& rMark, ScDocument* pDoc );
- static void HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, USHORT nSlotId );
+ static void HideDisabledSlot( SfxItemSet& rSet, SfxBindings& rBindings, sal_uInt16 nSlotId );
/** Returns true, if the passed view shell is in full screen mode. */
static bool IsFullScreen( SfxViewShell& rViewShell );
@@ -103,7 +103,7 @@ private:
public:
ScUpdateRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
void SetNew( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
- BOOL GetDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
+ sal_Bool GetDiff( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
};