LibreOffice Module filter (master) 1
Namespaces | Macros | Functions | Variables
util.cxx File Reference
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <rtl/ustring.hxx>
#include <rtl/character.hxx>
#include <comphelper/string.hxx>
#include <unotools/fontcvt.hxx>
#include <unotools/fontdefs.hxx>
#include <utility>
#include <vcl/BitmapPalette.hxx>
#include <filter/msfilter/escherex.hxx>
#include <filter/msfilter/util.hxx>
#include <o3tl/string_view.hxx>
#include <memory>
#include <unordered_map>
Include dependency graph for util.cxx:

Go to the source code of this file.

Namespaces

namespace  msfilter
 
namespace  msfilter::util
 

Macros

#define IN2MM100(v)   static_cast< sal_Int32 >( (v) * 2540.0 + 0.5 )
 
#define MM2MM100(v)   static_cast< sal_Int32 >( (v) * 100.0 + 0.5 )
 

Functions

rtl_TextEncoding msfilter::util::getBestTextEncodingFromLocale (const css::lang::Locale &rLocale)
 Returns the best-fit default 8bit encoding for a given locale i.e. More...
 
::Color msfilter::util::BGRToRGB (sal_uInt32 nColour)
 Convert a color in BGR format to RGB. More...
 
DateTime msfilter::util::DTTM2DateTime (tools::Long lDTTM)
 Convert from DTTM to Writer's DateTime. More...
 
sal_Unicode msfilter::util::bestFitOpenSymbolToMSFont (sal_Unicode cBullet, rtl_TextEncoding &r_ioChrSet, OUString &r_ioFontName)
 Convert DateTime to xsd::dateTime string. More...
 
OString msfilter::util::ConvertColor (const Color &rColor)
 Converts tools Color to HTML color (without leading hashmark). More...
 
OUString msfilter::util::ConvertColorOU (const Color &rColor)
 
OUString msfilter::util::CreateDOCXStyleId (std::u16string_view const aName)
 
std::u16string_view msfilter::util::findQuotedText (std::u16string_view rCommand, std::u16string_view cStartQuote, const sal_Unicode uEndQuote)
 Finds the quoted text in a field instruction text. More...
 
static EquationResult msfilter::util::Read_SubF_Combined (WW8ReadFieldParams &rReadParam)
 
EquationResult msfilter::util::ParseCombinedChars (const OUString &rStr)
 
OString msfilter::util::GetOOXMLPresetGeometry (std::u16string_view rShapeType)
 Similar to EnhancedCustomShapeTypeNames::Get(), but it also supports OOXML types and returns a drawingML string. More...
 
MSO_SPT msfilter::util::GETVMLShapeType (std::u16string_view aType)
 Similar to EnhancedCustomShapeTypeNames::Get(), but returns an MSO_SPT (binary / VML type). More...
 
bool msfilter::util::HasTextBoxContent (sal_uInt32 nShapeType)
 The following function checks if a MSO shapetype is allowed to have textboxcontent. More...
 
sal_uInt8 msfilter::util::TransColToIco (const Color &rCol)
 Convert the input color value to an ico value (0..16) More...
 

Variables

const ApiPaperSize msfilter::util::spPaperSizeTable []
 

Macro Definition Documentation

◆ IN2MM100

#define IN2MM100 (   v)    static_cast< sal_Int32 >( (v) * 2540.0 + 0.5 )

Definition at line 170 of file util.cxx.

◆ MM2MM100

#define MM2MM100 (   v)    static_cast< sal_Int32 >( (v) * 100.0 + 0.5 )

Definition at line 171 of file util.cxx.