diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-24 16:03:49 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-24 16:09:44 +0200 |
commit | 7a195b81bee5c84e01186463b44ad3c551046f33 (patch) | |
tree | 6cd3ca51f719a2bdae4d1c570e68b7110a5af59c /sc | |
parent | add local range names to "Name Box"/ScPosWnd (diff) | |
download | core-7a195b81bee5c84e01186463b44ad3c551046f33.tar.gz core-7a195b81bee5c84e01186463b44ad3c551046f33.zip |
Manage Names: braodcast change in range names now directly
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index 494a6d011ec8..47ff62909135 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -45,6 +45,8 @@ #include "namedlg.hxx" #include "viewdata.hxx" +#include "sfx2/app.hxx" + #include <vcl/msgbox.hxx> #include <map> @@ -472,6 +474,7 @@ bool ScNameDlg::AddPushed() maBtnAdd.Disable(); maUndoStack.push( new ScNameManagerUndoAdd( pRangeName, new ScRangeData(*pNewEntry) )); UpdateNames(); + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREAS_CHANGED ) ); } } else @@ -506,6 +509,7 @@ void ScNameDlg::RemovePushed() maUndoStack.push( new ScNameManagerUndoDelete( pRangeName, new ScRangeData(*pData) )); pRangeName->erase(*pData); UpdateNames(); + SFX_APP()->Broadcast( SfxSimpleHint( SC_HINT_AREAS_CHANGED ) ); } } } |