LibreOffice Module svx (master) 1
|
#include <fmprop.hxx>
#include <fmservs.hxx>
#include <svx/fmtools.hxx>
#include <svx/svdobjkind.hxx>
#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 <tools/debug.hxx>
#include <comphelper/diagnose_ex.hxx>
Go to the source code of this file.
Functions | |
void | displayException (const Any &_rExcept, const css::uno::Reference< css::awt::XWindow > &rParent) |
void | displayException (const css::sdbc::SQLException &_rExcept, const css::uno::Reference< css::awt::XWindow > &rParent) |
void | displayException (const css::sdb::SQLContext &_rExcept, const css::uno::Reference< css::awt::XWindow > &rParent) |
void | displayException (const css::sdb::SQLErrorEvent &_rEvent, const css::uno::Reference< css::awt::XWindow > &rParent) |
sal_Int32 | getElementPos (const Reference< css::container::XIndexAccess > &xCont, const Reference< XInterface > &xElement) |
OUString | getLabelName (const Reference< css::beans::XPropertySet > &xControlModel) |
SdrObjKind | getControlTypeByObject (const Reference< css::lang::XServiceInfo > &_rxObject) |
bool | isRowSetAlive (const Reference< XInterface > &_rxRowSet) |
void displayException | ( | const Any & | _rExcept, |
const css::uno::Reference< css::awt::XWindow > & | rParent | ||
) |
Definition at line 83 of file fmtools.cxx.
References Exception, and TOOLS_WARN_EXCEPTION.
Referenced by DbFilterField::commitControl(), displayException(), svxform::FormController::errorOccured(), svxform::IMPL_LINK(), and IMPL_LINK_NOARG().
void displayException | ( | const css::sdb::SQLContext & | _rExcept, |
const css::uno::Reference< css::awt::XWindow > & | rParent | ||
) |
Definition at line 105 of file fmtools.cxx.
References Any, and displayException().
void displayException | ( | const css::sdb::SQLErrorEvent & | _rEvent, |
const css::uno::Reference< css::awt::XWindow > & | rParent | ||
) |
Definition at line 110 of file fmtools.cxx.
References displayException().
void displayException | ( | const css::sdbc::SQLException & | _rExcept, |
const css::uno::Reference< css::awt::XWindow > & | rParent | ||
) |
Definition at line 100 of file fmtools.cxx.
References Any, and displayException().
SdrObjKind getControlTypeByObject | ( | const Reference< css::lang::XServiceInfo > & | _rxObject | ) |
Definition at line 284 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, FormButton, FormCheckbox, FormCombobox, FormControl, FormCurrencyField, FormDateField, FormEdit, FormFileControl, FormFixedText, FormFormattedField, FormGrid, FormGroupBox, FormHidden, FormImageButton, FormImageControl, FormListbox, FormNavigationBar, FormNumericField, FormPatternField, FormRadioButton, FormScrollbar, FormSpinButton, and FormTimeField.
Referenced by FmControlData::GetImage().
sal_Int32 getElementPos | ( | const Reference< css::container::XIndexAccess > & | xCont, |
const Reference< XInterface > & | xElement | ||
) |
Definition at line 115 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 149 of file fmtools.cxx.
References aLabel, Any, FM_PROP_CONTROLLABEL, FM_PROP_CONTROLSOURCE, and FM_PROP_LABEL.
Referenced by IMPL_LINK().
bool isRowSetAlive | ( | const Reference< XInterface > & | _rxRowSet | ) |
Definition at line 358 of file fmtools.cxx.
Referenced by svxform::FormController::determineLockState(), and FmFormShell::GetFormState().