Kaydet (Commit) 20439a8d authored tarafından Jan Holesovsky's avatar Jan Holesovsky

toolbar-decorations-svx-undo-redo.diff: Update "Undo" and "Redo" widgets.

üst 2a82fbac
...@@ -70,7 +70,6 @@ class SvxPopupWindowListBox : public SfxPopupWindow ...@@ -70,7 +70,6 @@ class SvxPopupWindowListBox : public SfxPopupWindow
{ {
using FloatingWindow::StateChanged; using FloatingWindow::StateChanged;
FixedInfo aInfo;
ListBox * pListBox; ListBox * pListBox;
ToolBox & rToolBox; ToolBox & rToolBox;
BOOL bUserSel; BOOL bUserSel;
...@@ -95,7 +94,6 @@ public: ...@@ -95,7 +94,6 @@ public:
void StartSelection(); void StartSelection();
inline ListBox & GetListBox() { return *pListBox; } inline ListBox & GetListBox() { return *pListBox; }
inline FixedInfo & GetInfo() { return aInfo; }
BOOL IsUserSelected() const { return bUserSel; } BOOL IsUserSelected() const { return bUserSel; }
void SetUserSelected( BOOL bVal ) { bUserSel = bVal; } void SetUserSelected( BOOL bVal ) { bUserSel = bVal; }
...@@ -106,7 +104,6 @@ public: ...@@ -106,7 +104,6 @@ public:
SvxPopupWindowListBox::SvxPopupWindowListBox( USHORT nSlotId, const rtl::OUString& rCommandURL, USHORT nId, ToolBox& rTbx ) : SvxPopupWindowListBox::SvxPopupWindowListBox( USHORT nSlotId, const rtl::OUString& rCommandURL, USHORT nId, ToolBox& rTbx ) :
SfxPopupWindow( nSlotId, Reference< XFrame >(), SVX_RES( RID_SVXTBX_UNDO_REDO_CTRL ) ), SfxPopupWindow( nSlotId, Reference< XFrame >(), SVX_RES( RID_SVXTBX_UNDO_REDO_CTRL ) ),
aInfo ( this, SVX_RES( FT_NUM_OPERATIONS ) ),
rToolBox ( rTbx ), rToolBox ( rTbx ),
bUserSel ( FALSE ), bUserSel ( FALSE ),
nTbxId ( nId ), nTbxId ( nId ),
...@@ -242,7 +239,7 @@ void SvxListBoxControl::Impl_SetInfo( USHORT nCount ) ...@@ -242,7 +239,7 @@ void SvxListBoxControl::Impl_SetInfo( USHORT nCount )
String aText( aActionStr ); String aText( aActionStr );
aText.SearchAndReplaceAllAscii( "$(ARG1)", String::CreateFromInt32( nCount ) ); aText.SearchAndReplaceAllAscii( "$(ARG1)", String::CreateFromInt32( nCount ) );
pPopupWin->GetInfo().SetText( aText ); pPopupWin->SetText( aText );
} }
......
...@@ -32,27 +32,20 @@ ...@@ -32,27 +32,20 @@
FloatingWindow RID_SVXTBX_UNDO_REDO_CTRL FloatingWindow RID_SVXTBX_UNDO_REDO_CTRL
{ {
Pos = MAP_APPFONT ( 0 , 0 ) ; Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( 150 , 74 ) ; Size = MAP_APPFONT ( 102 , 87 ) ;
HelpID = HID_SVXTBX_UNDO_REDO_CTRL ; HelpID = HID_SVXTBX_UNDO_REDO_CTRL ;
SysWin = TRUE; StdPopup = TRUE;
Border = TRUE ;
Hide = TRUE ; Hide = TRUE ;
SVLook = TRUE ;
OutputSize = TRUE ; OutputSize = TRUE ;
ListBox LB_SVXTBX_UNDO_REDO_CTRL ListBox LB_SVXTBX_UNDO_REDO_CTRL
{ {
Pos = MAP_APPFONT ( 0 , 0 ) ; Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( 150 , 60 ) ; Size = MAP_APPFONT ( 100 , 85 ) ;
Border = TRUE ; Border = TRUE ;
DropDown = FALSE ; DropDown = FALSE ;
OutputSize = TRUE ; OutputSize = TRUE ;
}; };
FixedText FT_NUM_OPERATIONS
{
Pos = MAP_APPFONT ( 6 , 64 ) ;
Size = MAP_APPFONT ( 138 , 10 ) ;
};
}; };
String RID_SVXSTR_NUM_UNDO_ACTIONS String RID_SVXSTR_NUM_UNDO_ACTIONS
......
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