summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/drawfunc/fuins1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/drawfunc/fuins1.cxx')
-rw-r--r--sc/source/ui/drawfunc/fuins1.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/ui/drawfunc/fuins1.cxx b/sc/source/ui/drawfunc/fuins1.cxx
index 53a44f058dda..4cc08ececd49 100644
--- a/sc/source/ui/drawfunc/fuins1.cxx
+++ b/sc/source/ui/drawfunc/fuins1.cxx
@@ -106,7 +106,7 @@ void SC_DLLPUBLIC ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& r
return;
Size aPageSize = rPage;
- BOOL bNegative = aPageSize.Width() < 0;
+ sal_Bool bNegative = aPageSize.Width() < 0;
if ( bNegative )
{
// make everything positive temporarily
@@ -148,7 +148,7 @@ void SC_DLLPUBLIC ScLimitSizeOnDrawPage( Size& rSize, Point& rPos, const Size& r
//------------------------------------------------------------------------
void lcl_InsertGraphic( const Graphic& rGraphic,
- const String& rFileName, const String& rFilterName, BOOL bAsLink, BOOL bApi,
+ const String& rFileName, const String& rFilterName, sal_Bool bAsLink, sal_Bool bApi,
ScTabViewShell* pViewSh, Window* pWindow, SdrView* pView )
{
// #74778# set the size so the graphic has its original pixel size
@@ -193,7 +193,7 @@ void lcl_InsertGraphic( const Graphic& rGraphic,
pObj->SetName(aName);
// don't select if from (dispatch) API, to allow subsequent cell operations
- ULONG nInsOptions = bApi ? SDRINSERT_DONTMARK : 0;
+ sal_uLong nInsOptions = bApi ? SDRINSERT_DONTMARK : 0;
pView->InsertObjectAtView( pObj, *pPV, nInsOptions );
// #118522# SetGraphicLink has to be used after inserting the object,
@@ -256,23 +256,23 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
const SfxItemSet* pReqArgs = rReq.GetArgs();
const SfxPoolItem* pItem;
if ( pReqArgs &&
- pReqArgs->GetItemState( SID_INSERT_GRAPHIC, TRUE, &pItem ) == SFX_ITEM_SET )
+ pReqArgs->GetItemState( SID_INSERT_GRAPHIC, sal_True, &pItem ) == SFX_ITEM_SET )
{
String aFileName = ((const SfxStringItem*)pItem)->GetValue();
String aFilterName;
- if ( pReqArgs->GetItemState( FN_PARAM_FILTER, TRUE, &pItem ) == SFX_ITEM_SET )
+ if ( pReqArgs->GetItemState( FN_PARAM_FILTER, sal_True, &pItem ) == SFX_ITEM_SET )
aFilterName = ((const SfxStringItem*)pItem)->GetValue();
- BOOL bAsLink = FALSE;
- if ( pReqArgs->GetItemState( FN_PARAM_1, TRUE, &pItem ) == SFX_ITEM_SET )
+ sal_Bool bAsLink = sal_False;
+ if ( pReqArgs->GetItemState( FN_PARAM_1, sal_True, &pItem ) == SFX_ITEM_SET )
bAsLink = ((const SfxBoolItem*)pItem)->GetValue();
Graphic aGraphic;
int nError = GraphicFilter::LoadGraphic( aFileName, aFilterName, aGraphic, GraphicFilter::GetGraphicFilter() );
if ( nError == GRFILTER_OK )
{
- lcl_InsertGraphic( aGraphic, aFileName, aFilterName, bAsLink, TRUE, pViewSh, pWindow, pView );
+ lcl_InsertGraphic( aGraphic, aFileName, aFilterName, bAsLink, sal_True, pViewSh, pWindow, pView );
}
}
else
@@ -287,9 +287,9 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
{
String aFileName = aDlg.GetPath();
String aFilterName = aDlg.GetCurrentFilter();
- BOOL bAsLink = aDlg.IsAsLink();
+ sal_Bool bAsLink = aDlg.IsAsLink();
- lcl_InsertGraphic( aGraphic, aFileName, aFilterName, bAsLink, FALSE, pViewSh, pWindow, pView );
+ lcl_InsertGraphic( aGraphic, aFileName, aFilterName, bAsLink, sal_False, pViewSh, pWindow, pView );
// append items for recording
rReq.AppendItem( SfxStringItem( SID_INSERT_GRAPHIC, aFileName ) );
@@ -302,7 +302,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
// error is handled in SvxOpenGraphicDialog::GetGraphic
#if 0
- USHORT nRes = 0;
+ sal_uInt16 nRes = 0;
switch ( nError )
{
case GRFILTER_OPENERROR: nRes = SCSTR_GRFILTER_OPENERROR; break;
@@ -319,7 +319,7 @@ FuInsertGraphic::FuInsertGraphic( ScTabViewShell* pViewSh,
}
else
{
- ULONG nStreamError = GetGrfFilter()->GetLastError().nStreamError;
+ sal_uLong nStreamError = GetGrfFilter()->GetLastError().nStreamError;
if( ERRCODE_NONE != nStreamError )
ErrorHandler::HandleError( nStreamError );
}