summaryrefslogtreecommitdiff
path: root/include/unotools/ucbstreamhelper.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-12 12:07:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-12 22:18:13 +0200
commit7a092e254111a2d98446e7140ef24c652c245bfa (patch)
treee35e013e71ffbc31eb3c1dd990d872d140514b17 /include/unotools/ucbstreamhelper.hxx
parent1453c2c8f13bac64ecd1981af7cebf1c421808ac (diff)
Resolves: tdf#124698 bubble down parent for modal dialog
Change-Id: If03c6ff8043bb39f2efdf4cde19d8277886bf36f Reviewed-on: https://gerrit.libreoffice.org/70658 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/unotools/ucbstreamhelper.hxx')
-rw-r--r--include/unotools/ucbstreamhelper.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/unotools/ucbstreamhelper.hxx b/include/unotools/ucbstreamhelper.hxx
index fd0a8cd13bad..0d7d867d21f6 100644
--- a/include/unotools/ucbstreamhelper.hxx
+++ b/include/unotools/ucbstreamhelper.hxx
@@ -19,6 +19,8 @@
#ifndef INCLUDED_UNOTOOLS_UCBSTREAMHELPER_HXX
#define INCLUDED_UNOTOOLS_UCBSTREAMHELPER_HXX
+#include <com/sun/star/awt/XWindow.hpp>
+
#include <unotools/unotoolsdllapi.h>
#include <tools/stream.hxx>
@@ -45,9 +47,9 @@ namespace utl
class UNOTOOLS_DLLPUBLIC UcbStreamHelper
{
public:
- static std::unique_ptr<SvStream> CreateStream( const OUString& rFileName, StreamMode eOpenMode );
- static std::unique_ptr<SvStream> CreateStream( const OUString& rFileName, StreamMode eOpenMode,
- bool bFileExists );
+ static std::unique_ptr<SvStream> CreateStream(const OUString& rFileName, StreamMode eOpenMode, css::uno::Reference<css::awt::XWindow> xParentWin = nullptr);
+ static std::unique_ptr<SvStream> CreateStream(const OUString& rFileName, StreamMode eOpenMode,
+ bool bFileExists, css::uno::Reference<css::awt::XWindow> xParentWin = nullptr);
static std::unique_ptr<SvStream> CreateStream( const css::uno::Reference < css::io::XInputStream >& xStream );
static std::unique_ptr<SvStream> CreateStream( const css::uno::Reference < css::io::XStream >& xStream );
static std::unique_ptr<SvStream> CreateStream( const css::uno::Reference < css::io::XInputStream >& xStream, bool bCloseStream );