LibreOffice Module unotools (master) 1
ucbhelper.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_UNOTOOLS_UCBHELPER_HXX
21#define INCLUDED_UNOTOOLS_UCBHELPER_HXX
22
23#include <sal/config.h>
24
26#include <rtl/ustring.hxx>
27#include <com/sun/star/uno/Reference.hxx>
28
29namespace com::sun::star {
30 namespace uno {
31 class Any;
32 class XComponentContext;
33 }
34 namespace ucb{
35 class XCommandEnvironment;
36 }
37}
38namespace ucbhelper { class Content; }
39
41
42UNOTOOLS_DLLPUBLIC bool IsDocument(OUString const & url);
43
44UNOTOOLS_DLLPUBLIC bool IsFolder(OUString const & url);
45
51 OUString const & url, OUString * title);
52
53UNOTOOLS_DLLPUBLIC bool Kill(OUString const & url);
54
56 OUString const & url, OUString const & property);
57
59 ucbhelper::Content & parent, OUString const & title,
61
64 const css::uno::Reference< css::uno::XComponentContext >& xCtx,
65 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv,
66 std::u16string_view rFolder, ucbhelper::Content & result) noexcept;
67
69 OUString const & younger, OUString const & older);
70
71UNOTOOLS_DLLPUBLIC bool Exists(OUString const & url);
72
74 OUString const & parent, OUString const & child);
75
77 OUString const & url1, OUString const & url2);
78
107 css::uno::Reference< css::ucb::XCommandEnvironment > getDefaultCommandEnvironment();
108
109}
110
111#endif
112
113/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
UNOTOOLS_DLLPUBLIC bool Exists(OUString const &url)
Definition: ucbhelper.cxx:290
UNOTOOLS_DLLPUBLIC bool IsDocument(OUString const &url)
Definition: ucbhelper.cxx:131
UNOTOOLS_DLLPUBLIC bool MakeFolder(ucbhelper::Content &parent, OUString const &title, ucbhelper::Content &result)
Definition: ucbhelper.cxx:209
UNOTOOLS_DLLPUBLIC css::uno::Any GetProperty(OUString const &url, OUString const &property)
Definition: ucbhelper.cxx:145
UNOTOOLS_DLLPUBLIC bool ensureFolder(const css::uno::Reference< css::uno::XComponentContext > &xCtx, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv, std::u16string_view rFolder, ucbhelper::Content &result) noexcept
like mkdir -p
Definition: ucbhelper.cxx:388
UNOTOOLS_DLLPUBLIC css::uno::Reference< css::ucb::XCommandEnvironment > getDefaultCommandEnvironment()
Returns a default XCommandEnvironment to be used when creating a ucbhelper::Content.
Definition: ucbhelper.cxx:117
UNOTOOLS_DLLPUBLIC bool EqualURLs(OUString const &url1, OUString const &url2)
Definition: ucbhelper.cxx:372
UNOTOOLS_DLLPUBLIC bool IsFolder(OUString const &url)
Definition: ucbhelper.cxx:161
UNOTOOLS_DLLPUBLIC bool IsSubPath(OUString const &parent, OUString const &child)
Definition: ucbhelper.cxx:326
UNOTOOLS_DLLPUBLIC bool IsYounger(OUString const &younger, OUString const &older)
Definition: ucbhelper.cxx:264
UNOTOOLS_DLLPUBLIC bool GetTitle(OUString const &url, OUString *title)
Definition: ucbhelper.cxx:175
UNOTOOLS_DLLPUBLIC bool Kill(OUString const &url)
Definition: ucbhelper.cxx:192
Any result
#define UNOTOOLS_DLLPUBLIC