Colibre: tdf#148029 Remove dark area in dark variant
[LibreOffice.git] / shell / inc / fileextensions.hxx
blob5c499beb8b4eaf237f805a009070c841685059de
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SHELL_INC_INTERNAL_FILEEXTENSIONS_HXX
21 #define INCLUDED_SHELL_INC_INTERNAL_FILEEXTENSIONS_HXX
23 #include "global.hxx"
25 #include <string>
26 #include "filepath.hxx"
28 // A simple table with information about the currently used OO file extensions
29 // for instance ".sxw" and information about windows registry keys which are
30 // necessary for properly registering of the shell extensions
32 /** A FileExtensionEntry consists of the extension as ansi and as
33 unicode string and of the currently used registry forward key
34 for this extension
36 struct FileExtensionEntry
38 const char* ExtensionA; // e.g. ".sxw"
39 const wchar_t* ExtensionU; // e.g. L".sxw"
40 const wchar_t* RegistryForwardKey; // e.g. "soffice.StarWriterDocument.6"
43 extern const FileExtensionEntry OOFileExtensionTable[];
45 extern const size_t OOFileExtensionTableSize;
47 /** Return the extension of a file
48 name without the '.'
50 Filepath_t get_file_name_extension(const Filepath_t& file_name);
53 /** Return the type of a file
56 enum File_Type_t { UNKNOWN, WRITER, CALC, DRAW, IMPRESS, MATH, WEB, DATABASE };
58 File_Type_t get_file_type(const Filepath_t& file_name);
60 #endif
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */