summaryrefslogtreecommitdiffstats
path: root/sw/inc
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2002-07-24 12:14:57 +0000
committerMichael Brauer <mib@openoffice.org>2002-07-24 12:14:57 +0000
commitbaf18777bbfe50def920f319a1b73e62696a6d45 (patch)
tree0b6ccbeede8330f179eddd22d534d1f454b49076 /sw/inc
parent#101623# update view when changing printer (diff)
downloadcore-baf18777bbfe50def920f319a1b73e62696a6d45.tar.gz
core-baf18777bbfe50def920f319a1b73e62696a6d45.zip
#100014#: Broadcast name/description change events for farmes and tables
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/format.hxx21
-rw-r--r--sw/inc/hintids.hxx6
-rw-r--r--sw/inc/hints.hxx15
-rw-r--r--sw/inc/ndnotxt.hxx6
4 files changed, 29 insertions, 19 deletions
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx
index 9692f4f6fe77..ddaae27f8f60 100644
--- a/sw/inc/format.hxx
+++ b/sw/inc/format.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: format.hxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: fme $ $Date: 2002-02-06 16:04:40 $
+ * last change: $Author: mib $ $Date: 2002-07-24 13:07:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -157,8 +157,9 @@ public:
inline BOOL IsDefault() const { return DerivedFrom() == 0; }
inline const String& GetName() const { return aFmtName; }
- inline void SetName( const String& rNewName );
- inline void SetName( const sal_Char* pNewName );
+ void SetName( const String& rNewName, sal_Bool bBroadcast=sal_False );
+ inline void SetName( const sal_Char* pNewName,
+ sal_Bool bBroadcast=sal_False);
// zur Abfrage des Attribute Arrays
inline const SwAttrSet& GetAttrSet() const { return aSet; }
@@ -327,15 +328,11 @@ inline const SfxPoolItem& SwFmt::GetAttr( USHORT nWhich,
return aSet.Get( nWhich, bInParents );
}
-inline void SwFmt::SetName( const String& rNewName )
+inline void SwFmt::SetName( const sal_Char* pNewName,
+ sal_Bool bBroadcast )
{
- ASSERT(!IsDefault(), "SetName: Defaultformat" );
- aFmtName = rNewName;
-}
-inline void SwFmt::SetName( const sal_Char* pNewName )
-{
- ASSERT(!IsDefault(), "SetName: Defaultformat" );
- aFmtName.AssignAscii( pNewName );
+ String aTmp( String::CreateFromAscii( pNewName ) );
+ SetName( aTmp, bBroadcast );
}
inline SfxItemState SwFmt::GetItemState( USHORT nWhich, BOOL bSrchInParent,
diff --git a/sw/inc/hintids.hxx b/sw/inc/hintids.hxx
index 5496818fe939..634c05195b9a 100644
--- a/sw/inc/hintids.hxx
+++ b/sw/inc/hintids.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hintids.hxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: fme $ $Date: 2002-02-06 16:04:40 $
+ * last change: $Author: mib $ $Date: 2002-07-24 13:07:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -334,6 +334,8 @@ RES_MSG_BEGIN = RES_FMT_END,
RES_TOXMARK_DELETED,
RES_GRAPHIC_SWAPIN,
RES_FIELD_DELETED,
+ RES_NAME_CHANGED,
+ RES_ALT_TEXT_CHANGED,
RES_MSG_END
};
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index 458017fa9675..94cde7fe1632 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hints.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:14:26 $
+ * last change: $Author: mib $ $Date: 2002-07-24 13:07:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -324,5 +324,16 @@ public:
const SwNode* GetFoundNode() const { return pFnd; }
};
+class SwStringMsgPoolItem : public SwMsgPoolItem
+{
+ String sStr;
+public:
+
+ const String& GetString() const { return sStr; }
+
+ SwStringMsgPoolItem( USHORT nId, const String& rStr )
+ : SwMsgPoolItem( nId ), sStr( rStr )
+ {}
+};
#endif
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index 5becec6547e3..c7654bcd739d 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ndnotxt.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mib $ $Date: 2001-05-04 08:34:39 $
+ * last change: $Author: mib $ $Date: 2002-07-24 13:07:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -108,7 +108,7 @@ public:
// alternativen Text abfragen/setzen
const String& GetAlternateText() const { return aAlternateText; }
- void SetAlternateText( const String& rTxt ) { aAlternateText = rTxt; }
+ void SetAlternateText( const String& rTxt, sal_Bool bBroadcast=sal_False );
void SetContour( const PolyPolygon *pPoly,
BOOL bAutomatic = FALSE );