10#ifndef INCLUDED_FILTER_MSFILTER_UTIL_HXX
11#define INCLUDED_FILTER_MSFILTER_UTIL_HXX
15#include <rtl/string.hxx>
16#include <rtl/textenc.h>
17#include <rtl/ustring.hxx>
19#include <tools/datetime.hxx>
25 namespace awt {
struct Size; }
26 namespace lang {
struct Locale; }
37MSFILTER_DLLPUBLIC ::Color
BGRToRGB(sal_uInt32 nColour);
56 rtl_TextEncoding& r_ioChrSet, OUString& r_ioFontName);
78 static sal_Int32 getMSPaperSizeIndex(
const css::awt::Size& rSize );
79 static const ApiPaperSize& getApiSizeForMSPaperSizeIndex( sal_Int32 nMSOPaperIndex );
101 bool GoToTokenParam();
102 sal_Int32 SkipToNextToken();
105 sal_Int32 FindNextStringPiece( sal_Int32 _nStart = -1 );
106 bool GetTokenSttFromTo(sal_Int32* _pFrom, sal_Int32* _pTo, sal_Int32 _nMax);
108 OUString GetResult()
const;
sal_Int32 GetTokenSttPtr() const
#define MSFILTER_DLLPUBLIC
Shape IDs per cluster in DGG atom.
::Color BGRToRGB(sal_uInt32 nColor)
Convert a color in BGR format to RGB.
OUString ConvertColorOU(const Color &rColor)
DateTime DTTM2DateTime(tools::Long lDTTM)
Convert from DTTM to Writer's DateTime.
std::u16string_view findQuotedText(std::u16string_view rCommand, std::u16string_view sStartQuote, const sal_Unicode uEndQuote)
Finds the quoted text in a field instruction text.
OString ConvertColor(const Color &rColor)
Converts tools Color to HTML color (without leading hashmark).
rtl_TextEncoding getBestTextEncodingFromLocale(const css::lang::Locale &rLocale)
Returns the best-fit default 8bit encoding for a given locale i.e.
bool HasTextBoxContent(sal_uInt32 nShapeType)
The following function checks if a MSO shapetype is allowed to have textboxcontent.
sal_uInt8 TransColToIco(const Color &rCol)
Convert the input color value to an ico value (0..16)
EquationResult ParseCombinedChars(const OUString &rStr)
sal_Unicode bestFitOpenSymbolToMSFont(sal_Unicode cChar, rtl_TextEncoding &rChrSet, OUString &rFontName)
Convert DateTime to xsd::dateTime string.
OUString CreateDOCXStyleId(std::u16string_view const aName)
OString GetOOXMLPresetGeometry(std::u16string_view rShapeType)
Similar to EnhancedCustomShapeTypeNames::Get(), but it also supports OOXML types and returns a drawin...
MSO_SPT GETVMLShapeType(std::u16string_view aType)
Similar to EnhancedCustomShapeTypeNames::Get(), but returns an MSO_SPT (binary / VML type).
Paper size in 1/100 millimeters.