LibreOffice Module sw (master)  1
Classes | Namespaces | Functions
writerwordglue.cxx File Reference
#include <msfilter.hxx>
#include "writerwordglue.hxx"
#include <doc.hxx>
#include "writerhelper.hxx"
#include <IDocumentStylePoolAccess.hxx>
#include <algorithm>
#include <rtl/tencinfo.h>
#include <sal/log.hxx>
#include <unicode/ubidi.h>
#include <tools/tenccvt.hxx>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <unotools/fontcvt.hxx>
#include <editeng/paperinf.hxx>
#include <editeng/lrspitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/fontitem.hxx>
#include <frmfmt.hxx>
#include <fmtclds.hxx>
#include <hfspacingitem.hxx>
#include <fmtfsize.hxx>
#include <poolfmt.hxx>
#include <swrect.hxx>
#include <fmthdft.hxx>
#include <frmatr.hxx>
#include <ndtxt.hxx>
#include <breakit.hxx>
#include <i18nlangtag/mslangid.hxx>
Include dependency graph for writerwordglue.cxx:

Go to the source code of this file.

Classes

class  myImplHelpers::MapperImpl< C >
 
class  myImplHelpers::MapperImpl< SwTextFormatColl >
 
class  myImplHelpers::MapperImpl< SwCharFormat >
 
class  myImplHelpers::StyleMapperImpl< C >
 
class  myImplHelpers::IfBeforeStart
 

Namespaces

 myImplHelpers
 
 sw
 Dialog to specify the properties of date form field.
 
 sw::util
 
 sw::ms
 

Functions

static SwTwips myImplHelpers::CalcHdFtDist (const SwFrameFormat &rFormat, sal_uInt16 nSpacing)
 
static SwTwips myImplHelpers::CalcHdDist (const SwFrameFormat &rFormat)
 
static SwTwips myImplHelpers::CalcFtDist (const SwFrameFormat &rFormat)
 
static OUString myImplHelpers::FindBestMSSubstituteFont (const OUString &rFont)
 
static SvxLRSpaceItem lcl_getWordLRSpace (const SwFrameFormat &rFormat)
 Count what Word calls left/right margin from a format's LRSpace + Box. More...
 
bool sw::util::IsPlausableSingleWordSection (const SwFrameFormat &rTitleFormat, const SwFrameFormat &rFollowFormat)
 See if two page formats can be expressed as a single word section. More...
 
CharRuns sw::util::GetPseudoCharRuns (const SwTextNode &rTextNd)
 Collect the ranges of Text which share. More...
 
sal_uInt8 sw::ms::rtl_TextEncodingToWinCharset (rtl_TextEncoding eTextEncoding)
 MSOffice appears to set the charset of unicode fonts to MS 932. More...
 
static bool sw::ms::CanEncode (OUString const &rString, rtl_TextEncoding const eEncoding)
 
sal_uInt8 sw::ms::rtl_TextEncodingToWinCharsetRTF (OUString const &rFontName, OUString const &rAltName, rtl_TextEncoding eTextEncoding)
 MSOffice appears to set the charset of unicode fonts to MS 932. More...
 
sal_uInt32 sw::ms::DateTime2DTTM (const DateTime &rDT)
 Convert from DTTM to Writer's DateTime. More...
 
static sal_Int32 sw::ms::findUnquoted (const OUString &rParams, sal_Unicode cFind, sal_Int32 nFromPos)
 Find cFind in rParams if not embedded in " double quotes. More...
 
static bool sw::ms::replaceUnquoted (OUString &rParams, const OUString &rFind, const OUString &rReplace)
 Find all rFind in rParams if not embedded in " double quotes and replace with rReplace. More...
 
sal_uLong sw::ms::MSDateTimeFormatToSwFormat (OUString &rParams, SvNumberFormatter *pFormatter, LanguageType &rLang, bool bHijri, LanguageType nDocLang)
 Convert from Word Date/Time field str to Writer's Date Time str. More...
 
bool sw::ms::IsPreviousAM (OUString const &rParams, sal_Int32 nPos)
 
bool sw::ms::IsNextPM (OUString const &rParams, sal_Int32 nPos)
 
bool sw::ms::IsNotAM (OUString const &rParams, sal_Int32 nPos)
 Used by MSDateTimeFormatToSwFormat to identify AM time fields. More...
 
void sw::ms::SwapQuotesInField (OUString &rFormat)
 Another function used by MSDateTimeFormatToSwFormat. More...
 

Function Documentation

static SvxLRSpaceItem lcl_getWordLRSpace ( const SwFrameFormat rFormat)
static

Count what Word calls left/right margin from a format's LRSpace + Box.

Definition at line 339 of file writerwordglue.cxx.

References SwFormat::GetBox(), and SwFormat::GetLRSpace().

Referenced by sw::util::IsPlausableSingleWordSection().