LibreOffice Module shell (master) 1
Classes | Enumerations | Functions | Variables
fileextensions.hxx File Reference
#include "global.hxx"
#include <string>
#include "filepath.hxx"
Include dependency graph for fileextensions.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FileExtensionEntry
 A FileExtensionEntry consists of the extension as ansi and as unicode string and of the currently used registry forward key for this extension. More...
 

Enumerations

enum  File_Type_t {
  UNKNOWN ,
  WRITER ,
  CALC ,
  DRAW ,
  IMPRESS ,
  MATH ,
  WEB ,
  DATABASE
}
 Return the type of a file. More...
 

Functions

Filepath_t get_file_name_extension (const Filepath_t &file_name)
 Return the extension of a file name without the '. More...
 
File_Type_t get_file_type (const Filepath_t &file_name)
 Return the type of a file. More...
 

Variables

const FileExtensionEntry OOFileExtensionTable []
 
const size_t OOFileExtensionTableSize
 

Enumeration Type Documentation

◆ File_Type_t

Return the type of a file.

Enumerator
UNKNOWN 
WRITER 
CALC 
DRAW 
IMPRESS 
MATH 
WEB 
DATABASE 

Definition at line 56 of file fileextensions.hxx.

Function Documentation

◆ get_file_name_extension()

Filepath_t get_file_name_extension ( const Filepath_t file_name)

Return the extension of a file name without the '.

'

Definition at line 66 of file fileextensions.cxx.

References idx.

Referenced by get_file_type(), and CInfoTip::GetInfoTip().

◆ get_file_type()

File_Type_t get_file_type ( const Filepath_t file_name)

Variable Documentation

◆ OOFileExtensionTable

const FileExtensionEntry OOFileExtensionTable[]
extern

Definition at line 34 of file fileextensions.cxx.

◆ OOFileExtensionTableSize

const size_t OOFileExtensionTableSize
extern

Definition at line 60 of file fileextensions.cxx.