LibreOffice Module svx (master) 1
Classes | Functions | Variables
fmshimp.cxx File Reference
#include <sal/config.h>
#include <o3tl/safeint.hxx>
#include <sal/macros.h>
#include <sal/log.hxx>
#include <fmobj.hxx>
#include <fmpgeimp.hxx>
#include <svx/fmtools.hxx>
#include <fmprop.hxx>
#include <fmservs.hxx>
#include <fmshimp.hxx>
#include <fmtextcontrolshell.hxx>
#include <fmundo.hxx>
#include <fmurl.hxx>
#include <fmvwimp.hxx>
#include <gridcols.hxx>
#include <svx/svditer.hxx>
#include <svx/dialmgr.hxx>
#include <svx/strings.hrc>
#include <svx/svdobjkind.hxx>
#include <svx/fmmodel.hxx>
#include <svx/fmpage.hxx>
#include <svx/fmshell.hxx>
#include <svx/fmview.hxx>
#include <svx/obj3d.hxx>
#include <svx/sdrpagewindow.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svxdlg.hxx>
#include <svx/svxids.hrc>
#include <bitmaps.hlst>
#include <formnavi.hrc>
#include <com/sun/star/awt/XWindow2.hpp>
#include <com/sun/star/awt/XCheckBox.hpp>
#include <com/sun/star/awt/XListBox.hpp>
#include <com/sun/star/awt/XTextComponent.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/container/XContainer.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/form/ListSourceType.hpp>
#include <com/sun/star/form/TabOrderDialog.hpp>
#include <com/sun/star/form/XGrid.hpp>
#include <com/sun/star/form/XGridPeer.hpp>
#include <com/sun/star/form/XLoadable.hpp>
#include <com/sun/star/form/XReset.hpp>
#include <com/sun/star/form/binding/XBindableValue.hpp>
#include <com/sun/star/form/binding/XListEntrySink.hpp>
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/script/XEventAttacherManager.hpp>
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <com/sun/star/util/XModeSelector.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <comphelper/evtmethodhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/property.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/solarmutex.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
#include <connectivity/dbtools.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/viewsh.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/debug.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <unotools/configmgr.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <vcl/window.hxx>
#include <algorithm>
#include <map>
#include <memory>
#include <string_view>
#include <vector>
Include dependency graph for fmshimp.cxx:

Go to the source code of this file.

Classes

class  FmXFormShell::SuspendPropertyTracking
 

Functions

bool IsSearchableControl (const css::uno::Reference< css::uno::XInterface > &_rxControl, OUString *_pCurrentText)
 
static bool isControlList (const SdrMarkList &rMarkList)
 
static Reference< XForm > GetForm (const Reference< XInterface > &_rxElement)
 
 IMPL_LINK_NOARG (FmXFormShell, OnInvalidateSlots_Lock, void *, void)
 
 IMPL_LINK (FmXFormShell, OnFoundData_Lock, FmFoundRecordInformation &, rfriWhere, void)
 
 IMPL_LINK (FmXFormShell, OnCanceledNotFound_Lock, FmFoundRecordInformation &, rfriWhere, void)
 
 IMPL_LINK (FmXFormShell, OnSearchContextRequest_Lock, FmSearchContext &, rfmscContextInfo, sal_uInt32)
 
 IMPL_LINK_NOARG (FmXFormShell, OnTimeOut_Lock, Timer *, void)
 
static void saveFilter (const Reference< runtime::XFormController > &_rxController)
 
 IMPL_LINK_NOARG (FmXFormShell, OnFirstTimeActivation_Lock, void *, void)
 
 IMPL_LINK_NOARG (FmXFormShell, OnFormsCreated_Lock, FmFormPageImpl &, void)
 
 IMPL_LINK_NOARG (FmXFormShell, OnLoadForms_Lock, void *, void)
 

Variables

const sal_uInt16 DatabaseSlotMap []
 
const sal_Int16 DlgSlotMap []
 
const sal_Int16 SelObjectSlotMap []
 
static std::u16string_view aConvertSlots []
 
constexpr rtl::OUStringConstExpr aImgIds []
 
const SdrObjKind nObjectTypes []
 

