LibreOffice Module sfx2 (master) 1
Macros | Functions
listview.cxx File Reference
#include <sfx2/listview.hxx>
#include <sfx2/sfxresid.hxx>
#include <tools/urlobj.hxx>
#include <tools/datetime.hxx>
#include <sfx2/strings.hrc>
#include <osl/file.hxx>
#include <osl/time.h>
#include <comphelper/fileurl.hxx>
#include <svtools/svtresid.hxx>
#include <svtools/strings.hrc>
#include <unotools/localedatawrapper.hxx>
#include <unotools/collatorwrapper.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/intlwrapper.hxx>
#include <vcl/wintypes.hxx>
#include <bitmaps.hlst>
#include <rtl/math.hxx>
#include <sfx2/templatelocalview.hxx>
Include dependency graph for listview.cxx:

Go to the source code of this file.

Macros

#define COLUMN_IMG_ISDEFAULT   0
 
#define COLUMN_NAME   1
 
#define COLUMN_CATEGORY   2
 
#define COLUMN_APPLICATION   3
 
#define COLUMN_MODIFIED   4
 
#define COLUMN_SIZE   5
 
#define NUMBER_OF_COLUMNS   6
 

Functions

static sal_uInt64 getFileSize (const OUString &rURL)
 
static sal_uInt32 getFileModifyTime (const OUString &rURL)
 
static OUString getDisplayFileSize (const OUString &rURL)
 
static OUString getDisplayFileModifyTime (const OUString &rURL)
 
static OUString getApplication (std::u16string_view rURL)
 
 IMPL_LINK (ListView, ColumnClickedHdl, const int, col, void)
 
 IMPL_LINK (ListView, QueryTooltipHdl, const weld::TreeIter &, rIter, OUString)
 

Macro Definition Documentation

◆ COLUMN_APPLICATION

#define COLUMN_APPLICATION   3

Definition at line 36 of file listview.cxx.

◆ COLUMN_CATEGORY

#define COLUMN_CATEGORY   2

Definition at line 35 of file listview.cxx.

◆ COLUMN_IMG_ISDEFAULT

#define COLUMN_IMG_ISDEFAULT   0

Definition at line 33 of file listview.cxx.

◆ COLUMN_MODIFIED

#define COLUMN_MODIFIED   4

Definition at line 37 of file listview.cxx.

◆ COLUMN_NAME

#define COLUMN_NAME   1

Definition at line 34 of file listview.cxx.

◆ COLUMN_SIZE

#define COLUMN_SIZE   5

Definition at line 38 of file listview.cxx.

◆ NUMBER_OF_COLUMNS

#define NUMBER_OF_COLUMNS   6

Definition at line 39 of file listview.cxx.

Function Documentation

◆ getApplication()

static OUString getApplication ( std::u16string_view  rURL)
static

Definition at line 422 of file listview.cxx.

References INetURLObject::getExtension(), and SfxResId().

Referenced by ListView::AppendItem().

◆ getDisplayFileModifyTime()

static OUString getDisplayFileModifyTime ( const OUString &  rURL)
static

◆ getDisplayFileSize()

static OUString getDisplayFileSize ( const OUString &  rURL)
static

Definition at line 350 of file listview.cxx.

References GetLocaleData(), comphelper::isFileUrl(), and SvtResId().

Referenced by ListView::AppendItem().

◆ getFileModifyTime()

static sal_uInt32 getFileModifyTime ( const OUString &  rURL)
static

Definition at line 305 of file listview.cxx.

References comphelper::isFileUrl().

Referenced by ListView::AppendItem().

◆ getFileSize()

static sal_uInt64 getFileSize ( const OUString &  rURL)
static

Definition at line 404 of file listview.cxx.

References comphelper::isFileUrl().

Referenced by ListView::AppendItem().

◆ IMPL_LINK() [1/2]

IMPL_LINK ( ListView  ,
ColumnClickedHdl  ,
const int  ,
col  ,
void   
)

Definition at line 170 of file listview.cxx.

References col, and NUMBER_OF_COLUMNS.

◆ IMPL_LINK() [2/2]

IMPL_LINK ( ListView  ,
QueryTooltipHdl  ,
const weld::TreeIter ,
rIter  ,
OUString   
)

Definition at line 289 of file listview.cxx.

References sId.