summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/BaseListBox.hxx6
-rw-r--r--forms/source/component/Button.cxx24
-rw-r--r--forms/source/component/Button.hxx6
-rw-r--r--forms/source/component/CheckBox.cxx10
-rw-r--r--forms/source/component/CheckBox.hxx12
-rw-r--r--forms/source/component/Columns.cxx4
-rw-r--r--forms/source/component/Columns.hxx64
-rw-r--r--forms/source/component/ComboBox.cxx28
-rw-r--r--forms/source/component/ComboBox.hxx22
-rw-r--r--forms/source/component/Currency.cxx18
-rw-r--r--forms/source/component/Currency.hxx6
-rw-r--r--forms/source/component/DatabaseForm.cxx104
-rw-r--r--forms/source/component/DatabaseForm.hxx152
-rw-r--r--forms/source/component/Date.cxx14
-rw-r--r--forms/source/component/Date.hxx10
-rw-r--r--forms/source/component/Edit.cxx30
-rw-r--r--forms/source/component/Edit.hxx16
-rw-r--r--forms/source/component/EditBase.cxx16
-rw-r--r--forms/source/component/EditBase.hxx36
-rw-r--r--forms/source/component/EventThread.cxx8
-rw-r--r--forms/source/component/EventThread.hxx24
-rw-r--r--forms/source/component/File.cxx16
-rw-r--r--forms/source/component/File.hxx8
-rw-r--r--forms/source/component/Filter.cxx16
-rw-r--r--forms/source/component/Filter.hxx100
-rw-r--r--forms/source/component/FixedText.cxx4
-rw-r--r--forms/source/component/FixedText.hxx6
-rw-r--r--forms/source/component/FormComponent.cxx20
-rw-r--r--forms/source/component/FormattedField.cxx58
-rw-r--r--forms/source/component/FormattedField.hxx24
-rw-r--r--forms/source/component/FormattedFieldWrapper.cxx24
-rw-r--r--forms/source/component/FormattedFieldWrapper.hxx18
-rw-r--r--forms/source/component/FormsCollection.cxx4
-rw-r--r--forms/source/component/FormsCollection.hxx12
-rw-r--r--forms/source/component/Grid.cxx122
-rw-r--r--forms/source/component/Grid.hxx54
-rw-r--r--forms/source/component/GroupBox.cxx8
-rw-r--r--forms/source/component/GroupBox.hxx8
-rw-r--r--forms/source/component/GroupManager.cxx16
-rw-r--r--forms/source/component/GroupManager.hxx48
-rw-r--r--forms/source/component/Hidden.cxx14
-rw-r--r--forms/source/component/Hidden.hxx8
-rw-r--r--forms/source/component/ImageButton.cxx10
-rw-r--r--forms/source/component/ImageButton.hxx4
-rw-r--r--forms/source/component/ImageControl.cxx24
-rw-r--r--forms/source/component/ImageControl.hxx16
-rw-r--r--forms/source/component/ListBox.cxx2
-rw-r--r--forms/source/component/ListBox.hxx26
-rw-r--r--forms/source/component/Numeric.cxx10
-rw-r--r--forms/source/component/Numeric.hxx6
-rw-r--r--forms/source/component/Pattern.cxx2
-rw-r--r--forms/source/component/Pattern.hxx2
-rw-r--r--forms/source/component/RadioButton.cxx30
-rw-r--r--forms/source/component/RadioButton.hxx10
-rw-r--r--forms/source/component/Time.cxx16
-rw-r--r--forms/source/component/Time.hxx10
-rw-r--r--forms/source/component/cachedrowset.cxx2
-rw-r--r--forms/source/component/cachedrowset.hxx2
-rw-r--r--forms/source/component/clickableimage.cxx38
-rw-r--r--forms/source/component/clickableimage.hxx24
-rw-r--r--forms/source/component/cloneable.cxx8
-rw-r--r--forms/source/component/entrylisthelper.cxx2
-rw-r--r--forms/source/component/entrylisthelper.hxx4
-rw-r--r--forms/source/component/errorbroadcaster.cxx4
-rw-r--r--forms/source/component/errorbroadcaster.hxx12
-rw-r--r--forms/source/component/findpos.cxx2
-rw-r--r--forms/source/component/findpos.hxx2
-rw-r--r--forms/source/component/formcontrolfont.cxx2
-rw-r--r--forms/source/component/imgprod.cxx90
-rw-r--r--forms/source/component/imgprod.hxx42
-rw-r--r--forms/source/component/navigationbar.cxx6
-rw-r--r--forms/source/component/navigationbar.hxx12
-rw-r--r--forms/source/component/propertybaghelper.cxx2
-rw-r--r--forms/source/component/refvaluecomponent.cxx12
-rw-r--r--forms/source/component/refvaluecomponent.hxx4
-rw-r--r--forms/source/component/scrollbar.cxx6
-rw-r--r--forms/source/component/scrollbar.hxx2
-rw-r--r--forms/source/component/spinbutton.cxx6
-rw-r--r--forms/source/component/spinbutton.hxx2
79 files changed, 826 insertions, 826 deletions
diff --git a/forms/source/component/BaseListBox.hxx b/forms/source/component/BaseListBox.hxx
index 01d63db5659f..184acbad2bdb 100644
--- a/forms/source/component/BaseListBox.hxx
+++ b/forms/source/component/BaseListBox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,8 +33,8 @@
namespace frm
{
-const sal_uInt16 ENTRY_NOT_FOUND = 0xFFFF;
-const sal_uInt16 BOUNDCOLUMN = 0x0001;
+const sal_uInt16 ENTRY_NOT_FOUND = 0xFFFF;
+const sal_uInt16 BOUNDCOLUMN = 0x0001;
//.........................................................................
}
diff --git a/forms/source/component/Button.cxx b/forms/source/component/Button.cxx
index da060f997052..8d9b8c8a088f 100644
--- a/forms/source/component/Button.cxx
+++ b/forms/source/component/Button.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -120,12 +120,12 @@ OButtonModel::~OButtonModel()
void OButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 6, OClickableImageBaseModel )
- DECL_PROP1( BUTTONTYPE, FormButtonType, BOUND );
+ DECL_PROP1( BUTTONTYPE, FormButtonType, BOUND );
DECL_PROP1( DEFAULT_STATE, sal_Int16, BOUND );
- DECL_PROP1( DISPATCHURLINTERNAL, sal_Bool, BOUND );
- DECL_PROP1( TARGET_URL, ::rtl::OUString, BOUND );
- DECL_PROP1( TARGET_FRAME, ::rtl::OUString, BOUND );
- DECL_PROP1( TABINDEX, sal_Int16, BOUND );
+ DECL_PROP1( DISPATCHURLINTERNAL, sal_Bool, BOUND );
+ DECL_PROP1( TARGET_URL, ::rtl::OUString, BOUND );
+ DECL_PROP1( TARGET_FRAME, ::rtl::OUString, BOUND );
+ DECL_PROP1( TABINDEX, sal_Int16, BOUND );
END_DESCRIBE_PROPERTIES();
}
@@ -134,7 +134,7 @@ IMPLEMENT_DEFAULT_CLONING( OButtonModel )
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence OButtonModel::getSupportedServiceNames() throw()
+StringSequence OButtonModel::getSupportedServiceNames() throw()
{
StringSequence aSupported = OClickableImageBaseModel::getSupportedServiceNames();
aSupported.realloc( aSupported.getLength() + 1 );
@@ -148,7 +148,7 @@ StringSequence OButtonModel::getSupportedServiceNames() throw()
//------------------------------------------------------------------------------
::rtl::OUString OButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_COMMANDBUTTON; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_COMMANDBUTTON; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -156,7 +156,7 @@ void OButtonModel::write(const Reference<XObjectOutputStream>& _rxOutStream) thr
{
OClickableImageBaseModel::write(_rxOutStream);
- _rxOutStream->writeShort(0x0003); // Version
+ _rxOutStream->writeShort(0x0003); // Version
{
OStreamSection aSection( _rxOutStream.get() );
@@ -177,7 +177,7 @@ void OButtonModel::read(const Reference<XObjectInputStream>& _rxInStream) throw
{
OClickableImageBaseModel::read(_rxInStream);
- sal_uInt16 nVersion = _rxInStream->readShort(); // Version
+ sal_uInt16 nVersion = _rxInStream->readShort(); // Version
switch (nVersion)
{
case 0x0001:
@@ -364,7 +364,7 @@ Sequence<Type> OButtonControl::_getTypes()
}
//------------------------------------------------------------------------------
-StringSequence OButtonControl::getSupportedServiceNames() throw()
+StringSequence OButtonControl::getSupportedServiceNames() throw()
{
StringSequence aSupported = OClickableImageBaseControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -776,7 +776,7 @@ void SAL_CALL OButtonControl::releaseDispatchProviderInterceptor( const Referenc
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Button.hxx b/forms/source/component/Button.hxx
index b866c55b3b1c..511077d4032f 100644
--- a/forms/source/component/Button.hxx
+++ b/forms/source/component/Button.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -123,7 +123,7 @@ typedef ::cppu::ImplHelper3 < ::com::sun::star::awt::XButton
, ::com::sun::star::beans::XPropertyChangeListener
> OButtonControl_BASE;
-class OButtonControl :public OButtonControl_BASE
+class OButtonControl :public OButtonControl_BASE
,public OClickableImageBaseControl
,public OFormNavigationHelper
{
@@ -204,7 +204,7 @@ private:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FRM_BUTTON_HXX_
diff --git a/forms/source/component/CheckBox.cxx b/forms/source/component/CheckBox.cxx
index 11ccbe16690a..bc69702ede28 100644
--- a/forms/source/component/CheckBox.cxx
+++ b/forms/source/component/CheckBox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ InterfaceRef SAL_CALL OCheckBoxControl_CreateInstance(const Reference<XMultiServ
}
//------------------------------------------------------------------------------
-StringSequence SAL_CALL OCheckBoxControl::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
+StringSequence SAL_CALL OCheckBoxControl::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
{
StringSequence aSupported = OBoundControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -119,7 +119,7 @@ IMPLEMENT_DEFAULT_CLONING( OCheckBoxModel )
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence SAL_CALL OCheckBoxModel::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
+StringSequence SAL_CALL OCheckBoxModel::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
{
StringSequence aSupported = OReferenceValueComponent::getSupportedServiceNames();
@@ -145,14 +145,14 @@ StringSequence SAL_CALL OCheckBoxModel::getSupportedServiceNames() throw(::com::
void OCheckBoxModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 1, OReferenceValueComponent )
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
END_DESCRIBE_PROPERTIES();
}
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OCheckBoxModel::getServiceName() throw(RuntimeException)
{
- return FRM_COMPONENT_CHECKBOX; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_CHECKBOX; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
diff --git a/forms/source/component/CheckBox.hxx b/forms/source/component/CheckBox.hxx
index f5620b310947..6ae342c4045b 100644
--- a/forms/source/component/CheckBox.hxx
+++ b/forms/source/component/CheckBox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,20 +38,20 @@ namespace frm
//==================================================================
//= OCheckBoxModel
//==================================================================
-class OCheckBoxModel :public OReferenceValueComponent
+class OCheckBoxModel :public OReferenceValueComponent
{
protected:
- sal_Int16 getState(const ::com::sun::star::uno::Any& rValue);
+ sal_Int16 getState(const ::com::sun::star::uno::Any& rValue);
public:
DECLARE_DEFAULT_LEAF_XTOR( OCheckBoxModel );
// XServiceInfo
IMPLEMENTATION_NAME(OCheckBoxModel);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
@@ -81,7 +81,7 @@ public:
// XServiceInfo
IMPLEMENTATION_NAME(OCheckBoxControl);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
};
//.........................................................................
diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx
index d64ebab3ed8c..af41076175d0 100644
--- a/forms/source/component/Columns.cxx
+++ b/forms/source/component/Columns.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -259,7 +259,7 @@ OGridColumn::OGridColumn( const OGridColumn* _pOriginal )
}
if ( m_xAggregate.is() )
- { // don't omit this brackets - they ensure that the following temporary is properly deleted
+ { // don't omit this brackets - they ensure that the following temporary is properly deleted
m_xAggregate->setDelegator( static_cast< ::cppu::OWeakObject* >( this ) );
}
}
diff --git a/forms/source/component/Columns.hxx b/forms/source/component/Columns.hxx
index 4068a7b88590..76c526cdc302 100644
--- a/forms/source/component/Columns.hxx
+++ b/forms/source/component/Columns.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,23 +59,23 @@ namespace frm
//==================================================================
typedef ::cppu::WeakAggComponentImplHelper2 < ::com::sun::star::lang::XUnoTunnel
, ::com::sun::star::util::XCloneable > OGridColumn_BASE;
-class OGridColumn :public ::comphelper::OBaseMutex
+class OGridColumn :public ::comphelper::OBaseMutex
,public OGridColumn_BASE
,public OPropertySetAggregationHelper
,public OCloneableAggregation
{
protected:
// [properties]
- ::com::sun::star::uno::Any m_aWidth; // column width
- ::com::sun::star::uno::Any m_aAlign; // column alignment
- ::com::sun::star::uno::Any m_aHidden; // column hidden?
+ ::com::sun::star::uno::Any m_aWidth; // column width
+ ::com::sun::star::uno::Any m_aAlign; // column alignment
+ ::com::sun::star::uno::Any m_aHidden; // column hidden?
// [properties]
::comphelper::ComponentContext m_aContext;
- ::rtl::OUString m_aModelName;
+ ::rtl::OUString m_aModelName;
// [properties]
- ::rtl::OUString m_aLabel; // Name der Spalte
+ ::rtl::OUString m_aLabel; // Name der Spalte
// [properties]
public:
@@ -92,8 +92,8 @@ public:
virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<sal_Int8>& _rIdentifier) throw(::com::sun::star::uno::RuntimeException);
// XTypeProvider
- virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
// OComponentHelper
virtual void SAL_CALL disposing();
@@ -130,28 +130,28 @@ protected:
virtual OGridColumn* createCloneColumn() const = 0;
};
-#define DECL_COLUMN(ClassName) \
-class ClassName \
- :public OGridColumn \
- ,public OAggregationArrayUsageHelper< ClassName > \
-{ \
-public: \
+#define DECL_COLUMN(ClassName) \
+class ClassName \
+ :public OGridColumn \
+ ,public OAggregationArrayUsageHelper< ClassName > \
+{ \
+public: \
ClassName(const ::comphelper::ComponentContext& _rContext ); \
ClassName(const ClassName* _pCloneFrom); \
\
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); \
- virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); \
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); \
+ virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); \
\
- virtual void fillProperties( \
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps, \
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rAggregateProps \
- ) const; \
+ virtual void fillProperties( \
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps, \
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rAggregateProps \
+ ) const; \
\
virtual OGridColumn* createCloneColumn() const; \
};
-#define IMPL_COLUMN(ClassName, Model, bAllowDropDown) \
+#define IMPL_COLUMN(ClassName, Model, bAllowDropDown) \
ClassName::ClassName( const ::comphelper::ComponentContext& _rContext ) \
:OGridColumn(_rContext, Model) \
{ \
@@ -187,16 +187,16 @@ OGridColumn* ClassName::createCloneColumn() const \
} \
\
// column type ids
-#define TYPE_CHECKBOX 0
-#define TYPE_COMBOBOX 1
+#define TYPE_CHECKBOX 0
+#define TYPE_COMBOBOX 1
#define TYPE_CURRENCYFIELD 2
-#define TYPE_DATEFIELD 3
-#define TYPE_FORMATTEDFIELD 4
-#define TYPE_LISTBOX 5
-#define TYPE_NUMERICFIELD 6
-#define TYPE_PATTERNFIELD 7
-#define TYPE_TEXTFIELD 8
-#define TYPE_TIMEFIELD 9
+#define TYPE_DATEFIELD 3
+#define TYPE_FORMATTEDFIELD 4
+#define TYPE_LISTBOX 5
+#define TYPE_NUMERICFIELD 6
+#define TYPE_PATTERNFIELD 7
+#define TYPE_TEXTFIELD 8
+#define TYPE_TIMEFIELD 9
// liste aller bekannten columns
const StringSequence& getColumnTypes();
@@ -217,7 +217,7 @@ DECL_COLUMN(FormattedFieldColumn)
#endif // _FRM_COLUMNS_HXX
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx
index 899289025e7b..02d15508abe5 100644
--- a/forms/source/component/ComboBox.cxx
+++ b/forms/source/component/ComboBox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -316,11 +316,11 @@ sal_Bool OComboBoxModel::convertFastPropertyValue(
void OComboBoxModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 6, OBoundControlModel )
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
- DECL_PROP1(LISTSOURCETYPE, ListSourceType, BOUND);
- DECL_PROP1(LISTSOURCE, ::rtl::OUString, BOUND);
- DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND);
- DECL_PROP1(DEFAULT_TEXT, ::rtl::OUString, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP1(LISTSOURCETYPE, ListSourceType, BOUND);
+ DECL_PROP1(LISTSOURCE, ::rtl::OUString, BOUND);
+ DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND);
+ DECL_PROP1(DEFAULT_TEXT, ::rtl::OUString, BOUND);
DECL_PROP1(STRINGITEMLIST, Sequence< ::rtl::OUString >,BOUND);
END_DESCRIBE_PROPERTIES();
}
@@ -337,7 +337,7 @@ void OComboBoxModel::describeAggregateProperties( Sequence< Property >& _rAggreg
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OComboBoxModel::getServiceName() throw(RuntimeException)
{
- return FRM_COMPONENT_COMBOBOX; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_COMBOBOX; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -347,10 +347,10 @@ void SAL_CALL OComboBoxModel::write(const Reference<stario::XObjectOutputStream>
OBoundControlModel::write(_rxOutStream);
// Version
- // Version 0x0002: EmptyIsNull
- // Version 0x0003: ListSource->Seq
- // Version 0x0004: DefaultText
- // Version 0x0005: HelpText
+ // Version 0x0002: EmptyIsNull
+ // Version 0x0003: ListSource->Seq
+ // Version 0x0004: DefaultText
+ // Version 0x0005: HelpText
_rxOutStream->writeShort(0x0006);
// Maskierung fuer any
@@ -452,7 +452,7 @@ void SAL_CALL OComboBoxModel::read(const Reference<stario::XObjectInputStream>&
m_bEmptyIsNull = bNull;
}
- if (nVersion > 0x0003) // nVersion == 4
+ if (nVersion > 0x0003) // nVersion == 4
_rxInStream >> m_aDefaultText;
// Stringliste muss geleert werden, wenn eine Listenquelle gesetzt ist
@@ -572,7 +572,7 @@ void OComboBoxModel::loadData( bool _bForce )
m_aListRowSet.setCommand( aStatement.makeStringAndClear() );
bExecuteRowSet = true;
}
- } break;
+ } break;
case ListSourceType_QUERY:
{
m_aListRowSet.setCommandFromQuery( m_aListSource );
@@ -611,7 +611,7 @@ void OComboBoxModel::loadData( bool _bForce )
return;
}
- ::std::vector< ::rtl::OUString > aStringList;
+ ::std::vector< ::rtl::OUString > aStringList;
aStringList.reserve(16);
try
{
diff --git a/forms/source/component/ComboBox.hxx b/forms/source/component/ComboBox.hxx
index 0a45a2fa78d9..3f88658ce9b3 100644
--- a/forms/source/component/ComboBox.hxx
+++ b/forms/source/component/ComboBox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,20 +63,20 @@ class OComboBoxModel
,public OErrorBroadcaster
{
CachedRowSet m_aListRowSet; // the row set to fill the list
- ::com::sun::star::uno::Any m_aBoundColumn; // obsolet
- ::rtl::OUString m_aListSource; //
- ::rtl::OUString m_aDefaultText; // DefaultText
+ ::com::sun::star::uno::Any m_aBoundColumn; // obsolet
+ ::rtl::OUString m_aListSource; //
+ ::rtl::OUString m_aDefaultText; // DefaultText
::com::sun::star::uno::Any m_aLastKnownValue;
- StringSequence m_aDesignModeStringItems;
+ StringSequence m_aDesignModeStringItems;
// upon loading, in some cases we reset fill our string item list ourself. We don't want
// to lose the user's items then, so we remember them here.
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter> m_xFormatter;
- ::com::sun::star::form::ListSourceType m_eListSourceType; // type der list source
- sal_Bool m_bEmptyIsNull; // LeerString wird als NULL interpretiert
+ ::com::sun::star::form::ListSourceType m_eListSourceType; // type der list source
+ sal_Bool m_bEmptyIsNull; // LeerString wird als NULL interpretiert
::std::auto_ptr< ::dbtools::FormattedColumnValue >
m_pValueFormatter;
@@ -84,7 +84,7 @@ class OComboBoxModel
protected:
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
public:
DECLARE_DEFAULT_LEAF_XTOR( OComboBoxModel );
@@ -111,7 +111,7 @@ public:
virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
@@ -137,8 +137,8 @@ protected:
translateDbColumnToControlValue( );
virtual sal_Bool commitControlValueToDbColumn( bool _bPostReset );
- virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
- virtual void onDisconnectedDbColumn();
+ virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
+ virtual void onDisconnectedDbColumn();
virtual ::com::sun::star::uno::Any
getDefaultForReset() const;
diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx
index efcbaeae18e1..808863d2fbf4 100644
--- a/forms/source/component/Currency.cxx
+++ b/forms/source/component/Currency.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,15 +112,15 @@ void OCurrencyModel::implConstruct()
sal_Bool bPrependCurrencySymbol;
switch ( aLocaleInfo.getCurrPositiveFormat() )
{
- case 0: // $1
+ case 0: // $1
sCurrencySymbol = String(aLocaleInfo.getCurrSymbol());
bPrependCurrencySymbol = sal_True;
break;
- case 1: // 1$
+ case 1: // 1$
sCurrencySymbol = String(aLocaleInfo.getCurrSymbol());
bPrependCurrencySymbol = sal_False;
break;
- case 2: // $ 1
+ case 2: // $ 1
sCurrencySymbol = ::rtl::OUString(String(aLocaleInfo.getCurrSymbol())) + ::rtl::OUString::createFromAscii(" ");
bPrependCurrencySymbol = sal_True;
break;
@@ -199,17 +199,17 @@ void OCurrencyModel::describeFixedProperties( Sequence< Property >& _rProps ) co
{
BEGIN_DESCRIBE_PROPERTIES( 2, OEditBaseModel )
// Value auf transient setzen
-// ModifyPropertyAttributes(_rAggregateProps, PROPERTY_VALUE, PropertyAttribute::TRANSIENT, 0);
+// ModifyPropertyAttributes(_rAggregateProps, PROPERTY_VALUE, PropertyAttribute::TRANSIENT, 0);
- DECL_PROP3(DEFAULT_VALUE, double, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP3(DEFAULT_VALUE, double, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
END_DESCRIBE_PROPERTIES();
}
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OCurrencyModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_CURRENCYFIELD; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_CURRENCYFIELD; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -264,7 +264,7 @@ void OCurrencyModel::resetNoBroadcast()
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Currency.hxx b/forms/source/component/Currency.hxx
index b36585e52e39..49f19d98deee 100644
--- a/forms/source/component/Currency.hxx
+++ b/forms/source/component/Currency.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace frm
class OCurrencyModel
:public OEditBaseModel
{
- ::com::sun::star::uno::Any m_aSaveValue;
+ ::com::sun::star::uno::Any m_aSaveValue;
protected:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
@@ -95,7 +95,7 @@ public:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FORMS_CURRENCY_HXX_
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index 248fbb44c0b9..cb4273631a9d 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -506,7 +506,7 @@ ODatabaseForm::~ODatabaseForm()
::rtl::OUString aName;
::rtl::OUString aValue;
- for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin();
+ for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin();
pSuccObj < aSuccObjList.end();
++pSuccObj
)
@@ -529,7 +529,7 @@ ODatabaseForm::~ODatabaseForm()
aResult.append(aName);
aResult.append(sal_Unicode('='));
aResult.append(aValue);
-
+
if (pSuccObj < aSuccObjList.end() - 1)
{
if ( _bURLEncoded )
@@ -569,7 +569,7 @@ Sequence<sal_Int8> ODatabaseForm::GetDataMultiPartEncoded(const Reference<XContr
// Liste zu ::rtl::OUString zusammensetzen
::rtl::OUString aResult;
- for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin();
+ for ( HtmlSuccessfulObjListIterator pSuccObj = aSuccObjList.begin();
pSuccObj < aSuccObjList.end();
++pSuccObj
)
@@ -640,7 +640,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
xComponentSet->getPropertyValue( PROPERTY_NAME ) >>= aName;
if( !aName.getLength() && nClassId != FormComponentType::IMAGEBUTTON)
return;
- else // Name um den Prefix erweitern
+ else // Name um den Prefix erweitern
aName = rNamePrefix + aName;
switch( nClassId )
@@ -719,11 +719,11 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
// MIB: Spezial-Behandlung fuer Multiline-Edit nur dann, wenn
// es auch ein Control dazu gibt.
Any aTmp = xComponentSet->getPropertyValue( PROPERTY_MULTILINE );
- sal_Bool bMulti = rxSubmitButton.is()
+ sal_Bool bMulti = rxSubmitButton.is()
&& (aTmp.getValueType().getTypeClass() == TypeClass_BOOLEAN)
&& getBOOL(aTmp);
::rtl::OUString sText;
- if ( bMulti ) // Bei MultiLineEdit Text am Control abholen
+ if ( bMulti ) // Bei MultiLineEdit Text am Control abholen
{
Reference<XControlContainer> xControlContainer(rxSubmitButton->getContext(), UNO_QUERY);
@@ -788,7 +788,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
}
rList.push_back( HtmlSuccessfulObj(aName, aText) );
}
- } break;
+ } break;
case FormComponentType::DATEFIELD:
{
// <name>=<wert> // Wert wird als Datum im Format (MM-DD-YYYY)
@@ -811,7 +811,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
}
rList.push_back( HtmlSuccessfulObj(aName, aText) );
}
- } break;
+ } break;
case FormComponentType::TIMEFIELD:
{
// <name>=<wert> // Wert wird als Zeit im Format (HH:MM:SS) angegeben
@@ -834,7 +834,7 @@ void ODatabaseForm::AppendComponent(HtmlSuccessfulObjList& rList, const Referenc
}
rList.push_back( HtmlSuccessfulObj(aName, aText) );
}
- } break;
+ } break;
// starform
case FormComponentType::HIDDENCONTROL:
@@ -953,7 +953,7 @@ void ODatabaseForm::FillSuccessfulList( HtmlSuccessfulObjList& rList,
// Liste loeschen
rList.clear();
// Ueber Components iterieren
- Reference<XPropertySet> xComponentSet;
+ Reference<XPropertySet> xComponentSet;
::rtl::OUString aPrefix;
// we know already how many objects should be appended,
@@ -972,7 +972,7 @@ void ODatabaseForm::Encode( ::rtl::OUString& rString ) const
::rtl::OUString aResult;
// Immer ANSI #58641
-// rString.Convert(CHARSET_SYSTEM, CHARSET_ANSI);
+// rString.Convert(CHARSET_SYSTEM, CHARSET_ANSI);
// Zeilenendezeichen werden als CR dargestellt
@@ -994,17 +994,17 @@ void ODatabaseForm::Encode( ::rtl::OUString& rString ) const
{
switch( nCharCode )
{
- case 13: // CR
- aResult += ::rtl::OUString::createFromAscii("%0D%0A"); // Hex-Darstellung CR LF
+ case 13: // CR
+ aResult += ::rtl::OUString::createFromAscii("%0D%0A"); // Hex-Darstellung CR LF
break;
// Netscape Sonderbehandlung
- case 42: // '*'
- case 45: // '-'
- case 46: // '.'
- case 64: // '@'
- case 95: // '_'
+ case 42: // '*'
+ case 45: // '-'
+ case 46: // '.'
+ case 64: // '@'
+ case 95: // '_'
aResult += UniString(nCharCode);
break;
@@ -1026,7 +1026,7 @@ void ODatabaseForm::Encode( ::rtl::OUString& rString ) const
}
- // Spaces durch '+' ersetzen
+ // Spaces durch '+' ersetzen
aResult = aResult.replace(' ', '+');
rString = aResult;
@@ -1165,10 +1165,10 @@ bool ODatabaseForm::hasValidParent() const
{
Reference< XPropertySet > xSet( m_xParent, UNO_QUERY );
Reference< XLoadable > xLoad( m_xParent, UNO_QUERY );
- if ( xLoad->isLoaded()
- && ( xResultSet->isBeforeFirst()
- || xResultSet->isAfterLast()
- || getBOOL( xSet->getPropertyValue( PROPERTY_ISNEW ) )
+ if ( xLoad->isLoaded()
+ && ( xResultSet->isBeforeFirst()
+ || xResultSet->isAfterLast()
+ || getBOOL( xSet->getPropertyValue( PROPERTY_ISNEW ) )
)
)
// the parent form is loaded and on a "virtual" row -> not valid
@@ -1281,7 +1281,7 @@ sal_Bool ODatabaseForm::executeRowSet(::osl::ResettableMutexGuard& _rClearForNot
if (bSuccess)
{
// adjust the privilege property
- // m_nPrivileges;
+ // m_nPrivileges;
m_xAggregateSet->getPropertyValue(PROPERTY_PRIVILEGES) >>= m_nPrivileges;
if (!m_bAllowInsert)
m_nPrivileges &= ~Privilege::INSERT;
@@ -1409,7 +1409,7 @@ void ODatabaseForm::describeFixedAndAggregateProperties(
RemoveProperty( _rAggregateProps, PROPERTY_FILTER );
RemoveProperty( _rAggregateProps, PROPERTY_APPLYFILTER );
- DECL_IFACE_PROP4(ACTIVE_CONNECTION, XConnection, BOUND, TRANSIENT, MAYBEVOID, CONSTRAINED);
+ DECL_IFACE_PROP4(ACTIVE_CONNECTION, XConnection, BOUND, TRANSIENT, MAYBEVOID, CONSTRAINED);
DECL_BOOL_PROP2 ( APPLYFILTER, BOUND, MAYBEDEFAULT );
DECL_PROP1 ( NAME, ::rtl::OUString, BOUND );
DECL_PROP1 ( MASTERFIELDS, Sequence< ::rtl::OUString >, BOUND );
@@ -1512,9 +1512,9 @@ void ODatabaseForm::fire( sal_Int32* pnHandles, const Any* pNewValues, const Any
break;
if ((nPos < nCount) && (pNewValues[nPos].getValueType().getTypeClass() == TypeClass_BOOLEAN) && getBOOL(pNewValues[nPos]))
- { // yeah, we found it, and it changed to TRUE
+ { // yeah, we found it, and it changed to TRUE
if (nPos == 0)
- { // just cut the first element
+ { // just cut the first element
++pnHandles;
++pNewValues;
++pOldValues;
@@ -1524,7 +1524,7 @@ void ODatabaseForm::fire( sal_Int32* pnHandles, const Any* pNewValues, const Any
// just cut the last element
--nCount;
else
- { // split into two base class calls
+ { // split into two base class calls
OPropertySetAggregationHelper::fire(pnHandles, pNewValues, pOldValues, nPos, bVetoable);
++nPos;
OPropertySetAggregationHelper::fire(pnHandles + nPos, pNewValues + nPos, pOldValues + nPos, nCount - nPos, bVetoable);
@@ -2392,7 +2392,7 @@ void ODatabaseForm::_propertyChanged(const PropertyChangeEvent& evt) throw( Runt
sal_Int32 nHandle = PROPERTY_ID_ACTIVE_CONNECTION;
fire(&nHandle, &evt.NewValue, &evt.OldValue, 1, sal_False);
}
- else // it was one of the statement relevant props
+ else // it was one of the statement relevant props
{
// if the statement has changed we have to delete the parameter info
invlidateParameters();
@@ -2607,7 +2607,7 @@ void SAL_CALL ODatabaseForm::disposing(const EventObject& Source) throw( Runtime
// does the disposing come from the aggregate ?
if (m_xAggregate.is())
- { // no -> forward it
+ { // no -> forward it
com::sun::star::uno::Reference<com::sun::star::lang::XEventListener> xListener;
if (query_aggregation(m_xAggregate, xListener))
xListener->disposing(Source);
@@ -2726,7 +2726,7 @@ sal_Bool ODatabaseForm::canShareConnection( const Reference< XPropertySet >& _rx
// and it's really a data source name (not empty)
bCanShareConnection = sal_True;
else
- { // the data source name is empty
+ { // the data source name is empty
// -> ook for the URL
::rtl::OUString sParentURL;
::rtl::OUString sMyURL;
@@ -2752,7 +2752,7 @@ sal_Bool ODatabaseForm::canShareConnection( const Reference< XPropertySet >& _rx
bCanShareConnection =
( sParentUser == sMyUser )
- && ( sParentPwd == sMyPwd );
+ && ( sParentPwd == sMyPwd );
}
return bCanShareConnection;
@@ -2898,7 +2898,7 @@ void ODatabaseForm::load_impl(sal_Bool bCausedByParentForm, sal_Bool bMoveToFirs
// if we don't have a connection, we are not intended to be a database form or the aggregate was not able
// to establish a connection
- sal_Bool bConnected = implEnsureConnection();
+ sal_Bool bConnected = implEnsureConnection();
// we don't have to execute if we do not have a command to execute
sal_Bool bExecute = bConnected && m_xAggregateSet.is() && getString(m_xAggregateSet->getPropertyValue(PROPERTY_COMMAND)).getLength();
@@ -3230,7 +3230,7 @@ sal_Bool SAL_CALL ODatabaseForm::approveRowChange(const RowChangeEvent& event) t
//------------------------------------------------------------------------------
sal_Bool SAL_CALL ODatabaseForm::approveRowSetChange(const EventObject& event) throw( RuntimeException )
{
- if (event.Source == InterfaceRef(static_cast<XWeak*>(this))) // ignore our aggregate as we handle this approve ourself
+ if (event.Source == InterfaceRef(static_cast<XWeak*>(this))) // ignore our aggregate as we handle this approve ourself
{
::osl::ClearableMutexGuard aGuard( m_aMutex );
bool bWasLoaded = isLoaded();
@@ -3803,7 +3803,7 @@ void SAL_CALL ODatabaseForm::propertyChange( const PropertyChangeEvent& evt ) th
// com::sun::star::lang::XServiceInfo
//------------------------------------------------------------------------------
-::rtl::OUString SAL_CALL ODatabaseForm::getImplementationName_Static()
+::rtl::OUString SAL_CALL ODatabaseForm::getImplementationName_Static()
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.forms.ODatabaseForm" ) );
}
@@ -3844,7 +3844,7 @@ Sequence< ::rtl::OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames_Sta
}
//------------------------------------------------------------------------------
-::rtl::OUString SAL_CALL ODatabaseForm::getImplementationName() throw( RuntimeException )
+::rtl::OUString SAL_CALL ODatabaseForm::getImplementationName() throw( RuntimeException )
{
return getImplementationName_Static();
}
@@ -3885,13 +3885,13 @@ sal_Bool SAL_CALL ODatabaseForm::supportsService(const ::rtl::OUString& ServiceN
// com::sun::star::io::XPersistObject
//------------------------------------------------------------------------------
-const sal_uInt16 CYCLE = 0x0001;
-const sal_uInt16 DONTAPPLYFILTER = 0x0002;
+const sal_uInt16 CYCLE = 0x0001;
+const sal_uInt16 DONTAPPLYFILTER = 0x0002;
//------------------------------------------------------------------------------
::rtl::OUString ODatabaseForm::getServiceName() throw( RuntimeException )
{
- return FRM_COMPONENT_FORM; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_FORM; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -3943,7 +3943,7 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS
default : DBG_ERROR("ODatabaseForm::write : wrong CommandType !");
}
}
- _rxOutStream->writeShort((sal_Int16)eTranslated); // former DataSelectionType
+ _rxOutStream->writeShort((sal_Int16)eTranslated); // former DataSelectionType
// very old versions expect a CursorType here
_rxOutStream->writeShort(DatabaseCursorType_KEYSET);
@@ -4064,16 +4064,16 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre
if (m_xAggregateSet.is())
m_xAggregateSet->setPropertyValue(PROPERTY_INSERTONLY, makeAny(bInsertOnly));
- m_bAllowInsert = _rxInStream->readBoolean();
- m_bAllowUpdate = _rxInStream->readBoolean();
- m_bAllowDelete = _rxInStream->readBoolean();
+ m_bAllowInsert = _rxInStream->readBoolean();
+ m_bAllowUpdate = _rxInStream->readBoolean();
+ m_bAllowDelete = _rxInStream->readBoolean();
// html stuff
::rtl::OUString sTmp;
_rxInStream >> sTmp;
m_aTargetURL = INetURLObject::decode( sTmp, '%', INetURLObject::DECODE_UNAMBIGUOUS);
- m_eSubmitMethod = (FormSubmitMethod)_rxInStream->readShort();
- m_eSubmitEncoding = (FormSubmitEncoding)_rxInStream->readShort();
+ m_eSubmitMethod = (FormSubmitMethod)_rxInStream->readShort();
+ m_eSubmitEncoding = (FormSubmitEncoding)_rxInStream->readShort();
_rxInStream >> m_aTargetFrame;
if (nVersion > 1)
@@ -4090,7 +4090,7 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre
m_xAggregateSet->setPropertyValue(PROPERTY_SORT, makeAny(sAggregateProp));
}
- sal_uInt16 nAnyMask = 0;
+ sal_uInt16 nAnyMask = 0;
if (nVersion > 2)
{
nAnyMask = _rxInStream->readShort();
@@ -4111,11 +4111,11 @@ void ODatabaseForm::implInserted( const ElementDescription* _pElement )
{
OFormComponents::implInserted( _pElement );
- Reference< XSQLErrorBroadcaster > xBroadcaster( _pElement->xInterface, UNO_QUERY );
- Reference< XForm > xForm ( _pElement->xInterface, UNO_QUERY );
+ Reference< XSQLErrorBroadcaster > xBroadcaster( _pElement->xInterface, UNO_QUERY );
+ Reference< XForm > xForm ( _pElement->xInterface, UNO_QUERY );
if ( xBroadcaster.is() && !xForm.is() )
- { // the object is an error broadcaster, but no form itself -> add ourself as listener
+ { // the object is an error broadcaster, but no form itself -> add ourself as listener
xBroadcaster->addSQLErrorListener( this );
}
}
@@ -4128,7 +4128,7 @@ void ODatabaseForm::implRemoved(const InterfaceRef& _rxObject)
Reference<XSQLErrorBroadcaster> xBroadcaster(_rxObject, UNO_QUERY);
Reference<XForm> xForm(_rxObject, UNO_QUERY);
if (xBroadcaster.is() && !xForm.is())
- { // the object is an error broadcaster, but no form itself -> remove ourself as listener
+ { // the object is an error broadcaster, but no form itself -> remove ourself as listener
xBroadcaster->removeSQLErrorListener(this);
}
}
@@ -4158,7 +4158,7 @@ void SAL_CALL ODatabaseForm::setName(const ::rtl::OUString& aName) throw( Runtim
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx
index 75249a2b8adf..06790e48aca1 100644
--- a/forms/source/component/DatabaseForm.hxx
+++ b/forms/source/component/DatabaseForm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,16 +96,16 @@ namespace frm
//= html tools
//========================================================================
-const sal_uInt16 SUCCESSFUL_REPRESENT_TEXT = 0x0001;
-const sal_uInt16 SUCCESSFUL_REPRESENT_FILE = 0x0002;
+const sal_uInt16 SUCCESSFUL_REPRESENT_TEXT = 0x0001;
+const sal_uInt16 SUCCESSFUL_REPRESENT_FILE = 0x0002;
//------------------------------------------------------------------------------
class HtmlSuccessfulObj
{
public:
- ::rtl::OUString aName;
- ::rtl::OUString aValue;
- sal_uInt16 nRepresentation;
+ ::rtl::OUString aName;
+ ::rtl::OUString aValue;
+ sal_uInt16 nRepresentation;
HtmlSuccessfulObj( const ::rtl::OUString& _rName, const ::rtl::OUString& _rValue,
sal_uInt16 _nRepresent = SUCCESSFUL_REPRESENT_TEXT )
@@ -147,7 +147,7 @@ typedef ::cppu::ImplHelper4 < ::com::sun::star::lang::XServiceInfo
, ::com::sun::star::sdbc::XWarningsSupplier
> ODatabaseForm_BASE2;
-typedef ::cppu::ImplHelper7< ::com::sun::star::sdbc::XCloseable,
+typedef ::cppu::ImplHelper7< ::com::sun::star::sdbc::XCloseable,
::com::sun::star::sdbc::XRowSet,
::com::sun::star::sdb::XCompletedExecution,
::com::sun::star::sdb::XRowSetApproveBroadcaster,
@@ -156,7 +156,7 @@ typedef ::cppu::ImplHelper7< ::com::sun::star::sdbc::XCloseable,
::com::sun::star::sdbc::XParameters > ODatabaseForm_BASE3;
-class ODatabaseForm :public OFormComponents
+class ODatabaseForm :public OFormComponents
,public OPropertySetAggregationHelper
,public OPropertyChangeListener
,public ODatabaseForm_BASE1
@@ -166,65 +166,65 @@ class ODatabaseForm :public OFormComponents
{
friend class OFormSubmitResetThread;
- OImplementationIdsRef m_aHoldIdHelper;
+ OImplementationIdsRef m_aHoldIdHelper;
// listener administration
- ::cppu::OInterfaceContainerHelper m_aLoadListeners;
- ::cppu::OInterfaceContainerHelper m_aRowSetApproveListeners;
- ::cppu::OInterfaceContainerHelper m_aRowSetListeners;
- ::cppu::OInterfaceContainerHelper m_aSubmitListeners;
- ::cppu::OInterfaceContainerHelper m_aErrorListeners;
+ ::cppu::OInterfaceContainerHelper m_aLoadListeners;
+ ::cppu::OInterfaceContainerHelper m_aRowSetApproveListeners;
+ ::cppu::OInterfaceContainerHelper m_aRowSetListeners;
+ ::cppu::OInterfaceContainerHelper m_aSubmitListeners;
+ ::cppu::OInterfaceContainerHelper m_aErrorListeners;
ResetListeners m_aResetListeners;
- ::osl::Mutex m_aResetSafety;
- ::com::sun::star::uno::Any m_aCycle;
- ::com::sun::star::uno::Any m_aIgnoreResult; // set when we are a subform and our master form positioned on a new row
- ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aMasterFields;
- ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aDetailFields;
+ ::osl::Mutex m_aResetSafety;
+ ::com::sun::star::uno::Any m_aCycle;
+ ::com::sun::star::uno::Any m_aIgnoreResult; // set when we are a subform and our master form positioned on a new row
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aMasterFields;
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aDetailFields;
// the object doin' most of the work - an SDB-rowset
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation> m_xAggregate;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation> m_xAggregate;
// same object, interface as member because of performance reasons
- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet> m_xAggregateAsRowSet;
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet> m_xAggregateAsRowSet;
PropertyBagHelper m_aPropertyBagHelper;
::dbtools::WarningsContainer m_aWarnings;
- OPropertyChangeMultiplexer* m_pAggregatePropertyMultiplexer;
+ OPropertyChangeMultiplexer* m_pAggregatePropertyMultiplexer;
// Verwaltung der ControlGruppen
- OGroupManager* m_pGroupManager;
+ OGroupManager* m_pGroupManager;
::dbtools::ParameterManager m_aParameterManager;
::dbtools::FilterManager m_aFilterManager;
- Timer* m_pLoadTimer;
+ Timer* m_pLoadTimer;
- OFormSubmitResetThread* m_pThread;
- ::rtl::OUString m_sCurrentErrorContext;
+ OFormSubmitResetThread* m_pThread;
+ ::rtl::OUString m_sCurrentErrorContext;
// will be used as additional context information
// when an exception is catched and forwarded to the listeners
- INT32 m_nResetsPending;
-// <overwritten_properties>
- sal_Int32 m_nPrivileges;
+ INT32 m_nResetsPending;
+// <overwritten_properties>
+ sal_Int32 m_nPrivileges;
sal_Bool m_bInsertOnly;
-// </overwritten_properties>
+// </overwritten_properties>
-// <properties>
+// <properties>
::com::sun::star::uno::Any m_aControlBorderColorFocus;
::com::sun::star::uno::Any m_aControlBorderColorMouse;
::com::sun::star::uno::Any m_aControlBorderColorInvalid;
::com::sun::star::uno::Any m_aDynamicControlBorder;
- ::rtl::OUString m_sName;
- ::rtl::OUString m_aTargetURL;
- ::rtl::OUString m_aTargetFrame;
- ::com::sun::star::form::FormSubmitMethod m_eSubmitMethod;
- ::com::sun::star::form::FormSubmitEncoding m_eSubmitEncoding;
- ::com::sun::star::form::NavigationBarMode m_eNavigation;
- sal_Bool m_bAllowInsert : 1;
- sal_Bool m_bAllowUpdate : 1;
- sal_Bool m_bAllowDelete : 1;
-// </properties>
- sal_Bool m_bLoaded : 1;
- sal_Bool m_bSubForm : 1;
- sal_Bool m_bForwardingConnection : 1; // sal_True if we're setting the ActiveConnection on the aggregate
- sal_Bool m_bSharingConnection : 1; // sal_True if the connection we're using is shared with out parent
+ ::rtl::OUString m_sName;
+ ::rtl::OUString m_aTargetURL;
+ ::rtl::OUString m_aTargetFrame;
+ ::com::sun::star::form::FormSubmitMethod m_eSubmitMethod;
+ ::com::sun::star::form::FormSubmitEncoding m_eSubmitEncoding;
+ ::com::sun::star::form::NavigationBarMode m_eNavigation;
+ sal_Bool m_bAllowInsert : 1;
+ sal_Bool m_bAllowUpdate : 1;
+ sal_Bool m_bAllowDelete : 1;
+// </properties>
+ sal_Bool m_bLoaded : 1;
+ sal_Bool m_bSubForm : 1;
+ sal_Bool m_bForwardingConnection : 1; // sal_True if we're setting the ActiveConnection on the aggregate
+ sal_Bool m_bSharingConnection : 1; // sal_True if the connection we're using is shared with out parent
public:
ODatabaseForm(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
@@ -249,7 +249,7 @@ public:
virtual sal_Bool SAL_CALL convertFastPropertyValue(::com::sun::star::uno::Any& rConvertedValue, ::com::sun::star::uno::Any& rOldValue, sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::lang::IllegalArgumentException);
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue) throw ( ::com::sun::star::uno::Exception );
- ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
+ ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
void fire( sal_Int32 * pnHandles, const ::com::sun::star::uno::Any * pNewValues, const ::com::sun::star::uno::Any * pOldValues, sal_Int32 nCount, sal_Bool bVetoable );
@@ -263,8 +263,8 @@ public:
getPropertiesInterface();
// com::sun::star::beans::XPropertyState
- virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
- virtual void setPropertyToDefaultByHandle(sal_Int32 nHandle);
+ virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
+ virtual void setPropertyToDefaultByHandle(sal_Int32 nHandle);
virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const;
// com::sun::star::sdbc::XSQLErrorBroadcaster
@@ -386,15 +386,15 @@ public:
// com::sun::star::lang::XServiceInfo
virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// com::sun::star::lang::XServiceInfo - static version
- static ::rtl::OUString SAL_CALL getImplementationName_Static();
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCurrentServiceNames_Static();
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCompatibleServiceNames_Static();
- static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
+ static ::rtl::OUString SAL_CALL getImplementationName_Static();
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCurrentServiceNames_Static();
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCompatibleServiceNames_Static();
+ static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
// com::sun::star::io::XPersistObject
virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -465,39 +465,39 @@ protected:
private:
sal_Bool executeRowSet(::osl::ResettableMutexGuard& _rClearForNotifies, sal_Bool bMoveToFirst = sal_True,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >());
- bool fillParameters(::osl::ResettableMutexGuard& _rClearForNotifies,
+ bool fillParameters(::osl::ResettableMutexGuard& _rClearForNotifies,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >());
- void updateParameterInfo();
- bool hasValidParent() const;
+ void updateParameterInfo();
+ bool hasValidParent() const;
// impl methods
- void load_impl(sal_Bool bCausedByParentForm, sal_Bool bMoveToFirst = sal_True,
+ void load_impl(sal_Bool bCausedByParentForm, sal_Bool bMoveToFirst = sal_True,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >())
throw(::com::sun::star::uno::RuntimeException);
- void reload_impl(sal_Bool bMoveToFirst,
+ void reload_impl(sal_Bool bMoveToFirst,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& _rxCompletionHandler = ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >())
throw(::com::sun::star::uno::RuntimeException);
- void submit_impl(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt, bool _bAproveByListeners);
- void reset_impl(bool _bAproveByListeners);
+ void submit_impl(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& Control, const ::com::sun::star::awt::MouseEvent& MouseEvt, bool _bAproveByListeners);
+ void reset_impl(bool _bAproveByListeners);
- sal_Bool implEnsureConnection();
+ sal_Bool implEnsureConnection();
// connection sharing
/// checks if we can re-use (aka share) the connection of the given parent
- sal_Bool canShareConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxParentProps );
+ sal_Bool canShareConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxParentProps );
/// starts sharing the connection with the parent
- void doShareConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxParentProps );
+ void doShareConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxParentProps );
/// stops sharing the connection with the parent
- void stopSharingConnection( );
+ void stopSharingConnection( );
/// called when the connection which we share with our parent is beeing disposed
- void disposingSharedConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConn );
+ void disposingSharedConnection( const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConn );
/// checks if we currently share our connection with our parent
- sal_Bool isSharingConnection( ) const { return m_bSharingConnection; }
+ sal_Bool isSharingConnection( ) const { return m_bSharingConnection; }
/** calls our row set approval listeners
@@ -518,20 +518,20 @@ private:
);
/// invalidate all our parameter-related stuff
- void invlidateParameters();
+ void invlidateParameters();
- void saveInsertOnlyState( );
- void restoreInsertOnlyState( );
+ void saveInsertOnlyState( );
+ void restoreInsertOnlyState( );
// error handling
- void onError(const ::com::sun::star::sdb::SQLErrorEvent& _rEvent);
- void onError(const ::com::sun::star::sdbc::SQLException&, const ::rtl::OUString& _rContextDescription);
+ void onError(const ::com::sun::star::sdb::SQLErrorEvent& _rEvent);
+ void onError(const ::com::sun::star::sdbc::SQLException&, const ::rtl::OUString& _rContextDescription);
// html tools
::rtl::OUString GetDataEncoded(bool _bURLEncoded,const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
- ::rtl::OUString GetDataURLEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
- ::rtl::OUString GetDataTextEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
- ::com::sun::star::uno::Sequence<sal_Int8> GetDataMultiPartEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt,
+ ::rtl::OUString GetDataURLEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
+ ::rtl::OUString GetDataTextEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt);
+ ::com::sun::star::uno::Sequence<sal_Int8> GetDataMultiPartEncoded(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& SubmitButton, const ::com::sun::star::awt::MouseEvent& MouseEvt,
::rtl::OUString& rContentType);
void AppendComponent(HtmlSuccessfulObjList& rList, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& xComponentSet, const ::rtl::OUString& rNamePrefix,
@@ -560,7 +560,7 @@ inline void ODatabaseForm::submitNBC(const ::com::sun::star::uno::Reference< ::c
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FRM_DATABASEFORM_HXX_
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx
index 74e0444093a1..7a935862c716 100644
--- a/forms/source/component/Date.cxx
+++ b/forms/source/component/Date.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -172,7 +172,7 @@ StringSequence SAL_CALL ODateModel::getSupportedServiceNames() throw()
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL ODateModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_DATEFIELD; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_DATEFIELD; // old (non-sun) name for compatibility !
}
// XPropertySet
@@ -180,10 +180,10 @@ StringSequence SAL_CALL ODateModel::getSupportedServiceNames() throw()
void ODateModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 4, OEditBaseModel )
- DECL_PROP3(DEFAULT_DATE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
- DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT);
- DECL_IFACE_PROP2(FORMATSSUPPLIER, XNumberFormatsSupplier, READONLY, TRANSIENT);
+ DECL_PROP3(DEFAULT_DATE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT);
+ DECL_IFACE_PROP2(FORMATSSUPPLIER, XNumberFormatsSupplier, READONLY, TRANSIENT);
END_DESCRIBE_PROPERTIES();
}
@@ -359,7 +359,7 @@ Sequence< Type > ODateModel::getSupportedBindingTypes()
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Date.hxx b/forms/source/component/Date.hxx
index 790c8f027bfb..3b7c56cf2d18 100644
--- a/forms/source/component/Date.hxx
+++ b/forms/source/component/Date.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,8 +44,8 @@ class ODateModel
:public OEditBaseModel
,public OLimitedFormats
{
- ::com::sun::star::uno::Any m_aSaveValue;
- sal_Bool m_bDateTimeField;
+ ::com::sun::star::uno::Any m_aSaveValue;
+ sal_Bool m_bDateTimeField;
protected:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
@@ -96,7 +96,7 @@ protected:
virtual void resetNoBroadcast();
- virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
+ virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
protected:
DECLARE_XCLONEABLE();
@@ -127,7 +127,7 @@ public:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FORMS_DATE_HXX_
diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx
index 229ae6e0a954..799816cdce11 100644
--- a/forms/source/component/Edit.cxx
+++ b/forms/source/component/Edit.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -159,7 +159,7 @@ void OEditControl::disposing()
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence OEditControl::getSupportedServiceNames() throw()
+StringSequence OEditControl::getSupportedServiceNames() throw()
{
StringSequence aSupported = OBoundControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -239,7 +239,7 @@ void OEditControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) throw (
Reference<XPropertySet> xFCSet;
for( sal_Int32 nIndex=0; nIndex < nCount; nIndex++ )
{
- // Any aElement(xElements->getByIndex(nIndex));
+ // Any aElement(xElements->getByIndex(nIndex));
xElements->getByIndex(nIndex) >>= xFCSet;
OSL_ENSURE(xFCSet.is(),"OEditControl::keyPressed: No XPropertySet!");
@@ -351,7 +351,7 @@ void OEditModel::disposing()
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OEditModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_EDIT; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_EDIT; // old (non-sun) name for compatibility !
}
// XServiceInfo
@@ -398,11 +398,11 @@ void SAL_CALL OEditModel::getFastPropertyValue(Any& rValue, sal_Int32 nHandle )
void OEditModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 5, OEditBaseModel )
- DECL_PROP2(PERSISTENCE_MAXTEXTLENGTH,sal_Int16, READONLY, TRANSIENT);
- DECL_PROP2(DEFAULT_TEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT);
- DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
- DECL_BOOL_PROP2(FILTERPROPOSAL, BOUND, MAYBEDEFAULT);
+ DECL_PROP2(PERSISTENCE_MAXTEXTLENGTH,sal_Int16, READONLY, TRANSIENT);
+ DECL_PROP2(DEFAULT_TEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT);
+ DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_BOOL_PROP2(FILTERPROPOSAL, BOUND, MAYBEDEFAULT);
END_DESCRIBE_PROPERTIES();
}
@@ -558,7 +558,7 @@ void OEditModel::write(const Reference<XObjectOutputStream>& _rxOutStream) throw
sal_Int16 nOldTextLen = 0;
// bin ich gerade loaded und habe dazu zeitweilig die MaxTextLen umgesetzt ?
if ( m_bMaxTextLenModified )
- { // -> fuer die Dauer des Speicherns meinem aggregierten Model die alte TextLen einreden
+ { // -> fuer die Dauer des Speicherns meinem aggregierten Model die alte TextLen einreden
// before doing this we have to save the current text value of the aggregate, as this may be affected by resetting the text len
// FS - 08.12.99 - 70606
@@ -571,7 +571,7 @@ void OEditModel::write(const Reference<XObjectOutputStream>& _rxOutStream) throw
OEditBaseModel::write(_rxOutStream);
if ( m_bMaxTextLenModified )
- { // wieder zuruecksetzen
+ { // wieder zuruecksetzen
m_xAggregateSet->setPropertyValue(PROPERTY_MAXTEXTLEN, makeAny(nOldTextLen));
// and reset the text
// First we set it to an empty string : Without this the second setPropertyValue would not do anything as it thinks
@@ -593,8 +593,8 @@ void OEditModel::read(const Reference<XObjectInputStream>& _rxInStream) throw (
if (m_xAggregateSet.is())
{
Any aDefaultControl = m_xAggregateSet->getPropertyValue(PROPERTY_DEFAULTCONTROL);
- if ( (aDefaultControl.getValueType().getTypeClass() == TypeClass_STRING)
- && (getString(aDefaultControl).compareTo(STARDIV_ONE_FORM_CONTROL_TEXTFIELD) == COMPARE_EQUAL)
+ if ( (aDefaultControl.getValueType().getTypeClass() == TypeClass_STRING)
+ && (getString(aDefaultControl).compareTo(STARDIV_ONE_FORM_CONTROL_TEXTFIELD) == COMPARE_EQUAL)
)
{
m_xAggregateSet->setPropertyValue( PROPERTY_DEFAULTCONTROL, makeAny( (::rtl::OUString)STARDIV_ONE_FORM_CONTROL_EDIT ) );
@@ -625,7 +625,7 @@ void OEditModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm )
if ( m_pValueFormatter->getKeyType() != NumberFormat::SCIENTIFIC )
{
- m_bMaxTextLenModified = getINT16(m_xAggregateSet->getPropertyValue(PROPERTY_MAXTEXTLEN)) != 0;
+ m_bMaxTextLenModified = getINT16(m_xAggregateSet->getPropertyValue(PROPERTY_MAXTEXTLEN)) != 0;
if ( !m_bMaxTextLenModified )
{
sal_Int32 nFieldLen = 0;
@@ -656,7 +656,7 @@ void OEditModel::onDisconnectedDbColumn()
if ( hasField() && m_bMaxTextLenModified )
{
Any aVal;
- aVal <<= (sal_Int16)0; // nur wenn es 0 war, habe ich es in onConnectedDbColumn umgesetzt
+ aVal <<= (sal_Int16)0; // nur wenn es 0 war, habe ich es in onConnectedDbColumn umgesetzt
m_xAggregateSet->setPropertyValue(PROPERTY_MAXTEXTLEN, aVal);
m_bMaxTextLenModified = sal_False;
}
diff --git a/forms/source/component/Edit.hxx b/forms/source/component/Edit.hxx
index e3c84612443f..055b5dd4fd57 100644
--- a/forms/source/component/Edit.hxx
+++ b/forms/source/component/Edit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,9 +48,9 @@ class OEditModel
::com::sun::star::uno::Any m_aLastKnownValue;
::std::auto_ptr< ::dbtools::FormattedColumnValue >
m_pValueFormatter;
- sal_Bool m_bMaxTextLenModified : 1; // set to <TRUE/> when we change the MaxTextLen of the aggregate
+ sal_Bool m_bMaxTextLenModified : 1; // set to <TRUE/> when we change the MaxTextLen of the aggregate
- sal_Bool m_bWritingFormattedFake : 1;
+ sal_Bool m_bWritingFormattedFake : 1;
// are we writing something which should be interpreted as formatted upon reading?
protected:
@@ -64,7 +64,7 @@ protected:
friend InterfaceRef SAL_CALL OEditModel_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
friend class OFormattedFieldWrapper;
- friend class OFormattedModel; // temporary
+ friend class OFormattedModel; // temporary
public:
virtual void SAL_CALL disposing();
@@ -114,7 +114,7 @@ protected:
virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
virtual void onDisconnectedDbColumn();
- virtual sal_Bool approveDbColumnType( sal_Int32 _nColumnType );
+ virtual sal_Bool approveDbColumnType( sal_Int32 _nColumnType );
virtual void resetNoBroadcast();
@@ -130,7 +130,7 @@ private:
//==================================================================
//= OEditControl
//==================================================================
-typedef ::cppu::ImplHelper3< ::com::sun::star::awt::XFocusListener,
+typedef ::cppu::ImplHelper3< ::com::sun::star::awt::XFocusListener,
::com::sun::star::awt::XKeyListener,
::com::sun::star::form::XChangeBroadcaster > OEditControl_BASE;
@@ -140,8 +140,8 @@ class OEditControl : public OBoundControl
::cppu::OInterfaceContainerHelper
m_aChangeListeners;
- ::rtl::OUString m_aHtmlChangeValue;
- sal_uInt32 m_nKeyEvent;
+ ::rtl::OUString m_aHtmlChangeValue;
+ sal_uInt32 m_nKeyEvent;
public:
OEditControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
diff --git a/forms/source/component/EditBase.cxx b/forms/source/component/EditBase.cxx
index 10903bdfee55..6afff3637ce7 100644
--- a/forms/source/component/EditBase.cxx
+++ b/forms/source/component/EditBase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,9 +53,9 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::util;
-const sal_uInt16 DEFAULT_LONG = 0x0001;
-const sal_uInt16 DEFAULT_DOUBLE = 0x0002;
-const sal_uInt16 FILTERPROPOSAL = 0x0004;
+const sal_uInt16 DEFAULT_LONG = 0x0001;
+const sal_uInt16 DEFAULT_DOUBLE = 0x0002;
+const sal_uInt16 FILTERPROPOSAL = 0x0004;
DBG_NAME( OEditBaseModel )
//------------------------------------------------------------------
@@ -104,7 +104,7 @@ void OEditBaseModel::write(const Reference<XObjectOutputStream>& _rxOutStream) t
_rxOutStream->writeShort(nVersionId);
// Name
- _rxOutStream->writeShort(0); // obsolete
+ _rxOutStream->writeShort(0); // obsolete
_rxOutStream << m_aDefaultText;
// Maskierung fuer any
@@ -114,7 +114,7 @@ void OEditBaseModel::write(const Reference<XObjectOutputStream>& _rxOutStream) t
else if (m_aDefault.getValueType().getTypeClass() == TypeClass_DOUBLE)
nAnyMask |= DEFAULT_DOUBLE;
- if (m_bFilterProposal) // da boolean, kein Wert speichern
+ if (m_bFilterProposal) // da boolean, kein Wert speichern
nAnyMask |= FILTERPROPOSAL;
_rxOutStream->writeBoolean(m_bEmptyIsNull);
@@ -209,7 +209,7 @@ void OEditBaseModel::readCommonEditProperties(const Reference<XObjectInputStream
{
sal_Int32 nLen = _rxInStream->readLong();
- Reference<XMarkableStream> xMark(_rxInStream, UNO_QUERY);
+ Reference<XMarkableStream> xMark(_rxInStream, UNO_QUERY);
DBG_ASSERT(xMark.is(), "OBoundControlModel::readCommonProperties : can only work with markable streams !");
sal_Int32 nMark = xMark->createMark();
@@ -227,7 +227,7 @@ void OEditBaseModel::readCommonEditProperties(const Reference<XObjectInputStream
//------------------------------------------------------------------------------
void OEditBaseModel::writeCommonEditProperties(const Reference<XObjectOutputStream>& _rxOutStream)
{
- Reference<XMarkableStream> xMark(_rxOutStream, UNO_QUERY);
+ Reference<XMarkableStream> xMark(_rxOutStream, UNO_QUERY);
DBG_ASSERT(xMark.is(), "OEditBaseModel::writeCommonProperties : can only work with markable streams !");
sal_Int32 nMark = xMark->createMark();
diff --git a/forms/source/component/EditBase.hxx b/forms/source/component/EditBase.hxx
index 497fd570d522..0a070c06e5ef 100644
--- a/forms/source/component/EditBase.hxx
+++ b/forms/source/component/EditBase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,20 +41,20 @@
#include <com/sun/star/lang/XComponent.hpp>
// persistence flags for use with the version id
-#define PF_HANDLE_COMMON_PROPS 0x8000
+#define PF_HANDLE_COMMON_PROPS 0x8000
// Derived classes which use their own persistence methods (read/write) and have an own
// version handling therein may want to clear this flag in getPersistenceFlags.
// If done so, this class will write an version without a call to writeCommonEditProperties.
-#define PF_FAKE_FORMATTED_FIELD 0x4000
+#define PF_FAKE_FORMATTED_FIELD 0x4000
// .... hmmm .... a fake, as the name suggests. see OFormattedFieldWrapper
-#define PF_RESERVED_2 0x2000
-#define PF_RESERVED_3 0x1000
-#define PF_RESERVED_4 0x0800
-#define PF_RESERVED_5 0x0400
-#define PF_RESERVED_6 0x0200
-#define PF_RESERVED_7 0x0100
+#define PF_RESERVED_2 0x2000
+#define PF_RESERVED_3 0x1000
+#define PF_RESERVED_4 0x0800
+#define PF_RESERVED_5 0x0400
+#define PF_RESERVED_6 0x0200
+#define PF_RESERVED_7 0x0100
-#define PF_SPECIAL_FLAGS 0xFF00
+#define PF_SPECIAL_FLAGS 0xFF00
//.........................................................................
namespace frm
@@ -63,19 +63,19 @@ namespace frm
//==================================================================
//= OEditBaseModel
//==================================================================
-class OEditBaseModel : public OBoundControlModel
+class OEditBaseModel : public OBoundControlModel
{
- sal_Int16 m_nLastReadVersion;
+ sal_Int16 m_nLastReadVersion;
protected:
-// [properties] fuer all Editierfelder
- ::com::sun::star::uno::Any m_aDefault;
- ::rtl::OUString m_aDefaultText; // default value
- sal_Bool m_bEmptyIsNull : 1; // empty string will be interepreted as NULL when committing
- sal_Bool m_bFilterProposal : 1; // use a list of possible value in filtermode
+// [properties] fuer all Editierfelder
+ ::com::sun::star::uno::Any m_aDefault;
+ ::rtl::OUString m_aDefaultText; // default value
+ sal_Bool m_bEmptyIsNull : 1; // empty string will be interepreted as NULL when committing
+ sal_Bool m_bFilterProposal : 1; // use a list of possible value in filtermode
// [properties]
- sal_Int16 getLastReadVersion() const { return m_nLastReadVersion; }
+ sal_Int16 getLastReadVersion() const { return m_nLastReadVersion; }
public:
DECLARE_DEFAULT_BOUND_XTOR( OEditBaseModel );
diff --git a/forms/source/component/EventThread.cxx b/forms/source/component/EventThread.cxx
index 7e16c62715e0..1f383024c0a4 100644
--- a/forms/source/component/EventThread.cxx
+++ b/forms/source/component/EventThread.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -137,8 +137,8 @@ void OComponentEventThread::addEvent( const EventObject* _pEvt,
// Daten in die Queue stellen
m_aEvents.push_back( cloneEvent( _pEvt ) );
- Reference<XWeak> xWeakControl(rControl, UNO_QUERY);
- Reference<XAdapter> xControlAdapter = xWeakControl.is() ? xWeakControl->queryAdapter() : Reference<XAdapter>();
+ Reference<XWeak> xWeakControl(rControl, UNO_QUERY);
+ Reference<XAdapter> xControlAdapter = xWeakControl.is() ? xWeakControl->queryAdapter() : Reference<XAdapter>();
m_aControls.push_back( xControlAdapter );
m_aFlags.push_back( bFlag );
@@ -248,7 +248,7 @@ void OComponentEventThread::run()
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/EventThread.hxx b/forms/source/component/EventThread.hxx
index 195a354fbd7a..f0568ef4fd24 100644
--- a/forms/source/component/EventThread.hxx
+++ b/forms/source/component/EventThread.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace frm
// ***************************************************************************************************
// ***************************************************************************************************
-typedef ::osl::Thread OComponentEventThread_TBASE;
+typedef ::osl::Thread OComponentEventThread_TBASE;
class OComponentEventThread
:public OComponentEventThread_TBASE
,public ::com::sun::star::lang::XEventListener
@@ -58,16 +58,16 @@ class OComponentEventThread
{
DECLARE_STL_VECTOR(::com::sun::star::lang::EventObject*, ThreadEvents);
DECLARE_STL_VECTOR(::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter> , ThreadObjects);
- DECLARE_STL_VECTOR(sal_Bool, ThreadBools);
+ DECLARE_STL_VECTOR(sal_Bool, ThreadBools);
::osl::Mutex m_aMutex;
- ::osl::Condition m_aCond; // Queue gefuellt?
- ThreadEvents m_aEvents; // Event-Queue
- ThreadObjects m_aControls; // Control fuer Submit
- ThreadBools m_aFlags; // Flags fuer Submit/Reset
+ ::osl::Condition m_aCond; // Queue gefuellt?
+ ThreadEvents m_aEvents; // Event-Queue
+ ThreadObjects m_aControls; // Control fuer Submit
+ ThreadBools m_aFlags; // Flags fuer Submit/Reset
- ::cppu::OComponentHelper* m_pCompImpl; // Implementierung des Controls
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> m_xComp; // ::com::sun::star::lang::XComponent des Controls
+ ::cppu::OComponentHelper* m_pCompImpl; // Implementierung des Controls
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> m_xComp; // ::com::sun::star::lang::XComponent des Controls
protected:
@@ -113,14 +113,14 @@ public:
void SAL_CALL operator delete( void * p ) throw() { osl::Thread::operator delete(p); }
private:
- void implStarted( );
- void implTerminated( );
+ void implStarted( );
+ void implTerminated( );
void impl_clearEventQueue();
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FRM_EVENT_THREAD_HXX_
diff --git a/forms/source/component/File.cxx b/forms/source/component/File.cxx
index 4e4b62dc6131..b6003a391f02 100644
--- a/forms/source/component/File.cxx
+++ b/forms/source/component/File.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ Sequence<Type> OFileControlModel::_getTypes()
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence OFileControlModel::getSupportedServiceNames() throw(RuntimeException)
+StringSequence OFileControlModel::getSupportedServiceNames() throw(RuntimeException)
{
StringSequence aSupported = OControlModel::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -205,15 +205,15 @@ sal_Bool OFileControlModel::convertFastPropertyValue(Any& rConvertedValue, Any&
void OFileControlModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 2, OControlModel )
- DECL_PROP1(DEFAULT_TEXT, ::rtl::OUString, BOUND);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP1(DEFAULT_TEXT, ::rtl::OUString, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
END_DESCRIBE_PROPERTIES();
}
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OFileControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_FILECONTROL; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_FILECONTROL; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -253,7 +253,7 @@ void OFileControlModel::read(const Reference<stario::XObjectInputStream>& _rxInS
}
// Nach dem Lesen die Defaultwerte anzeigen
-// _reset();
+// _reset();
}
//-----------------------------------------------------------------------------
@@ -291,7 +291,7 @@ void OFileControlModel::removeResetListener(const Reference<XResetListener>& _rx
//------------------------------------------------------------------------------
void OFileControlModel::_reset()
{
- { // release our mutex once (it's acquired in the calling method !), as setting aggregate properties
+ { // release our mutex once (it's acquired in the calling method !), as setting aggregate properties
// may cause any uno controls belonging to us to lock the solar mutex, which is potentially dangerous with
// our own mutex locked
// FS - 72451 - 31.01.00
@@ -301,7 +301,7 @@ void OFileControlModel::_reset()
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/File.hxx b/forms/source/component/File.hxx
index 02a09eedc198..4f0c56f13a3b 100644
--- a/forms/source/component/File.hxx
+++ b/forms/source/component/File.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,8 +43,8 @@ class OFileControlModel
:public OControlModel
,public ::com::sun::star::form::XReset
{
- ::cppu::OInterfaceContainerHelper m_aResetListeners;
- ::rtl::OUString m_sDefaultValue;
+ ::cppu::OInterfaceContainerHelper m_aResetListeners;
+ ::rtl::OUString m_sDefaultValue;
protected:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
@@ -97,7 +97,7 @@ protected:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FORMS_FILE_HXX_
diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index 362c0fc77097..1add42bb0d3f 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -152,7 +152,7 @@ namespace frm
}
//---------------------------------------------------------------------
- Any SAL_CALL OFilterControl::queryAggregation( const Type & rType ) throw(RuntimeException)
+ Any SAL_CALL OFilterControl::queryAggregation( const Type & rType ) throw(RuntimeException)
{
Any aRet = UnoControl::queryAggregation( rType);
if(!aRet.hasValue())
@@ -511,7 +511,7 @@ namespace frm
Reference< XTextComponent > xText( getPeer(), UNO_QUERY );
if (xText.is())
aText = xText->getText();
- } break;
+ } break;
default:
return sal_True;
}
@@ -592,7 +592,7 @@ namespace frm
m_aText = aText;
xVclWindow->setProperty( PROPERTY_STATE, aValue );
}
- } break;
+ } break;
case FormComponentType::RADIOBUTTON:
{
Reference< XVclWindowPeer > xVclWindow( getPeer(), UNO_QUERY );
@@ -607,7 +607,7 @@ namespace frm
m_aText = aText;
xVclWindow->setProperty(PROPERTY_STATE, aValue);
}
- } break;
+ } break;
case FormComponentType::LISTBOX:
{
Reference< XListBox > xListBox( getPeer(), UNO_QUERY );
@@ -713,7 +713,7 @@ namespace frm
Sequence< Any > aArgs(2);
aArgs[0] <<= PropertyValue(::rtl::OUString::createFromAscii("SQLException"), 0, makeAny( _rExcept ), PropertyState_DIRECT_VALUE);
aArgs[1] <<= PropertyValue(::rtl::OUString::createFromAscii("ParentWindow"), 0, makeAny( m_xMessageParent ), PropertyState_DIRECT_VALUE);
-
+
static ::rtl::OUString s_sDialogServiceName = ::rtl::OUString::createFromAscii( "com.sun.star.sdb.ErrorMessageDialog" );
Reference< XExecutableDialog > xErrorDialog( m_aContext.createComponentWithArguments( s_sDialogServiceName, aArgs ), UNO_QUERY );
@@ -849,7 +849,7 @@ namespace frm
}
//---------------------------------------------------------------------
- ::rtl::OUString SAL_CALL OFilterControl::getImplementationName_Static()
+ ::rtl::OUString SAL_CALL OFilterControl::getImplementationName_Static()
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.forms.OFilterControl" ) );
}
@@ -870,7 +870,7 @@ namespace frm
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Filter.hxx b/forms/source/component/Filter.hxx
index 8bac596b016d..fcb75fc00ea4 100644
--- a/forms/source/component/Filter.hxx
+++ b/forms/source/component/Filter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,78 +56,78 @@ namespace frm
//=====================================================================
// OFilterControl
//=====================================================================
- typedef ::cppu::ImplHelper5 < ::com::sun::star::awt::XTextComponent
- , ::com::sun::star::awt::XFocusListener
- , ::com::sun::star::awt::XItemListener
- , ::com::sun::star::form::XBoundComponent
- , ::com::sun::star::lang::XInitialization
- > OFilterControl_BASE;
-
- class OFilterControl :public UnoControl
+ typedef ::cppu::ImplHelper5 < ::com::sun::star::awt::XTextComponent
+ , ::com::sun::star::awt::XFocusListener
+ , ::com::sun::star::awt::XItemListener
+ , ::com::sun::star::form::XBoundComponent
+ , ::com::sun::star::lang::XInitialization
+ > OFilterControl_BASE;
+
+ class OFilterControl :public UnoControl
,public OFilterControl_BASE
,public ::svxform::OParseContextClient
{
- TextListenerMultiplexer m_aTextListeners;
+ TextListenerMultiplexer m_aTextListeners;
::comphelper::ComponentContext m_aContext;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xField;
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > m_xFormatter;
- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
- ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xMessageParent;
-
- ::rtl::OUString m_aText;
- ::connectivity::OSQLParser m_aParser;
- sal_Int16 m_nControlClass; // which kind of control do we use?
- sal_Bool m_bFilterList : 1;
- sal_Bool m_bMultiLine : 1;
- sal_Bool m_bFilterListFilled : 1;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xField;
+ ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatter > m_xFormatter;
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xMessageParent;
+
+ ::rtl::OUString m_aText;
+ ::connectivity::OSQLParser m_aParser;
+ sal_Int16 m_nControlClass; // which kind of control do we use?
+ sal_Bool m_bFilterList : 1;
+ sal_Bool m_bMultiLine : 1;
+ sal_Bool m_bFilterListFilled : 1;
private:
-// OFilterControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
+// OFilterControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
void implInitFilterList();
public:
- OFilterControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB );
+ OFilterControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB );
DECLARE_UNO3_AGG_DEFAULTS(OFilterControl,OWeakAggObject);
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString GetComponentServiceName();
- virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > & rxToolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > & rParentPeer ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::rtl::OUString GetComponentServiceName();
+ virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > & rxToolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > & rParentPeer ) throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::lang::XComponent
- virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::awt::XTextComponent
- virtual void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setText( const ::rtl::OUString& aText ) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL insertText( const ::com::sun::star::awt::Selection& rSel, const ::rtl::OUString& aText ) throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getText() throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getSelectedText() throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setText( const ::rtl::OUString& aText ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL insertText( const ::com::sun::star::awt::Selection& rSel, const ::rtl::OUString& aText ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::rtl::OUString SAL_CALL getText() throw( ::com::sun::star::uno::RuntimeException );
+ virtual ::rtl::OUString SAL_CALL getSelectedText() throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::awt::Selection SAL_CALL getSelection() throw( ::com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL isEditable() throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setEditable( sal_Bool bEditable ) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setMaxTextLen( sal_Int16 nLength ) throw( ::com::sun::star::uno::RuntimeException );
- virtual sal_Int16 SAL_CALL getMaxTextLen() throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL isEditable() throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setEditable( sal_Bool bEditable ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL setMaxTextLen( sal_Int16 nLength ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual sal_Int16 SAL_CALL getMaxTextLen() throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::form::XBoundComponent
- virtual void SAL_CALL addUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener > & /*l*/) throw( ::com::sun::star::uno::RuntimeException ) {}
- virtual void SAL_CALL removeUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener > & /*l*/) throw( ::com::sun::star::uno::RuntimeException ) {}
- virtual sal_Bool SAL_CALL commit() throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL addUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener > & /*l*/) throw( ::com::sun::star::uno::RuntimeException ) {}
+ virtual void SAL_CALL removeUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener > & /*l*/) throw( ::com::sun::star::uno::RuntimeException ) {}
+ virtual sal_Bool SAL_CALL commit() throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::lang::XEventListener
- virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::awt::XFocusListener
- virtual void SAL_CALL focusGained(const ::com::sun::star::awt::FocusEvent& e) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL focusLost(const ::com::sun::star::awt::FocusEvent& e) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL focusGained(const ::com::sun::star::awt::FocusEvent& e) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL focusLost(const ::com::sun::star::awt::FocusEvent& e) throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::awt::XItemListener
- virtual void SAL_CALL itemStateChanged(const ::com::sun::star::awt::ItemEvent& rEvent) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL itemStateChanged(const ::com::sun::star::awt::ItemEvent& rEvent) throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::util::XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
@@ -138,9 +138,9 @@ namespace frm
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
// com::sun::star::lang::XServiceInfo - static version
- static ::rtl::OUString SAL_CALL getImplementationName_Static();
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
- static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
+ static ::rtl::OUString SAL_CALL getImplementationName_Static();
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
+ static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
protected:
virtual void PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescriptor& rDesc );
@@ -151,7 +151,7 @@ namespace frm
void displayException( const ::com::sun::star::sdb::SQLContext& _rExcept );
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // FORMS_COMPONENT_FILTER_HXX
diff --git a/forms/source/component/FixedText.cxx b/forms/source/component/FixedText.cxx
index 2a27fbc2d4c5..31ac6221616f 100644
--- a/forms/source/component/FixedText.cxx
+++ b/forms/source/component/FixedText.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,7 +106,7 @@ void OFixedTextModel::describeAggregateProperties( Sequence< Property >& _rAggre
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OFixedTextModel::getServiceName() throw(RuntimeException)
{
- return FRM_COMPONENT_FIXEDTEXT; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_FIXEDTEXT; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
diff --git a/forms/source/component/FixedText.hxx b/forms/source/component/FixedText.hxx
index a6b92a1e510f..d9db90885065 100644
--- a/forms/source/component/FixedText.hxx
+++ b/forms/source/component/FixedText.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,10 +46,10 @@ public:
// XServiceInfo
IMPLEMENTATION_NAME(OFixedTextModel);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 768eaca5f489..c8b108ed53df 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -302,7 +302,7 @@ void SAL_CALL OControl::disposing(const com::sun::star::lang::EventObject& _rEve
// does the disposing come from the aggregate ?
if (xAggAsIface != InterfaceRef(_rEvent.Source, UNO_QUERY))
- { // no -> forward it
+ { // no -> forward it
Reference<com::sun::star::lang::XEventListener> xListener;
if (query_aggregation(m_xAggregate, xListener))
xListener->disposing(_rEvent);
@@ -422,7 +422,7 @@ OBoundControl::~OBoundControl()
DBG_DTOR(frm_OBoundControl, NULL);
}
// -----------------------------------------------------------------------------
-Sequence< Type> OBoundControl::_getTypes()
+Sequence< Type> OBoundControl::_getTypes()
{
return TypeBag( OControl::_getTypes(), OBoundControl_BASE::getTypes() ).getTypes();
}
@@ -605,7 +605,7 @@ OControlModel::OControlModel(
// #i37342# / 2004-11-19 / frank.schoenheit@sun.com
{
DBG_CTOR(OControlModel, NULL);
- if (_rUnoControlModelTypeName.getLength()) // the is a model we have to aggregate
+ if (_rUnoControlModelTypeName.getLength()) // the is a model we have to aggregate
{
increment(m_refCount);
@@ -1812,7 +1812,7 @@ sal_Bool OBoundControlModel::convertFastPropertyValue(
throw com::sun::star::lang::IllegalArgumentException();
case PROPERTY_ID_CONTROLLABEL:
if (!_rValue.hasValue())
- { // property set to void
+ { // property set to void
_rConvertedValue = Any();
getFastPropertyValue(_rOldValue, _nHandle);
bModified = m_xLabelControl.is();
@@ -1871,7 +1871,7 @@ void OBoundControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, co
DBG_ASSERT(!rValue.hasValue() || (rValue.getValueType().getTypeClass() == TypeClass_INTERFACE),
"OBoundControlModel::setFastPropertyValue_NoBroadcast : invalid argument !");
if (!rValue.hasValue())
- { // set property to "void"
+ { // set property to "void"
Reference<com::sun::star::lang::XComponent> xComp(m_xLabelControl, UNO_QUERY);
if (xComp.is())
xComp->removeEventListener(static_cast<com::sun::star::lang::XEventListener*>(static_cast<XPropertyChangeListener*>(this)));
@@ -1953,7 +1953,7 @@ void SAL_CALL OBoundControlModel::propertyChange( const PropertyChangeEvent& evt
{
OSL_ENSURE( evt.Source == m_xExternalBinding, "OBoundControlModel::propertyChange: where did this come from?" );
- // our binding has properties which can control properties of ourself
+ // our binding has properties which can control properties of ourself
::rtl::OUString sBindingControlledProperty;
bool bForwardToLabelControl = false;
if ( evt.PropertyName.equals( PROPERTY_READONLY ) )
@@ -2486,9 +2486,9 @@ void OBoundControlModel::reset() throw (RuntimeException)
// @author fs@openoffice.org
sal_Bool bSimpleReset =
- ( !m_xColumn.is() // no connection to a database column
- || ( m_xCursor.is() // OR we have an improperly positioned cursor
- && bInvalidCursorPosition
+ ( !m_xColumn.is() // no connection to a database column
+ || ( m_xCursor.is() // OR we have an improperly positioned cursor
+ && bInvalidCursorPosition
)
|| hasExternalValueBinding() // OR we have an external value binding
);
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index 8bafb3f893b4..5958726516e4 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -227,7 +227,7 @@ OFormattedControl::OFormattedControl(const Reference<XMultiServiceFactory>& _rxF
increment(m_refCount);
{
- Reference<XWindow> xComp;
+ Reference<XWindow> xComp;
if (query_aggregation(m_xAggregate, xComp))
{
xComp->addKeyListener(this);
@@ -265,7 +265,7 @@ void OFormattedControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) thr
return;
// Steht das Control in einem Formular mit einer Submit-URL?
- Reference<com::sun::star::beans::XPropertySet> xSet(getModel(), UNO_QUERY);
+ Reference<com::sun::star::beans::XPropertySet> xSet(getModel(), UNO_QUERY);
if( !xSet.is() )
return;
@@ -274,7 +274,7 @@ void OFormattedControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) thr
if( !xParent.is() )
return;
- Reference<com::sun::star::beans::XPropertySet> xFormSet(xParent, UNO_QUERY);
+ Reference<com::sun::star::beans::XPropertySet> xFormSet(xParent, UNO_QUERY);
if( !xFormSet.is() )
return;
@@ -288,10 +288,10 @@ void OFormattedControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) thr
if( nCount > 1 )
{
- Reference<com::sun::star::beans::XPropertySet> xFCSet;
+ Reference<com::sun::star::beans::XPropertySet> xFCSet;
for( sal_Int32 nIndex=0; nIndex < nCount; nIndex++ )
{
- // Any aElement(xElements->getByIndex(nIndex));
+ // Any aElement(xElements->getByIndex(nIndex));
xElements->getByIndex(nIndex) >>= xFCSet;
if (hasProperty(PROPERTY_CLASSID, xFCSet) &&
@@ -323,14 +323,14 @@ IMPL_LINK(OFormattedControl, OnKeyPressed, void*, /*EMPTYARG*/)
Reference<XFormComponent> xFComp(getModel(), UNO_QUERY);
InterfaceRef xParent = xFComp->getParent();
- Reference<XSubmit> xSubmit(xParent, UNO_QUERY);
+ Reference<XSubmit> xSubmit(xParent, UNO_QUERY);
if (xSubmit.is())
xSubmit->submit( Reference<XControl> (), ::com::sun::star::awt::MouseEvent() );
return 0L;
}
//------------------------------------------------------------------------------
-StringSequence OFormattedControl::getSupportedServiceNames() throw()
+StringSequence OFormattedControl::getSupportedServiceNames() throw()
{
StringSequence aSupported = OBoundControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -463,9 +463,9 @@ Sequence< Type > OFormattedModel::_getTypes()
void OFormattedModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 3, OEditBaseModel )
- DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
- DECL_BOOL_PROP2(FILTERPROPOSAL, BOUND, MAYBEDEFAULT);
+ DECL_BOOL_PROP1(EMPTY_IS_NULL, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_BOOL_PROP2(FILTERPROPOSAL, BOUND, MAYBEDEFAULT);
END_DESCRIBE_PROPERTIES();
}
@@ -577,7 +577,7 @@ void OFormattedModel::_propertyChanged( const com::sun::star::beans::PropertyCha
::osl::MutexGuard aGuard( m_aMutex );
Reference<XNumberFormatsSupplier> xSupplier( calcFormatsSupplier() );
- m_nKeyType = getNumberFormatType(xSupplier->getNumberFormats(), getINT32( evt.NewValue ) );
+ m_nKeyType = getNumberFormatType(xSupplier->getNumberFormats(), getINT32( evt.NewValue ) );
// as m_aSaveValue (which is used by commitControlValueToDbColumn) is format dependent we have
// to recalc it, which is done by translateDbColumnToControlValue
@@ -655,7 +655,7 @@ Reference<XNumberFormatsSupplier> OFormattedModel::calcFormFormatsSupplier() co
Reference<XForm> xNextParentForm(xParent, UNO_QUERY);
while (!xNextParentForm.is() && xParent.is())
{
- xParent = xParent.query( xParent->getParent() );
+ xParent = xParent.query( xParent->getParent() );
xNextParentForm = xNextParentForm.query( xParent );
}
@@ -712,14 +712,14 @@ void OFormattedModel::onConnectedDbColumn( const Reference< XInterface >& _rxFor
DBG_ASSERT(m_xAggregateSet.is(), "OFormattedModel::onConnectedDbColumn : have no aggregate !");
if (m_xAggregateSet.is())
- { // all the following doesn't make any sense if we have no aggregate ...
+ { // all the following doesn't make any sense if we have no aggregate ...
Any aSupplier = m_xAggregateSet->getPropertyValue(PROPERTY_FORMATSSUPPLIER);
DBG_ASSERT( aSupplier.hasValue(), "OFormattedModel::onConnectedDbColumn : invalid property value !" );
// das sollte im Constructor oder im read auf was richtiges gesetzt worden sein
Any aFmtKey = m_xAggregateSet->getPropertyValue(PROPERTY_FORMATKEY);
if ( !(aFmtKey >>= nFormatKey ) )
- { // nobody gave us a format to use. So we examine the field we're bound to for a
+ { // nobody gave us a format to use. So we examine the field we're bound to for a
// format key, and use it ourself, too
sal_Int32 nType = DataType::VARCHAR;
if (xField.is())
@@ -735,7 +735,7 @@ void OFormattedModel::onConnectedDbColumn( const Reference< XInterface >& _rxFor
m_bOriginalNumeric = getBOOL(getPropertyValue(PROPERTY_TREATASNUMERIC));
if (!aFmtKey.hasValue())
- { // we aren't bound to a field (or this field's format is invalid)
+ { // we aren't bound to a field (or this field's format is invalid)
// -> determine the standard text (or numeric) format of the supplier
Reference<XNumberFormatTypes> xTypes(xSupplier->getNumberFormats(), UNO_QUERY);
if (xTypes.is())
@@ -789,7 +789,7 @@ void OFormattedModel::onConnectedDbColumn( const Reference< XInterface >& _rxFor
Reference<XNumberFormatsSupplier> xSupplier = calcFormatsSupplier();
m_bNumeric = getBOOL( getPropertyValue( PROPERTY_TREATASNUMERIC ) );
- m_nKeyType = getNumberFormatType( xSupplier->getNumberFormats(), nFormatKey );
+ m_nKeyType = getNumberFormatType( xSupplier->getNumberFormats(), nFormatKey );
xSupplier->getNumberFormatSettings()->getPropertyValue( ::rtl::OUString::createFromAscii("NullDate") ) >>= m_aNullDate;
OEditBaseModel::onConnectedDbColumn( _rxForm );
@@ -800,7 +800,7 @@ void OFormattedModel::onDisconnectedDbColumn()
{
OEditBaseModel::onDisconnectedDbColumn();
if (m_xOriginalFormatter.is())
- { // unser aggregiertes Model hatte keinerlei Format-Informationen
+ { // unser aggregiertes Model hatte keinerlei Format-Informationen
m_xAggregateSet->setPropertyValue(PROPERTY_FORMATSSUPPLIER, makeAny(m_xOriginalFormatter));
m_xAggregateSet->setPropertyValue(PROPERTY_FORMATKEY, Any());
setPropertyValue(PROPERTY_TREATASNUMERIC, makeAny((sal_Bool)m_bOriginalNumeric));
@@ -808,7 +808,7 @@ void OFormattedModel::onDisconnectedDbColumn()
}
m_nFieldType = DataType::OTHER;
- m_nKeyType = NumberFormat::UNDEFINED;
+ m_nKeyType = NumberFormat::UNDEFINED;
m_aNullDate = DBTypeConversion::getStandardDate();
}
@@ -849,11 +849,11 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream)
Reference<XNumberFormats> xFormats = xSupplier->getNumberFormats();
- ::rtl::OUString sFormatDescription;
- LanguageType eFormatLanguage = LANGUAGE_DONTKNOW;
+ ::rtl::OUString sFormatDescription;
+ LanguageType eFormatLanguage = LANGUAGE_DONTKNOW;
static const ::rtl::OUString s_aLocaleProp = ::rtl::OUString::createFromAscii("Locale");
- Reference<com::sun::star::beans::XPropertySet> xFormat = xFormats->getByKey(nKey);
+ Reference<com::sun::star::beans::XPropertySet> xFormat = xFormats->getByKey(nKey);
if (hasProperty(s_aLocaleProp, xFormat))
{
Any aLocale = xFormat->getPropertyValue(s_aLocaleProp);
@@ -908,7 +908,7 @@ void OFormattedModel::write(const Reference<XObjectOutputStream>& _rxOutStream)
_rxOutStream->writeShort(0x0001);
_rxOutStream->writeDouble(::comphelper::getDouble(aEffectiveValue));
break;
- default: // void and all unknown states
+ default: // void and all unknown states
DBG_ASSERT(!aEffectiveValue.hasValue(), "FmXFormattedModel::write : unknown property value type !");
_rxOutStream->writeShort(0x0002);
break;
@@ -949,7 +949,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr
nKey = xFormats->queryKey(sFormatDescription, aDescriptionLanguage, sal_False);
if (nKey == (sal_Int32)-1)
- { // noch nicht vorhanden in meinem Formatter ...
+ { // noch nicht vorhanden in meinem Formatter ...
nKey = xFormats->addNew(sFormatDescription, aDescriptionLanguage);
}
}
@@ -958,7 +958,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr
readCommonEditProperties(_rxInStream);
if (nVersion == 0x0003)
- { // since version 3 there is a "skippable" block at this position
+ { // since version 3 there is a "skippable" block at this position
Reference< XDataInputStream > xIn(_rxInStream, UNO_QUERY);
OStreamSection aDownCompat(xIn);
@@ -1032,10 +1032,10 @@ sal_Bool OFormattedModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
if ( aControlValue != m_aSaveValue )
{
// Leerstring + EmptyIsNull = void
- if ( !aControlValue.hasValue()
- || ( ( aControlValue.getValueType().getTypeClass() == TypeClass_STRING )
- && ( getString( aControlValue ).getLength() == 0 )
- && m_bEmptyIsNull
+ if ( !aControlValue.hasValue()
+ || ( ( aControlValue.getValueType().getTypeClass() == TypeClass_STRING )
+ && ( getString( aControlValue ).getLength() == 0 )
+ && m_bEmptyIsNull
)
)
m_xColumnUpdate->updateNull();
diff --git a/forms/source/component/FormattedField.hxx b/forms/source/component/FormattedField.hxx
index 9891a71bf654..a2cdf4285a27 100644
--- a/forms/source/component/FormattedField.hxx
+++ b/forms/source/component/FormattedField.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,15 +48,15 @@ namespace frm
{
// das Original, falls ich die Format-Properties meines aggregierten Models gefaket, d.h. von dem Feld, an das
// ich gebunden bin, weitergereicht habe (nur gueltig wenn loaded)
- ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier> m_xOriginalFormatter;
- ::com::sun::star::util::Date m_aNullDate;
- ::com::sun::star::uno::Any m_aSaveValue;
-
- sal_Int32 m_nFieldType;
- sal_Int16 m_nKeyType;
- sal_Bool m_bOriginalNumeric : 1,
- m_bNumeric : 1; // analog fuer TreatAsNumeric-Property
-
+ ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier> m_xOriginalFormatter;
+ ::com::sun::star::util::Date m_aNullDate;
+ ::com::sun::star::uno::Any m_aSaveValue;
+
+ sal_Int32 m_nFieldType;
+ sal_Int16 m_nKeyType;
+ sal_Bool m_bOriginalNumeric : 1,
+ m_bNumeric : 1; // analog fuer TreatAsNumeric-Property
+
protected:
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier> calcDefaultFormatsSupplier() const;
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier> calcFormFormatsSupplier() const;
@@ -156,10 +156,10 @@ namespace frm
//= OFormattedControl
//==================================================================
typedef ::cppu::ImplHelper1< ::com::sun::star::awt::XKeyListener> OFormattedControl_BASE;
- class OFormattedControl : public OBoundControl
+ class OFormattedControl : public OBoundControl
,public OFormattedControl_BASE
{
- sal_uInt32 m_nKeyEvent;
+ sal_uInt32 m_nKeyEvent;
public:
OFormattedControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
diff --git a/forms/source/component/FormattedFieldWrapper.cxx b/forms/source/component/FormattedFieldWrapper.cxx
index 53f340fd9d70..161046d0ce1e 100644
--- a/forms/source/component/FormattedFieldWrapper.cxx
+++ b/forms/source/component/FormattedFieldWrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ OFormattedFieldWrapper::OFormattedFieldWrapper(const Reference<XMultiServiceFact
m_pEditPart->acquire();
}
if (m_xAggregate.is())
- { // has to be in it's own block because of the temporary variable created by *this
+ { // has to be in it's own block because of the temporary variable created by *this
m_xAggregate->setDelegator(static_cast<XWeak*>(this));
}
decrement(m_refCount);
@@ -127,13 +127,13 @@ OFormattedFieldWrapper::OFormattedFieldWrapper( const OFormattedFieldWrapper* _p
}
}
if ( m_xAggregate.is() )
- { // has to be in it's own block because of the temporary variable created by *this
+ { // has to be in it's own block because of the temporary variable created by *this
m_xAggregate->setDelegator( static_cast< XWeak* >( this ) );
}
decrement( m_refCount );
}
else
- { // the clone source does not yet have an aggregate -> we don't yet need one, too
+ { // the clone source does not yet have an aggregate -> we don't yet need one, too
}
}
@@ -156,7 +156,7 @@ Any SAL_CALL OFormattedFieldWrapper::queryAggregation(const Type& _rType) throw
Any aReturn;
if (_rType.equals( ::getCppuType( static_cast< Reference< XTypeProvider >* >(NULL) ) ) )
- { // a XTypeProvider interface needs a working aggregate - we don't want to give the type provider
+ { // a XTypeProvider interface needs a working aggregate - we don't want to give the type provider
// of our base class (OFormattedFieldWrapper_Base) to the caller as it supplies nearly nothing
ensureAggregate();
if (m_xAggregate.is())
@@ -168,7 +168,7 @@ Any SAL_CALL OFormattedFieldWrapper::queryAggregation(const Type& _rType) throw
aReturn = OFormattedFieldWrapper_Base::queryAggregation(_rType);
if ((_rType.equals( ::getCppuType( static_cast< Reference< XServiceInfo >* >(NULL) ) ) ) && aReturn.hasValue())
- { // somebody requested an XServiceInfo interface and our base class provided it
+ { // somebody requested an XServiceInfo interface and our base class provided it
// check our aggregate if it has one, too
ensureAggregate();
}
@@ -270,14 +270,14 @@ void SAL_CALL OFormattedFieldWrapper::write(const Reference<XObjectOutputStream>
void SAL_CALL OFormattedFieldWrapper::read(const Reference<XObjectInputStream>& _rxInStream) throw( IOException, RuntimeException )
{
if (m_xAggregate.is())
- { // we alread did a decision if we're an EditModel or a FormattedModel
+ { // we alread did a decision if we're an EditModel or a FormattedModel
// if we act as formatted, we have to read the edit part first
if (m_xFormattedPart.is())
{
// two possible cases:
// a) the stuff was written by a version which didn't work with an Edit header (all intermediate
- // versions >5.1 && <=568)
+ // versions >5.1 && <=568)
// b) it was written by a version using edit headers
// as we can distinguish a) from b) only after we have read the edit part, we need to remember the
// position
@@ -289,7 +289,7 @@ void SAL_CALL OFormattedFieldWrapper::read(const Reference<XObjectInputStream>&
// this only works because an edit model can read the stuff written by a formatted model (maybe with
// some assertions) , but not vice versa
if (!m_pEditPart->lastReadWasFormattedFake())
- { // case a), written with a version without the edit part fake, so seek to the start position, again
+ { // case a), written with a version without the edit part fake, so seek to the start position, again
xInMarkable->jumpToMark(nBeforeEditPart);
}
xInMarkable->deleteMark(nBeforeEditPart);
@@ -318,7 +318,7 @@ void SAL_CALL OFormattedFieldWrapper::read(const Reference<XObjectInputStream>&
// yes -> all fine
pNewAggregate = pBasicReader;
else
- { // no -> substitute it with a formatted model
+ { // no -> substitute it with a formatted model
// let the formmatted model do the reading
OFormattedModel* pFormattedReader = new OFormattedModel(m_xServiceFactory);
@@ -341,7 +341,7 @@ void SAL_CALL OFormattedFieldWrapper::read(const Reference<XObjectInputStream>&
DBG_ASSERT(m_xAggregate.is(), "OFormattedFieldWrapper::read : the OEditModel didn't have an XAggregation interface !");
}
if (m_xAggregate.is())
- { // has to be in it's own block because of the temporary variable created by *this
+ { // has to be in it's own block because of the temporary variable created by *this
m_xAggregate->setDelegator(static_cast<XWeak*>(this));
}
decrement(m_refCount);
@@ -386,7 +386,7 @@ void OFormattedFieldWrapper::ensureAggregate()
}
}
if (m_xAggregate.is())
- { // has to be in it's own block because of the temporary variable created by *this
+ { // has to be in it's own block because of the temporary variable created by *this
m_xAggregate->setDelegator(static_cast<XWeak*>(this));
}
decrement(m_refCount);
diff --git a/forms/source/component/FormattedFieldWrapper.hxx b/forms/source/component/FormattedFieldWrapper.hxx
index d7726ee428fa..42f861d30666 100644
--- a/forms/source/component/FormattedFieldWrapper.hxx
+++ b/forms/source/component/FormattedFieldWrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,21 +42,21 @@ class OEditModel;
//==================================================================
//= OFormattedFieldWrapper
//==================================================================
-typedef ::cppu::WeakAggImplHelper3 < ::com::sun::star::io::XPersistObject
- , ::com::sun::star::lang::XServiceInfo
- , ::com::sun::star::util::XCloneable
- > OFormattedFieldWrapper_Base;
+typedef ::cppu::WeakAggImplHelper3 < ::com::sun::star::io::XPersistObject
+ , ::com::sun::star::lang::XServiceInfo
+ , ::com::sun::star::util::XCloneable
+ > OFormattedFieldWrapper_Base;
class OFormattedFieldWrapper : public OFormattedFieldWrapper_Base
{
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_xServiceFactory;
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_xServiceFactory;
protected:
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation> m_xAggregate;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation> m_xAggregate;
- OEditModel* m_pEditPart;
+ OEditModel* m_pEditPart;
// if we act as formatted this is used to write the EditModel part
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XPersistObject> m_xFormattedPart;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XPersistObject> m_xFormattedPart;
// if we act as formatted, this is the PersistObject interface of our aggregate, used
// to read and write the FormattedModel part
diff --git a/forms/source/component/FormsCollection.cxx b/forms/source/component/FormsCollection.cxx
index b6629e91cb94..cf69c0015910 100644
--- a/forms/source/component/FormsCollection.cxx
+++ b/forms/source/component/FormsCollection.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -182,7 +182,7 @@ InterfaceRef OFormsCollection::getParent() throw( RuntimeException )
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/FormsCollection.hxx b/forms/source/component/FormsCollection.hxx
index df547f1f6238..8a9ef988a40c 100644
--- a/forms/source/component/FormsCollection.hxx
+++ b/forms/source/component/FormsCollection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace frm
// oder aussen einen Context uebergeben bekommen
//==================================================================
typedef ::cppu::OComponentHelper FormsCollectionComponentBase;
-typedef ::cppu::ImplHelper2< ::com::sun::star::container::XChild
+typedef ::cppu::ImplHelper2< ::com::sun::star::container::XChild
,::com::sun::star::lang::XServiceInfo > OFormsCollection_BASE;
// else MSVC kills itself on some statements
@@ -55,9 +55,9 @@ class OFormsCollection
,public OInterfaceContainer
,public OFormsCollection_BASE
{
- ::osl::Mutex m_aMutex;
- OImplementationIdsRef m_aHoldIdHelper;
- ::comphelper::InterfaceRef m_xParent; // Parent
+ ::osl::Mutex m_aMutex;
+ OImplementationIdsRef m_aHoldIdHelper;
+ ::comphelper::InterfaceRef m_xParent; // Parent
public:
OFormsCollection(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
@@ -96,7 +96,7 @@ public:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Grid.cxx b/forms/source/component/Grid.cxx
index 701f143c1c0a..7626cc6e14ae 100644
--- a/forms/source/component/Grid.cxx
+++ b/forms/source/component/Grid.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,15 +72,15 @@ using namespace ::com::sun::star::view;
namespace WritingMode2 = ::com::sun::star::text::WritingMode2;
-const sal_uInt16 ROWHEIGHT = 0x0001;
-const sal_uInt16 FONTTYPE = 0x0002;
-const sal_uInt16 FONTSIZE = 0x0004;
-const sal_uInt16 FONTATTRIBS = 0x0008;
-const sal_uInt16 TABSTOP = 0x0010;
-const sal_uInt16 TEXTCOLOR = 0x0020;
-const sal_uInt16 FONTDESCRIPTOR = 0x0040;
-const sal_uInt16 RECORDMARKER = 0x0080;
-const sal_uInt16 BACKGROUNDCOLOR = 0x0100;
+const sal_uInt16 ROWHEIGHT = 0x0001;
+const sal_uInt16 FONTTYPE = 0x0002;
+const sal_uInt16 FONTSIZE = 0x0004;
+const sal_uInt16 FONTATTRIBS = 0x0008;
+const sal_uInt16 TABSTOP = 0x0010;
+const sal_uInt16 TEXTCOLOR = 0x0020;
+const sal_uInt16 FONTDESCRIPTOR = 0x0040;
+const sal_uInt16 RECORDMARKER = 0x0080;
+const sal_uInt16 BACKGROUNDCOLOR = 0x0100;
//------------------------------------------------------------------
InterfaceRef SAL_CALL OGridControlModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory)
@@ -288,7 +288,7 @@ void SAL_CALL OGridControlModel::setParent( const InterfaceRef& i_Parent ) throw
}
//------------------------------------------------------------------------------
-Sequence< Type > SAL_CALL OGridControlModel::getTypes( ) throw(RuntimeException)
+Sequence< Type > SAL_CALL OGridControlModel::getTypes( ) throw(RuntimeException)
{
return concatSequences(
concatSequences(
@@ -388,16 +388,16 @@ Reference<XPropertySet> OGridControlModel::createColumn(sal_Int32 nTypeId) cons
Reference<XPropertySet> xReturn;
switch (nTypeId)
{
- case TYPE_CHECKBOX: xReturn = new CheckBoxColumn( getContext() ); break;
- case TYPE_COMBOBOX: xReturn = new ComboBoxColumn( getContext() ); break;
- case TYPE_CURRENCYFIELD: xReturn = new CurrencyFieldColumn( getContext() ); break;
- case TYPE_DATEFIELD: xReturn = new DateFieldColumn( getContext() ); break;
- case TYPE_LISTBOX: xReturn = new ListBoxColumn( getContext() ); break;
- case TYPE_NUMERICFIELD: xReturn = new NumericFieldColumn( getContext() ); break;
- case TYPE_PATTERNFIELD: xReturn = new PatternFieldColumn( getContext() ); break;
- case TYPE_TEXTFIELD: xReturn = new TextFieldColumn( getContext() ); break;
- case TYPE_TIMEFIELD: xReturn = new TimeFieldColumn( getContext() ); break;
- case TYPE_FORMATTEDFIELD: xReturn = new FormattedFieldColumn( getContext() ); break;
+ case TYPE_CHECKBOX: xReturn = new CheckBoxColumn( getContext() ); break;
+ case TYPE_COMBOBOX: xReturn = new ComboBoxColumn( getContext() ); break;
+ case TYPE_CURRENCYFIELD: xReturn = new CurrencyFieldColumn( getContext() ); break;
+ case TYPE_DATEFIELD: xReturn = new DateFieldColumn( getContext() ); break;
+ case TYPE_LISTBOX: xReturn = new ListBoxColumn( getContext() ); break;
+ case TYPE_NUMERICFIELD: xReturn = new NumericFieldColumn( getContext() ); break;
+ case TYPE_PATTERNFIELD: xReturn = new PatternFieldColumn( getContext() ); break;
+ case TYPE_TEXTFIELD: xReturn = new TextFieldColumn( getContext() ); break;
+ case TYPE_TIMEFIELD: xReturn = new TimeFieldColumn( getContext() ); break;
+ case TYPE_FORMATTEDFIELD: xReturn = new FormattedFieldColumn( getContext() ); break;
default:
DBG_ERROR("OGridControlModel::createColumn: Unknown Column");
break;
@@ -458,41 +458,41 @@ void OGridControlModel::_reset()
void OGridControlModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_BASE_PROPERTIES( 37 )
- DECL_PROP1(NAME, ::rtl::OUString, BOUND);
- DECL_PROP2(CLASSID, sal_Int16, READONLY, TRANSIENT);
- DECL_PROP1(TAG, ::rtl::OUString, BOUND);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
- DECL_PROP3(TABSTOP, sal_Bool, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP2(HASNAVIGATION, sal_Bool, BOUND, MAYBEDEFAULT);
- DECL_PROP1(ENABLED, sal_Bool, BOUND);
- DECL_PROP2(ENABLEVISIBLE, sal_Bool, BOUND, MAYBEDEFAULT);
- DECL_PROP1(BORDER, sal_Int16, BOUND);
- DECL_PROP2(BORDERCOLOR, sal_Int16, BOUND, MAYBEVOID);
- DECL_PROP1(DEFAULTCONTROL, ::rtl::OUString, BOUND);
- DECL_PROP3(TEXTCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP3(BACKGROUNDCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP2(FONT, FontDescriptor, BOUND, MAYBEDEFAULT);
- DECL_PROP3(ROWHEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP1(HELPTEXT, ::rtl::OUString, BOUND);
- DECL_PROP1(FONT_NAME, ::rtl::OUString, MAYBEDEFAULT);
- DECL_PROP1(FONT_STYLENAME, ::rtl::OUString, MAYBEDEFAULT);
- DECL_PROP1(FONT_FAMILY, sal_Int16, MAYBEDEFAULT);
- DECL_PROP1(FONT_CHARSET, sal_Int16, MAYBEDEFAULT);
- DECL_PROP1(FONT_HEIGHT, float, MAYBEDEFAULT);
- DECL_PROP1(FONT_WEIGHT, float, MAYBEDEFAULT);
- DECL_PROP1(FONT_SLANT, sal_Int16, MAYBEDEFAULT);
- DECL_PROP1(FONT_UNDERLINE, sal_Int16, MAYBEDEFAULT);
- DECL_BOOL_PROP1(FONT_WORDLINEMODE, MAYBEDEFAULT);
- DECL_PROP3(TEXTLINECOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP2(FONTEMPHASISMARK, sal_Int16, BOUND, MAYBEDEFAULT);
- DECL_PROP2(FONTRELIEF, sal_Int16, BOUND, MAYBEDEFAULT);
- DECL_PROP1(FONT_STRIKEOUT, sal_Int16, MAYBEDEFAULT);
- DECL_PROP2(RECORDMARKER, sal_Bool, BOUND, MAYBEDEFAULT );
- DECL_PROP2(PRINTABLE, sal_Bool, BOUND, MAYBEDEFAULT );
- DECL_PROP4(CURSORCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID , TRANSIENT);
- DECL_PROP3(ALWAYSSHOWCURSOR, sal_Bool, BOUND, MAYBEDEFAULT, TRANSIENT);
- DECL_PROP3(DISPLAYSYNCHRON, sal_Bool, BOUND, MAYBEDEFAULT, TRANSIENT);
- DECL_PROP2(HELPURL, ::rtl::OUString, BOUND, MAYBEDEFAULT);
+ DECL_PROP1(NAME, ::rtl::OUString, BOUND);
+ DECL_PROP2(CLASSID, sal_Int16, READONLY, TRANSIENT);
+ DECL_PROP1(TAG, ::rtl::OUString, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP3(TABSTOP, sal_Bool, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP2(HASNAVIGATION, sal_Bool, BOUND, MAYBEDEFAULT);
+ DECL_PROP1(ENABLED, sal_Bool, BOUND);
+ DECL_PROP2(ENABLEVISIBLE, sal_Bool, BOUND, MAYBEDEFAULT);
+ DECL_PROP1(BORDER, sal_Int16, BOUND);
+ DECL_PROP2(BORDERCOLOR, sal_Int16, BOUND, MAYBEVOID);
+ DECL_PROP1(DEFAULTCONTROL, ::rtl::OUString, BOUND);
+ DECL_PROP3(TEXTCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP3(BACKGROUNDCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP2(FONT, FontDescriptor, BOUND, MAYBEDEFAULT);
+ DECL_PROP3(ROWHEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP1(HELPTEXT, ::rtl::OUString, BOUND);
+ DECL_PROP1(FONT_NAME, ::rtl::OUString, MAYBEDEFAULT);
+ DECL_PROP1(FONT_STYLENAME, ::rtl::OUString, MAYBEDEFAULT);
+ DECL_PROP1(FONT_FAMILY, sal_Int16, MAYBEDEFAULT);
+ DECL_PROP1(FONT_CHARSET, sal_Int16, MAYBEDEFAULT);
+ DECL_PROP1(FONT_HEIGHT, float, MAYBEDEFAULT);
+ DECL_PROP1(FONT_WEIGHT, float, MAYBEDEFAULT);
+ DECL_PROP1(FONT_SLANT, sal_Int16, MAYBEDEFAULT);
+ DECL_PROP1(FONT_UNDERLINE, sal_Int16, MAYBEDEFAULT);
+ DECL_BOOL_PROP1(FONT_WORDLINEMODE, MAYBEDEFAULT);
+ DECL_PROP3(TEXTLINECOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP2(FONTEMPHASISMARK, sal_Int16, BOUND, MAYBEDEFAULT);
+ DECL_PROP2(FONTRELIEF, sal_Int16, BOUND, MAYBEDEFAULT);
+ DECL_PROP1(FONT_STRIKEOUT, sal_Int16, MAYBEDEFAULT);
+ DECL_PROP2(RECORDMARKER, sal_Bool, BOUND, MAYBEDEFAULT );
+ DECL_PROP2(PRINTABLE, sal_Bool, BOUND, MAYBEDEFAULT );
+ DECL_PROP4(CURSORCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID , TRANSIENT);
+ DECL_PROP3(ALWAYSSHOWCURSOR, sal_Bool, BOUND, MAYBEDEFAULT, TRANSIENT);
+ DECL_PROP3(DISPLAYSYNCHRON, sal_Bool, BOUND, MAYBEDEFAULT, TRANSIENT);
+ DECL_PROP2(HELPURL, ::rtl::OUString, BOUND, MAYBEDEFAULT);
DECL_PROP2(WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT);
DECL_PROP3(CONTEXT_WRITING_MODE,sal_Int16, BOUND, MAYBEDEFAULT, TRANSIENT);
END_DESCRIBE_PROPERTIES();
@@ -811,7 +811,7 @@ void OGridControlModel::gotColumn( const Reference< XInterface >& _rxColumn )
void OGridControlModel::lostColumn(const Reference< XInterface >& _rxColumn)
{
if ( m_xSelection == _rxColumn )
- { // the currently selected element was replaced
+ { // the currently selected element was replaced
m_xSelection.clear();
EventObject aEvt( static_cast< XWeak* >( this ) );
m_aSelectListeners.notifyEach( &XSelectionChangeListener::selectionChanged, aEvt );
@@ -883,7 +883,7 @@ void OGridControlModel::approveNewElement( const Reference< XPropertySet >& _rxO
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OGridControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_GRID; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_GRID; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -891,7 +891,7 @@ void OGridControlModel::write(const Reference<XObjectOutputStream>& _rxOutStream
{
OControlModel::write(_rxOutStream);
- Reference<XMarkableStream> xMark(_rxOutStream, UNO_QUERY);
+ Reference<XMarkableStream> xMark(_rxOutStream, UNO_QUERY);
// 1. Version
_rxOutStream->writeShort(0x0008);
@@ -1009,7 +1009,7 @@ void OGridControlModel::read(const Reference<XObjectInputStream>& _rxInStream) t
{
OControlModel::read(_rxInStream);
- Reference<XMarkableStream> xMark(_rxInStream, UNO_QUERY);
+ Reference<XMarkableStream> xMark(_rxInStream, UNO_QUERY);
// 1. Version
sal_Int16 nVersion = _rxInStream->readShort();
@@ -1159,7 +1159,7 @@ void OGridControlModel::read(const Reference<XObjectInputStream>& _rxInStream) t
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Grid.hxx b/forms/source/component/Grid.hxx
index 5b4b645d77f0..7077ffc59e9e 100644
--- a/forms/source/component/Grid.hxx
+++ b/forms/source/component/Grid.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,55 +57,55 @@ class OGridColumn;
struct ColumnDescription : public ElementDescription
{
public:
- OGridColumn* pColumn; // not owned by this instance! only to prevent duplicate XUnoTunnel usage
+ OGridColumn* pColumn; // not owned by this instance! only to prevent duplicate XUnoTunnel usage
};
//==================================================================
// OGridControlModel
//==================================================================
-typedef ::cppu::ImplHelper7 < ::com::sun::star::awt::XControlModel
- , ::com::sun::star::form::XGridColumnFactory
- , ::com::sun::star::form::XReset
- , ::com::sun::star::view::XSelectionSupplier
- , ::com::sun::star::sdb::XSQLErrorListener
+typedef ::cppu::ImplHelper7 < ::com::sun::star::awt::XControlModel
+ , ::com::sun::star::form::XGridColumnFactory
+ , ::com::sun::star::form::XReset
+ , ::com::sun::star::view::XSelectionSupplier
+ , ::com::sun::star::sdb::XSQLErrorListener
, ::com::sun::star::sdb::XRowSetSupplier
, ::com::sun::star::sdb::XRowSetChangeBroadcaster
- > OGridControlModel_BASE;
-
+ > OGridControlModel_BASE;
+
class OGridControlModel :public OControlModel
,public OInterfaceContainer
,public OErrorBroadcaster
,public FontControlModel
,public OGridControlModel_BASE
{
- ::cppu::OInterfaceContainerHelper m_aSelectListeners,
+ ::cppu::OInterfaceContainerHelper m_aSelectListeners,
m_aResetListeners,
m_aRowSetChangeListeners;
// [properties]
- ::com::sun::star::uno::Any m_aRowHeight; // Zeilenhoehe
- ::com::sun::star::uno::Any m_aTabStop;
- ::com::sun::star::uno::Any m_aBackgroundColor;
- ::com::sun::star::uno::Any m_aCursorColor; // transient
+ ::com::sun::star::uno::Any m_aRowHeight; // Zeilenhoehe
+ ::com::sun::star::uno::Any m_aTabStop;
+ ::com::sun::star::uno::Any m_aBackgroundColor;
+ ::com::sun::star::uno::Any m_aCursorColor; // transient
::com::sun::star::uno::Any m_aBorderColor;
- ::rtl::OUString m_aDefaultControl;
- ::rtl::OUString m_sHelpText;
+ ::rtl::OUString m_aDefaultControl;
+ ::rtl::OUString m_sHelpText;
// [properties]
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xSelection;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xSelection;
// [properties]
- ::rtl::OUString m_sHelpURL; // URL
- sal_Int16 m_nBorder;
+ ::rtl::OUString m_sHelpURL; // URL
+ sal_Int16 m_nBorder;
sal_Int16 m_nWritingMode;
sal_Int16 m_nContextWritingMode;
- sal_Bool m_bEnableVisible : 1;
- sal_Bool m_bEnable : 1;
- sal_Bool m_bNavigation : 1;
- sal_Bool m_bRecordMarker : 1;
- sal_Bool m_bPrintable : 1;
- sal_Bool m_bAlwaysShowCursor : 1; // transient
- sal_Bool m_bDisplaySynchron : 1; // transient
+ sal_Bool m_bEnableVisible : 1;
+ sal_Bool m_bEnable : 1;
+ sal_Bool m_bNavigation : 1;
+ sal_Bool m_bRecordMarker : 1;
+ sal_Bool m_bPrintable : 1;
+ sal_Bool m_bAlwaysShowCursor : 1; // transient
+ sal_Bool m_bDisplaySynchron : 1; // transient
// [properties]
protected:
@@ -214,7 +214,7 @@ protected:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
diff --git a/forms/source/component/GroupBox.cxx b/forms/source/component/GroupBox.cxx
index 702a3aba1905..a6a781fe6455 100644
--- a/forms/source/component/GroupBox.cxx
+++ b/forms/source/component/GroupBox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ OGroupBoxModel::OGroupBoxModel( const OGroupBoxModel* _pOriginal, const Referenc
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence SAL_CALL OGroupBoxModel::getSupportedServiceNames() throw(RuntimeException)
+StringSequence SAL_CALL OGroupBoxModel::getSupportedServiceNames() throw(RuntimeException)
{
StringSequence aSupported = OControlModel::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -108,7 +108,7 @@ void OGroupBoxModel::describeAggregateProperties( Sequence< Property >& _rAggreg
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OGroupBoxModel::getServiceName() throw(RuntimeException)
{
- return FRM_COMPONENT_GROUPBOX; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_GROUPBOX; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -158,7 +158,7 @@ OGroupBoxControl::OGroupBoxControl(const Reference<starlang::XMultiServiceFactor
}
//------------------------------------------------------------------------------
-StringSequence SAL_CALL OGroupBoxControl::getSupportedServiceNames() throw(RuntimeException)
+StringSequence SAL_CALL OGroupBoxControl::getSupportedServiceNames() throw(RuntimeException)
{
StringSequence aSupported = OControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
diff --git a/forms/source/component/GroupBox.hxx b/forms/source/component/GroupBox.hxx
index a7b0411af451..1c0af9dc13ce 100644
--- a/forms/source/component/GroupBox.hxx
+++ b/forms/source/component/GroupBox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,10 +46,10 @@ public:
// XServiceInfo
IMPLEMENTATION_NAME(OGroupBoxModel);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
@@ -74,7 +74,7 @@ public:
// XServiceInfo
IMPLEMENTATION_NAME(OGroupBoxControl);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
};
//.........................................................................
diff --git a/forms/source/component/GroupManager.cxx b/forms/source/component/GroupManager.cxx
index c9b8e4616e73..8e31c5c317aa 100644
--- a/forms/source/component/GroupManager.cxx
+++ b/forms/source/component/GroupManager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ public:
{
return
reinterpret_cast<sal_Int64>(lhs.m_xComponent.get())
- < reinterpret_cast<sal_Int64>(rhs.m_xComponent.get());
+ < reinterpret_cast<sal_Int64>(rhs.m_xComponent.get());
}
};
@@ -350,7 +350,7 @@ void SAL_CALL OGroupManager::propertyChange(const PropertyChangeEvent& evt) thro
Reference<XPropertySet> xSet(evt.Source, UNO_QUERY);
// Component aus Gruppe entfernen
- ::rtl::OUString sGroupName;
+ ::rtl::OUString sGroupName;
if (hasProperty( PROPERTY_GROUP_NAME, xSet ))
xSet->getPropertyValue( PROPERTY_GROUP_NAME ) >>= sGroupName;
if (evt.PropertyName == PROPERTY_NAME) {
@@ -425,9 +425,9 @@ sal_Int32 OGroupManager::getGroupCount()
void OGroupManager::getGroup(sal_Int32 nGroup, Sequence< Reference<XControlModel> >& _rGroup, ::rtl::OUString& _rName)
{
OSL_ENSURE(nGroup >= 0 && (size_t)nGroup < m_aActiveGroupMap.size(),"OGroupManager::getGroup: Invalid group index!");
- OGroupArr::iterator aGroupPos = m_aActiveGroupMap[nGroup];
- _rName = aGroupPos->second.GetGroupName();
- _rGroup = aGroupPos->second.GetControlModels();
+ OGroupArr::iterator aGroupPos = m_aActiveGroupMap[nGroup];
+ _rName = aGroupPos->second.GetGroupName();
+ _rGroup = aGroupPos->second.GetControlModels();
}
//------------------------------------------------------------------
@@ -506,7 +506,7 @@ void OGroupManager::RemoveElement( const Reference<XPropertySet>& xSet )
return;
// Component aus Gruppe entfernen
- ::rtl::OUString sGroupName( GetGroupName( xSet ) );
+ ::rtl::OUString sGroupName( GetGroupName( xSet ) );
removeFromGroupMap(sGroupName,xSet);
}
@@ -527,7 +527,7 @@ void OGroupManager::RemoveElement( const Reference<XPropertySet>& xSet )
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/GroupManager.hxx b/forms/source/component/GroupManager.hxx
index aa2218856282..119144c1c5bd 100644
--- a/forms/source/component/GroupManager.hxx
+++ b/forms/source/component/GroupManager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,7 +95,7 @@ namespace frm
_rCompareOp
);
if ((aExistentPos != _rArray.end()) && (*aExistentPos == _rNewElement))
- { // we have a valid "lower or equal" element and it's really "equal"
+ { // we have a valid "lower or equal" element and it's really "equal"
nPos = aExistentPos - _rArray.begin();
return sal_True;
}
@@ -106,11 +106,11 @@ namespace frm
//========================================================================
class OGroupComp
{
- ::rtl::OUString m_aName;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xComponent;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> m_xControlModel;
- sal_Int32 m_nPos;
- sal_Int16 m_nTabIndex;
+ ::rtl::OUString m_aName;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xComponent;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel> m_xControlModel;
+ sal_Int32 m_nPos;
+ sal_Int16 m_nTabIndex;
friend class OGroupCompLess;
@@ -122,10 +122,10 @@ public:
sal_Bool operator==( const OGroupComp& rComp ) const;
inline const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& GetComponent() const { return m_xComponent; }
- inline const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel>& GetControlModel() const { return m_xControlModel; }
+ inline const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel>& GetControlModel() const { return m_xControlModel; }
- sal_Int32 GetPos() const { return m_nPos; }
- sal_Int16 GetTabIndex() const { return m_nTabIndex; }
+ sal_Int32 GetPos() const { return m_nPos; }
+ sal_Int16 GetTabIndex() const { return m_nTabIndex; }
::rtl::OUString GetName() const { return m_aName; }
};
@@ -135,9 +135,9 @@ DECLARE_STL_VECTOR(OGroupComp, OGroupCompArr);
class OGroupComp;
class OGroupCompAcc
{
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xComponent;
-
- OGroupComp m_aGroupComp;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xComponent;
+
+ OGroupComp m_aGroupComp;
friend class OGroupCompAccLess;
@@ -146,8 +146,8 @@ public:
sal_Bool operator==( const OGroupCompAcc& rCompAcc ) const;
- inline const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& GetComponent() const { return m_xComponent; }
- const OGroupComp& GetGroupComponent() const { return m_aGroupComp; }
+ inline const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& GetComponent() const { return m_xComponent; }
+ const OGroupComp& GetGroupComponent() const { return m_aGroupComp; }
};
DECLARE_STL_VECTOR(OGroupCompAcc, OGroupCompAccArr);
@@ -155,18 +155,18 @@ DECLARE_STL_VECTOR(OGroupCompAcc, OGroupCompAccArr);
//========================================================================
class OGroup
{
- OGroupCompArr m_aCompArray;
- OGroupCompAccArr m_aCompAccArray;
+ OGroupCompArr m_aCompArray;
+ OGroupCompAccArr m_aCompAccArray;
::rtl::OUString m_aGroupName;
- sal_uInt16 m_nInsertPos; // Die Einfugeposition der GroupComps wird von der Gruppe bestimmt.
+ sal_uInt16 m_nInsertPos; // Die Einfugeposition der GroupComps wird von der Gruppe bestimmt.
friend class OGroupLess;
public:
OGroup( const ::rtl::OUString& rGroupName );
#ifdef DBG_UTIL
- OGroup( const OGroup& _rSource ); // just to ensure the DBG_CTOR call
+ OGroup( const OGroup& _rSource ); // just to ensure the DBG_CTOR call
#endif
virtual ~OGroup();
@@ -186,11 +186,11 @@ DECLARE_STL_USTRINGACCESS_MAP(OGroup, OGroupArr);
DECLARE_STL_VECTOR(OGroupArr::iterator, OActiveGroups);
//========================================================================
-class OGroupManager : public ::cppu::WeakImplHelper2< ::com::sun::star::beans::XPropertyChangeListener, ::com::sun::star::container::XContainerListener>
+class OGroupManager : public ::cppu::WeakImplHelper2< ::com::sun::star::beans::XPropertyChangeListener, ::com::sun::star::container::XContainerListener>
{
- OGroup* m_pCompGroup; // Alle Components nach TabIndizes sortiert
- OGroupArr m_aGroupArr; // Alle Components nach Gruppen sortiert
- OActiveGroups m_aActiveGroupMap; // In dieser Map werden die Indizes aller Gruppen gehalten,
+ OGroup* m_pCompGroup; // Alle Components nach TabIndizes sortiert
+ OGroupArr m_aGroupArr; // Alle Components nach Gruppen sortiert
+ OActiveGroups m_aActiveGroupMap; // In dieser Map werden die Indizes aller Gruppen gehalten,
// die mehr als 1 Element haben
::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >
@@ -227,7 +227,7 @@ public:
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FRM_GROUPMANAGER_HXX_
diff --git a/forms/source/component/Hidden.cxx b/forms/source/component/Hidden.cxx
index 6f1e595d7e79..d291a9818a72 100644
--- a/forms/source/component/Hidden.cxx
+++ b/forms/source/component/Hidden.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -130,16 +130,16 @@ sal_Bool OHiddenModel::convertFastPropertyValue(
void OHiddenModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_BASE_PROPERTIES(4)
- DECL_PROP2(CLASSID, sal_Int16, READONLY, TRANSIENT);
- DECL_PROP1(HIDDEN_VALUE, ::rtl::OUString, BOUND);
- DECL_PROP1(NAME, ::rtl::OUString, BOUND);
- DECL_PROP1(TAG, ::rtl::OUString, BOUND);
+ DECL_PROP2(CLASSID, sal_Int16, READONLY, TRANSIENT);
+ DECL_PROP1(HIDDEN_VALUE, ::rtl::OUString, BOUND);
+ DECL_PROP1(NAME, ::rtl::OUString, BOUND);
+ DECL_PROP1(TAG, ::rtl::OUString, BOUND);
END_DESCRIBE_PROPERTIES();
}
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence SAL_CALL OHiddenModel::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
+StringSequence SAL_CALL OHiddenModel::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
{
StringSequence aSupported( 2 );
aSupported[ 0 ] = FRM_SUN_COMPONENT_HIDDENCONTROL;
@@ -150,7 +150,7 @@ StringSequence SAL_CALL OHiddenModel::getSupportedServiceNames() throw(::com::su
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OHiddenModel::getServiceName() throw(RuntimeException)
{
- return FRM_COMPONENT_HIDDEN; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_HIDDEN; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
diff --git a/forms/source/component/Hidden.hxx b/forms/source/component/Hidden.hxx
index 640b91dbd3c1..98bbcdd6c086 100644
--- a/forms/source/component/Hidden.hxx
+++ b/forms/source/component/Hidden.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace frm
class OHiddenModel
:public OControlModel
{
- ::rtl::OUString m_sHiddenValue;
+ ::rtl::OUString m_sHiddenValue;
public:
DECLARE_DEFAULT_LEAF_XTOR( OHiddenModel );
@@ -56,10 +56,10 @@ public:
// XServiceInfo
IMPLEMENTATION_NAME(OHiddenModel);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
diff --git a/forms/source/component/ImageButton.cxx b/forms/source/component/ImageButton.cxx
index 926ed5c57e55..2b6165f5fac8 100644
--- a/forms/source/component/ImageButton.cxx
+++ b/forms/source/component/ImageButton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ OImageButtonModel::~OImageButtonModel()
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence OImageButtonModel::getSupportedServiceNames() throw()
+StringSequence OImageButtonModel::getSupportedServiceNames() throw()
{
StringSequence aSupported = OClickableImageBaseModel::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -115,7 +115,7 @@ void OImageButtonModel::describeFixedProperties( Sequence< Property >& _rProps )
//------------------------------------------------------------------------------
::rtl::OUString OImageButtonModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_IMAGEBUTTON; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_IMAGEBUTTON; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -192,7 +192,7 @@ Sequence<Type> OImageButtonControl::_getTypes()
}
//------------------------------------------------------------------------------
-StringSequence OImageButtonControl::getSupportedServiceNames() throw()
+StringSequence OImageButtonControl::getSupportedServiceNames() throw()
{
StringSequence aSupported = OClickableImageBaseControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -269,7 +269,7 @@ void SAL_CALL OImageButtonControl::mouseExited(const awt::MouseEvent& /*e*/) thr
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/ImageButton.hxx b/forms/source/component/ImageButton.hxx
index cd5e4f7758a1..2507e3666b5c 100644
--- a/forms/source/component/ImageButton.hxx
+++ b/forms/source/component/ImageButton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -101,7 +101,7 @@ public:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FRM_IMAGE_BUTTON_HXX_
diff --git a/forms/source/component/ImageControl.cxx b/forms/source/component/ImageControl.cxx
index 6caf6f4b530a..e888fcaa0169 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,8 +67,8 @@
#include <memory>
-#define ID_OPEN_GRAPHICS 1
-#define ID_CLEAR_GRAPHICS 2
+#define ID_OPEN_GRAPHICS 1
+#define ID_CLEAR_GRAPHICS 2
//.........................................................................
namespace frm
@@ -213,7 +213,7 @@ IMPLEMENT_DEFAULT_CLONING( OImageControlModel )
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence OImageControlModel::getSupportedServiceNames() throw()
+StringSequence OImageControlModel::getSupportedServiceNames() throw()
{
StringSequence aSupported = OBoundControlModel::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -370,7 +370,7 @@ void OImageControlModel::describeAggregateProperties( Sequence< Property >& /* [
//------------------------------------------------------------------------------
::rtl::OUString OImageControlModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_IMAGECONTROL; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_IMAGECONTROL; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -416,8 +416,8 @@ void OImageControlModel::read(const Reference<XObjectInputStream>& _rxInStream)
}
// Nach dem Lesen die Defaultwerte anzeigen
if ( getControlSource().getLength() )
- { // (not if we don't have a control source - the "State" property acts like it is persistent, then
- ::osl::MutexGuard aGuard(m_aMutex); // resetNoBroadcast expects this mutex guarding
+ { // (not if we don't have a control source - the "State" property acts like it is persistent, then
+ ::osl::MutexGuard aGuard(m_aMutex); // resetNoBroadcast expects this mutex guarding
resetNoBroadcast();
}
}
@@ -574,7 +574,7 @@ Any OImageControlModel::translateDbColumnToControlValue()
{
switch ( lcl_getImageStoreType( getFieldType() ) )
{
- case ImageStoreBinary:
+ case ImageStoreBinary:
{
Reference< XInputStream > xImageStream( m_xColumn->getBinaryStream() );
if ( m_xColumn->wasNull() )
@@ -619,7 +619,7 @@ void OImageControlModel::doSetControlValue( const Any& _rValue )
GetImageProducer()->setImage( xInStream );
bStartProduction = true;
}
- break;
+ break;
case ImageStoreLink:
{
@@ -756,7 +756,7 @@ Any SAL_CALL OImageControlControl::queryAggregation(const Type& _rType) throw (R
}
//------------------------------------------------------------------------------
-StringSequence OImageControlControl::getSupportedServiceNames() throw()
+StringSequence OImageControlControl::getSupportedServiceNames() throw()
{
StringSequence aSupported = OBoundControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -932,7 +932,7 @@ void OImageControlControl::mousePressed(const ::com::sun::star::awt::MouseEvent&
awt::Rectangle aRect( e.X, e.Y, 0, 0 );
if ( ( e.X < 0 ) || ( e.Y < 0 ) )
- { // context menu triggered by keyboard
+ { // context menu triggered by keyboard
// position it in the center of the control
// 102205 - 16.08.2002 - fs@openoffice.org
Reference< XWindow > xWindow( static_cast< ::cppu::OWeakObject* >( this ), UNO_QUERY );
@@ -1019,7 +1019,7 @@ void SAL_CALL OImageControlControl::mouseExited(const awt::MouseEvent& /*e*/) th
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/ImageControl.hxx b/forms/source/component/ImageControl.hxx
index 65c3f0dc872e..65f1a6a6a2c2 100644
--- a/forms/source/component/ImageControl.hxx
+++ b/forms/source/component/ImageControl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,12 +57,12 @@ class OImageControlModel
:public OImageControlModel_Base
,public OBoundControlModel
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageProducer> m_xImageProducer;
- ImageProducer* m_pImageProducer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageProducer> m_xImageProducer;
+ ImageProducer* m_pImageProducer;
bool m_bExternalGraphic;
- sal_Bool m_bReadOnly;
+ sal_Bool m_bReadOnly;
::rtl::OUString m_sImageURL;
- ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject >
+ ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject >
m_xGraphicObject;
::rtl::OUString m_sDocumentURL;
@@ -129,7 +129,7 @@ protected:
getControlValue( ) const;
virtual void doSetControlValue( const ::com::sun::star::uno::Any& _rValue );
- virtual sal_Bool approveDbColumnType(sal_Int32 _nColumnType);
+ virtual sal_Bool approveDbColumnType(sal_Int32 _nColumnType);
virtual void resetNoBroadcast();
@@ -195,7 +195,7 @@ public:
virtual void SAL_CALL disposing();
private:
- void implClearGraphics( sal_Bool _bForce );
+ void implClearGraphics( sal_Bool _bForce );
bool implInsertGraphics();
/** determines whether the control does currently have an empty grahic set
@@ -204,7 +204,7 @@ private:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FRM_IMAGE_CONTROL_HXX_
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 3be8f97f112b..c8d0c722ccc6 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx
index cd1302c35fcc..a46442ec54b6 100644
--- a/forms/source/component/ListBox.hxx
+++ b/forms/source/component/ListBox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,20 +76,20 @@ class OListBoxModel :public OBoundControlModel
::connectivity::ORowSetValue m_aSaveValue;
// <properties>
- ::com::sun::star::form::ListSourceType m_eListSourceType; // type der list source
- ::com::sun::star::uno::Any m_aBoundColumn;
+ ::com::sun::star::form::ListSourceType m_eListSourceType; // type der list source
+ ::com::sun::star::uno::Any m_aBoundColumn;
ValueList m_aListSourceValues;
ValueList m_aBoundValues;
- ::com::sun::star::uno::Sequence<sal_Int16> m_aDefaultSelectSeq; // DefaultSelected
+ ::com::sun::star::uno::Sequence<sal_Int16> m_aDefaultSelectSeq; // DefaultSelected
// </properties>
- sal_Int16 m_nNULLPos; // position of the NULL value in our list
+ sal_Int16 m_nNULLPos; // position of the NULL value in our list
sal_Int32 m_nBoundColumnType;
private:
::connectivity::ORowSetValue getFirstSelectedValue() const;
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
public:
DECLARE_DEFAULT_LEAF_XTOR( OListBoxModel );
@@ -118,7 +118,7 @@ protected:
virtual void SAL_CALL setPropertyValues(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
@@ -154,8 +154,8 @@ protected:
translateControlValueToExternalValue( ) const;
virtual sal_Bool commitControlValueToDbColumn( bool _bPostReset );
- virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
- virtual void onDisconnectedDbColumn();
+ virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
+ virtual void onDisconnectedDbColumn();
virtual ::com::sun::star::uno::Any
getDefaultForReset() const;
@@ -197,7 +197,7 @@ typedef ::cppu::ImplHelper4 < ::com::sun::star::awt::XFocusListener
class ChangeListeners;
-class OListBoxControl :public OBoundControl
+class OListBoxControl :public OBoundControl
,public OListBoxControl_BASE
,public IEventProcessor
{
@@ -205,8 +205,8 @@ private:
::cppu::OInterfaceContainerHelper m_aChangeListeners;
::cppu::OInterfaceContainerHelper m_aItemListeners;
- ::com::sun::star::uno::Any m_aCurrentSelection;
- Timer m_aChangeTimer;
+ ::com::sun::star::uno::Any m_aCurrentSelection;
+ Timer m_aChangeTimer;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XListBox >
m_xAggregateListBox;
@@ -216,7 +216,7 @@ private:
protected:
// UNO Anbindung
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
public:
OListBoxControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx
index b722c8058f4d..5dc45da96f9d 100644
--- a/forms/source/component/Numeric.cxx
+++ b/forms/source/component/Numeric.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -155,15 +155,15 @@ StringSequence ONumericModel::getSupportedServiceNames() throw()
void ONumericModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 2, OEditBaseModel )
- DECL_PROP3(DEFAULT_VALUE, double, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP3(DEFAULT_VALUE, double, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
END_DESCRIBE_PROPERTIES();
}
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL ONumericModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_NUMERICFIELD; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_NUMERICFIELD; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
@@ -218,7 +218,7 @@ void ONumericModel::resetNoBroadcast()
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Numeric.hxx b/forms/source/component/Numeric.hxx
index 7cef3c7ef5bb..f87cf90081b7 100644
--- a/forms/source/component/Numeric.hxx
+++ b/forms/source/component/Numeric.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ class ONumericModel
:public OEditBaseModel
{
private:
- ::com::sun::star::uno::Any m_aSaveValue;
+ ::com::sun::star::uno::Any m_aSaveValue;
protected:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
@@ -93,7 +93,7 @@ public:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FORMS_NUMERIC_HXX_
diff --git a/forms/source/component/Pattern.cxx b/forms/source/component/Pattern.cxx
index 1600af87649d..b600553db60f 100644
--- a/forms/source/component/Pattern.cxx
+++ b/forms/source/component/Pattern.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/Pattern.hxx b/forms/source/component/Pattern.hxx
index 9460bb42fa4e..d4d09a3387aa 100644
--- a/forms/source/component/Pattern.hxx
+++ b/forms/source/component/Pattern.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/RadioButton.cxx b/forms/source/component/RadioButton.cxx
index abf2e33ae11b..4afd4741cea1 100644
--- a/forms/source/component/RadioButton.cxx
+++ b/forms/source/component/RadioButton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ InterfaceRef SAL_CALL ORadioButtonControl_CreateInstance(const Reference<XMultiS
}
//------------------------------------------------------------------------------
-StringSequence SAL_CALL ORadioButtonControl::getSupportedServiceNames() throw(RuntimeException)
+StringSequence SAL_CALL ORadioButtonControl::getSupportedServiceNames() throw(RuntimeException)
{
StringSequence aSupported = OBoundControl::getSupportedServiceNames();
aSupported.realloc(aSupported.getLength() + 1);
@@ -87,9 +87,9 @@ void SAL_CALL ORadioButtonControl::createPeer(const Reference<starawt::XToolkit>
// switch off the auto-toggle, we do this ourself ....
// (formerly this switch-off was done in the toolkit - but the correct place is here ...)
-// Reference< XVclWindowPeer > xVclWindowPeer( getPeer(), UNO_QUERY );
-// if (xVclWindowPeer.is())
-// xVclWindowPeer->setProperty(::rtl::OUString::createFromAscii("AutoToggle"), ::cppu::bool2any(sal_False));
+// Reference< XVclWindowPeer > xVclWindowPeer( getPeer(), UNO_QUERY );
+// if (xVclWindowPeer.is())
+// xVclWindowPeer->setProperty(::rtl::OUString::createFromAscii("AutoToggle"), ::cppu::bool2any(sal_False));
// new order: do _not_ switch off the auto toggle because:
// * today, it is not necessary anymore to handle the toggling ourself (everything works fine without it)
// * without auto toggle, the AccessibleEvents as fired by the radio buttons are
@@ -141,7 +141,7 @@ IMPLEMENT_DEFAULT_CLONING( ORadioButtonModel )
// XServiceInfo
//------------------------------------------------------------------------------
-StringSequence SAL_CALL ORadioButtonModel::getSupportedServiceNames() throw(RuntimeException)
+StringSequence SAL_CALL ORadioButtonModel::getSupportedServiceNames() throw(RuntimeException)
{
StringSequence aSupported = OReferenceValueComponent::getSupportedServiceNames();
@@ -179,15 +179,15 @@ void ORadioButtonModel::SetSiblingPropsTo(const ::rtl::OUString& rPropName, cons
{
Reference<XPropertySet> xMyProps;
query_interface(static_cast<XWeak*>(this), xMyProps);
- ::rtl::OUString sCurrentGroup;
+ ::rtl::OUString sCurrentGroup;
sal_Int32 nNumSiblings = xIndexAccess->getCount();
for (sal_Int32 i=0; i<nNumSiblings; ++i)
{
- Reference<XPropertySet> xSiblingProperties(*(InterfaceRef*)xIndexAccess->getByIndex(i).getValue(), UNO_QUERY);
+ Reference<XPropertySet> xSiblingProperties(*(InterfaceRef*)xIndexAccess->getByIndex(i).getValue(), UNO_QUERY);
if (!xSiblingProperties.is())
continue;
if (xMyProps == xSiblingProperties)
- continue; // mich selber nicht umsetzen
+ continue; // mich selber nicht umsetzen
// nur wenn es ein Radio-Button ist
if (!hasProperty(PROPERTY_CLASSID, xSiblingProperties))
@@ -212,13 +212,13 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
// if the label control changed ...
if (nHandle == PROPERTY_ID_CONTROLLABEL)
- { // ... forward this to our siblings
+ { // ... forward this to our siblings
SetSiblingPropsTo(PROPERTY_CONTROLLABEL, rValue);
}
// wenn sich die ControlSource-Eigenschaft geaendert hat ...
if (nHandle == PROPERTY_ID_CONTROLSOURCE)
- { // ... muss ich allen meinen Siblings, die in der selben RadioButton-Gruppe sind wie ich, auch die
+ { // ... muss ich allen meinen Siblings, die in der selben RadioButton-Gruppe sind wie ich, auch die
// neue ControlSource mitgeben
SetSiblingPropsTo(PROPERTY_CONTROLSOURCE, rValue);
}
@@ -234,7 +234,7 @@ void ORadioButtonModel::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, cons
sal_Int16 nValue;
rValue >>= nValue;
if (1 == nValue)
- { // bei allen Radios der selben Gruppe das 'default checked' ruecksetzen, denn wie schon der highlander wusste :
+ { // bei allen Radios der selben Gruppe das 'default checked' ruecksetzen, denn wie schon der highlander wusste :
// es kann nur einen geben.
Any aZero;
nValue = 0;
@@ -259,7 +259,7 @@ void ORadioButtonModel::setControlSource()
query_interface(static_cast<XWeak*>(this), xMyProps);
for (sal_Int32 i=0; i<xIndexAccess->getCount(); ++i)
{
- Reference<XPropertySet> xSiblingProperties(*(InterfaceRef*)xIndexAccess->getByIndex(i).getValue(), UNO_QUERY);
+ Reference<XPropertySet> xSiblingProperties(*(InterfaceRef*)xIndexAccess->getByIndex(i).getValue(), UNO_QUERY);
if (!xSiblingProperties.is())
continue;
@@ -294,14 +294,14 @@ void ORadioButtonModel::setControlSource()
void ORadioButtonModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 1, OReferenceValueComponent )
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
END_DESCRIBE_PROPERTIES();
}
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL ORadioButtonModel::getServiceName() throw(RuntimeException)
{
- return FRM_COMPONENT_RADIOBUTTON; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_RADIOBUTTON; // old (non-sun) name for compatibility !
}
//------------------------------------------------------------------------------
diff --git a/forms/source/component/RadioButton.hxx b/forms/source/component/RadioButton.hxx
index 0ffd8a2ba9b5..d562152ed067 100644
--- a/forms/source/component/RadioButton.hxx
+++ b/forms/source/component/RadioButton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,21 +38,21 @@ namespace frm
//==================================================================
// ORadioButtonModel
//==================================================================
-class ORadioButtonModel :public OReferenceValueComponent
+class ORadioButtonModel :public OReferenceValueComponent
{
public:
DECLARE_DEFAULT_LEAF_XTOR( ORadioButtonModel );
// XServiceInfo
IMPLEMENTATION_NAME(ORadioButtonModel);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// OPropertySetHelper
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
throw (::com::sun::star::uno::Exception);
// XPersistObject
- virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL
@@ -99,7 +99,7 @@ public:
// XServiceInfo
IMPLEMENTATION_NAME(ORadioButtonControl);
- virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+ virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
protected:
// XControl
diff --git a/forms/source/component/Time.cxx b/forms/source/component/Time.cxx
index 0f0bb6336b33..5918dd201dcc 100644
--- a/forms/source/component/Time.cxx
+++ b/forms/source/component/Time.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ using namespace ::com::sun::star::io;
using namespace ::com::sun::star::lang;
//==================================================================
-//=
+//=
//==================================================================
//==================================================================
@@ -169,7 +169,7 @@ IMPLEMENT_DEFAULT_CLONING( OTimeModel )
//------------------------------------------------------------------------------
::rtl::OUString SAL_CALL OTimeModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException)
{
- return FRM_COMPONENT_TIMEFIELD; // old (non-sun) name for compatibility !
+ return FRM_COMPONENT_TIMEFIELD; // old (non-sun) name for compatibility !
}
// XPropertySet
@@ -177,10 +177,10 @@ IMPLEMENT_DEFAULT_CLONING( OTimeModel )
void OTimeModel::describeFixedProperties( Sequence< Property >& _rProps ) const
{
BEGIN_DESCRIBE_PROPERTIES( 4, OEditBaseModel )
- DECL_PROP3(DEFAULT_TIME, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
- DECL_PROP1(TABINDEX, sal_Int16, BOUND);
- DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT);
- DECL_IFACE_PROP2(FORMATSSUPPLIER, XNumberFormatsSupplier, READONLY, TRANSIENT);
+ DECL_PROP3(DEFAULT_TIME, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID);
+ DECL_PROP1(TABINDEX, sal_Int16, BOUND);
+ DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT);
+ DECL_IFACE_PROP2(FORMATSSUPPLIER, XNumberFormatsSupplier, READONLY, TRANSIENT);
END_DESCRIBE_PROPERTIES();
}
@@ -361,7 +361,7 @@ Sequence< Type > OTimeModel::getSupportedBindingTypes()
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/Time.hxx b/forms/source/component/Time.hxx
index 60aadc6e5e26..5d6a8a66e59e 100644
--- a/forms/source/component/Time.hxx
+++ b/forms/source/component/Time.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ class OTimeModel
,public OLimitedFormats
{
private:
- ::com::sun::star::uno::Any m_aSaveValue;
- sal_Bool m_bDateTimeField;
+ ::com::sun::star::uno::Any m_aSaveValue;
+ sal_Bool m_bDateTimeField;
protected:
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
@@ -96,7 +96,7 @@ protected:
getDefaultForReset() const;
virtual void resetNoBroadcast();
- virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
+ virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
protected:
DECLARE_XCLONEABLE();
@@ -127,7 +127,7 @@ public:
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // _FORMS_TIME_HXX_
diff --git a/forms/source/component/cachedrowset.cxx b/forms/source/component/cachedrowset.cxx
index ac277e8310ec..8d4bc6b9ef0a 100644
--- a/forms/source/component/cachedrowset.cxx
+++ b/forms/source/component/cachedrowset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/cachedrowset.hxx b/forms/source/component/cachedrowset.hxx
index 6c0ebc645367..09f3250910d9 100644
--- a/forms/source/component/cachedrowset.hxx
+++ b/forms/source/component/cachedrowset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx
index 2c62e7960f69..b08d9190fa9a 100644
--- a/forms/source/component/clickableimage.cxx
+++ b/forms/source/component/clickableimage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@
#include <comphelper/container.hxx>
#include <comphelper/listenernotification.hxx>
#include <svtools/imageresourceaccess.hxx>
-#define LOCAL_URL_PREFIX '#'
+#define LOCAL_URL_PREFIX '#'
//.........................................................................
namespace frm
@@ -138,7 +138,7 @@ namespace frm
{
m_pFeatureInterception->registerDispatchProviderInterceptor( _rxInterceptor );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL OClickableImageBaseControl::releaseDispatchProviderInterceptor( const Reference< XDispatchProviderInterceptor >& _rxInterceptor ) throw (RuntimeException)
{
@@ -282,7 +282,7 @@ namespace frm
getString(xSet->getPropertyValue(PROPERTY_TARGET_URL));
if (aURL.Complete.getLength() && (LOCAL_URL_PREFIX == aURL.Complete.getStr()[0]))
- { // the URL contains a local URL only. Since the URLTransformer does not handle this case correctly
+ { // the URL contains a local URL only. Since the URLTransformer does not handle this case correctly
// (it can't: it does not know the document URL), we have to take care for this ourself.
// The real solution would be to not allow such relative URLs (there is a rule that at runtime, all
// URLs have to be absolute), but for compatibility reasons this is no option.
@@ -489,10 +489,10 @@ namespace frm
implConstruct();
// copy properties
- m_eButtonType = _pOriginal->m_eButtonType;
- m_sTargetURL = _pOriginal->m_sTargetURL;
- m_sTargetFrame = _pOriginal->m_sTargetFrame;
- m_bDispatchUrlInternal = _pOriginal->m_bDispatchUrlInternal;
+ m_eButtonType = _pOriginal->m_eButtonType;
+ m_sTargetURL = _pOriginal->m_sTargetURL;
+ m_sTargetFrame = _pOriginal->m_sTargetFrame;
+ m_bDispatchUrlInternal = _pOriginal->m_bDispatchUrlInternal;
}
//------------------------------------------------------------------------------
@@ -624,10 +624,10 @@ namespace frm
{
switch (nHandle)
{
- case PROPERTY_ID_BUTTONTYPE : rValue <<= m_eButtonType; break;
- case PROPERTY_ID_TARGET_URL : rValue <<= m_sTargetURL; break;
- case PROPERTY_ID_TARGET_FRAME : rValue <<= m_sTargetFrame; break;
- case PROPERTY_ID_DISPATCHURLINTERNAL : rValue <<= m_bDispatchUrlInternal; break;
+ case PROPERTY_ID_BUTTONTYPE : rValue <<= m_eButtonType; break;
+ case PROPERTY_ID_TARGET_URL : rValue <<= m_sTargetURL; break;
+ case PROPERTY_ID_TARGET_FRAME : rValue <<= m_sTargetFrame; break;
+ case PROPERTY_ID_DISPATCHURLINTERNAL : rValue <<= m_bDispatchUrlInternal; break;
default:
OControlModel::getFastPropertyValue(rValue, nHandle);
}
@@ -692,12 +692,12 @@ namespace frm
ImageProducer *pImgProd = GetImageProducer();
// grab the ImageURL
rtl::OUString sURL;
- getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ) ) >>= sURL;
+ getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ImageURL") ) ) >>= sURL;
if (!m_pMedium)
{
if ( ::svt::GraphicAccess::isSupportedURL( sURL ) )
pImgProd->SetImage( sURL );
- else
+ else
// caution: the medium may be NULL if somebody gave us a invalid URL to work with
// 11/24/2000 - 79667 - FS
pImgProd->SetImage(String());
@@ -739,7 +739,7 @@ namespace frm
// we treat an invalid URL like we would treat no URL
return;
- if (rURL.getLength() && !::svt::GraphicAccess::isSupportedURL( rURL ) )
+ if (rURL.getLength() && !::svt::GraphicAccess::isSupportedURL( rURL ) )
{
if (m_pMedium)
delete m_pMedium;
@@ -897,10 +897,10 @@ namespace frm
{
switch (nHandle)
{
- case PROPERTY_ID_BUTTONTYPE : return makeAny( FormButtonType_PUSH );
- case PROPERTY_ID_TARGET_URL :
- case PROPERTY_ID_TARGET_FRAME : return makeAny( ::rtl::OUString() );
- case PROPERTY_ID_DISPATCHURLINTERNAL : return makeAny( sal_False );
+ case PROPERTY_ID_BUTTONTYPE : return makeAny( FormButtonType_PUSH );
+ case PROPERTY_ID_TARGET_URL :
+ case PROPERTY_ID_TARGET_FRAME : return makeAny( ::rtl::OUString() );
+ case PROPERTY_ID_DISPATCHURLINTERNAL : return makeAny( sal_False );
default:
return OControlModel::getPropertyDefaultByHandle(nHandle);
}
diff --git a/forms/source/component/clickableimage.hxx b/forms/source/component/clickableimage.hxx
index 816a2aeb827d..9091d8b23765 100644
--- a/forms/source/component/clickableimage.hxx
+++ b/forms/source/component/clickableimage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,17 +67,17 @@ namespace frm
,public OPropertyChangeListener
{
protected:
- ::com::sun::star::form::FormButtonType m_eButtonType; // Art des Buttons (push,submit,reset)
- ::rtl::OUString m_sTargetURL; // URL fuer den URL-Button
- ::rtl::OUString m_sTargetFrame; // TargetFrame zum Oeffnen
+ ::com::sun::star::form::FormButtonType m_eButtonType; // Art des Buttons (push,submit,reset)
+ ::rtl::OUString m_sTargetURL; // URL fuer den URL-Button
+ ::rtl::OUString m_sTargetFrame; // TargetFrame zum Oeffnen
// ImageProducer stuff
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageProducer> m_xProducer;
- SfxMedium* m_pMedium; // Download-Medium
- ImageProducer* m_pProducer;
- sal_Bool m_bDispatchUrlInternal; // property: is not allowed to set : 1
- sal_Bool m_bDownloading : 1; // laeuft ein Download?
- sal_Bool m_bProdStarted : 1;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageProducer> m_xProducer;
+ SfxMedium* m_pMedium; // Download-Medium
+ ImageProducer* m_pProducer;
+ sal_Bool m_bDispatchUrlInternal; // property: is not allowed to set : 1
+ sal_Bool m_bDownloading : 1; // laeuft ein Download?
+ sal_Bool m_bProdStarted : 1;
// XSubmission stuff
::com::sun::star::uno::Reference< ::com::sun::star::form::submission::XSubmission >
@@ -96,7 +96,7 @@ namespace frm
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> _getTypes();
inline sal_Bool isDispatchUrlInternal() const { return m_bDispatchUrlInternal; }
- inline void setDispatchUrlInternal(sal_Bool _bDispatch) { m_bDispatchUrlInternal = _bDispatch; }
+ inline void setDispatchUrlInternal(sal_Bool _bDispatch) { m_bDispatchUrlInternal = _bDispatch; }
public:
DECLARE_DEFAULT_XTOR( OClickableImageBaseModel );
@@ -289,7 +289,7 @@ namespace frm
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // FORMS_SOURCE_CLICKABLEIMAGE_HXX
diff --git a/forms/source/component/cloneable.cxx b/forms/source/component/cloneable.cxx
index 368c3b701d02..8b876f6319ab 100644
--- a/forms/source/component/cloneable.cxx
+++ b/forms/source/component/cloneable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@ namespace frm
//------------------------------------------------------------------
Reference< XAggregation > OCloneableAggregation::createAggregateClone( const OCloneableAggregation* _pOriginal )
{
- Reference< XCloneable > xAggregateCloneable; // will be the aggregate's XCloneable
- Reference< XAggregation > xAggregateClone; // will be the aggregate's clone
+ Reference< XCloneable > xAggregateCloneable; // will be the aggregate's XCloneable
+ Reference< XAggregation > xAggregateClone; // will be the aggregate's clone
if ( query_aggregation( _pOriginal->m_xAggregate, xAggregateCloneable ) )
{
@@ -64,7 +64,7 @@ namespace frm
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/entrylisthelper.cxx b/forms/source/component/entrylisthelper.cxx
index c894f3fce150..1d24c68674a2 100644
--- a/forms/source/component/entrylisthelper.cxx
+++ b/forms/source/component/entrylisthelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/entrylisthelper.hxx b/forms/source/component/entrylisthelper.hxx
index 64f99feb740f..1713ffe24660 100644
--- a/forms/source/component/entrylisthelper.hxx
+++ b/forms/source/component/entrylisthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ namespace frm
typedef ::cppu::ImplHelper3 < ::com::sun::star::form::binding::XListEntrySink
, ::com::sun::star::form::binding::XListEntryListener
, ::com::sun::star::util::XRefreshable
- > OEntryListHelper_BASE;
+ > OEntryListHelper_BASE;
class OEntryListHelper : public OEntryListHelper_BASE
{
diff --git a/forms/source/component/errorbroadcaster.cxx b/forms/source/component/errorbroadcaster.cxx
index 40d1afd06c22..575a65d461eb 100644
--- a/forms/source/component/errorbroadcaster.cxx
+++ b/forms/source/component/errorbroadcaster.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,7 +109,7 @@ namespace frm
}
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/errorbroadcaster.hxx b/forms/source/component/errorbroadcaster.hxx
index 86e96c1fce7e..38a808322ae0 100644
--- a/forms/source/component/errorbroadcaster.hxx
+++ b/forms/source/component/errorbroadcaster.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,14 +43,14 @@ namespace frm
//=====================================================================
//= OErrorBroadcaster
//=====================================================================
- typedef ::cppu::ImplHelper1 < ::com::sun::star::sdb::XSQLErrorBroadcaster
- > OErrorBroadcaster_BASE;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::sdb::XSQLErrorBroadcaster
+ > OErrorBroadcaster_BASE;
class OErrorBroadcaster : public OErrorBroadcaster_BASE
{
private:
- ::cppu::OBroadcastHelper& m_rBHelper;
- ::cppu::OInterfaceContainerHelper m_aErrorListeners;
+ ::cppu::OBroadcastHelper& m_rBHelper;
+ ::cppu::OInterfaceContainerHelper m_aErrorListeners;
protected:
OErrorBroadcaster( ::cppu::OBroadcastHelper& _rBHelper );
@@ -68,7 +68,7 @@ namespace frm
};
//.........................................................................
-} // namespace frm
+} // namespace frm
//.........................................................................
#endif // FORMS_ERRORBROADCASTER_HXX
diff --git a/forms/source/component/findpos.cxx b/forms/source/component/findpos.cxx
index 86c07c080113..40732f806e97 100644
--- a/forms/source/component/findpos.cxx
+++ b/forms/source/component/findpos.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/findpos.hxx b/forms/source/component/findpos.hxx
index 28d33311ae9b..1a583a909026 100644
--- a/forms/source/component/findpos.hxx
+++ b/forms/source/component/findpos.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx
index f1488c85846a..518b48e76f4a 100644
--- a/forms/source/component/formcontrolfont.cxx
+++ b/forms/source/component/formcontrolfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx
index ceeeccaffa79..d168678dadd6 100644
--- a/forms/source/component/imgprod.cxx
+++ b/forms/source/component/imgprod.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@
class ImgProdLockBytes : public SvLockBytes
{
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xStmRef;
- ::com::sun::star::uno::Sequence<sal_Int8> maSeq;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > xStmRef;
+ ::com::sun::star::uno::Sequence<sal_Int8> maSeq;
ImgProdLockBytes() {};
@@ -56,13 +56,13 @@ public:
ImgProdLockBytes( SvStream* pStm, sal_Bool bOwner );
ImgProdLockBytes( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > & rStreamRef );
- virtual ~ImgProdLockBytes();
+ virtual ~ImgProdLockBytes();
- virtual ErrCode ReadAt( sal_Size nPos, void* pBuffer, sal_Size nCount, sal_Size* pRead ) const;
- virtual ErrCode WriteAt( sal_Size nPos, const void* pBuffer, sal_Size nCount, sal_Size* pWritten );
- virtual ErrCode Flush() const;
- virtual ErrCode SetSize( sal_Size nSize );
- virtual ErrCode Stat( SvLockBytesStat*, SvLockBytesStatFlag ) const;
+ virtual ErrCode ReadAt( sal_Size nPos, void* pBuffer, sal_Size nCount, sal_Size* pRead ) const;
+ virtual ErrCode WriteAt( sal_Size nPos, const void* pBuffer, sal_Size nCount, sal_Size* pWritten );
+ virtual ErrCode Flush() const;
+ virtual ErrCode SetSize( sal_Size nSize );
+ virtual ErrCode Stat( SvLockBytesStat*, SvLockBytesStatFlag ) const;
};
// ------------------------------------------------------------------------
@@ -79,13 +79,13 @@ ImgProdLockBytes::ImgProdLockBytes( ::com::sun::star::uno::Reference< ::com::sun
{
if( xStmRef.is() )
{
- const sal_uInt32 nBytesToRead = 65535;
- sal_uInt32 nRead;
+ const sal_uInt32 nBytesToRead = 65535;
+ sal_uInt32 nRead;
do
{
::com::sun::star::uno::Sequence< sal_Int8 > aReadSeq;
-
+
nRead = xStmRef->readSomeBytes( aReadSeq, nBytesToRead );
if( nRead )
@@ -188,8 +188,8 @@ ErrCode ImgProdLockBytes::Stat( SvLockBytesStat* pStat, SvLockBytesStatFlag eFla
// -----------------
ImageProducer::ImageProducer() :
- mpStm ( NULL ),
- mbConsInit ( sal_False )
+ mpStm ( NULL ),
+ mbConsInit ( sal_False )
{
mpGraphic = new Graphic;
DBG_ASSERT( Application::GetFilterHdl().IsSet(), "ImageProducer::ImageProducer(): No filter handler set" );
@@ -333,8 +333,8 @@ void ImageProducer::startProduction() throw(::com::sun::star::uno::RuntimeExcept
if ( bNotifyEmptyGraphics )
{
// reset image
- List aTmp;
- void* pCons;
+ List aTmp;
+ void* pCons;
// create temporary list to hold interfaces
for( pCons = maConsList.First(); pCons; pCons = maConsList.Next() )
@@ -382,8 +382,8 @@ void ImageProducer::ImplUpdateData( const Graphic& rGraphic )
if( mbConsInit && maConsList.Count() )
{
- List aTmp;
- void* pCons;
+ List aTmp;
+ void* pCons;
ImplUpdateConsumer( rGraphic );
mbConsInit = sal_False;
@@ -406,10 +406,10 @@ void ImageProducer::ImplUpdateData( const Graphic& rGraphic )
void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
{
- Bitmap aBmp( rGraphic.GetBitmapEx().GetBitmap() );
- BitmapReadAccess* pBmpAcc = aBmp.AcquireReadAccess();
+ Bitmap aBmp( rGraphic.GetBitmapEx().GetBitmap() );
+ BitmapReadAccess* pBmpAcc = aBmp.AcquireReadAccess();
- if( pBmpAcc )
+ if( pBmpAcc )
{
List aTmp;
void * pCons;
@@ -418,7 +418,7 @@ void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
sal_uInt32 nGMask = 0;
sal_uInt32 nBMask = 0;
sal_uInt32 nAMask = 0;
- ::com::sun::star::uno::Sequence< sal_Int32 > aRGBPal;
+ ::com::sun::star::uno::Sequence< sal_Int32 > aRGBPal;
if( pBmpAcc->HasPalette() )
{
@@ -427,7 +427,7 @@ void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
if( nPalCount )
{
aRGBPal = ::com::sun::star::uno::Sequence< sal_Int32 >( nPalCount + 1 );
-
+
sal_Int32* pTmp = aRGBPal.getArray();
for( sal_uInt32 i = 0; i < nPalCount; i++, pTmp++ )
@@ -485,24 +485,24 @@ void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
{
- BitmapEx aBmpEx( rGraphic.GetBitmapEx() );
- Bitmap aBmp( aBmpEx.GetBitmap() );
- BitmapReadAccess* pBmpAcc = aBmp.AcquireReadAccess();
+ BitmapEx aBmpEx( rGraphic.GetBitmapEx() );
+ Bitmap aBmp( aBmpEx.GetBitmap() );
+ BitmapReadAccess* pBmpAcc = aBmp.AcquireReadAccess();
if( pBmpAcc )
{
- List aTmp;
- void* pCons;
- Bitmap aMask( aBmpEx.GetMask() );
- BitmapReadAccess* pMskAcc = !!aMask ? aMask.AcquireReadAccess() : NULL;
- const long nWidth = pBmpAcc->Width();
- const long nHeight = pBmpAcc->Height();
- const long nStartX = 0L;
- const long nEndX = nWidth - 1L;
- const long nStartY = 0L;
- const long nEndY = nHeight - 1L;
- const long nPartWidth = nEndX - nStartX + 1;
- const long nPartHeight = nEndY - nStartY + 1;
+ List aTmp;
+ void* pCons;
+ Bitmap aMask( aBmpEx.GetMask() );
+ BitmapReadAccess* pMskAcc = !!aMask ? aMask.AcquireReadAccess() : NULL;
+ const long nWidth = pBmpAcc->Width();
+ const long nHeight = pBmpAcc->Height();
+ const long nStartX = 0L;
+ const long nEndX = nWidth - 1L;
+ const long nStartY = 0L;
+ const long nEndY = nHeight - 1L;
+ const long nPartWidth = nEndX - nStartX + 1;
+ const long nPartHeight = nEndY - nStartY + 1;
if( !pMskAcc )
{
@@ -521,8 +521,8 @@ void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
if( mnTransIndex < 256 )
{
- ::com::sun::star::uno::Sequence<sal_Int8> aData( nPartWidth * nPartHeight );
- sal_Int8* pTmp = aData.getArray();
+ ::com::sun::star::uno::Sequence<sal_Int8> aData( nPartWidth * nPartHeight );
+ sal_Int8* pTmp = aData.getArray();
for( long nY = nStartY; nY <= nEndY; nY++ )
{
@@ -543,8 +543,8 @@ void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
}
else
{
- ::com::sun::star::uno::Sequence<sal_Int32> aData( nPartWidth * nPartHeight );
- sal_Int32* pTmp = aData.getArray();
+ ::com::sun::star::uno::Sequence<sal_Int32> aData( nPartWidth * nPartHeight );
+ sal_Int32* pTmp = aData.getArray();
for( long nY = nStartY; nY <= nEndY; nY++ )
{
@@ -565,9 +565,9 @@ void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
}
else
{
- ::com::sun::star::uno::Sequence<sal_Int32> aData( nPartWidth * nPartHeight );
- const BitmapColor aWhite( pMskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- sal_Int32* pTmp = aData.getArray();
+ ::com::sun::star::uno::Sequence<sal_Int32> aData( nPartWidth * nPartHeight );
+ const BitmapColor aWhite( pMskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ sal_Int32* pTmp = aData.getArray();
for( long nY = nStartY; nY <= nEndY; nY++ )
{
diff --git a/forms/source/component/imgprod.hxx b/forms/source/component/imgprod.hxx
index ee949ce56575..d6ec50c58f58 100644
--- a/forms/source/component/imgprod.hxx
+++ b/forms/source/component/imgprod.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,45 +55,45 @@ namespace com { namespace sun { namespace star { namespace io {
}}}}
-class ImageProducer : public ::com::sun::star::awt::XImageProducer,
- public ::com::sun::star::lang::XInitialization,
+class ImageProducer : public ::com::sun::star::awt::XImageProducer,
+ public ::com::sun::star::lang::XInitialization,
public ::cppu::OWeakObject
{
private:
- ::rtl::OUString maURL;
- List maConsList;
- Graphic* mpGraphic;
- SvStream* mpStm;
- sal_uInt32 mnTransIndex;
- sal_Bool mbConsInit;
+ ::rtl::OUString maURL;
+ List maConsList;
+ Graphic* mpGraphic;
+ SvStream* mpStm;
+ sal_uInt32 mnTransIndex;
+ sal_Bool mbConsInit;
Link maDoneHdl;
- sal_Bool ImplImportGraphic( Graphic& rGraphic );
- void ImplUpdateData( const Graphic& rGraphic );
- void ImplInitConsumer( const Graphic& rGraphic );
- void ImplUpdateConsumer( const Graphic& rGraphic );
+ sal_Bool ImplImportGraphic( Graphic& rGraphic );
+ void ImplUpdateData( const Graphic& rGraphic );
+ void ImplInitConsumer( const Graphic& rGraphic );
+ void ImplUpdateConsumer( const Graphic& rGraphic );
public:
ImageProducer();
~ImageProducer();
- void SetImage( const ::rtl::OUString& rPath );
- void SetImage( SvStream& rStm );
+ void SetImage( const ::rtl::OUString& rPath );
+ void SetImage( SvStream& rStm );
- void NewDataAvailable();
+ void NewDataAvailable();
void SetDoneHdl( const Link& i_rHdl ) { maDoneHdl = i_rHdl; }
const Link& GetDoneHdl() const { return maDoneHdl; }
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
-
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
+
// MT: ???
- void setImage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > & rStmRef );
+ void setImage( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > & rStmRef );
// ::com::sun::star::awt::XImageProducer
void SAL_CALL addConsumer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XImageConsumer >& rxConsumer ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/forms/source/component/navigationbar.cxx b/forms/source/component/navigationbar.cxx
index 7799779d4b3f..c0c38b083d0a 100644
--- a/forms/source/component/navigationbar.cxx
+++ b/forms/source/component/navigationbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -170,7 +170,7 @@ namespace frm
IMPLEMENT_DEFAULT_CLONING( ONavigationBarModel )
//------------------------------------------------------------------
- ::rtl::OUString SAL_CALL ONavigationBarModel::getImplementationName() throw(RuntimeException)
+ ::rtl::OUString SAL_CALL ONavigationBarModel::getImplementationName() throw(RuntimeException)
{
return getImplementationName_Static();
}
@@ -182,7 +182,7 @@ namespace frm
}
//------------------------------------------------------------------
- ::rtl::OUString SAL_CALL ONavigationBarModel::getImplementationName_Static()
+ ::rtl::OUString SAL_CALL ONavigationBarModel::getImplementationName_Static()
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.form.ONavigationBarModel" ) );
}
diff --git a/forms/source/component/navigationbar.hxx b/forms/source/component/navigationbar.hxx
index e410a13c64f6..4af073777748 100644
--- a/forms/source/component/navigationbar.hxx
+++ b/forms/source/component/navigationbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace frm
//==================================================================
typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XControlModel
> ONavigationBarModel_BASE;
-
+
class ONavigationBarModel
:public OControlModel
,public FontControlModel
@@ -81,9 +81,9 @@ namespace frm
DECLARE_DEFAULT_LEAF_XTOR( ONavigationBarModel );
// XServiceInfo - static version
- static ::rtl::OUString SAL_CALL getImplementationName_Static();
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
- static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
+ static ::rtl::OUString SAL_CALL getImplementationName_Static();
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
+ static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
protected:
// UNO
@@ -91,7 +91,7 @@ namespace frm
virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException);
// XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
// XTypeProvider
diff --git a/forms/source/component/propertybaghelper.cxx b/forms/source/component/propertybaghelper.cxx
index 508c05ac5ca1..0d439bad7b11 100644
--- a/forms/source/component/propertybaghelper.cxx
+++ b/forms/source/component/propertybaghelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/refvaluecomponent.cxx b/forms/source/component/refvaluecomponent.cxx
index ab32ff5bcce3..e23b0fc00685 100644
--- a/forms/source/component/refvaluecomponent.cxx
+++ b/forms/source/component/refvaluecomponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ namespace frm
using namespace ::com::sun::star::form::binding;
//====================================================================
- //=
+ //=
//====================================================================
//--------------------------------------------------------------------
OReferenceValueComponent::OReferenceValueComponent( const Reference< XMultiServiceFactory>& _rxFactory, const ::rtl::OUString& _rUnoControlModelTypeName, const ::rtl::OUString& _rDefault, sal_Bool _bSupportNoCheckRefValue )
@@ -59,7 +59,7 @@ namespace frm
}
//--------------------------------------------------------------------
- OReferenceValueComponent::OReferenceValueComponent( const OReferenceValueComponent* _pOriginal, const Reference< XMultiServiceFactory>& _rxFactory )
+ OReferenceValueComponent::OReferenceValueComponent( const OReferenceValueComponent* _pOriginal, const Reference< XMultiServiceFactory>& _rxFactory )
:OBoundControlModel( _pOriginal, _rxFactory )
{
m_sReferenceValue = _pOriginal->m_sReferenceValue;
@@ -99,7 +99,7 @@ namespace frm
OBoundControlModel::getFastPropertyValue( _rValue, _nHandle );
}
}
-
+
//--------------------------------------------------------------------
void SAL_CALL OReferenceValueComponent::setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const Any& _rValue ) throw (Exception)
{
@@ -128,7 +128,7 @@ namespace frm
OBoundControlModel::setFastPropertyValue_NoBroadcast( _nHandle, _rValue );
}
}
-
+
//--------------------------------------------------------------------
sal_Bool SAL_CALL OReferenceValueComponent::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue ) throw (IllegalArgumentException)
{
@@ -154,7 +154,7 @@ namespace frm
}
return bModified;
}
-
+
//------------------------------------------------------------------------------
Any OReferenceValueComponent::getDefaultForReset() const
{
diff --git a/forms/source/component/refvaluecomponent.hxx b/forms/source/component/refvaluecomponent.hxx
index f88fb5e93f41..bb56ba8b4a69 100644
--- a/forms/source/component/refvaluecomponent.hxx
+++ b/forms/source/component/refvaluecomponent.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace frm
// <properties>
::rtl::OUString m_sReferenceValue; // the reference value to use for data exchange
::rtl::OUString m_sNoCheckReferenceValue; // the reference value to be exchanged when the control is not checked
- ToggleState m_eDefaultChecked; // the default check state
+ ToggleState m_eDefaultChecked; // the default check state
// </properties>
sal_Bool m_bSupportSecondRefValue; // do we support the SecondaryRefValue property?
diff --git a/forms/source/component/scrollbar.cxx b/forms/source/component/scrollbar.cxx
index 98c47b258d51..13c509859407 100644
--- a/forms/source/component/scrollbar.cxx
+++ b/forms/source/component/scrollbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace frm
//= helper
//====================================================================
//--------------------------------------------------------------------
- Any translateExternalDoubleToControlIntValue(
+ Any translateExternalDoubleToControlIntValue(
const Any& _rExternalValue, const Reference< XPropertySet >& _rxProperties,
const ::rtl::OUString& _rMinValueName, const ::rtl::OUString& _rMaxValueName )
{
@@ -297,7 +297,7 @@ namespace frm
//--------------------------------------------------------------------
Any OScrollBarModel::translateExternalValueToControlValue( const Any& _rExternalValue ) const
{
- return translateExternalDoubleToControlIntValue( _rExternalValue, m_xAggregateSet,
+ return translateExternalDoubleToControlIntValue( _rExternalValue, m_xAggregateSet,
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ScrollValueMin" ) ),
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ScrollValueMax" ) ) );
}
diff --git a/forms/source/component/scrollbar.hxx b/forms/source/component/scrollbar.hxx
index 93a946268a14..a7b4e323fa50 100644
--- a/forms/source/component/scrollbar.hxx
+++ b/forms/source/component/scrollbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/forms/source/component/spinbutton.cxx b/forms/source/component/spinbutton.cxx
index 06c6d4f63618..9d3232022dc8 100644
--- a/forms/source/component/spinbutton.cxx
+++ b/forms/source/component/spinbutton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ namespace frm
//= OSpinButtonModel
//====================================================================
// implemented elsewhere
- Any translateExternalDoubleToControlIntValue(
+ Any translateExternalDoubleToControlIntValue(
const Any& _rExternalValue, const Reference< XPropertySet >& _rxProperties,
const ::rtl::OUString& _rMinValueName, const ::rtl::OUString& _rMaxValueName );
Any translateControlIntToExternalDoubleValue( const Any& _rControlIntValue );
@@ -253,7 +253,7 @@ namespace frm
//--------------------------------------------------------------------
Any OSpinButtonModel::translateExternalValueToControlValue( const Any& _rExternalValue ) const
{
- return translateExternalDoubleToControlIntValue( _rExternalValue, m_xAggregateSet,
+ return translateExternalDoubleToControlIntValue( _rExternalValue, m_xAggregateSet,
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SpinValueMin" ) ),
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SpinValueMax" ) ) );
}
diff --git a/forms/source/component/spinbutton.hxx b/forms/source/component/spinbutton.hxx
index 2b811ab97459..54348e580d44 100644
--- a/forms/source/component/spinbutton.hxx
+++ b/forms/source/component/spinbutton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite