LibreOffice Module sfx2 (master) 1
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
viewsh.hxx File Reference
#include <sal/config.h>
#include <memory>
#include <optional>
#include <sfx2/dllapi.h>
#include <sal/types.h>
#include <com/sun/star/uno/Reference.h>
#include <svl/lstner.hxx>
#include <sfx2/shell.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <vcl/IDialogRenderable.hxx>
#include <comphelper/errcode.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <vcl/vclptr.hxx>
#include <editeng/outliner.hxx>
#include <functional>
#include <unordered_set>
#include <unordered_map>
Include dependency graph for viewsh.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  o3tl::typed_flags< SfxPrinterChangeFlags >
 
struct  o3tl::typed_flags< SfxViewShellFlags >
 
class  SfxViewShell
 One SfxViewShell more or less represents one edit window for a document, there can be multiple ones for a single opened document (SfxObjectShell). More...
 

Namespaces

namespace  weld
 
namespace  rtl
 
namespace  vcl
 
namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::awt
 
namespace  com::sun::star::beans
 
namespace  com::sun::star::datatransfer
 
namespace  com::sun::star::datatransfer::clipboard
 
namespace  com::sun::star::embed
 Implementation of the interface com.sun.star.rdf.XDocumentMetadataAccess.
 
namespace  com::sun::star::frame
 
namespace  com::sun::star::ui
 
namespace  com::sun::star::view
 
namespace  tools
 
namespace  svtools
 
namespace  o3tl
 

Macros

#define SFX_PRINTER_ALL   (SfxPrinterChangeFlags::PRINTER | SfxPrinterChangeFlags::JOBSETUP | SfxPrinterChangeFlags::OPTIONS | SfxPrinterChangeFlags::CHG_ORIENTATION | SfxPrinterChangeFlags::CHG_SIZE)
 
#define SFX_PRINTERROR_BUSY   1
 
#define DEFAULT_MARGIN_WIDTH   8
 
#define DEFAULT_MARGIN_HEIGHT   12
 
#define SFX_DECL_VIEWFACTORY(Class)
 
#define SFX_IMPL_NAMED_VIEWFACTORY(Class, AsciiViewName)
 
#define SFX_VIEW_REGISTRATION(DocClass)    DocClass::Factory().RegisterViewFactory( *Factory() )
 

Typedefs

typedef std::unordered_map< OUString, std::pair< Color, int > > StylesHighlighterColorMap
 

Enumerations

enum class  SfxPrinterChangeFlags {
  NONE = 0 ,
  PRINTER = 1 ,
  JOBSETUP = 2 ,
  OPTIONS = 4 ,
  CHG_ORIENTATION = 8 ,
  CHG_SIZE = 16
}
 
enum class  SfxViewShellFlags {
  NONE = 0x0000 ,
  HAS_PRINTOPTIONS = 0x0010 ,
  NO_NEWWINDOW = 0x0100
}
 
enum class  LOKDeviceFormFactor {
  UNKNOWN = 0 ,
  DESKTOP = 1 ,
  TABLET = 2 ,
  MOBILE = 3
}
 

Functions

template<class T >
bool checkSfxViewShell (const SfxViewShell *pShell)
 

Macro Definition Documentation

◆ DEFAULT_MARGIN_HEIGHT

#define DEFAULT_MARGIN_HEIGHT   12

Definition at line 98 of file viewsh.hxx.

◆ DEFAULT_MARGIN_WIDTH

#define DEFAULT_MARGIN_WIDTH   8

Definition at line 97 of file viewsh.hxx.

◆ SFX_DECL_VIEWFACTORY

#define SFX_DECL_VIEWFACTORY (   Class)
Value:
private: \
static SfxViewFactory *s_pFactory; \
public: \
static SfxViewShell *CreateInstance(SfxViewFrame& rFrame, SfxViewShell *pOldView); \
static void RegisterFactory( SfxInterfaceId nPrio ); \
static SfxViewFactory*Factory() { return s_pFactory; } \
static void InitFactory()
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones f...
Definition: viewsh.hxx:165
NBOTypeMgrBase * CreateInstance(const NBOType aType)

Definition at line 130 of file viewsh.hxx.

◆ SFX_IMPL_NAMED_VIEWFACTORY

#define SFX_IMPL_NAMED_VIEWFACTORY (   Class,
  AsciiViewName 
)
Value:
SfxViewFactory* Class::s_pFactory; \
SfxViewShell* Class::CreateInstance(SfxViewFrame& rFrame, SfxViewShell *pOldView) \
{ return new Class(rFrame, pOldView); } \
void Class::RegisterFactory( SfxInterfaceId nPrio ) \
{ \
s_pFactory = new SfxViewFactory(&CreateInstance,nPrio,AsciiViewName);\
InitFactory(); \
} \
void Class::InitFactory()

Definition at line 139 of file viewsh.hxx.

◆ SFX_PRINTER_ALL

Definition at line 92 of file viewsh.hxx.

◆ SFX_PRINTERROR_BUSY

#define SFX_PRINTERROR_BUSY   1

Definition at line 94 of file viewsh.hxx.

◆ SFX_VIEW_REGISTRATION

#define SFX_VIEW_REGISTRATION (   DocClass)     DocClass::Factory().RegisterViewFactory( *Factory() )

Definition at line 150 of file viewsh.hxx.

Typedef Documentation

◆ StylesHighlighterColorMap

typedef std::unordered_map<OUString, std::pair<Color, int> > StylesHighlighterColorMap

Definition at line 158 of file viewsh.hxx.

Enumeration Type Documentation

◆ LOKDeviceFormFactor

enum class LOKDeviceFormFactor
strong
Enumerator
UNKNOWN 
DESKTOP 
TABLET 
MOBILE 

Definition at line 121 of file viewsh.hxx.

◆ SfxPrinterChangeFlags

enum class SfxPrinterChangeFlags
strong
Enumerator
NONE 
PRINTER 
JOBSETUP 
OPTIONS 
CHG_ORIENTATION 
CHG_SIZE 

Definition at line 79 of file viewsh.hxx.

◆ SfxViewShellFlags

enum class SfxViewShellFlags
strong
Enumerator
NONE 
HAS_PRINTOPTIONS 
NO_NEWWINDOW 

Definition at line 103 of file viewsh.hxx.

Function Documentation

◆ checkSfxViewShell()

template<class T >
bool checkSfxViewShell ( const SfxViewShell pShell)

Definition at line 153 of file viewsh.hxx.