Kaydet (Commit) 53600134 authored tarafından Caolán McNamara's avatar Caolán McNamara

no use is made of FmFormObj::m_nType

üst 5688b51b
......@@ -382,12 +382,7 @@ void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,cons
OCommonStatement::setFastPropertyValue_NoBroadcast(nHandle,rValue);
}
}
// -----------------------------------------------------------------------------
void OPreparedStatement::checkParameterIndex(sal_Int32 _parameterIndex)
{
if( !_parameterIndex || _parameterIndex > m_nNumParams)
::dbtools::throwInvalidIndexException(*this);
}
// -----------------------------------------------------------------------------
void OPreparedStatement::checkAndResizeParameters(sal_Int32 parameterIndex)
{
......
......@@ -78,9 +78,6 @@ namespace connectivity
::rtl::Reference<connectivity::OSQLColumns> m_xParamColumns; // the parameter columns
OValueRow m_aParameterRow;
void checkParameterIndex(sal_Int32 _parameterIndex);
protected:
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
const ::com::sun::star::uno::Any& rValue)
......
......@@ -1154,16 +1154,6 @@ void EditPaM::SetNode(ContentNode* p)
pNode = p;
}
bool EditPaM::IsParaStart() const
{
return nIndex == 0;
}
bool EditPaM::IsParaEnd() const
{
return nIndex == pNode->Len();
}
sal_Bool EditPaM::DbgIsBuggy( EditDoc& rDoc )
{
if ( !pNode )
......
......@@ -337,9 +337,6 @@ public:
sal_uInt16& GetIndex() { return nIndex; }
void SetIndex( sal_uInt16 n ) { nIndex = n; }
bool IsParaStart() const;
bool IsParaEnd() const;
sal_Bool DbgIsBuggy( EditDoc& rDoc );
EditPaM& operator = ( const EditPaM& rPaM );
......
......@@ -46,7 +46,7 @@ using namespace ::svxform;
}
else if ( ServiceSpecifier.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("com.sun.star.drawing.ControlShape")) )
{
SdrObject* pObj = new FmFormObj(OBJ_FM_CONTROL);
SdrObject* pObj = new FmFormObj();
xRet = static_cast<cppu::OWeakObject*>(static_cast<SvxShape_UnoImplHelper*>(new SvxShapeControl(pObj)));
}
if (!xRet.is())
......
......@@ -97,7 +97,7 @@ SdrObject *SvxFmDrawPage::_CreateSdrObject( const ::com::sun::star::uno::Referen
if ( aShapeType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.drawing.ShapeControl" ) ) // compatibility
|| aShapeType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "com.sun.star.drawing.ControlShape" ) )
)
return new FmFormObj( OBJ_FM_CONTROL );
return new FmFormObj();
else
return SvxDrawPage::_CreateSdrObject( xDescr );
......
......@@ -69,10 +69,9 @@ using namespace ::svxform;
TYPEINIT1(FmFormObj, SdrUnoObj);
DBG_NAME(FmFormObj);
//------------------------------------------------------------------
FmFormObj::FmFormObj(const ::rtl::OUString& rModelName,sal_Int32 _nType)
FmFormObj::FmFormObj(const ::rtl::OUString& rModelName)
:SdrUnoObj ( rModelName )
,m_nPos ( -1 )
,m_nType ( _nType )
,m_pLastKnownRefDevice ( NULL )
{
DBG_CTOR(FmFormObj, NULL);
......@@ -83,10 +82,9 @@ FmFormObj::FmFormObj(const ::rtl::OUString& rModelName,sal_Int32 _nType)
}
//------------------------------------------------------------------
FmFormObj::FmFormObj( sal_Int32 _nType )
FmFormObj::FmFormObj()
:SdrUnoObj ( String() )
,m_nPos ( -1 )
,m_nType ( _nType )
,m_pLastKnownRefDevice ( NULL )
{
DBG_CTOR(FmFormObj, NULL);
......@@ -705,12 +703,6 @@ void FmFormObj::BrkCreate( SdrDragStat& rStat )
impl_isolateControlModel_nothrow();
}
// -----------------------------------------------------------------------------
sal_Int32 FmFormObj::getType() const
{
return m_nType;
}
// -----------------------------------------------------------------------------
// #i70852# overload Layer interface to force to FormColtrol layer
......
......@@ -237,9 +237,9 @@ IMPL_LINK(FmFormObjFactory, MakeObject, SdrObjFactory*, pObjFactory)
// create the actual object
if ( !sServiceSpecifier.isEmpty() )
pObjFactory->pNewObj = new FmFormObj( sServiceSpecifier, pObjFactory->nIdentifier );
pObjFactory->pNewObj = new FmFormObj(sServiceSpecifier);
else
pObjFactory->pNewObj = new FmFormObj( pObjFactory->nIdentifier );
pObjFactory->pNewObj = new FmFormObj();
// initialize some properties which we want to differ from the defaults
for ( PropertyValueArray::const_iterator aInitProp = aInitialProperties.begin();
......
......@@ -53,15 +53,14 @@ class FmFormObj: public SdrUnoObj
::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer> m_xParent;
::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > m_xEnvironmentHistory;
sal_Int32 m_nPos;
sal_Int32 m_nType;
OutputDevice* m_pLastKnownRefDevice;
// the last ref device we know, as set at the model
// only to be used for comparison with the current ref device!
public:
SVX_DLLPUBLIC FmFormObj(const ::rtl::OUString& rModelName,sal_Int32 _nType);
SVX_DLLPUBLIC FmFormObj(sal_Int32 _nType);
SVX_DLLPUBLIC FmFormObj(const ::rtl::OUString& rModelName);
SVX_DLLPUBLIC FmFormObj();
TYPEINFO();
......@@ -105,10 +104,6 @@ public:
static FmFormObj* GetFormObject( SdrObject* _pSdrObject );
static const FmFormObj* GetFormObject( const SdrObject* _pSdrObject );
/** returns the type of this form object. See fmglob.hxx
*/
sal_Int32 getType() const;
virtual void SetUnoControlModel( const ::com::sun::star::uno::Reference< com::sun::star::awt::XControlModel >& _rxModel );
protected:
......
......@@ -7,7 +7,6 @@ FmEntryDataArray::Insert(FmEntryData* const*, unsigned short)
FmEntryDataArray::Insert(FmEntryDataArray const*, unsigned short, unsigned short)
FmEntryDataArray::Remove(FmEntryData* const&, unsigned short)
FmFieldWinMgr::GetChildWindowId()
FmFormObj::getType() const
FmPropBrwMgr::GetChildWindowId()
FontSelectPattern::FontSelectPattern(ImplFontData const&, Size const&, float, int, bool)
FontStyleBox::FontStyleBox(Window*, long)
......@@ -326,13 +325,6 @@ XMLFontAutoStylePoolNames_Impl::Remove(rtl::OUString*)
XMLFontAutoStylePool_Impl::GetPos(XMLFontAutoStylePoolEntry_Impl const*) const
XMLFontAutoStylePool_Impl::Remove(XMLFontAutoStylePoolEntry_Impl*)
XMLParentNode::AddChild(XMLChildNode*, unsigned long)
XMLPropertyBackpatcher<rtl::OUString>::XMLPropertyBackpatcher(char const*)
XMLPropertyBackpatcher<rtl::OUString>::XMLPropertyBackpatcher(char const*, char const*, unsigned char, rtl::OUString)
XMLPropertyBackpatcher<rtl::OUString>::XMLPropertyBackpatcher(rtl::OUString const&, rtl::OUString const&, unsigned char, rtl::OUString)
XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(char const*)
XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(char const*, char const*, unsigned char, short)
XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(rtl::OUString const&, rtl::OUString const&, unsigned char, short)
XMLTextFieldExport::ProcessDate(xmloff::token::XMLTokenEnum, com::sun::star::util::Date const&, unsigned short)
XMLTextListAutoStylePoolNames_Impl::GetPos(rtl::OUString const*) const
XMLTextListAutoStylePoolNames_Impl::Remove(rtl::OUString*)
XMLTextListAutoStylePool_Impl::GetPos(XMLTextListAutoStylePoolEntry_Impl const*) const
......@@ -768,7 +760,6 @@ connectivity::mozab::MQueryHelper::hasMore() const
connectivity::mozab::MQueryHelper::next()
connectivity::mozab::MQueryHelper::rewind()
connectivity::mozab::OCatalog::getDot()
connectivity::mozab::OPreparedStatement::checkParameterIndex(int)
connectivity::mozab::OResultSet::initializeRow(rtl::Reference<connectivity::ODeleteVector<connectivity::ORowSetValue> >&, int)
connectivity::mozab::OTable::OTable(connectivity::sdbcx::OCollection*, connectivity::mozab::OConnection*)
connectivity::sdbcx::OGroup::OGroup(rtl::OUString const&, unsigned char)
......
......@@ -377,12 +377,6 @@ protected:
sal_Bool bIsDate, /// export as date (rather than date/time)?
sal_uInt16 nPrefix = XML_NAMESPACE_TEXT); /// attribute name prefix
/// export date according to ISO 8601
void ProcessDate(
enum ::xmloff::token::XMLTokenEnum eXMLName, /// attribute token
const ::com::sun::star::util::Date& rTime, /// date value
sal_uInt16 nPrefix = XML_NAMESPACE_TEXT); /// attribute name prefix
/// export all attributes for bibliography data fields
void ProcessBibliographyData(
const ::com::sun::star::uno::Reference <
......
......@@ -53,47 +53,6 @@ XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
{
}
template<class A>
XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
const OUString& sPropName,
const OUString& sPreserveName,
sal_Bool bDefault,
A aDef)
: sPropertyName(sPropName)
, bDefaultHandling(bDefault)
, bPreserveProperty(!sPreserveName.isEmpty())
, sPreservePropertyName(sPreserveName)
, aDefault(aDef)
{
}
template<class A>
XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
const sal_Char* pPropName)
: bDefaultHandling(sal_False)
, bPreserveProperty(sal_False)
{
DBG_ASSERT(pPropName != NULL, "need property name");
sPropertyName = OUString::createFromAscii(pPropName);
}
template<class A>
XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
const sal_Char* pPropName,
const sal_Char* pPreservePropName,
sal_Bool bDefault,
A aDef)
: bDefaultHandling(bDefault)
, bPreserveProperty(pPreservePropName != NULL)
, aDefault(aDef)
{
DBG_ASSERT(pPropName != NULL, "need property name");
sPropertyName = OUString::createFromAscii(pPropName);
if (pPreservePropName != NULL)
{
sPreservePropertyName = OUString::createFromAscii(pPreservePropName);
}
}
template<class A>
XMLPropertyBackpatcher<A>::~XMLPropertyBackpatcher()
......
......@@ -105,21 +105,6 @@ public:
XMLPropertyBackpatcher(
const ::rtl::OUString& sPropertyName);
XMLPropertyBackpatcher(
const ::rtl::OUString& sPropertyName,
const ::rtl::OUString& sPreservePropertyName,
sal_Bool bDefault,
A aDef);
XMLPropertyBackpatcher(
const sal_Char* pPropertyName);
XMLPropertyBackpatcher(
const sal_Char* pPropertyName,
const sal_Char* pPreservePropertyName,
sal_Bool bDefault,
A aDef);
~XMLPropertyBackpatcher();
/// resolve a known ID.
......
......@@ -2656,21 +2656,6 @@ void XMLTextFieldExport::ProcessDateTime(enum XMLTokenEnum eName,
ProcessString(eName, aBuffer.makeStringAndClear(), sal_True, nPrefix);
}
/// export date according to ISO 8601
void XMLTextFieldExport::ProcessDate(
enum XMLTokenEnum eName,
const ::com::sun::star::util::Date& rDate,
sal_uInt16 nPrefix)
{
// the easiest way: delegate to ProcessDateTime (as date)
DateTime aDateTime;
aDateTime.Day = rDate.Day;
aDateTime.Month = rDate.Month;
aDateTime.Year = rDate.Year;
ProcessDateTime(eName, aDateTime, sal_True, nPrefix);
}
/// export a date, time, or duration
void XMLTextFieldExport::ProcessDateTime(enum XMLTokenEnum eName,
sal_Int32 nMinutes,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment