MoreButtons cannot be loaded from .src anymore
Change-Id: Ib831895b33323dd478cc125b3bf93c43826ef59d
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
|
|
||||||
class SfxObjectShellLock;
|
class SfxObjectShellLock;
|
||||||
class SfxObjectShell;
|
class SfxObjectShell;
|
||||||
class MoreButton;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -36,7 +36,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class SvxSearchItem;
|
class SvxSearchItem;
|
||||||
class MoreButton;
|
|
||||||
class SfxStyleSheetBasePool;
|
class SfxStyleSheetBasePool;
|
||||||
class SvxJSearchOptionsPage;
|
class SvxJSearchOptionsPage;
|
||||||
class SvxSearchController;
|
class SvxSearchController;
|
||||||
|
@@ -156,11 +156,6 @@ typedef short RSWND_STYLE;
|
|||||||
#define RSC_TOOLBOX_ITEMIMAGELIST 0x40
|
#define RSC_TOOLBOX_ITEMIMAGELIST 0x40
|
||||||
#define RSC_TOOLBOX_ITEMLIST 0x80
|
#define RSC_TOOLBOX_ITEMLIST 0x80
|
||||||
|
|
||||||
// For "MoreButton" resources:
|
|
||||||
#define RSC_MOREBUTTON_STATE 0x01
|
|
||||||
#define RSC_MOREBUTTON_MAPUNIT 0x02
|
|
||||||
#define RSC_MOREBUTTON_DELTA 0x04
|
|
||||||
|
|
||||||
// For "FloatingWindow" resources:
|
// For "FloatingWindow" resources:
|
||||||
#define RSC_FLOATINGWINDOW_WHMAPMODE 0x01
|
#define RSC_FLOATINGWINDOW_WHMAPMODE 0x01
|
||||||
#define RSC_FLOATINGWINDOW_WIDTH 0x02
|
#define RSC_FLOATINGWINDOW_WIDTH 0x02
|
||||||
|
@@ -68,7 +68,7 @@
|
|||||||
#define RSC_HELPBUTTON (RSC_NOTYPE + 0x49)
|
#define RSC_HELPBUTTON (RSC_NOTYPE + 0x49)
|
||||||
#define RSC_IMAGEBUTTON (RSC_NOTYPE + 0x4a)
|
#define RSC_IMAGEBUTTON (RSC_NOTYPE + 0x4a)
|
||||||
#define RSC_MENUBUTTON (RSC_NOTYPE + 0x4b)
|
#define RSC_MENUBUTTON (RSC_NOTYPE + 0x4b)
|
||||||
#define RSC_MOREBUTTON (RSC_NOTYPE + 0x4c)
|
|
||||||
#define RSC_SPINBUTTON (RSC_NOTYPE + 0x4d)
|
#define RSC_SPINBUTTON (RSC_NOTYPE + 0x4d)
|
||||||
#define RSC_RADIOBUTTON (RSC_NOTYPE + 0x4e)
|
#define RSC_RADIOBUTTON (RSC_NOTYPE + 0x4e)
|
||||||
|
|
||||||
|
@@ -47,7 +47,6 @@ private:
|
|||||||
protected:
|
protected:
|
||||||
using Window::ImplInit;
|
using Window::ImplInit;
|
||||||
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
|
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
|
||||||
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MoreButton( Window* pParent, WinBits nStyle = 0 );
|
explicit MoreButton( Window* pParent, WinBits nStyle = 0 );
|
||||||
|
@@ -238,7 +238,6 @@ class RscTypCont
|
|||||||
RscTop * InitClassToolBox( RscTop * pSuper, RscTop * pClassToolBoxItem,
|
RscTop * InitClassToolBox( RscTop * pSuper, RscTop * pClassToolBoxItem,
|
||||||
RscTop * pClassImageList );
|
RscTop * pClassImageList );
|
||||||
RscTop * InitClassStatusBar( RscTop * pSuper );
|
RscTop * InitClassStatusBar( RscTop * pSuper );
|
||||||
RscTop * InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit );
|
|
||||||
RscTop * InitClassFloatingWindow( RscTop * pSuper,
|
RscTop * InitClassFloatingWindow( RscTop * pSuper,
|
||||||
RscEnum * pMapUnit );
|
RscEnum * pMapUnit );
|
||||||
RscTop * InitClassTabControlItem( RscTop * pSuper );
|
RscTop * InitClassTabControlItem( RscTop * pSuper );
|
||||||
|
@@ -1899,31 +1899,6 @@ RscTop * RscTypCont::InitClassStatusBar( RscTop * pSuper )
|
|||||||
return pClassStatusBar;
|
return pClassStatusBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
RscTop * RscTypCont::InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit )
|
|
||||||
{
|
|
||||||
Atom nId;
|
|
||||||
RscTop * pClassMoreButton;
|
|
||||||
|
|
||||||
// Klasse anlegen
|
|
||||||
nId = pHS->getID( "MoreButton" );
|
|
||||||
pClassMoreButton = new RscClass( nId, RSC_MOREBUTTON, pSuper );
|
|
||||||
pClassMoreButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
|
|
||||||
aNmTb.Put( nId, CLASSNAME, pClassMoreButton );
|
|
||||||
|
|
||||||
// Variablen anlegen
|
|
||||||
nId = aNmTb.Put( "State", VARNAME );
|
|
||||||
pClassMoreButton->SetVariable( nId, &aBool, NULL, 0,
|
|
||||||
RSC_MOREBUTTON_STATE );
|
|
||||||
nId = aNmTb.Put( "MapUnit", VARNAME );
|
|
||||||
pClassMoreButton->SetVariable( nId, pMapUnit, NULL, 0,
|
|
||||||
RSC_MOREBUTTON_MAPUNIT );
|
|
||||||
nId = aNmTb.Put( "Delta", VARNAME );
|
|
||||||
pClassMoreButton->SetVariable( nId, &aUShort, NULL, 0,
|
|
||||||
RSC_MOREBUTTON_DELTA );
|
|
||||||
|
|
||||||
return pClassMoreButton;
|
|
||||||
}
|
|
||||||
|
|
||||||
RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper,
|
RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper,
|
||||||
RscEnum * pMapUnit )
|
RscEnum * pMapUnit )
|
||||||
{
|
{
|
||||||
|
@@ -131,7 +131,6 @@ void RscTypCont::Init()
|
|||||||
RscTop * pClassToolBoxItem;
|
RscTop * pClassToolBoxItem;
|
||||||
RscTop * pClassToolBox;
|
RscTop * pClassToolBox;
|
||||||
RscTop * pClassStatusBar;
|
RscTop * pClassStatusBar;
|
||||||
RscTop * pClassMoreButton;
|
|
||||||
RscTop * pClassFloatingWindow;
|
RscTop * pClassFloatingWindow;
|
||||||
RscTop * pClassTabPage;
|
RscTop * pClassTabPage;
|
||||||
RscTop * pClassTabDialog;
|
RscTop * pClassTabDialog;
|
||||||
@@ -711,9 +710,6 @@ void RscTypCont::Init()
|
|||||||
pClassStatusBar = InitClassStatusBar( pClassWindow );
|
pClassStatusBar = InitClassStatusBar( pClassWindow );
|
||||||
pRoot->Insert( pClassStatusBar );
|
pRoot->Insert( pClassStatusBar );
|
||||||
|
|
||||||
pClassMoreButton = InitClassMoreButton( pClassPushButton, pMapUnit );
|
|
||||||
pRoot->Insert( pClassMoreButton );
|
|
||||||
|
|
||||||
pClassFloatingWindow = InitClassFloatingWindow( pClassSystemWindow,
|
pClassFloatingWindow = InitClassFloatingWindow( pClassSystemWindow,
|
||||||
pMapUnit );
|
pMapUnit );
|
||||||
pRoot->Insert( pClassFloatingWindow );
|
pRoot->Insert( pClassFloatingWindow );
|
||||||
|
@@ -240,8 +240,6 @@ private:
|
|||||||
CancelButton* mpBtnCancel;
|
CancelButton* mpBtnCancel;
|
||||||
PushButton* mpBtnRemove;
|
PushButton* mpBtnRemove;
|
||||||
PushButton* mpBtnOptions;
|
PushButton* mpBtnOptions;
|
||||||
//FIXME: replace with expander
|
|
||||||
//MoreButton* mpBtnMore;
|
|
||||||
VclExpander* mpExpander;
|
VclExpander* mpExpander;
|
||||||
std::vector<OUString> maFuncNames; /// Localized function names from resource.
|
std::vector<OUString> maFuncNames; /// Localized function names from resource.
|
||||||
boost::ptr_vector<OUString> maRefStrs; /// Reference strings stored with the output list box.
|
boost::ptr_vector<OUString> maRefStrs; /// Reference strings stored with the output list box.
|
||||||
|
@@ -478,7 +478,6 @@ SwColumnPage::SwColumnPage(Window *pParent, const SfxItemSet &rSet)
|
|||||||
|
|
||||||
m_pDefaultVS->SetSelectHdl(LINK(this, SwColumnPage, SetDefaultsHdl));
|
m_pDefaultVS->SetSelectHdl(LINK(this, SwColumnPage, SetDefaultsHdl));
|
||||||
|
|
||||||
// announce Controls for additional region at the MoreButton
|
|
||||||
Link aCLNrLk = LINK(this, SwColumnPage, ColModify);
|
Link aCLNrLk = LINK(this, SwColumnPage, ColModify);
|
||||||
m_pCLNrEdt->SetModifyHdl(aCLNrLk);
|
m_pCLNrEdt->SetModifyHdl(aCLNrLk);
|
||||||
Link aLk = LINK(this, SwColumnPage, GapModify);
|
Link aLk = LINK(this, SwColumnPage, GapModify);
|
||||||
|
@@ -1504,7 +1504,6 @@ OString ResMgr::GetAutoHelpId()
|
|||||||
case RSC_TIMEBOX: aHID.append( "TimeBox" ); break;
|
case RSC_TIMEBOX: aHID.append( "TimeBox" ); break;
|
||||||
case RSC_IMAGEBUTTON: aHID.append( "ImageButton" ); break;
|
case RSC_IMAGEBUTTON: aHID.append( "ImageButton" ); break;
|
||||||
case RSC_MENUBUTTON: aHID.append( "MenuButton" ); break;
|
case RSC_MENUBUTTON: aHID.append( "MenuButton" ); break;
|
||||||
case RSC_MOREBUTTON: aHID.append( "MoreButton" ); break;
|
|
||||||
default:
|
default:
|
||||||
// no type, no auto HID
|
// no type, no auto HID
|
||||||
return OString();
|
return OString();
|
||||||
|
@@ -78,26 +78,6 @@ MoreButton::MoreButton( Window* pParent, WinBits nStyle ) :
|
|||||||
ImplInit( pParent, nStyle );
|
ImplInit( pParent, nStyle );
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoreButton::ImplLoadRes( const ResId& rResId )
|
|
||||||
{
|
|
||||||
PushButton::ImplLoadRes( rResId );
|
|
||||||
|
|
||||||
sal_uLong nObjMask = ReadLongRes();
|
|
||||||
|
|
||||||
if ( nObjMask & RSC_MOREBUTTON_STATE )
|
|
||||||
{
|
|
||||||
// Don't call method as Dialog should not be switched over
|
|
||||||
mbState = ReadShortRes() != 0;
|
|
||||||
// SetText( GetText() );
|
|
||||||
ShowState();
|
|
||||||
}
|
|
||||||
if ( nObjMask & RSC_MOREBUTTON_MAPUNIT )
|
|
||||||
meUnit = (MapUnit)ReadLongRes();
|
|
||||||
if ( nObjMask & RSC_MOREBUTTON_DELTA )
|
|
||||||
// Size for resizing the Dialog
|
|
||||||
mnDelta = ReadShortRes();
|
|
||||||
}
|
|
||||||
|
|
||||||
MoreButton::~MoreButton()
|
MoreButton::~MoreButton()
|
||||||
{
|
{
|
||||||
delete mpMBData->mpItemList;
|
delete mpMBData->mpItemList;
|
||||||
|
Reference in New Issue
Block a user