Kaydet (Commit) c8228110 authored tarafından Bálint Dózsa's avatar Bálint Dózsa Kaydeden (comit) Caolán McNamara

FIX BUG 32559 - draw

üst 33b9033a
......@@ -2154,6 +2154,11 @@ interface DrawView
ExecMethod = FuSupport ;
StateMethod = GetCtrlState ;
]
SID_TRANSLITERATE_ROTATE_CASE // ole : no, status : ?
[
ExecMethod = FuSupportRotate ;
StateMethod = GetCtrlState ;
]
SID_TRANSLITERATE_LOWER // ole : no, status : ?
[
ExecMethod = FuSupport ;
......
......@@ -72,6 +72,8 @@ class DrawViewShell
: public ViewShell,
public SfxListener
{
sal_uInt32 nF3ShiftCounter;
public:
static const int SLOTARRAY_COUNT = 24;
......@@ -218,6 +220,7 @@ public:
void FuTemporary(SfxRequest& rReq);
void FuPermanent(SfxRequest& rReq);
void FuSupport(SfxRequest& rReq);
void FuSupportRotate(SfxRequest& rReq);
void FuTable(SfxRequest& rReq);
void AttrExec (SfxRequest& rReq);
......
......@@ -141,6 +141,7 @@ DrawViewShell::DrawViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBas
: ViewShell (pFrame, pParentWindow, rViewShellBase)
, maTabControl(this, pParentWindow)
, mbIsInSwitchPage(false)
, nF3ShiftCounter(0)
{
if (pFrameViewArgument != NULL)
mpFrameView = pFrameViewArgument;
......
......@@ -1485,6 +1485,35 @@ void DrawViewShell::FuSupport(SfxRequest& rReq)
}
}
void DrawViewShell::FuSupportRotate(SfxRequest &rReq)
{
using namespace ::com::sun::star::i18n;
{
sal_uInt32 nMode = 0;
OutlinerView* pOLV = GetView()->GetTextEditOutlinerView();
if( rReq.GetSlot() == SID_TRANSLITERATE_ROTATE_CASE ) {
switch ( nF3ShiftCounter ) {
case 0:
nMode = TransliterationModulesExtra::TITLE_CASE;
break;
case 1:
nMode = TransliterationModules_LOWERCASE_UPPERCASE;
break;
case 2:
nMode = TransliterationModules_UPPERCASE_LOWERCASE;
nF3ShiftCounter = -1;
break;
}
if ( nMode )
pOLV->TransliterateText( nMode );
nF3ShiftCounter++;
}
}
}
/*************************************************************************
|*
|* URL-Feld einfuegen
......
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