summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-14 11:21:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-14 11:21:10 +0100
commit7c1415e06ff480c5df75db2451ea522b0150f9b2 (patch)
tree8ee773de8e4d9e49219dd92537d90d7e69def3b5 /sfx2
parenta31abd3d203ac8de4e045492fed53ca706bb24d1 (diff)
Remove unused bForBrowsing parameter
Change-Id: I32b458390130e9ed83af0831069329ac8f672d67
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objxtor.cxx7
-rw-r--r--sfx2/source/view/frame.cxx8
-rw-r--r--sfx2/source/view/viewsh.cxx3
3 files changed, 8 insertions, 10 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index d65711d02ede..e552c4be5013 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -567,9 +567,8 @@ struct BoolEnv_Impl
bool SfxObjectShell::PrepareClose
(
- sal_Bool bUI, // sal_True: Dialog and so on is allowed
+ sal_Bool bUI // sal_True: Dialog and so on is allowed
// sal_False: silent-mode
- sal_Bool bForBrowsing
)
{
if( pImp->bInPrepareClose || pImp->bPreparedForClose )
@@ -581,7 +580,7 @@ bool SfxObjectShell::PrepareClose
return false;
SfxViewFrame* pFirst = SfxViewFrame::GetFirst( this );
- if( pFirst && !pFirst->GetFrame().PrepareClose_Impl( bUI, bForBrowsing ) )
+ if( pFirst && !pFirst->GetFrame().PrepareClose_Impl( bUI ) )
return false;
// prepare views for closing
@@ -591,7 +590,7 @@ bool SfxObjectShell::PrepareClose
DBG_ASSERT(pFrm->GetViewShell(),"No Shell");
if ( pFrm->GetViewShell() )
{
- bool nRet = pFrm->GetViewShell()->PrepareClose( bUI, bForBrowsing );
+ bool nRet = pFrm->GetViewShell()->PrepareClose( bUI );
if ( !nRet )
return nRet;
}
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index e4fb67ff9f82..350affb89a7e 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -193,7 +193,7 @@ sal_Bool SfxFrame::DocIsModified_Impl()
return sal_False;
}
-bool SfxFrame::PrepareClose_Impl( sal_Bool bUI, sal_Bool bForBrowsing )
+bool SfxFrame::PrepareClose_Impl( sal_Bool bUI )
{
bool nRet = true;
@@ -218,17 +218,17 @@ bool SfxFrame::PrepareClose_Impl( sal_Bool bUI, sal_Bool bForBrowsing )
if ( bOther )
// if there are other views only the current view of this frame must be asked
- nRet = GetCurrentViewFrame()->GetViewShell()->PrepareClose( bUI, bForBrowsing );
+ nRet = GetCurrentViewFrame()->GetViewShell()->PrepareClose( bUI );
else
// otherwise ask the document
- nRet = pCur->PrepareClose( bUI, bForBrowsing );
+ nRet = pCur->PrepareClose( bUI );
}
if ( nRet )
{
// if this frame has child frames, ask them too
for( sal_uInt16 nPos = GetChildFrameCount(); nRet && nPos--; )
- nRet = (*pChildArr)[ nPos ]->PrepareClose_Impl( bUI, bForBrowsing );
+ nRet = (*pChildArr)[ nPos ]->PrepareClose_Impl( bUI );
}
pImp->bPrepClosing = sal_False;
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index ffcd7408d639..3d5199df34e3 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1288,8 +1288,7 @@ SfxViewShell::~SfxViewShell()
bool SfxViewShell::PrepareClose
(
- sal_Bool bUI, // TRUE: Allow Dialog and so on, FALSE: silent-mode
- sal_Bool /*bForBrowsing*/
+ sal_Bool bUI // TRUE: Allow Dialog and so on, FALSE: silent-mode
)
{
SfxPrinter *pPrinter = GetPrinter();