summaryrefslogtreecommitdiff
path: root/sw/source/ui/dochdl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-17 17:11:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-17 18:45:16 +0100
commitc963d7e642c24f40c19fb9dc227db5da96728c12 (patch)
tree81fbcb736dad59a7e0d3bcd8f9e6b84e99bb5607 /sw/source/ui/dochdl
parent8711842d1b861544ed4a934f675adbed7cf83f32 (diff)
bool improvements
Change-Id: I9324483db587be43238af79c2148d724397a4622
Diffstat (limited to 'sw/source/ui/dochdl')
-rw-r--r--sw/source/ui/dochdl/swdtflvr.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx
index 1182eca1d056..00be9a021642 100644
--- a/sw/source/ui/dochdl/swdtflvr.cxx
+++ b/sw/source/ui/dochdl/swdtflvr.cxx
@@ -2731,12 +2731,12 @@ sal_Bool SwTransferable::IsPasteSpecial( const SwWrtShell& rWrtShell,
return aClipboardFmtItem.Count() > 0;
}
-int SwTransferable::PasteFormat( SwWrtShell& rSh,
+bool SwTransferable::PasteFormat( SwWrtShell& rSh,
TransferableDataHelper& rData,
sal_uLong nFormat )
{
SwWait aWait( *rSh.GetView().GetDocShell(), false );
- int nRet = 0;
+ bool nRet = false;
sal_uLong nPrivateFmt = FORMAT_PRIVATE;
SwTransferable *pClipboard = GetSwTransferable( rData );
@@ -2773,7 +2773,7 @@ int SwTransferable::PasteFormat( SwWrtShell& rSh,
return nRet;
}
-int SwTransferable::_TestAllowedFormat( const TransferableDataHelper& rData,
+bool SwTransferable::_TestAllowedFormat( const TransferableDataHelper& rData,
sal_uLong nFormat, sal_uInt16 nDestination )
{
sal_uInt16 nAction = EXCHG_INOUT_ACTION_NONE, nEventAction;
@@ -2811,15 +2811,15 @@ static sal_uInt16 aPasteSpecialIds[] =
0
};
-int SwTransferable::PasteUnformatted( SwWrtShell& rSh, TransferableDataHelper& rData )
+bool SwTransferable::PasteUnformatted( SwWrtShell& rSh, TransferableDataHelper& rData )
{
// Plain text == unformatted
return SwTransferable::PasteFormat( rSh, rData, SOT_FORMAT_STRING );
}
-int SwTransferable::PasteSpecial( SwWrtShell& rSh, TransferableDataHelper& rData, sal_uLong& rFormatUsed )
+bool SwTransferable::PasteSpecial( SwWrtShell& rSh, TransferableDataHelper& rData, sal_uLong& rFormatUsed )
{
- int nRet = 0;
+ bool nRet = false;
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
SfxAbstractPasteDialog* pDlg = pFact->CreatePasteDialog( &rSh.GetView().GetEditWin() );