Kaydet (Commit) 4c612cd0 authored tarafından Caolán McNamara's avatar Caolán McNamara

RID_CMDBOXWINDOW is so hacky and src entry so small just hardcode in cxx

Change-Id: I63e97e91792fcf2bf8758a1444bb29e3c1ccd541
üst 49236240
...@@ -104,23 +104,6 @@ Menu RID_VIEWMENU ...@@ -104,23 +104,6 @@ Menu RID_VIEWMENU
}; };
}; };
#define CMDBOXWINDOW_TEXT \
Text [ en-US ] = "Commands" ; \
DockingWindow RID_CMDBOXWINDOW\
{
HelpId = HID_SMA_COMMAND_WIN ;
Moveable = TRUE ;
Closeable = FALSE ;
Sizeable = TRUE ;
OutputSize = TRUE ;
HideWhenDeactivate = FALSE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 292 , 94 ) ;
Dockable = TRUE ;
CMDBOXWINDOW_TEXT
};
String STR_BLACK String STR_BLACK
{ {
Text [ en-US ] = "black" ; Text [ en-US ] = "black" ;
...@@ -218,7 +201,7 @@ String STR_ALIGN_RIGHT ...@@ -218,7 +201,7 @@ String STR_ALIGN_RIGHT
String STR_CMDBOXWINDOW String STR_CMDBOXWINDOW
{ {
CMDBOXWINDOW_TEXT Text [ en-US ] = "Commands" ;
}; };
String RID_DOCUMENTSTR String RID_DOCUMENTSTR
......
...@@ -702,30 +702,30 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const ...@@ -702,30 +702,30 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const
SfxControllerItem::StateChanged (nSID, eState, pState); SfxControllerItem::StateChanged (nSID, eState, pState);
} }
/**************************************************************************/ /**************************************************************************/
SmCmdBoxWindow::SmCmdBoxWindow(SfxBindings *pBindings_, SfxChildWindow *pChildWindow, SmCmdBoxWindow::SmCmdBoxWindow(SfxBindings *pBindings_, SfxChildWindow *pChildWindow,
vcl::Window *pParent) : vcl::Window *pParent) :
SfxDockingWindow(pBindings_, pChildWindow, pParent, SmResId(RID_CMDBOXWINDOW)), SfxDockingWindow(pBindings_, pChildWindow, pParent, WB_MOVEABLE|WB_CLOSEABLE|WB_SIZEABLE|WB_DOCKABLE),
aEdit (*this), aEdit (*this),
aController (aEdit, SID_TEXT, *pBindings_), aController (aEdit, SID_TEXT, *pBindings_),
bExiting (false) bExiting (false)
{ {
SetHelpId( HID_SMA_COMMAND_WIN );
SetSizePixel(LogicToPixel(Size(292 , 94), MapMode(MAP_APPFONT)));
SetText(SM_RESSTR(STR_CMDBOXWINDOW));
Hide (); Hide ();
aInitialFocusTimer.SetTimeoutHdl(LINK(this, SmCmdBoxWindow, InitialFocusTimerHdl)); aInitialFocusTimer.SetTimeoutHdl(LINK(this, SmCmdBoxWindow, InitialFocusTimerHdl));
aInitialFocusTimer.SetTimeout(100); aInitialFocusTimer.SetTimeout(100);
} }
SmCmdBoxWindow::~SmCmdBoxWindow () SmCmdBoxWindow::~SmCmdBoxWindow ()
{ {
aInitialFocusTimer.Stop(); aInitialFocusTimer.Stop();
bExiting = true; bExiting = true;
} }
SmViewShell * SmCmdBoxWindow::GetView() SmViewShell * SmCmdBoxWindow::GetView()
{ {
SfxDispatcher *pDispatcher = GetBindings().GetDispatcher(); SfxDispatcher *pDispatcher = GetBindings().GetDispatcher();
...@@ -749,7 +749,6 @@ void SmCmdBoxWindow::Resize() ...@@ -749,7 +749,6 @@ void SmCmdBoxWindow::Resize()
Invalidate(); Invalidate();
} }
void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/) void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/)
{ {
Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel()); Rectangle aRect = Rectangle(Point(0, 0), GetOutputSizePixel());
...@@ -762,7 +761,6 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/) ...@@ -762,7 +761,6 @@ void SmCmdBoxWindow::Paint(const Rectangle& /*rRect*/)
aView.DrawFrame( aRect, FRAME_DRAW_IN ); aView.DrawFrame( aRect, FRAME_DRAW_IN );
} }
Size SmCmdBoxWindow::CalcDockingSize(SfxChildAlignment eAlign) Size SmCmdBoxWindow::CalcDockingSize(SfxChildAlignment eAlign)
{ {
switch (eAlign) switch (eAlign)
...@@ -776,7 +774,6 @@ Size SmCmdBoxWindow::CalcDockingSize(SfxChildAlignment eAlign) ...@@ -776,7 +774,6 @@ Size SmCmdBoxWindow::CalcDockingSize(SfxChildAlignment eAlign)
return SfxDockingWindow::CalcDockingSize(eAlign); return SfxDockingWindow::CalcDockingSize(eAlign);
} }
SfxChildAlignment SmCmdBoxWindow::CheckAlignment(SfxChildAlignment eActual, SfxChildAlignment SmCmdBoxWindow::CheckAlignment(SfxChildAlignment eActual,
SfxChildAlignment eWish) SfxChildAlignment eWish)
{ {
......
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