summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorPalenik Mihály <palenik.mihaly@gmail.com>2013-07-16 16:37:36 +0200
committerAndras Timar <atimar@suse.com>2013-07-16 18:40:45 +0000
commit9c0a390489dd99aee4beaf73845740776b8083aa (patch)
tree6c833c56639e77c7fe6e7fcd6c7be9a39d96c200 /include/tools
parent22adf4e70a4b4a8d188909f39b386e738e3cd37e (diff)
fdo#63133: Write tools/tempfile.hxx out
I deleted TempFile class and changed it to utl::TempFile class -which in unotools/tempfile.hxx- in the followings: Storage, StgTmpStrm, SwXMailMerge classes; and RenderAsEMF function. I modified header in precompiled_sw.hxx. Change-Id: I3dae5333dc42538e1b905f6a6bbc85534c591dc1 Reviewed-on: https://gerrit.libreoffice.org/4938 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/tempfile.hxx66
1 files changed, 0 insertions, 66 deletions
diff --git a/include/tools/tempfile.hxx b/include/tools/tempfile.hxx
deleted file mode 100644
index 8d43c18a6df9..000000000000
--- a/include/tools/tempfile.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef _TOOLS_TEMPFILE_HXX
-#define _TOOLS_TEMPFILE_HXX
-
-#include <rtl/ustring.hxx>
-#include "tools/toolsdllapi.h"
-
-struct TempFile_Impl;
-class TOOLS_DLLPUBLIC TempFile
-{
- TempFile_Impl* pImp;
- bool bKillingFileEnabled;
-
-public:
- /** Create a temporary file in the default tempfile folder. */
- TempFile();
-
- /** Create a temporary file in the default tempfile folder; its name starts
- with some given characters followed by a counter ( example:
- rLeadingChars="abc" means "abc0", "abc1" and so on, depending on
- existing files in that folder ).
-
- The extension string may be f.e. ".txt" or "", if no extension string is
- given, ".tmp" is used.
- */
- TempFile( const OUString& rLeadingChars, const OUString* pExtension=NULL );
-
- /** TempFile will be removed from disk in dtor if EnableKillingTempFile was
- called before. TempDirs will be removed recursively in that case. */
- ~TempFile();
-
- bool IsValid() const;
-
- /** Returns the real name of the tempfile in file URL scheme. */
- OUString GetName() const;
-
- /** If enabled the file will be removed from disk when the dtor is called
- (default is not enabled) */
- void EnableKillingFile( bool bEnable=true ) { bKillingFileEnabled = bEnable; }
-
- bool IsKillingFileEnabled() const { return bKillingFileEnabled; }
-
- /** Only create a name for a temporary file that would be valid at that moment. */
- static OUString CreateTempName();
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */