LibreOffice Module editeng (master) 1
Classes | Macros | Functions
unofield.cxx File Reference
#include <sal/config.h>
#include <string_view>
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/text/FilenameDisplayFormat.hpp>
#include <o3tl/string_view.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <tools/debug.hxx>
#include <svl/itemprop.hxx>
#include <editeng/flditem.hxx>
#include <editeng/CustomPropertyField.hxx>
#include <editeng/measfld.hxx>
#include <editeng/unofield.hxx>
#include <editeng/unotext.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <sal/log.hxx>
#include <editeng/unonames.hxx>
Include dependency graph for unofield.cxx:

Go to the source code of this file.

Classes

class  SvxUnoFieldData_Impl
 

Macros

#define QUERYINT(xint)
 
#define WID_DATE   0
 
#define WID_BOOL1   1
 
#define WID_BOOL2   2
 
#define WID_INT32   3
 
#define WID_INT16   4
 
#define WID_STRING1   5
 
#define WID_STRING2   6
 
#define WID_STRING3   7
 

Functions

static const SfxItemPropertySetImplGetFieldItemPropertySet (sal_Int32 mnId)
 
static sal_Int16 getFileNameDisplayFormat (SvxFileFormat nFormat)
 
static SvxFileFormat setFileNameDisplayFormat (sal_Int16 nFormat)
 
static util::DateTime getDate (sal_Int32 nDate)
 
static Date setDate (util::DateTime const &rDate)
 
static util::DateTime getTime (sal_Int64 const nTime)
 
static tools::Time setTime (util::DateTime const &rDate)
 
uno::Reference< uno::XInterface > SvxUnoTextCreateTextField (std::u16string_view ServiceSpecifier)
 

Macro Definition Documentation

◆ QUERYINT

#define QUERYINT (   xint)
Value:
if( rType == cppu::UnoType<xint>::get() ) \
aAny <<= uno::Reference< xint >(this)

Definition at line 47 of file unofield.cxx.

◆ WID_BOOL1

#define WID_BOOL1   1

Definition at line 53 of file unofield.cxx.

◆ WID_BOOL2

#define WID_BOOL2   2

Definition at line 54 of file unofield.cxx.

◆ WID_DATE

#define WID_DATE   0

Definition at line 52 of file unofield.cxx.

◆ WID_INT16

#define WID_INT16   4

Definition at line 56 of file unofield.cxx.

◆ WID_INT32

#define WID_INT32   3

Definition at line 55 of file unofield.cxx.

◆ WID_STRING1

#define WID_STRING1   5

Definition at line 57 of file unofield.cxx.

◆ WID_STRING2

#define WID_STRING2   6

Definition at line 58 of file unofield.cxx.

◆ WID_STRING3

#define WID_STRING3   7

Definition at line 59 of file unofield.cxx.

Function Documentation

◆ getDate()

static util::DateTime getDate ( sal_Int32  nDate)
static

Definition at line 187 of file unofield.cxx.

References Date::GetDay(), Date::GetMonth(), and Date::GetYear().

◆ getFileNameDisplayFormat()

static sal_Int16 getFileNameDisplayFormat ( SvxFileFormat  nFormat)
static

Definition at line 162 of file unofield.cxx.

References NAME, NameAndExt, PathFull, and PathOnly.

◆ getTime()

static util::DateTime getTime ( sal_Int64 const  nTime)
static

◆ ImplGetFieldItemPropertySet()

static const SfxItemPropertySet * ImplGetFieldItemPropertySet ( sal_Int32  mnId)
static

◆ setDate()

static Date setDate ( util::DateTime const &  rDate)
static

Definition at line 200 of file unofield.cxx.

Referenced by SvxUnoTextField::CreateFieldData().

◆ setFileNameDisplayFormat()

static SvxFileFormat setFileNameDisplayFormat ( sal_Int16  nFormat)
static

Definition at line 174 of file unofield.cxx.

References NAME, NameAndExt, NameOnly, PathFull, and PathOnly.

Referenced by SvxUnoTextField::CreateFieldData().

◆ setTime()

static tools::Time setTime ( util::DateTime const &  rDate)
static

Definition at line 219 of file unofield.cxx.

Referenced by SvxUnoTextField::CreateFieldData().

◆ SvxUnoTextCreateTextField()

uno::Reference< uno::XInterface > SvxUnoTextCreateTextField ( std::u16string_view  ServiceSpecifier)
Exceptions
css::uno::Exception
css::uno::RuntimeException

Definition at line 878 of file unofield.cxx.

References nId, o3tl::starts_with(), and u.

Referenced by SvxSimpleUnoModel::createInstance().