Function Documentation

◆ GetForm()

static Reference< XForm > GetForm ( const Reference< XInterface > &  _rxElement)
static

Definition at line 587 of file fmshimp.cxx.

References GetForm().

Referenced by GetForm().

◆ IMPL_LINK() [1/3]

IMPL_LINK ( FmXFormShell  ,
OnCanceledNotFound_Lock  ,
FmFoundRecordInformation ,
rfriWhere  ,
void   
)

Definition at line 2232 of file fmshimp.cxx.

References DBG_ASSERT, m_pShell, and o3tl::make_unsigned().

◆ IMPL_LINK() [2/3]

IMPL_LINK ( FmXFormShell  ,
OnFoundData_Lock  ,
FmFoundRecordInformation ,
rfriWhere  ,
void   
)

◆ IMPL_LINK() [3/3]

IMPL_LINK ( FmXFormShell  ,
OnSearchContextRequest_Lock  ,
FmSearchContext ,
rfmscContextInfo  ,
sal_uInt32   
)

◆ IMPL_LINK_NOARG() [1/5]

IMPL_LINK_NOARG ( FmXFormShell  ,
OnFirstTimeActivation_Lock  ,
void *  ,
void   
)

Definition at line 3543 of file fmshimp.cxx.

References SfxObjectShell::HasName(), and m_pShell.

◆ IMPL_LINK_NOARG() [2/5]

IMPL_LINK_NOARG ( FmXFormShell  ,
OnFormsCreated_Lock  ,
FmFormPageImpl ,
void   
)

Definition at line 3563 of file fmshimp.cxx.

◆ IMPL_LINK_NOARG() [3/5]

IMPL_LINK_NOARG ( FmXFormShell  ,
OnInvalidateSlots_Lock  ,
void *  ,
void   
)

Definition at line 976 of file fmshimp.cxx.

References m_pShell.

◆ IMPL_LINK_NOARG() [4/5]

IMPL_LINK_NOARG ( FmXFormShell  ,
OnLoadForms_Lock  ,
void *  ,
void   
)

Definition at line 3706 of file fmshimp.cxx.

References Async, FmLoadAction::nFlags, and FmLoadAction::pPage.

◆ IMPL_LINK_NOARG() [5/5]

IMPL_LINK_NOARG ( FmXFormShell  ,
OnTimeOut_Lock  ,
Timer ,
void   
)

Definition at line 2631 of file fmshimp.cxx.

References m_pShell.

◆ isControlList()

static bool isControlList ( const SdrMarkList rMarkList)
static

◆ IsSearchableControl()

bool IsSearchableControl ( const css::uno::Reference< css::uno::XInterface > &  _rxControl,
OUString *  _pCurrentText 
)

Definition at line 469 of file fmshimp.cxx.

References TRISTATE_FALSE, and TRISTATE_TRUE.

Referenced by IMPL_LINK().

◆ saveFilter()

static void saveFilter ( const Reference< runtime::XFormController > &  _rxController)
static

Variable Documentation

◆ aConvertSlots

std::u16string_view aConvertSlots[]
static
Initial value:
=
{
u"ConvertToEdit",
u"ConvertToButton",
u"ConvertToFixed",
u"ConvertToList",
u"ConvertToCheckBox",
u"ConvertToRadio",
u"ConvertToGroup",
u"ConvertToCombo",
u"ConvertToImageBtn",
u"ConvertToFileControl",
u"ConvertToDate",
u"ConvertToTime",
u"ConvertToNumeric",
u"ConvertToCurrency",
u"ConvertToPattern",
u"ConvertToImageControl",
u"ConvertToFormatted",
u"ConvertToScrollBar",
u"ConvertToSpinButton",
u"ConvertToNavigationBar"
}
float u

Definition at line 183 of file fmshimp.cxx.

◆ aImgIds

