summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-09-29 17:10:28 -0400
committerKohei Yoshida <kyoshida@novell.com>2010-09-29 17:10:28 -0400
commit5fef8677985208d688b50521c8c05a4b82ff9cd1 (patch)
treeac0bf3233c8b472e97a531254acea14059db31af
parent5fc6b0d063139e73b6d6931baf7f3eee1660d16a (diff)
Ported statusbar-fancy-modified-status-starmath.diff from ooo-build.
-rw-r--r--starmath/source/smmod.cxx3
-rw-r--r--starmath/uiconfig/smath/statusbar/statusbar.xml2
2 files changed, 4 insertions, 1 deletions
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index da6259076adc..c6197c569c93 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -55,6 +55,7 @@
#include "edit.hxx"
#include "view.hxx"
#include "starmath.hrc"
+#include "svx/modctrl.hxx"
TYPEINIT1( SmModule, SfxModule );
@@ -242,6 +243,8 @@ SmModule::SmModule(SfxObjectFactory* pObjFact) :
pVirtualDev( 0 )
{
SetName( C2S("StarMath" ));
+
+ SvxModifyControl::RegisterControl(SID_DOC_MODIFIED, this);
}
diff --git a/starmath/uiconfig/smath/statusbar/statusbar.xml b/starmath/uiconfig/smath/statusbar/statusbar.xml
index 7d95fbbb2975..33e4e4888f2a 100644
--- a/starmath/uiconfig/smath/statusbar/statusbar.xml
+++ b/starmath/uiconfig/smath/statusbar/statusbar.xml
@@ -3,6 +3,6 @@
<statusbar:statusbar xmlns:statusbar="http://openoffice.org/2001/statusbar" xmlns:xlink="http://www.w3.org/1999/xlink">
<statusbar:statusbaritem xlink:href=".uno:TextStatus" statusbar:align="left" statusbar:width="300" statusbar:helpid="helpid:30367"/>
<statusbar:statusbaritem xlink:href=".uno:Zoom" statusbar:align="center" statusbar:width="54" statusbar:helpid="helpid:10000"/>
- <statusbar:statusbaritem xlink:href=".uno:ModifiedStatus" statusbar:align="center" statusbar:width="14" statusbar:helpid="helpid:5584"/>
+ <statusbar:statusbaritem xlink:href=".uno:ModifiedStatus" statusbar:align="center" statusbar:ownerdraw="true" statusbar:width="14" statusbar:helpid="helpid:5584"/>
<statusbar:statusbaritem xlink:href=".uno:Signature" statusbar:align="center" statusbar:ownerdraw="true" statusbar:width="16" statusbar:helpid="helpid:5699"/>
</statusbar:statusbar> \ No newline at end of file