LibreOffice Module sw (master) 1
Namespaces | Macros | Functions
ww8par.cxx File Reference
#include <config_features.h>
#include <sal/config.h>
#include <sal/log.hxx>
#include <com/sun/star/embed/Aspects.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/packages/XPackageEncryption.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/streamwrap.hxx>
#include <rtl/random.h>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <sfx2/docinf.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/zoomitem.hxx>
#include <tools/urlobj.hxx>
#include <unotools/tempfile.hxx>
#include <comphelper/docpasswordrequest.hxx>
#include <comphelper/documentinfo.hxx>
#include <comphelper/propertysequence.hxx>
#include <editeng/outlobj.hxx>
#include <editeng/brushitem.hxx>
#include <editeng/formatbreakitem.hxx>
#include <editeng/tstpitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/opaqitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/editeng.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdoashp.hxx>
#include <svx/svxerr.hxx>
#include <filter/msfilter/mscodec.hxx>
#include <svx/svdmodel.hxx>
#include <svx/xflclit.hxx>
#include <svx/sdasitm.hxx>
#include <svx/sdtagitm.hxx>
#include <svx/sdtcfitm.hxx>
#include <svx/sdtditm.hxx>
#include <svx/sdtmfitm.hxx>
#include <unotools/fltrcfg.hxx>
#include <fmtfld.hxx>
#include <fmturl.hxx>
#include <fmtinfmt.hxx>
#include <reffld.hxx>
#include <fmthdft.hxx>
#include <fmtcntnt.hxx>
#include <fmtcnct.hxx>
#include <fmtanchr.hxx>
#include <fmtpdsc.hxx>
#include <ftninfo.hxx>
#include <fmtftn.hxx>
#include <txtftn.hxx>
#include <ndtxt.hxx>
#include <pagedesc.hxx>
#include <paratr.hxx>
#include <poolfmt.hxx>
#include <fmtclbl.hxx>
#include <section.hxx>
#include <docsh.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentMarkAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <IDocumentExternalData.hxx>
#include <../../core/inc/DocumentRedlineManager.hxx>
#include <docufld.hxx>
#include <swfltopt.hxx>
#include <utility>
#include <viewsh.hxx>
#include <shellres.hxx>
#include <swerror.h>
#include <swtable.hxx>
#include <fchrfmt.hxx>
#include <charfmt.hxx>
#include <fmtautofmt.hxx>
#include <IDocumentSettingAccess.hxx>
#include "sprmids.hxx"
#include "writerwordglue.hxx"
#include <ndgrf.hxx>
#include <editeng/editids.hrc>
#include <fmtflcnt.hxx>
#include <txatbase.hxx>
#include "ww8par2.hxx"
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
#include <com/sun/star/document/XViewDataSupplier.hpp>
#include <svl/lngmisc.hxx>
#include <svl/itemiter.hxx>
#include <svl/whiter.hxx>
#include <comphelper/indexedpropertyvalues.hxx>
#include <comphelper/processfactory.hxx>
#include <basic/basmgr.hxx>
#include "ww8toolbar.hxx"
#include <o3tl/unit_conversion.hxx>
#include <o3tl/safeint.hxx>
#include <osl/file.hxx>
#include <breakit.hxx>
#include <sfx2/docfile.hxx>
#include <swdll.hxx>
#include "WW8Sttbf.hxx"
#include "WW8FibData.hxx"
#include <unordered_set>
#include <memory>
#include <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <unotools/pathoptions.hxx>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/script/vba/XVBACompatibility.hpp>
#include <comphelper/sequenceashashmap.hxx>
#include <oox/ole/vbaproject.hxx>
#include <oox/ole/olestorage.hxx>
#include <comphelper/storagehelper.hxx>
#include <sfx2/DocumentMetadataAccess.hxx>
#include <comphelper/diagnose_ex.hxx>
Include dependency graph for ww8par.cxx:

Go to the source code of this file.

Namespaces

namespace  sw
 Dialog to specify the properties of date form field.
 
namespace  sw::hack
 

Macros

#define MSASCII   SAL_MAX_INT16
 
#define WW_BLOCKSIZE   0x200
 

Functions

static SwMacroInfoGetMacroInfo (SdrObject *pObj)
 
static void lclGetAbsPath (OUString &rPath, sal_uInt16 nLevel, SwDocShell const *pDocShell)
 
tools::Long GetListFirstLineIndent (const SwNumFormat &rFormat)
 
static tools::Long lcl_GetTrueMargin (SvxFirstLineIndentItem const &rFirstLine, SvxTextLeftMarginItem const &rLeftMargin, const SwNumFormat &rFormat, tools::Long &rFirstLinePos)
 
void SyncIndentWithList (SvxFirstLineIndentItem &rFirstLine, SvxTextLeftMarginItem &rLeftMargin, const SwNumFormat &rFormat, const bool bFirstLineOfstSet, const bool bLeftIndentSet)
 
static std::size_t Custom8BitToUnicode (rtl_TextToUnicodeConverter hConverter, char const *pIn, std::size_t nInLen, sal_Unicode *pOut, std::size_t nOutLen)
 
