D25422: Handle custom-shapes to display text in ODP files

2019-11-20 Thread Mikhail Philippov
mphilippov created this revision.
mphilippov added reviewers: denexter, davidllewellynjones.
mphilippov added a project: Calligra: 3.0.
Herald added a subscriber: Calligra-Devel-list.
mphilippov requested review of this revision.

REVISION SUMMARY
  Some ODP-files don't display plain text.
  Thats because TextShape doesn't handle custom-shapes

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25422

AFFECTED FILES
  plugins/textshape/TextShape.cpp
  plugins/textshape/TextShapeFactory.cpp

To: mphilippov, denexter, davidllewellynjones
Cc: Calligra-Devel-list, davidllewellynjones, dcaliste, ognarb, cochise, 
vandenoever


D25423: Fill table cells with color for ODS and XLSX files

2019-11-20 Thread Mikhail Philippov
mphilippov created this revision.
mphilippov added reviewers: denexter, pvuorela, davidllewellynjones, dcaliste.
mphilippov added a project: Calligra: 3.0.
Herald added a subscriber: Calligra-Devel-list.
mphilippov requested review of this revision.

REVISION SUMMARY
  Even when the tables in XLS/XLSX files are painted with some color, this 
color isn't displayed.

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25423

AFFECTED FILES
  sheets/odf/SheetsOdfStyle.cpp

To: mphilippov, denexter, pvuorela, davidllewellynjones, dcaliste
Cc: dcaliste, davidllewellynjones, denexter, Calligra-Devel-list, 
#calligra:_3.0, ognarb, cochise, vandenoever


D25541: Display figure brackets in plain text

2019-11-26 Thread Mikhail Philippov
mphilippov created this revision.
mphilippov added reviewers: pvuorela, denexter, dcaliste, davidllewellynjones.
mphilippov added a project: Calligra: 3.0.
Herald added a subscriber: Calligra-Devel-list.
mphilippov requested review of this revision.

REVISION SUMMARY
  RTF files can contain text with figure brackets, i.e. C++ code. This fix 
mentions the case when figure brackets should be handle as plain text and not 
as a token of the beginning or ending of the group of control words.

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25541

AFFECTED FILES
  filters/words/rtf/import/3rdparty/rtf-qt/src/Tokenizer.cpp

To: mphilippov, pvuorela, denexter, dcaliste, davidllewellynjones
Cc: #calligra:_3.0, denexter, davidllewellynjones, Calligra-Devel-list, 
pvuorela, dcaliste, ognarb, cochise, vandenoever


D25422: Handle custom-shapes to display text in ODP files

2019-12-02 Thread Mikhail Philippov
mphilippov added reviewers: pvuorela, dcaliste.
mphilippov added subscribers: pvuorela, denexter.

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25422

To: mphilippov, denexter, davidllewellynjones, pvuorela, dcaliste
Cc: denexter, pvuorela, Calligra-Devel-list, davidllewellynjones, dcaliste, 
ognarb, cochise, vandenoever


D26328: Calculate and display proper number for headings started with lower level for DOC, DOCX and ODT.

2019-12-31 Thread Mikhail Philippov
mphilippov created this revision.
mphilippov added reviewers: pvuorela, denexter, dcaliste, davidllewellynjones.
mphilippov added a project: Calligra: 3.0.
Herald added a subscriber: Calligra-Devel-list.
mphilippov requested review of this revision.

REVISION SUMMARY
  In previous version headings or items started with lower level are displayed 
as 11,  22, 33; not 1.1, 1.2, 1.3. This diff calculates the numbers of headings 
or items which start with lower properlylevel.

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D26328

AFFECTED FILES
  filters/libmsooxml/MsooXmlUtils.cpp
  filters/libmsooxml/MsooXmlUtils.h
  filters/words/docx/import/DocxXmlNumberingReader.cpp
  libs/textlayout/ListItemsHelper.cpp

To: mphilippov, pvuorela, denexter, dcaliste, davidllewellynjones
Cc: davidllewellynjones, dcaliste, denexter, pvuorela, Calligra-Devel-list, 
#calligra:_3.0, ognarb, cochise, vandenoever


D25423: Fill table cells with color for ODS and XLSX files

2020-01-06 Thread Mikhail Philippov
mphilippov added a comment.


  In D25423#586953 , @pvuorela wrote:
  
  > Not sure about all the details but two things look suspicious here:
  >
  > 1. Above this there's handling for transparent and now the handling isn't 
symmetric for background brush.
  > 2. There's some handling on the file for KoXmlNs::draw / style-name & 
KoXmlNs::calligra / fill-style-name which do background brush setting. What's 
the relation between these three?
  
  
  
  
  1. I see it. Ok
  2. loadTableCellProperties() is a method for applying styles for table cells, 
i.e. cell background. There is no handling for cell background in the place you 
mentioned.

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25423

To: mphilippov, denexter, pvuorela, davidllewellynjones, dcaliste
Cc: dcaliste, davidllewellynjones, denexter, Calligra-Devel-list, 
#calligra:_3.0, ognarb, cochise, vandenoever


D25423: Fill table cells with color for ODS and XLSX files

2020-01-07 Thread Mikhail Philippov
mphilippov added a comment.


  In D25423#589430 , @pvuorela wrote:
  
  > > loadTableCellProperties() is a method for applying styles for table 
cells, i.e. cell background. There is no handling for cell background in the 
place you mentioned.
  >
  > I'm talking about handling in that particular method. It will already set 
background brush in that method later. Why is that not enough?
  
  
  Do you mean this "if ()" part of code? If there is no style "graphic" and 
inner "if" will not execute. Do you mean it'll be better to handle it in this 
part of code...or what?

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25423

To: mphilippov, denexter, pvuorela, davidllewellynjones, dcaliste
Cc: dcaliste, davidllewellynjones, denexter, Calligra-Devel-list, 
#calligra:_3.0, ognarb, cochise, vandenoever


D25423: Fill table cells with color for ODS and XLSX files

2020-01-09 Thread Mikhail Philippov
mphilippov added a comment.


  In D25423#589481 , @pvuorela wrote:
  
  > > Do you mean this "if ()" part of code? If there is no style "graphic" and 
inner "if" will not execute. Do you mean it'll be better to handle it in this 
part of code...or what?
  >
  > The main question was how should the three attributes play together. But 
another question: why isn't setBackgroundColor enough for the background color?
  
  
  Ok. 1. There is a bug in calligra with alpla-channel. So with 
style->setBackgroundColor(QColor()); all transparent cells will be painted with 
black color.
  
  2. This part of code isn't handled in all spreadsheet formats either ods or 
xls or xlsx. Setting brush needs us to paint all the cell with the required 
color

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25423

To: mphilippov, denexter, pvuorela, davidllewellynjones, dcaliste
Cc: dcaliste, davidllewellynjones, denexter, Calligra-Devel-list, 
#calligra:_3.0, ognarb, cochise, vandenoever