LibreOffice Module sw (master)  1
Macros | Functions
srcview.cxx File Reference
#include <rtl/tencinfo.h>
#include <osl/diagnose.h>
#include <hintids.hxx>
#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/print.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/metric.hxx>
#include <vcl/textview.hxx>
#include <vcl/svapp.hxx>
#include <svtools/ctrltool.hxx>
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
#include <unotools/pathoptions.hxx>
#include <svl/undo.hxx>
#include <unotools/textsearch.hxx>
#include <svl/eitem.hxx>
#include <svl/whiter.hxx>
#include <unotools/saveopt.hxx>
#include <vcl/transfer.hxx>
#include <svtools/strings.hrc>
#include <svtools/svtresid.hxx>
#include <svx/svxids.hrc>
#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/prnmon.hxx>
#include <sfx2/docfile.hxx>
#include <editeng/fhgtitem.hxx>
#include <svx/srchdlg.hxx>
#include <svl/srchitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/flstitem.hxx>
#include <editeng/unolingu.hxx>
#include <sfx2/sfxhtml.hxx>
#include <swtypes.hxx>
#include <swmodule.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 <globals.hrc>
#include <strings.hrc>
#include <com/sun/star/ui/dialogs/XFilePicker3.hpp>
#include <com/sun/star/ui/dialogs/XFilterManager.hpp>
#include <sfx2/filedlghelper.hxx>
#include <swslots.hxx>
#include <unomid.h>
#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

#define BMARGPRN   1000

Definition at line 104 of file srcview.cxx.

Referenced by lcl_PrintHeader(), and SwSrcView::PrintSource().

#define BORDERPRN   300

Definition at line 105 of file srcview.cxx.

Referenced by lcl_PrintHeader().

#define LMARGPRN   1700

Definition at line 101 of file srcview.cxx.

Referenced by lcl_PrintHeader(), and SwSrcView::PrintSource().

#define RMARGPRN   900

Definition at line 102 of file srcview.cxx.

Referenced by lcl_PrintHeader(), and SwSrcView::PrintSource().

#define ShellClass_SwSrcView

Definition at line 81 of file srcview.cxx.

Definition at line 98 of file srcview.cxx.

Referenced by SwSrcView::GetState().

#define SWSRCVIEWFLAGS   SfxViewShellFlags::NO_NEWWINDOW

Definition at line 96 of file srcview.cxx.

#define TMARGPRN   2000

Definition at line 103 of file srcview.cxx.

Referenced by lcl_PrintHeader(), and SwSrcView::PrintSource().

Function Documentation

static OUString lcl_ConvertTabsToSpaces ( const OUString &  sLine)
static

Definition at line 191 of file srcview.cxx.

References nPos.

Referenced by SwSrcView::PrintSource().

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

Definition at line 107 of file srcview.cxx.

References SFX_VIEW_REGISTRATION.