auto sw::FilterControlChars (std::u16string_view aString) -> OUString
 
static void GiveNodePageDesc (SwNodeIndex const &rIdx, const SwFormatPageDesc &rPgDesc, SwDoc &rDoc)
 Set the page descriptor on this node, handle the different cases for a text node or a table. More...
 
static void lcl_createTemplateToProjectEntry (const uno::Reference< container::XNameContainer > &xPrjNameCache, const OUString &sTemplatePathOrURL, const OUString &sVBAProjName)
 
static bool lclReadCryptoAPIHeader (msfilter::RC4EncryptionInfo &info, SvStream &rStream)
 
SAL_DLLPUBLIC_EXPORT ReaderImportDOC ()
 
bool TestImportDOC (SvStream &rStream, const OUString &rFltName)
 
SAL_DLLPUBLIC_EXPORT bool TestImportWW8 (SvStream &rStream)
 
SAL_DLLPUBLIC_EXPORT bool TestImportWW6 (SvStream &rStream)
 
SAL_DLLPUBLIC_EXPORT bool TestImportWW2 (SvStream &rStream)
 
static void lcl_getListOfStreams (SotStorage *pStorage, comphelper::SequenceAsHashMap &aStreamsData, std::u16string_view sPrefix)
 

Macro Definition Documentation

◆ MSASCII

#define MSASCII   SAL_MAX_INT16

Definition at line 3211 of file ww8par.cxx.

◆ WW_BLOCKSIZE

#define WW_BLOCKSIZE   0x200

Definition at line 5565 of file ww8par.cxx.

Function Documentation

◆ Custom8BitToUnicode()

static std::size_t Custom8BitToUnicode ( rtl_TextToUnicodeConverter  hConverter,
char const *  pIn,
std::size_t  nInLen,
sal_Unicode pOut,
std::size_t  nOutLen 
)
static

Definition at line 2914 of file ww8par.cxx.

References pOut.

Referenced by SwWW8ImplReader::ReadPlainChars().

◆ GetListFirstLineIndent()

tools::Long GetListFirstLineIndent ( const SwNumFormat rFormat)

◆ GetMacroInfo()

static SwMacroInfo * GetMacroInfo ( SdrObject pObj)
static

◆ GiveNodePageDesc()

static void GiveNodePageDesc ( SwNodeIndex const &  rIdx,
const SwFormatPageDesc rPgDesc,
SwDoc rDoc 
)
static

◆ ImportDOC()

SAL_DLLPUBLIC_EXPORT Reader * ImportDOC ( )

Definition at line 6314 of file ww8par.cxx.

Referenced by GetWW8Reader().

◆ lcl_createTemplateToProjectEntry()

static void lcl_createTemplateToProjectEntry ( const uno::Reference< container::XNameContainer > &  xPrjNameCache,
const OUString &  sTemplatePathOrURL,
const OUString &  sVBAProjName 
)
static

◆ lcl_getListOfStreams()

static void lcl_getListOfStreams ( SotStorage pStorage,
comphelper::SequenceAsHashMap aStreamsData,
std::u16string_view  sPrefix 
)
static

◆ lcl_GetTrueMargin()

static tools::Long lcl_GetTrueMargin ( SvxFirstLineIndentItem const &  rFirstLine,
SvxTextLeftMarginItem const &  rLeftMargin,
const SwNumFormat rFormat,
tools::Long rFirstLinePos 
)
static

◆ lclGetAbsPath()

static void lclGetAbsPath ( OUString &  rPath,
sal_uInt16  nLevel,
SwDocShell const *  pDocShell 
)
static

◆ lclReadCryptoAPIHeader()

static bool lclReadCryptoAPIHeader ( msfilter::RC4EncryptionInfo info,
SvStream rStream 
)
static

◆ SyncIndentWithList()

void SyncIndentWithList ( SvxFirstLineIndentItem rFirstLine,
SvxTextLeftMarginItem rLeftMargin,
const SwNumFormat rFormat,
const bool  bFirstLineOfstSet,
const bool  bLeftIndentSet 
)

◆ TestImportDOC()

bool TestImportDOC ( SvStream rStream,
const OUString &  rFltName 
)

Definition at line 6331 of file ww8par.cxx.

Referenced by TestImportWW2(), TestImportWW6(), and TestImportWW8().

◆ TestImportWW2()

SAL_DLLPUBLIC_EXPORT bool TestImportWW2 ( SvStream rStream)

Definition at line 6378 of file ww8par.cxx.

References TestImportDOC().

◆ TestImportWW6()

SAL_DLLPUBLIC_EXPORT bool TestImportWW6 ( SvStream rStream)

Definition at line 6373 of file ww8par.cxx.

References TestImportDOC().

◆ TestImportWW8()

SAL_DLLPUBLIC_EXPORT bool TestImportWW8 ( SvStream rStream)

Definition at line 6368 of file ww8par.cxx.

References TestImportDOC().