LibreOffice Module shell (master) 1
Macros | Functions
infotips.cxx File Reference
#include <global.hxx>
#include <infotips.hxx>
#include <shlxthdl.hxx>
#include <metainforeader.hxx>
#include <contentreader.hxx>
#include <utilities.hxx>
#include <registry.hxx>
#include <fileextensions.hxx>
#include <iso8601_converter.hxx>
#include <config.hxx>
#include <resource.h>
#include <stdio.h>
#include <utility>
#include <stdlib.h>
Include dependency graph for infotips.cxx:

Go to the source code of this file.

Macros

#define MAX_STRING   80
 
#define KB   1024.0
 

Functions

const std::wstring WSPACE (SPACE)
 
static std::wstring getFileTypeInfo (const std::wstring &file_extension)
 get file type information from registry. More...
 
static DWORD getSizeOfFile (wchar_t const *FileName)
 get file size. More...
 
static std::wstring formatSizeOfFile (DWORD dwSize)
 format file size in to be more readable. More...
 
static std::wstring getFileSizeInfo (wchar_t const *FileName)
 get file size information. More...
 

Macro Definition Documentation

◆ KB

#define KB   1024.0

Definition at line 38 of file infotips.cxx.

◆ MAX_STRING

#define MAX_STRING   80

Definition at line 37 of file infotips.cxx.

Function Documentation

◆ formatSizeOfFile()

static std::wstring formatSizeOfFile ( DWORD  dwSize)
static

format file size in to be more readable.

Definition at line 140 of file infotips.cxx.

References KB, pos, and StringToWString().

Referenced by getFileSizeInfo().

◆ getFileSizeInfo()

static std::wstring getFileSizeInfo ( wchar_t const *  FileName)
static

get file size information.

Definition at line 181 of file infotips.cxx.

References EMPTY_STRING, formatSizeOfFile(), and getSizeOfFile().

Referenced by CInfoTip::GetInfoTip().

◆ getFileTypeInfo()

static std::wstring getFileTypeInfo ( const std::wstring &  file_extension)
static

get file type information from registry.

Definition at line 104 of file infotips.cxx.

References EMPTY_STRING, MAX_STRING, and QueryRegistryKey().

Referenced by CInfoTip::GetInfoTip().

◆ getSizeOfFile()

static DWORD getSizeOfFile ( wchar_t const *  FileName)
static

get file size.

Definition at line 118 of file infotips.cxx.

Referenced by getFileSizeInfo().

◆ WSPACE()

const std::wstring WSPACE ( SPACE  )