Kaydet (Commit) fe8e4e77 authored tarafından Oliver Specht's avatar Oliver Specht

footnote symbols completed

üst 597e2887
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: PropertyMap.cxx,v $ * $RCSfile: PropertyMap.cxx,v $
* *
* $Revision: 1.16 $ * $Revision: 1.17 $
* *
* last change: $Author: fridrich_strba $ $Date: 2007-05-30 10:43:21 $ * last change: $Author: os $ $Date: 2007-06-12 05:41:16 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -70,7 +70,9 @@ namespace dmapper{ ...@@ -70,7 +70,9 @@ namespace dmapper{
/*-- 21.06.2006 09:30:56--------------------------------------------------- /*-- 21.06.2006 09:30:56---------------------------------------------------
-----------------------------------------------------------------------*/ -----------------------------------------------------------------------*/
PropertyMap::PropertyMap() PropertyMap::PropertyMap() :
m_cFootnoteSymbol( 0 ),
m_nFootnoteFontId( -1 )
{ {
} }
/*-- 21.06.2006 09:30:56--------------------------------------------------- /*-- 21.06.2006 09:30:56---------------------------------------------------
...@@ -169,6 +171,13 @@ void PropertyMap::insert( PropertyMapPtr pMap, bool bOverwrite ) ...@@ -169,6 +171,13 @@ void PropertyMap::insert( PropertyMapPtr pMap, bool bOverwrite )
_PropertyMap::insert(pMap->begin(), pMap->end()); _PropertyMap::insert(pMap->begin(), pMap->end());
} }
} }
/*-- 06.06.2007 15:49:09---------------------------------------------------
-----------------------------------------------------------------------*/
const uno::Reference< text::XFootnote>& PropertyMap::GetFootnote() const
{
return m_xFootnote;
}
/*-- 24.07.2006 08:29:01--------------------------------------------------- /*-- 24.07.2006 08:29:01---------------------------------------------------
-----------------------------------------------------------------------*/ -----------------------------------------------------------------------*/
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: PropertyMap.hxx,v $ * $RCSfile: PropertyMap.hxx,v $
* *
* $Revision: 1.10 $ * $Revision: 1.11 $
* *
* last change: $Author: os $ $Date: 2007-05-24 11:33:45 $ * last change: $Author: os $ $Date: 2007-06-12 05:41:16 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -70,6 +70,7 @@ namespace com{namespace sun{namespace star{ ...@@ -70,6 +70,7 @@ namespace com{namespace sun{namespace star{
namespace text{ namespace text{
class XTextRange; class XTextRange;
class XTextColumns; class XTextColumns;
class XFootnote;
} }
namespace table{ namespace table{
struct BorderLine; struct BorderLine;
...@@ -92,6 +93,12 @@ typedef std::map < ::rtl::OUString, ::com::sun::star::uno::Any > _PropertyMap; ...@@ -92,6 +93,12 @@ typedef std::map < ::rtl::OUString, ::com::sun::star::uno::Any > _PropertyMap;
class PropertyMap : public _PropertyMap class PropertyMap : public _PropertyMap
{ {
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aValues; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aValues;
//marks context as footnote context - ::text( ) events contain either the footnote character or can be ignored
//depending on sprmCSymbol
sal_Unicode m_cFootnoteSymbol; // 0 == invalid
sal_Int32 m_nFootnoteFontId; // negative values are invalid ids
::rtl::OUString m_sFootnoteFontName;
::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnote > m_xFootnote;
public: public:
PropertyMap(); PropertyMap();
...@@ -109,6 +116,18 @@ class PropertyMap : public _PropertyMap ...@@ -109,6 +116,18 @@ class PropertyMap : public _PropertyMap
if(m_aValues.getLength()) if(m_aValues.getLength())
m_aValues.realloc( 0 ); m_aValues.realloc( 0 );
} }
const ::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnote>& GetFootnote() const;
void SetFootnote( ::com::sun::star::uno::Reference< ::com::sun::star::text::XFootnote> xF ) { m_xFootnote = xF; }
sal_Unicode GetFootnoteSymbol() const { return m_cFootnoteSymbol;}
void SetFootnoteSymbol(sal_Unicode cSet) { m_cFootnoteSymbol = cSet;}
sal_Int32 GetFootnoteFontId() const { return m_nFootnoteFontId;}
void SetFootnoteFontId(sal_Int32 nSet) { m_nFootnoteFontId = nSet;}
const ::rtl::OUString& GetFootnoteFontName() const { return m_sFootnoteFontName;}
void SetFootnoteFontName( const ::rtl::OUString& rSet ) { m_sFootnoteFontName = rSet;}
}; };
typedef boost::shared_ptr<PropertyMap> PropertyMapPtr; typedef boost::shared_ptr<PropertyMap> PropertyMapPtr;
......
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