LibreOffice Module svx (master)
1
|
#include <fmprop.hxx>
#include <fmservs.hxx>
#include <svx/fmtools.hxx>
#include <svx/svdobjkind.hxx>
#include <com/sun/star/awt/LineEndFormat.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/io/XPersistObject.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/sdb/ErrorCondition.hpp>
#include <com/sun/star/sdb/ErrorMessageDialog.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <com/sun/star/sdb/SQLErrorEvent.hpp>
#include <com/sun/star/sdb/XCompletedConnection.hpp>
#include <com/sun/star/sdb/XResultSetAccess.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <com/sun/star/util/Language.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/property.hxx>
#include <comphelper/types.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
Go to the source code of this file.
Functions | |
void | displayException (const Any &_rExcept, vcl::Window *_pParent) |
void | displayException (const css::sdbc::SQLException &_rExcept, vcl::Window *_pParent) |
void | displayException (const css::sdb::SQLContext &_rExcept, vcl::Window *_pParent) |
void | displayException (const css::sdb::SQLErrorEvent &_rEvent, vcl::Window *_pParent) |
sal_Int32 | getElementPos (const Reference< css::container::XIndexAccess > &xCont, const Reference< XInterface > &xElement) |
OUString | getLabelName (const Reference< css::beans::XPropertySet > &xControlModel) |
sal_Int16 | getControlTypeByObject (const Reference< css::lang::XServiceInfo > &_rxObject) |
bool | isRowSetAlive (const Reference< XInterface > &_rxRowSet) |
void displayException | ( | const Any & | _rExcept, |
vcl::Window * | _pParent | ||
) |
Definition at line 87 of file fmtools.cxx.
References Exception, Application::GetDefDialogParent(), VCLUnoHelper::GetInterface(), comphelper::getProcessComponentContext(), and TOOLS_WARN_EXCEPTION.
Referenced by DbFilterField::commitControl(), displayException(), svxform::FormController::errorOccured(), svxform::IMPL_LINK(), and IMPL_LINK_NOARG().
void displayException | ( | const css::sdbc::SQLException & | _rExcept, |
vcl::Window * | _pParent | ||
) |
Definition at line 109 of file fmtools.cxx.
References displayException(), and makeAny().
void displayException | ( | const css::sdb::SQLContext & | _rExcept, |
vcl::Window * | _pParent | ||
) |
Definition at line 115 of file fmtools.cxx.
References displayException(), and makeAny().
void displayException | ( | const css::sdb::SQLErrorEvent & | _rEvent, |
vcl::Window * | _pParent | ||
) |
Definition at line 121 of file fmtools.cxx.
References displayException().
sal_Int16 getControlTypeByObject | ( | const Reference< css::lang::XServiceInfo > & | _rxObject | ) |
Definition at line 296 of file fmtools.cxx.
References DBG_ASSERT, FM_COMPONENT_CHECKBOX, FM_COMPONENT_COMBOBOX, FM_COMPONENT_COMMANDBUTTON, FM_COMPONENT_CURRENCYFIELD, FM_COMPONENT_DATEFIELD, FM_COMPONENT_EDIT, FM_COMPONENT_FILECONTROL, FM_COMPONENT_FIXEDTEXT, FM_COMPONENT_FORMATTEDFIELD, FM_COMPONENT_GRID, FM_COMPONENT_GRIDCONTROL, FM_COMPONENT_GROUPBOX, FM_COMPONENT_HIDDEN, FM_COMPONENT_HIDDENCONTROL, FM_COMPONENT_IMAGEBUTTON, FM_COMPONENT_IMAGECONTROL, FM_COMPONENT_LISTBOX, FM_COMPONENT_NUMERICFIELD, FM_COMPONENT_PATTERNFIELD, FM_COMPONENT_RADIOBUTTON, FM_COMPONENT_TEXTFIELD, FM_COMPONENT_TIMEFIELD, FM_SUN_COMPONENT_FORMATTEDFIELD, FM_SUN_COMPONENT_NAVIGATIONBAR, FM_SUN_COMPONENT_SCROLLBAR, FM_SUN_COMPONENT_SPINBUTTON, OBJ_FM_BUTTON, OBJ_FM_CHECKBOX, OBJ_FM_COMBOBOX, OBJ_FM_CONTROL, OBJ_FM_CURRENCYFIELD, OBJ_FM_DATEFIELD, OBJ_FM_EDIT, OBJ_FM_FILECONTROL, OBJ_FM_FIXEDTEXT, OBJ_FM_FORMATTEDFIELD, OBJ_FM_GRID, OBJ_FM_GROUPBOX, OBJ_FM_HIDDEN, OBJ_FM_IMAGEBUTTON, OBJ_FM_IMAGECONTROL, OBJ_FM_LISTBOX, OBJ_FM_NAVIGATIONBAR, OBJ_FM_NUMERICFIELD, OBJ_FM_PATTERNFIELD, OBJ_FM_RADIOBUTTON, OBJ_FM_SCROLLBAR, OBJ_FM_SPINBUTTON, and OBJ_FM_TIMEFIELD.
Referenced by FmControlData::GetImage().
sal_Int32 getElementPos | ( | const Reference< css::container::XIndexAccess > & | xCont, |
const Reference< XInterface > & | xElement | ||
) |
Definition at line 127 of file fmtools.cxx.
References DBG_ASSERT, Exception, nIndex, and TOOLS_WARN_EXCEPTION.
Referenced by DbGridColumn::impl_toggleScriptManager_nothrow(), svxform::NavigatorTree::implExecuteDataTransfer(), FmUndoContainerAction::implReInsert(), FmUndoContainerAction::implReRemove(), svxform::NavigatorTreeModel::InsertSdrObj(), svxform::NavigatorTreeModel::Remove(), and FmXUndoEnvironment::Removed().
OUString getLabelName | ( | const Reference< css::beans::XPropertySet > & | xControlModel | ) |
Definition at line 161 of file fmtools.cxx.
References aLabel, Any, FM_PROP_CONTROLLABEL, FM_PROP_CONTROLSOURCE, FM_PROP_LABEL, comphelper::getString(), and comphelper::hasProperty().
Referenced by IMPL_LINK().
bool isRowSetAlive | ( | const Reference< XInterface > & | _rxRowSet | ) |
Definition at line 370 of file fmtools.cxx.
Referenced by svxform::FormController::determineLockState(), and FmFormShell::GetFormState().