LibreOffice Module oox (master) 1
Namespaces | Enumerations | Functions
utils.hxx File Reference
#include <sal/config.h>
#include <o3tl/unit_conversion.hxx>
#include <rtl/string.hxx>
#include <sal/types.h>
#include <cmath>
Include dependency graph for utils.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  oox
 
namespace  oox::drawingml
 

Enumerations

enum  oox::drawingml::DocumentType {
  oox::drawingml::DOCUMENT_DOCX ,
  oox::drawingml::DOCUMENT_PPTX ,
  oox::drawingml::DOCUMENT_XLSX
}
 

Functions

OString I32SHEX (sal_Int32 x)
 
static constexpr const char * ToPsz (bool b)
 
static constexpr const char * ToPsz10 (bool b)
 
static constexpr sal_Int64 PPTtoEMU (sal_Int32 nPPT)
 
static constexpr sal_Int64 TwipsToEMU (sal_Int32 nTwips)
 
template<typename T >
OString write1000thOfAPercent (T number)
 

Function Documentation

◆ I32SHEX()

OString I32SHEX ( sal_Int32  x)
inline

Definition at line 31 of file utils.hxx.

References aStr, and x.

◆ PPTtoEMU()

static constexpr sal_Int64 PPTtoEMU ( sal_Int32  nPPT)
staticconstexpr

Definition at line 58 of file utils.hxx.

References o3tl::convert(), o3tl::emu, and o3tl::master.

◆ ToPsz()

static constexpr const char * ToPsz ( bool  b)
staticconstexpr
Returns
const char* literal "true" for true value, or literal "false" for false value.

Definition at line 43 of file utils.hxx.

◆ ToPsz10()

static constexpr const char * ToPsz10 ( bool  b)
staticconstexpr

◆ TwipsToEMU()

static constexpr sal_Int64 TwipsToEMU ( sal_Int32  nTwips)
staticconstexpr

Definition at line 63 of file utils.hxx.

References o3tl::convert(), o3tl::emu, and o3tl::twip.

◆ write1000thOfAPercent()

template<typename T >
OString write1000thOfAPercent ( number)

Definition at line 69 of file utils.hxx.

Referenced by oox::drawingml::DrawingML::WriteOutline().