Skip to content

Commit

Permalink
[PDFE] Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Mar 26, 2024
1 parent 89faf73 commit c8f8665
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions apps/pdfeditor/main/app/view/ImageSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ define([
if (this.api) {
var oleobj = this.api.asc_canEditTableOleObject(true);
if (oleobj) {
var oleEditor = PE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');
var oleEditor = PDFE.getController('Common.Controllers.ExternalOleEditor').getView('Common.Views.ExternalOleEditor');
if (oleEditor) {
oleEditor.setEditMode(true);
oleEditor.show();
Expand Down Expand Up @@ -313,7 +313,7 @@ define([
});
shapePicker.on('item:click', function(picker, item, record, e) {
if (me.api) {
PE.getController('Toolbar').toolbar.cmbInsertShape.updateComboView(record);
PDFE.getController('InsTab').view.cmbInsertShape.updateComboView(record);
me.api.ChangeShapeType(record.get('data').shapeType);
me.fireEvent('editcomplete', me);
}
Expand Down Expand Up @@ -358,7 +358,7 @@ define([
this.btnFlipH.setDisabled(value || this._locked);

if (this._state.isOleObject) {
var plugin = PE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid});
var plugin = PDFE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid});
this.btnEditObject.setDisabled(!this.api.asc_canEditTableOleObject() && (plugin===null || plugin ===undefined) || this._locked);
} else {
this.btnSelectImage.setDisabled(pluginGuid===null || this._locked);
Expand Down Expand Up @@ -443,11 +443,11 @@ define([
imgsizeOriginal = {width:imgsizeOriginal.get_ImageWidth(), height:imgsizeOriginal.get_ImageHeight()};
}

(new PE.Views.ImageSettingsAdvanced(
(new PDFE.Views.ImageSettingsAdvanced(
{
imageProps: elValue,
sizeOriginal: imgsizeOriginal,
slideSize: PE.getController('Toolbar').currentPageSize,
slideSize: PDFE.getController('Toolbar').currentPageSize,
handler: function(result, value) {
if (result == 'ok') {
if (me.api) {
Expand Down
6 changes: 3 additions & 3 deletions apps/pdfeditor/main/app/view/ShapeSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,10 @@ define([
elType = selectedElements[i].get_ObjectType();
elValue = selectedElements[i].get_ObjectValue();
if (Asc.c_oAscTypeSelectElement.Shape == elType) {
(new PE.Views.ShapeSettingsAdvanced(
(new PDFE.Views.ShapeSettingsAdvanced(
{
shapeProps: elValue,
slideSize: PE.getController('Toolbar').currentPageSize,
slideSize: PDFE.getController('Toolbar').currentPageSize,
handler: function(result, value) {
if (result == 'ok') {
if (me.api) {
Expand Down Expand Up @@ -2076,7 +2076,7 @@ define([
});
me.btnChangeShape.shapePicker.on('item:click', function(picker, item, record, e) {
if (me.api) {
PE.getController('Toolbar').toolbar.cmbInsertShape.updateComboView(record);
PDFE.getController('InsTab').view.cmbInsertShape.updateComboView(record);
me.api.ChangeShapeType(record.get('data').shapeType);
me.fireEvent('editcomplete', me);
}
Expand Down

0 comments on commit c8f8665

Please sign in to comment.