LibreOffice Module sot (master) 1
stgole.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#ifndef INCLUDED_SOT_SOURCE_SDSTOR_STGOLE_HXX
21#define INCLUDED_SOT_SOURCE_SDSTOR_STGOLE_HXX
22
23#include <memory>
24
25#include <sot/stg.hxx>
26
28{
29 std::unique_ptr<BaseStorageStream> m_pStrm;
30 virtual std::size_t GetData(void* pData, std::size_t nSize) override;
31 virtual std::size_t PutData(const void* pData, std::size_t nSize) override;
32 virtual sal_uInt64 SeekPos( sal_uInt64 nPos ) override;
33 virtual void FlushData() override;
34public:
35 StgInternalStream( BaseStorage&, const OUString&, bool );
36 virtual ~StgInternalStream() override;
37 void Commit();
38};
39
40// standard stream "\1CompObj"
41
43{
45 OUString m_aUserName;
47public:
49 ClsId& GetClsId() { return m_aClsId; }
50 OUString& GetUserName() { return m_aUserName; }
52 bool Load();
53 bool Store();
54};
55
56// standard stream "\1Ole"
57
59{
60public:
61 explicit StgOleStream( BaseStorage& );
62 bool Store();
63};
64
65#endif
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SotClipboardFormatId m_nCbFormat
Definition: stgole.hxx:46
ClsId & GetClsId()
Definition: stgole.hxx:49
StgCompObjStream(BaseStorage &, bool)
Definition: stgole.cxx:93
SotClipboardFormatId & GetCbFormat()
Definition: stgole.hxx:51
OUString & GetUserName()
Definition: stgole.hxx:50
ClsId m_aClsId
Definition: stgole.hxx:44
OUString m_aUserName
Definition: stgole.hxx:45
StgInternalStream(BaseStorage &, const OUString &, bool)
Definition: stgole.cxx:30
std::unique_ptr< BaseStorageStream > m_pStrm
Definition: stgole.hxx:29
virtual std::size_t GetData(void *pData, std::size_t nSize) override
Definition: stgole.cxx:47
virtual sal_uInt64 SeekPos(sal_uInt64 nPos) override
Definition: stgole.cxx:71
virtual ~StgInternalStream() override
Definition: stgole.cxx:43
virtual void FlushData() override
Definition: stgole.cxx:76
virtual std::size_t PutData(const void *pData, std::size_t nSize) override
Definition: stgole.cxx:59
bool Store()
Definition: stgole.cxx:165
StgOleStream(BaseStorage &)
Definition: stgole.cxx:160
SotClipboardFormatId
Definition: formats.hxx:28