LibreOffice Module sw (master) 1
|
#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>
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) |
#define BMARGPRN 1000 |
Definition at line 87 of file srcview.cxx.
#define BORDERPRN 300 |
Definition at line 88 of file srcview.cxx.
#define LMARGPRN 1700 |
Definition at line 84 of file srcview.cxx.
#define RMARGPRN 900 |
Definition at line 85 of file srcview.cxx.
#define ShellClass_SwSrcView |
Definition at line 66 of file srcview.cxx.
#define SRC_SEARCHOPTIONS (SearchOptionFlags::ALL & ~SearchOptionFlags(SearchOptionFlags::FORMAT|SearchOptionFlags::FAMILIES|SearchOptionFlags::SEARCHALL)) |
Definition at line 81 of file srcview.cxx.
#define SWSRCVIEWFLAGS SfxViewShellFlags::NO_NEWWINDOW |
Definition at line 79 of file srcview.cxx.
#define TMARGPRN 2000 |
Definition at line 86 of file srcview.cxx.
|
static |
Definition at line 167 of file srcview.cxx.
References nPos.
Referenced by SwSrcView::PrintSource().
|
static |
Definition at line 157 of file srcview.cxx.
Referenced by SwSrcView::Execute(), SwSrcView::SaveContent(), and SwSrcView::SaveContentTo().
|
static |
Definition at line 109 of file srcview.cxx.
References Point::AdjustX(), ALIGN_BOTTOM, BMARGPRN, BORDERPRN, COL_TRANSPARENT(), OutputDevice::DrawLine(), OutputDevice::DrawRect(), OutputDevice::DrawText(), OutputDevice::GetFillColor(), OutputDevice::GetFont(), OutputDevice::GetOutputSize(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Size::Height(), LMARGPRN, nBorder, nLeftMargin, RMARGPRN, vcl::Font::SetAlignment(), OutputDevice::SetFillColor(), OutputDevice::SetFont(), vcl::Font::SetWeight(), SwResId(), TMARGPRN, WEIGHT_BOLD, WEIGHT_NORMAL, and Size::Width().
Referenced by SwSrcView::PrintSource().
SFX_IMPL_NAMED_VIEWFACTORY | ( | SwSrcView | , |
"SourceView" | |||
) |
Definition at line 90 of file srcview.cxx.
References SFX_VIEW_REGISTRATION.