LibreOffice Module sc (master) 1
Macros | Variables
reffact.cxx File Reference
#include <sfx2/basedlgs.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/viewfrm.hxx>
#include <reffact.hxx>
#include <tabvwsh.hxx>
#include <sc.hrc>
#include <acredlin.hxx>
#include <simpref.hxx>
#include <scmod.hxx>
#include <scres.hrc>
#include <validate.hxx>
Include dependency graph for reffact.cxx:

Go to the source code of this file.

Macros

#define IMPL_CONTROLLER_CHILD_CTOR(Class, sid)
 

Variables

static bool bScSimpleRefFlag
 
static tools::Long nScSimpleRefHeight
 
static tools::Long nScSimpleRefWidth
 
static tools::Long nScSimpleRefX
 
static tools::Long nScSimpleRefY
 
static bool bAutoReOpen = true
 

Macro Definition Documentation

◆ IMPL_CONTROLLER_CHILD_CTOR

#define IMPL_CONTROLLER_CHILD_CTOR (   Class,
  sid 
)
Value:
Class::Class( vcl::Window* pParentP, \
sal_uInt16 nId, \
const SfxChildWinInfo* pInfo ) \
: SfxChildWindow(pParentP, nId) \
{ \
/************************************************************************************/\
/* When a new document is creating, the SfxViewFrame may be ready, */\
/* But the ScTabViewShell may have not been activated yet. In this */\
/* situation, SfxViewShell::Current() does not get the correct shell, */\
/* and we should lcl_GetTabViewShell( p ) instead of SfxViewShell::Current() */\
/************************************************************************************/\
ScTabViewShell* pViewShell = lcl_GetTabViewShell( p ); \
if (!pViewShell) \
pViewShell = dynamic_cast<ScTabViewShell*>( SfxViewShell::Current() ); \
OSL_ENSURE( pViewShell, "missing view shell :-(" ); \
SetController( pViewShell ? \
pViewShell->CreateRefDialogController( p, this, pInfo, pParentP->GetFrameWeld(), sid ) : nullptr ); \
if (pViewShell && !GetController()) \
pViewShell->GetViewFrame().SetChildWindow( nId, false ); \
}
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
virtual std::shared_ptr< SfxDialogController > GetController() override

Definition at line 66 of file reffact.cxx.

Variable Documentation

◆ bAutoReOpen

bool bAutoReOpen = true
static

◆ bScSimpleRefFlag

bool bScSimpleRefFlag
static

Definition at line 120 of file reffact.cxx.

Referenced by ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper().

◆ nScSimpleRefHeight

tools::Long nScSimpleRefHeight
static

Definition at line 121 of file reffact.cxx.

Referenced by ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper().

◆ nScSimpleRefWidth

tools::Long nScSimpleRefWidth
static

Definition at line 122 of file reffact.cxx.

Referenced by ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper().

◆ nScSimpleRefX

tools::Long nScSimpleRefX
static

Definition at line 123 of file reffact.cxx.

Referenced by ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper().

◆ nScSimpleRefY

tools::Long nScSimpleRefY
static

Definition at line 124 of file reffact.cxx.

Referenced by ScSimpleRefDlgWrapper::ScSimpleRefDlgWrapper().