constexpr rtl::OUStringConstExpr aImgIds[]
constexpr
Initial value:
=
{
RID_SVXBMP_EDITBOX,
RID_SVXBMP_BUTTON,
RID_SVXBMP_FIXEDTEXT,
RID_SVXBMP_LISTBOX,
RID_SVXBMP_CHECKBOX,
RID_SVXBMP_RADIOBUTTON,
RID_SVXBMP_GROUPBOX,
RID_SVXBMP_COMBOBOX,
RID_SVXBMP_IMAGEBUTTON,
RID_SVXBMP_FILECONTROL,
RID_SVXBMP_DATEFIELD,
RID_SVXBMP_TIMEFIELD,
RID_SVXBMP_NUMERICFIELD,
RID_SVXBMP_CURRENCYFIELD,
RID_SVXBMP_PATTERNFIELD,
RID_SVXBMP_IMAGECONTROL,
RID_SVXBMP_FORMATTEDFIELD,
RID_SVXBMP_SCROLLBAR,
RID_SVXBMP_SPINBUTTON,
RID_SVXBMP_NAVIGATIONBAR
}

Definition at line 207 of file fmshimp.cxx.

◆ DatabaseSlotMap

const sal_uInt16 DatabaseSlotMap[]
Initial value:
=
{
SID_FM_RECORD_FIRST,
SID_FM_RECORD_NEXT,
SID_FM_RECORD_PREV,
SID_FM_RECORD_LAST,
SID_FM_RECORD_NEW,
SID_FM_RECORD_DELETE,
SID_FM_RECORD_ABSOLUTE,
SID_FM_RECORD_TOTAL,
SID_FM_RECORD_SAVE,
SID_FM_RECORD_UNDO,
SID_FM_REMOVE_FILTER_SORT,
SID_FM_SORTUP,
SID_FM_SORTDOWN,
SID_FM_ORDERCRIT,
SID_FM_AUTOFILTER,
SID_FM_FORM_FILTERED,
SID_FM_REFRESH,
SID_FM_REFRESH_FORM_CONTROL,
SID_FM_SEARCH,
SID_FM_FILTER_START,
SID_FM_VIEW_AS_GRID,
0
}

Definition at line 108 of file fmshimp.cxx.

Referenced by IMPL_LINK().

◆ DlgSlotMap

const sal_Int16 DlgSlotMap[]
Initial value:
=
{
SID_FM_CTL_PROPERTIES,
SID_FM_PROPERTIES,
SID_FM_TAB_DIALOG,
SID_FM_ADD_FIELD,
SID_FM_SHOW_FMEXPLORER,
SID_FM_FIELDS_CONTROL,
SID_FM_SHOW_PROPERTIES,
SID_FM_PROPERTY_CONTROL,
SID_FM_FMEXPLORER_CONTROL,
SID_FM_SHOW_DATANAVIGATOR,
SID_FM_DATANAVIGATOR_CONTROL,
0
}

Definition at line 136 of file fmshimp.cxx.

◆ nObjectTypes

const SdrObjKind nObjectTypes[]

◆ SelObjectSlotMap

const sal_Int16 SelObjectSlotMap[]
Initial value:
=
{
SID_FM_CONVERTTO_EDIT,
SID_FM_CONVERTTO_BUTTON,
SID_FM_CONVERTTO_FIXEDTEXT,
SID_FM_CONVERTTO_LISTBOX,
SID_FM_CONVERTTO_CHECKBOX,
SID_FM_CONVERTTO_RADIOBUTTON,
SID_FM_CONVERTTO_GROUPBOX,
SID_FM_CONVERTTO_COMBOBOX,
SID_FM_CONVERTTO_IMAGEBUTTON,
SID_FM_CONVERTTO_FILECONTROL,
SID_FM_CONVERTTO_DATE,
SID_FM_CONVERTTO_TIME,
SID_FM_CONVERTTO_NUMERIC,
SID_FM_CONVERTTO_CURRENCY,
SID_FM_CONVERTTO_PATTERN,
SID_FM_CONVERTTO_IMAGECONTROL,
SID_FM_CONVERTTO_FORMATTED,
SID_FM_CONVERTTO_SCROLLBAR,
SID_FM_CONVERTTO_SPINBUTTON,
SID_FM_CONVERTTO_NAVIGATIONBAR,
SID_FM_FMEXPLORER_CONTROL,
SID_FM_DATANAVIGATOR_CONTROL,
0
}

Definition at line 152 of file fmshimp.cxx.