Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a3eec8a0
Kaydet (Commit)
a3eec8a0
authored
Kas 19, 2015
tarafından
Samuel Mehrbrodt
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Toolbar: Add 'Save As' to 'Save' dropdown
Change-Id: I6597ae5569b29d09a8c44fc9a55b71166aa37b05
üst
928fb2c7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
16 deletions
+33
-16
resource.hrc
framework/inc/classes/resource.hrc
+1
-2
resource.src
framework/source/classes/resource.src
+0
-5
saveasmenucontroller.cxx
framework/source/uielement/saveasmenucontroller.cxx
+6
-9
menu.hxx
include/vcl/menu.hxx
+5
-0
GenericCommands.xcu
...egistry/data/org/openoffice/Office/UI/GenericCommands.xcu
+3
-0
menu.cxx
vcl/source/window/menu.cxx
+18
-0
No files found.
framework/inc/classes/resource.hrc
Dosyayı görüntüle @
a3eec8a0
...
...
@@ -51,8 +51,7 @@
#define STR_CLEAR_RECENT_FILES_HELP (RID_STR_START+24)
#define STR_LANGSTATUS_HINT (RID_STR_START+25)
#define STR_OPEN_REMOTE (RID_STR_START+26)
#define STR_REMOTE_FILE (RID_STR_START+27)
#define STR_REMOTE_TITLE (RID_STR_START+28)
#define STR_REMOTE_TITLE (RID_STR_START+27)
#define POPUPMENU_TOOLBAR_QUICKCUSTOMIZATION (RID_MENU_START+0)
...
...
framework/source/classes/resource.src
Dosyayı görüntüle @
a3eec8a0
...
...
@@ -119,11 +119,6 @@ String STR_OPEN_REMOTE
Text [ en-US ] = "Open remote file";
};
String STR_REMOTE_FILE
{
Text [ en-US ] = "Save Remote File...";
};
String STR_REMOTE_TITLE
{
Text [ en-US ] = " (Remote)";
...
...
framework/source/uielement/saveasmenucontroller.cxx
Dosyayı görüntüle @
a3eec8a0
...
...
@@ -40,6 +40,7 @@ using namespace framework;
namespace
{
static
const
char
CMD_SAVEAS
[]
=
".uno:SaveAs"
;
static
const
char
CMD_SAVE_REMOTE
[]
=
".uno:SaveAsRemote"
;
class
SaveAsMenuController
:
public
svt
::
PopupMenuControllerBase
...
...
@@ -112,11 +113,8 @@ void SaveAsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& rPo
if
(
pVCLPopupMenu
)
{
// Open remote menu entry
pVCLPopupMenu
->
InsertItem
(
sal_uInt16
(
1
),
FWK_RESSTR
(
STR_REMOTE_FILE
)
);
pVCLPopupMenu
->
SetItemCommand
(
sal_uInt16
(
1
),
CMD_SAVE_REMOTE
);
pVCLPopupMenu
->
InsertItem
(
CMD_SAVEAS
,
m_xFrame
);
pVCLPopupMenu
->
InsertItem
(
CMD_SAVE_REMOTE
,
m_xFrame
);
}
}
...
...
@@ -155,12 +153,11 @@ void SAL_CALL SaveAsMenuController::itemSelected( const css::awt::MenuEvent& rEv
OSL_TRACE
(
"SaveAsMenuController::itemSelected() - Command : %s"
,
OUStringToOString
(
aCommand
,
RTL_TEXTENCODING_UTF8
).
getStr
()
);
Sequence
<
PropertyValue
>
aArgsList
(
0
);
if
(
aCommand
==
CMD_SAVE_REMOTE
)
{
Sequence
<
PropertyValue
>
aArgsList
(
0
);
dispatchCommand
(
CMD_SAVE_REMOTE
,
aArgsList
);
}
else
if
(
aCommand
==
CMD_SAVEAS
)
dispatchCommand
(
CMD_SAVEAS
,
aArgsList
);
}
}
...
...
include/vcl/menu.hxx
Dosyayı görüntüle @
a3eec8a0
...
...
@@ -252,6 +252,11 @@ public:
const
OString
&
rIdent
=
OString
(),
sal_uInt16
nPos
=
MENU_APPEND
);
void
InsertItem
(
const
ResId
&
rResId
,
sal_uInt16
nPos
=
MENU_APPEND
);
void
InsertItem
(
const
OUString
&
rCommand
,
const
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>&
rFrame
,
MenuItemBits
nBits
=
MenuItemBits
::
NONE
,
const
OString
&
rIdent
=
OString
(),
sal_uInt16
nPos
=
MENU_APPEND
);
void
InsertSeparator
(
const
OString
&
rIdent
=
OString
(),
sal_uInt16
nPos
=
MENU_APPEND
);
void
RemoveItem
(
sal_uInt16
nPos
);
void
CopyItem
(
const
Menu
&
rMenu
,
sal_uInt16
nPos
,
sal_uInt16
nNewPos
=
MENU_APPEND
);
...
...
officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
Dosyayı görüntüle @
a3eec8a0
...
...
@@ -2032,6 +2032,9 @@
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Save to Remote Ser~ver
</value>
</prop>
<prop
oor:name=
"PopupLabel"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Save Remote File...
</value>
</prop>
<prop
oor:name=
"Properties"
oor:type=
"xs:int"
>
<value>
1
</value>
</prop>
...
...
vcl/source/window/menu.cxx
Dosyayı görüntüle @
a3eec8a0
...
...
@@ -41,6 +41,7 @@
#include <vcl/toolbox.hxx>
#include <vcl/dockingarea.hxx>
#include <vcl/settings.hxx>
#include <vcl/commandinfoprovider.hxx>
#include <salinst.hxx>
#include <svdata.hxx>
...
...
@@ -525,6 +526,23 @@ void Menu::InsertItem( const ResId& rResId, sal_uInt16 nPos )
delete
mpLayoutData
,
mpLayoutData
=
nullptr
;
}
void
Menu
::
InsertItem
(
const
OUString
&
rCommand
,
const
uno
::
Reference
<
frame
::
XFrame
>&
rFrame
,
MenuItemBits
nBits
,
const
OString
&
rIdent
,
sal_uInt16
nPos
)
{
OUString
aLabel
(
CommandInfoProvider
::
Instance
().
GetPopupLabelForCommand
(
rCommand
,
rFrame
));
OUString
aTooltip
(
CommandInfoProvider
::
Instance
().
GetTooltipForCommand
(
rCommand
,
rFrame
));
Image
aImage
(
CommandInfoProvider
::
Instance
().
GetImageForCommand
(
rCommand
,
/*bLarge=*/
false
,
rFrame
));
// let's invent an ItemId
const
sal_uInt16
COMMAND_ITEMID_START
=
30000
;
sal_uInt16
nItemId
=
COMMAND_ITEMID_START
+
GetItemCount
();
InsertItem
(
nItemId
,
aLabel
,
aImage
,
nBits
,
rIdent
,
nPos
);
SetItemCommand
(
nItemId
,
rCommand
);
SetHelpText
(
nItemId
,
aTooltip
);
}
void
Menu
::
InsertSeparator
(
const
OString
&
rIdent
,
sal_uInt16
nPos
)
{
// do nothing if it's a menu bar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment