class SfxFilter; class SfxFilterContainer; class SotStorage; class SvStream; namespace com::sun::star::embed { class XStorage; } namespace com::sun::star::uno { template <typename> class Reference; }
/** The following class is a wrapper for basic i/o functions of Writer 3.0. Everythingisstatic.AllfilternamesmentionedareWriter-internal names,i.e.thenamesinfrontoftheequalitysigninINSTALL.INI,likeSWG
or ASCII.*/
class SwIoSystem
{ public: /// find for an internal format name the corresponding filter entry
SW_DLLPUBLIC static std::shared_ptr<const SfxFilter>
GetFilterOfFormat( std::u16string_view rFormat, const SfxFilterContainer* pCnt = nullptr );
/** Detect for the given file which filter should be used. The filter name isreturned.Ifnofiltercouldbefound,thenameoftheASCIIfilter
is returned! */ static std::shared_ptr<const SfxFilter> GetFileFilter(const OUString& rFileName);
// tdf#106899 - wrapper around IsDetectableText to retrieve the text encoding for a given stream
SW_DLLPUBLIC static rtl_TextEncoding GetTextEncoding(SvStream&); staticbool IsDetectableText( constchar* pBuf, sal_uLong &rLen,
rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd, bool *pBom);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.