LibreOffice Module sw (master) 1
Macros | Functions
srcview.cxx File Reference
#include <rtl/tencinfo.h>
#include <osl/diagnose.h>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/ui/dialogs/TemplateDescription.hpp>
#include <unotools/tempfile.hxx>
#include <tools/urlobj.hxx>
#include <vcl/errinf.hxx>
#include <vcl/weld.hxx>
#include <vcl/textview.hxx>
#include <vcl/svapp.hxx>
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
#include <svl/undo.hxx>
#include <svl/eitem.hxx>
#include <svl/whiter.hxx>
#include <vcl/transfer.hxx>
#include <svtools/strings.hrc>
#include <svtools/svtresid.hxx>
#include <svtools/htmlcfg.hxx>
#include <sfx2/app.hxx>
#include <sfx2/objface.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/request.hxx>
#include <sfx2/docfile.hxx>
#include <svx/srchdlg.hxx>
#include <svx/statusitem.hxx>
#include <svl/srchitem.hxx>
#include <sfx2/sfxhtml.hxx>
#include <swtypes.hxx>
#include <docsh.hxx>
#include <wdocsh.hxx>
#include <srcview.hxx>
#include "viewfunc.hxx"
#include <doc.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <IDocumentState.hxx>
#include <sfx2/msg.hxx>
#include <shellio.hxx>
#include <cmdid.h>
#include <strings.hrc>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <sfx2/filedlghelper.hxx>
#include <swslots.hxx>
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
Include dependency graph for srcview.cxx:

Go to the source code of this file.

Macros

#define ShellClass_SwSrcView
 
#define SWSRCVIEWFLAGS   SfxViewShellFlags::NO_NEWWINDOW
 
#define SRC_SEARCHOPTIONS   (SearchOptionFlags::ALL & ~SearchOptionFlags(SearchOptionFlags::FORMAT|SearchOptionFlags::FAMILIES|SearchOptionFlags::SEARCHALL))
 
#define LMARGPRN   1700
 
#define RMARGPRN   900
 
#define TMARGPRN   2000
 
#define BMARGPRN   1000
 
#define BORDERPRN   300
 

Functions

 SFX_IMPL_NAMED_VIEWFACTORY (SwSrcView, "SourceView")
 
static void lcl_PrintHeader (vcl::RenderContext &rOutDev, sal_Int32 nPages, sal_Int32 nCurPage, const OUString &rTitle)
 
static rtl_TextEncoding lcl_GetStreamCharSet (rtl_TextEncoding eLoadEncoding)
 
static OUString lcl_ConvertTabsToSpaces (const OUString &sLine)
 

Macro Definition Documentation

◆ BMARGPRN

#define BMARGPRN   1000

Definition at line 87 of file srcview.cxx.

◆ BORDERPRN

#define BORDERPRN   300

Definition at line 88 of file srcview.cxx.

◆ LMARGPRN

#define LMARGPRN   1700

Definition at line 84 of file srcview.cxx.

◆ RMARGPRN

#define RMARGPRN   900

Definition at line 85 of file srcview.cxx.

◆ ShellClass_SwSrcView

#define ShellClass_SwSrcView

Definition at line 66 of file srcview.cxx.

◆ SRC_SEARCHOPTIONS

Definition at line 81 of file srcview.cxx.

◆ SWSRCVIEWFLAGS

#define SWSRCVIEWFLAGS   SfxViewShellFlags::NO_NEWWINDOW

Definition at line 79 of file srcview.cxx.

◆ TMARGPRN

#define TMARGPRN   2000

Definition at line 86 of file srcview.cxx.

Function Documentation

◆ lcl_ConvertTabsToSpaces()

static OUString lcl_ConvertTabsToSpaces ( const OUString &  sLine)
static

Definition at line 167 of file srcview.cxx.

References nPos.

Referenced by SwSrcView::PrintSource().

◆ lcl_GetStreamCharSet()

static rtl_TextEncoding lcl_GetStreamCharSet ( rtl_TextEncoding  eLoadEncoding)
static

◆ lcl_PrintHeader()

static void lcl_PrintHeader ( vcl::RenderContext rOutDev,
sal_Int32  nPages,
sal_Int32  nCurPage,
const OUString &  rTitle 
)
static

◆ SFX_IMPL_NAMED_VIEWFACTORY()

SFX_IMPL_NAMED_VIEWFACTORY ( SwSrcView  ,
"SourceView"   
)

Definition at line 90 of file srcview.cxx.

References SFX_VIEW_REGISTRATION.