└── src
├── .nuget
├── NuGet.exe
└── NuGet.Config
├── Caliburn
├── Caliburn.snk
├── GlobalAssemblyInfo.cs
├── Caliburn.Micro.Silverlight
│ ├── IHaveParameters.cs
│ ├── AssemblySource.cs
│ ├── IChild.cs
│ ├── ResultCompletionEventArgs.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Mouse.cs
│ └── IResult.cs
├── Caliburn.Micro.WP71.Extensions
│ ├── TaskExecutionRequested.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TaskCompleted.cs
│ ├── NavigationExtensions.cs
│ ├── StorageMode.cs
│ ├── WindowManagerExtensions.cs
│ ├── TaskExtensionMethods.cs
│ ├── StorageInstructionBuilder.cs
│ └── IPhoneContainer.cs
├── Caliburn.Micro.WP8.Extensions
│ └── Properties
│ │ └── AssemblyInfo.cs
├── Caliburn.Micro.WP8
│ └── Properties
│ │ └── AssemblyInfo.cs
└── Caliburn.Micro.WP71
│ └── Properties
│ └── AssemblyInfo.cs
├── libs
├── ExCss
│ └── ExCss.WP.dll
├── NavigationCoercion.dll
├── Flurry
│ └── FlurryWP8SDK.dll
├── Telerik
│ ├── Telerik.Windows.Core.dll
│ ├── Telerik.Windows.Core.pdb
│ ├── Telerik.Windows.Data.dll
│ ├── Telerik.Windows.Data.pdb
│ ├── Telerik.Windows.Controls.Data.dll
│ ├── Telerik.Windows.Controls.Data.pdb
│ ├── Telerik.Windows.Controls.Input.dll
│ ├── Telerik.Windows.Controls.Input.pdb
│ ├── Telerik.Windows.Controls.Primitives.dll
│ └── Telerik.Windows.Controls.Primitives.pdb
└── Microsoft.Live
│ ├── Microsoft.Live.dll
│ └── Microsoft.Live.pdb
├── FBReader.App
├── SplashScreenImage.jpg
├── Assets
│ ├── AlignmentGrid.png
│ ├── ApplicationIcon.png
│ └── Tiles
│ │ ├── IconicTileSmall.png
│ │ ├── FlipCycleTileLarge.png
│ │ ├── FlipCycleTileMedium.png
│ │ ├── FlipCycleTileSmall.png
│ │ └── IconicTileMediumLarge.png
├── Resources
│ ├── Icons
│ │ ├── add.png
│ │ ├── back.png
│ │ ├── buy.png
│ │ ├── tile.png
│ │ ├── toc.png
│ │ ├── cancel.png
│ │ ├── delete.png
│ │ ├── sd_card.png
│ │ ├── search.png
│ │ ├── Manybooks.png
│ │ ├── bookmark.png
│ │ ├── download.png
│ │ ├── skydrive.png
│ │ ├── appbar_add.png
│ │ ├── appbar_edit.png
│ │ ├── appbar_email.png
│ │ ├── appbar_rate.png
│ │ ├── appbar_read.png
│ │ ├── appbar_share.png
│ │ ├── appbar_sort.png
│ │ ├── basecircle.png
│ │ ├── empty_medium.png
│ │ ├── empty_small.png
│ │ ├── litres_icon.jpg
│ │ ├── marker_paid.png
│ │ ├── toFavorites.png
│ │ ├── appbar_search.png
│ │ ├── appbar_submit.png
│ │ ├── empty_catalog.png
│ │ ├── flibusta_icon.jpg
│ │ ├── librusec_icon.jpg
│ │ ├── appbar_favorites.png
│ │ ├── fbr_icon_200x200.png
│ │ ├── fbr_icon_300x300.png
│ │ ├── prochtenie_catalog.png
│ │ ├── appbar_favorites_add.png
│ │ └── appbar_favorites_del.png
│ └── Images
│ │ ├── WVGA
│ │ ├── DevBig.png
│ │ ├── AppLogo.png
│ │ ├── txt_copy.png
│ │ ├── DevLittle.png
│ │ ├── TextSelect.png
│ │ ├── ic_select.png
│ │ ├── txt_share.png
│ │ ├── txt_bookmark.png
│ │ ├── txt_translate.png
│ │ ├── DesignBookCover.jpg
│ │ ├── logo_cactussoft.png
│ │ └── MainPagePanoramaBackround.jpg
│ │ ├── WXGA
│ │ ├── DevBig.png
│ │ ├── AppLogo.png
│ │ ├── txt_copy.png
│ │ ├── DevLittle.png
│ │ ├── TextSelect.png
│ │ ├── ic_select.png
│ │ ├── txt_share.png
│ │ ├── txt_bookmark.png
│ │ ├── txt_translate.png
│ │ ├── DesignBookCover.jpg
│ │ ├── logo_cactussoft.png
│ │ └── MainPagePanoramaBackround.jpg
│ │ └── empty_max.png
├── SplashScreenImage.Screen-720p.jpg
├── SplashScreenImage.Screen-WVGA.jpg
├── SplashScreenImage.Screen-WXGA.jpg
├── Properties
│ ├── AppManifest.xml
│ └── AssemblyInfo.cs
├── packages.config
├── app.config
├── Views
│ ├── Pages
│ │ ├── Settings
│ │ │ ├── FormattingView.xaml
│ │ │ └── ScreenBrightnessPage.xaml.cs
│ │ ├── MainHub
│ │ │ └── UserLibraryView.xaml.cs
│ │ ├── ContentsPage.xaml.cs
│ │ └── SearchPage.xaml.cs
│ └── Controls
│ │ ├── HighlightedTextBlockControl.xaml
│ │ ├── TitlePanelControl.xaml
│ │ └── BookTile.xaml
├── Controls
│ ├── Manipulations
│ │ └── FlipDirection.cs
│ ├── ApplicationBar
│ │ ├── ApplicationBarMinimizedState.cs
│ │ ├── ApplicationBarState.cs
│ │ └── FBReaderApplicationBarMenuItem.cs
│ ├── Toast
│ │ ├── PopUpResult.cs
│ │ └── PopUpEventArgs.cs
│ └── TranslationControl.xaml
└── LocalizedStrings.cs
├── FBReader.AppServices
├── FodyWeavers.xml
├── packages.config
├── IReadView.cs
├── CatalogReaders
│ ├── SkyDrive
│ │ ├── SkyDriveFile.cs
│ │ ├── SkyDriveFolder.cs
│ │ └── SkyDriveItem.cs
│ ├── OpdsFilters
│ │ ├── IOpdsBadFormatFilter.cs
│ │ ├── UnescapedAmpersandsFilter.cs
│ │ └── AcquisitionBuyFilter.cs
│ ├── Readers
│ │ ├── ICatalogReaderFactory.cs
│ │ ├── ICatalogReader.cs
│ │ └── ISearchableCatalogReader.cs
│ ├── AcquisitionServices
│ │ ├── IAcquisitionServiceFactory.cs
│ │ └── IAcquisitionService.cs
│ └── Authorization
│ │ ├── ICatalogAuthorizationFactory.cs
│ │ └── ICatalogAuthorizationService.cs
├── Services
│ ├── IErrorHandler.cs
│ ├── ITileManager.cs
│ └── ISkyDriveService.cs
├── Tombstone
│ ├── StateSaving
│ │ ├── IRestorable.cs
│ │ └── IStorageStateSaver.cs
│ ├── SearchPageViewModelStorageHandler.cs
│ ├── SettingsPivotViewModelStorageHandler.cs
│ ├── AddCatalogPageViewModelStorageHandler.cs
│ └── CatalogPageViewModelStorageHanlder.cs
├── DataModels
│ ├── ChapterDataModel.cs
│ ├── ShareMethodDataModel.cs
│ ├── SearchInBookResultItemDataModel.cs
│ ├── BookmarkSearchResultDaraModel.cs
│ └── CatalogDataModel.cs
├── Events
│ ├── BookRemoved.cs
│ ├── BookDownloaded.cs
│ ├── BookmarkRemoved.cs
│ └── UILanguageChanged.cs
├── Controller
│ └── Translation
│ │ └── TranslationException.cs
├── Properties
│ └── AssemblyInfo.cs
└── ViewModels
│ └── Pages
│ └── Settings
│ └── ScreenBrightnessPageViewModel.cs
├── FBReader.IO
├── packages.config
├── FileCounter.cs
├── FileSync.cs
└── ZippedFile.cs
├── FBReader.WebClient
├── packages.config
├── FBReader.WebClient.csproj.user
├── DTO
│ ├── Litres
│ │ ├── DocumentInfoDto.cs
│ │ ├── TextDescriptionDto.cs
│ │ ├── LitresAuthorizationDto.cs
│ │ ├── CatalitFb2BooksDto.cs
│ │ ├── TitleInfoDto.cs
│ │ └── HiddenDto.cs
│ ├── ContentDto.cs
│ ├── OpdsPriceDto.cs
│ ├── OpenSearchDescription
│ │ └── UrlDto.cs
│ ├── AuthorDto.cs
│ ├── CatalogContentDto.cs
│ ├── CatalogAuthorDto.cs
│ └── TitleValueDto.cs
├── IWebDataGateway.cs
├── IWebClient.cs
└── Exceptions
│ └── OpdsFormatException.cs
├── FBReader.Render
├── packages.config
├── Downloading
│ ├── Model
│ │ ├── DownloadStatus.cs
│ │ └── AsyncContext.cs
│ ├── IFileLoadingFactory.cs
│ └── IBookDownloader.cs
└── RenderData
│ ├── LinkRenderData.cs
│ ├── TextRenderData.cs
│ ├── ImageRenderData.cs
│ └── WordRenderData.cs
├── FBReader.Tokenizer
├── packages.config
├── TextStructure
│ ├── EOLElement.cs
│ ├── EOPElement.cs
│ ├── TextElementBase.cs
│ ├── ImageParagraphInfo.cs
│ └── ImageElement.cs
├── Tokens
│ ├── TokenIndex.cs
│ ├── PageBreakBlock.cs
│ ├── SeparatorTokenBlock.cs
│ ├── ImageTokenBlock.cs
│ ├── TokenType.cs
│ ├── NewPageToken.cs
│ ├── WhitespaceToken.cs
│ ├── TokenBase.cs
│ └── TokenBlockBase.cs
├── Fonts
│ ├── FontSizeType.cs
│ └── IFontHelper.cs
├── Parsers
│ ├── ITokenParser.cs
│ ├── Epub
│ │ └── EpubSpineItem.cs
│ └── IBookBuilder.cs
└── Data
│ └── BookChapter.cs
├── build.cmd
├── FBReader.DataModel
├── Model
│ ├── BaseTable.cs
│ ├── LitresTopupCatalogItemModel.cs
│ ├── LitresBookshelfCatalogItemModel.cs
│ ├── ModelConstants.cs
│ ├── DownloadLink.cs
│ ├── BookDownloadLinkModel.cs
│ └── OpenSearchDescriptionModel.cs
├── Repositories
│ ├── IBookDownloadsRepository.cs
│ └── ICatalogRepository.cs
└── Changesets
│ ├── Changeset2.cs
│ └── Changeset3.cs
├── FBReader.Settings
├── Constants.cs
├── FlippingStyle.cs
├── SupportedMargins.cs
├── FlippingMode.cs
└── ColorSchemes.cs
├── FBReader.Localization
├── ILocalizationManager.cs
└── Properties
│ └── AssemblyInfo.cs
├── FBReader.Common
├── CatalogType.cs
├── ILiveLogin.cs
├── Analytics
│ └── IAnalytics.cs
├── ExtensionMethods
│ ├── GeneralExtensions.cs
│ └── Execute.cs
├── IBusyOverlayManager.cs
└── Exceptions
│ ├── ReadCatalogException.cs
│ ├── FileUploadException.cs
│ ├── RestartException.cs
│ └── SdCardNotSupportedException.cs
├── FBReader.PhoneServices
├── IBusyIndicatorManager.cs
└── ISdCardStorage.cs
├── GlobalAssemblyInfo.cs
└── FBReader.Hyphen
└── ZLTextHyphenationInfo.cs
/src/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/Caliburn/Caliburn.snk
--------------------------------------------------------------------------------
/src/libs/ExCss/ExCss.WP.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/ExCss/ExCss.WP.dll
--------------------------------------------------------------------------------
/src/libs/NavigationCoercion.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/NavigationCoercion.dll
--------------------------------------------------------------------------------
/src/libs/Flurry/FlurryWP8SDK.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Flurry/FlurryWP8SDK.dll
--------------------------------------------------------------------------------
/src/FBReader.App/SplashScreenImage.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/SplashScreenImage.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/AlignmentGrid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/AlignmentGrid.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/add.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/back.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/buy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/buy.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/tile.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/tile.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/toc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/toc.png
--------------------------------------------------------------------------------
/src/FBReader.AppServices/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Core.dll
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Core.pdb
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Data.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Data.dll
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Data.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Data.pdb
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/ApplicationIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/ApplicationIcon.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/cancel.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/delete.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/sd_card.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/sd_card.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/search.png
--------------------------------------------------------------------------------
/src/libs/Microsoft.Live/Microsoft.Live.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Microsoft.Live/Microsoft.Live.dll
--------------------------------------------------------------------------------
/src/libs/Microsoft.Live/Microsoft.Live.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Microsoft.Live/Microsoft.Live.pdb
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/Manybooks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/Manybooks.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/bookmark.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/download.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/skydrive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/skydrive.png
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/Tiles/IconicTileSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/Tiles/IconicTileSmall.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_add.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_edit.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_email.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_rate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_rate.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_read.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_read.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_share.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_sort.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_sort.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/basecircle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/basecircle.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/empty_medium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/empty_medium.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/empty_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/empty_small.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/litres_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/litres_icon.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/marker_paid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/marker_paid.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/toFavorites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/toFavorites.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/DevBig.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/DevBig.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/DevBig.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/DevBig.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/empty_max.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/empty_max.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_search.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_submit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_submit.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/empty_catalog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/empty_catalog.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/flibusta_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/flibusta_icon.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/librusec_icon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/librusec_icon.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/AppLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/AppLogo.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/txt_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/txt_copy.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/AppLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/AppLogo.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/txt_copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/txt_copy.png
--------------------------------------------------------------------------------
/src/FBReader.App/SplashScreenImage.Screen-720p.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/SplashScreenImage.Screen-720p.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/SplashScreenImage.Screen-WVGA.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/SplashScreenImage.Screen-WVGA.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/SplashScreenImage.Screen-WXGA.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/SplashScreenImage.Screen-WXGA.jpg
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Controls.Data.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Controls.Data.dll
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Controls.Data.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Controls.Data.pdb
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Controls.Input.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Controls.Input.dll
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Controls.Input.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Controls.Input.pdb
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/Tiles/FlipCycleTileLarge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/Tiles/FlipCycleTileLarge.png
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/Tiles/FlipCycleTileMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/Tiles/FlipCycleTileMedium.png
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/Tiles/FlipCycleTileSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/Tiles/FlipCycleTileSmall.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_favorites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_favorites.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/fbr_icon_200x200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/fbr_icon_200x200.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/fbr_icon_300x300.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/fbr_icon_300x300.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/DevLittle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/DevLittle.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/TextSelect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/TextSelect.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/ic_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/ic_select.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/txt_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/txt_share.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/DevLittle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/DevLittle.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/TextSelect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/TextSelect.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/ic_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/ic_select.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/txt_share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/txt_share.png
--------------------------------------------------------------------------------
/src/FBReader.App/Assets/Tiles/IconicTileMediumLarge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Assets/Tiles/IconicTileMediumLarge.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/prochtenie_catalog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/prochtenie_catalog.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/txt_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/txt_bookmark.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/txt_translate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/txt_translate.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/txt_bookmark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/txt_bookmark.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/txt_translate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/txt_translate.png
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Controls.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Controls.Primitives.dll
--------------------------------------------------------------------------------
/src/libs/Telerik/Telerik.Windows.Controls.Primitives.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/libs/Telerik/Telerik.Windows.Controls.Primitives.pdb
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_favorites_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_favorites_add.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Icons/appbar_favorites_del.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Icons/appbar_favorites_del.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/DesignBookCover.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/DesignBookCover.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/logo_cactussoft.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/logo_cactussoft.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/DesignBookCover.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/DesignBookCover.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/logo_cactussoft.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/logo_cactussoft.png
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WVGA/MainPagePanoramaBackround.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WVGA/MainPagePanoramaBackround.jpg
--------------------------------------------------------------------------------
/src/FBReader.App/Resources/Images/WXGA/MainPagePanoramaBackround.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geometer/FBReaderCS/HEAD/src/FBReader.App/Resources/Images/WXGA/MainPagePanoramaBackround.jpg
--------------------------------------------------------------------------------
/src/FBReader.IO/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/FBReader.WebClient/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/FBReader.Render/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/build.cmd:
--------------------------------------------------------------------------------
1 | set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
2 |
3 | call %msBuildDir%\msbuild /target:Rebuild /property:Configuration=Release "FBReader.sln"
4 |
5 | set msBuildDir=
--------------------------------------------------------------------------------
/src/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/FBReader.App/Properties/AppManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/src/FBReader.App/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/Caliburn/GlobalAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 |
4 | [assembly: AssemblyProduct("Caliburn.Micro")]
5 | [assembly: AssemblyCompany("Blue Spire Consulting, Inc.")]
6 | [assembly: AssemblyCopyright("Copyright © 2010")]
7 |
8 | [assembly: NeutralResourcesLanguage("en-US")]
9 |
10 | [assembly: AssemblyVersion("1.5.2")]
11 | [assembly: AssemblyFileVersion("1.5.2")]
12 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/IHaveParameters.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | ///
3 | /// Indicates that a message is parameterized.
4 | ///
5 | public interface IHaveParameters {
6 | ///
7 | /// Represents the parameters of a message.
8 | ///
9 | AttachedCollection Parameters { get; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/FBReader.App/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/AssemblySource.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System.Reflection;
3 |
4 | ///
5 | /// A source of assemblies that are inspectable by the framework.
6 | ///
7 | public static class AssemblySource {
8 | ///
9 | /// The singleton instance of the AssemblySource used by the framework.
10 | ///
11 | public static readonly IObservableCollection Instance = new BindableCollection();
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/TaskExecutionRequested.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | ///
3 | /// A message that is published to signify a components request for the execution of a particular task.
4 | ///
5 | public class TaskExecutionRequested {
6 | ///
7 | /// Optional state to be passed along to the task completion message.
8 | ///
9 | public object State;
10 |
11 | ///
12 | /// The task instance.
13 | ///
14 | public object Task;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.InteropServices;
4 | //using System.Windows.Markup;
5 |
6 | [assembly: AssemblyTitle("Caliburn Micro Extensions")]
7 | [assembly: AssemblyDescription("Extensions to the core Caliburn.Micro framework.")]
8 |
9 | [assembly: CLSCompliant(true)]
10 | [assembly: ComVisible(false)]
11 | [assembly: Guid("e7764a6b-119b-4047-a3ef-9a21b1091191")]
12 |
13 | //[assembly: XmlnsDefinition("http://www.caliburnproject.org", "Caliburn.Micro")]
14 | //[assembly: XmlnsPrefix("http://www.caliburnproject.org", "cal")]
15 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP8.Extensions/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.InteropServices;
4 | //using System.Windows.Markup;
5 |
6 | [assembly: AssemblyTitle("Caliburn Micro Extensions")]
7 | [assembly: AssemblyDescription("Extensions to the core Caliburn.Micro framework.")]
8 |
9 | [assembly: CLSCompliant(true)]
10 | [assembly: ComVisible(false)]
11 | [assembly: Guid("e7764a6b-119b-4047-a3ef-9a21b1091191")]
12 |
13 | //[assembly: XmlnsDefinition("http://www.caliburnproject.org", "Caliburn.Micro")]
14 | //[assembly: XmlnsPrefix("http://www.caliburnproject.org", "cal")]
15 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/TaskCompleted.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | ///
3 | /// A message which is published when a task completes.
4 | ///
5 | /// The type of the task event args.
6 | public class TaskCompleted {
7 | ///
8 | /// Optional state provided by the original sender.
9 | ///
10 | public object State;
11 |
12 | ///
13 | /// The results of the task.
14 | ///
15 | public TTaskEventArgs Result;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/FBReader.WebClient/FBReader.WebClient.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | True
8 | Managed
9 | Managed
10 | False
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/IChild.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | ///
3 | /// Denotes a node within a parent/child hierarchy.
4 | ///
5 | public interface IChild {
6 | ///
7 | /// Gets or Sets the Parent
8 | ///
9 | object Parent { get; set; }
10 | }
11 |
12 | ///
13 | /// Denotes a node within a parent/child hierarchy.
14 | ///
15 | /// The type of parent.
16 | public interface IChild : IChild {
17 | ///
18 | /// Gets or Sets the Parent
19 | ///
20 | new TParent Parent { get; set; }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/ResultCompletionEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// The event args for the Completed event of an .
6 | ///
7 | public class ResultCompletionEventArgs : EventArgs {
8 | ///
9 | /// Gets or sets the error if one occurred.
10 | ///
11 | /// The error.
12 | public Exception Error;
13 |
14 | ///
15 | /// Gets or sets a value indicating whether the result was cancelled.
16 | ///
17 | /// true if cancelled; otherwise, false.
18 | public bool WasCancelled;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP8/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.InteropServices;
4 | //using System.Windows.Markup;
5 |
6 | [assembly: AssemblyTitle("Caliburn Micro")]
7 | [assembly: AssemblyDescription("A small, yet powerful framework designed for Xaml platforms, Caliburn.Micro implements a variety of UI patterns for solving real-world problems. Patterns that are highlighted include MVVM (Presentation Model), MVP and MVC.")]
8 |
9 | [assembly: CLSCompliant(true)]
10 | [assembly: ComVisible(false)]
11 | [assembly: Guid("b7b4ec5c-5959-44da-b410-44695cadc0a6")]
12 |
13 | //[assembly: XmlnsDefinition("http://www.caliburnproject.org", "Caliburn.Micro")]
14 | //[assembly: XmlnsPrefix("http://www.caliburnproject.org", "cal")]
15 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.InteropServices;
4 | using System.Windows.Markup;
5 |
6 | [assembly: AssemblyTitle("Caliburn Micro")]
7 | [assembly: AssemblyDescription("A small, yet powerful framework designed for Xaml platforms, Caliburn.Micro implements a variety of UI patterns for solving real-world problems. Patterns that are highlighted include MVVM (Presentation Model), MVP and MVC.")]
8 |
9 | [assembly: CLSCompliant(true)]
10 | [assembly: ComVisible(false)]
11 | [assembly: Guid("6449e9cb-4d4d-4d79-8f73-71a2fc647109")]
12 |
13 | [assembly: XmlnsDefinition("http://www.caliburnproject.org", "Caliburn.Micro")]
14 | [assembly: XmlnsPrefix("http://www.caliburnproject.org", "cal")]
15 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Reflection;
3 | using System.Runtime.InteropServices;
4 | //using System.Windows.Markup;
5 |
6 | [assembly: AssemblyTitle("Caliburn Micro")]
7 | [assembly: AssemblyDescription("A small, yet powerful framework designed for Xaml platforms, Caliburn.Micro implements a variety of UI patterns for solving real-world problems. Patterns that are highlighted include MVVM (Presentation Model), MVP and MVC.")]
8 |
9 | [assembly: CLSCompliant(true)]
10 | [assembly: ComVisible(false)]
11 | [assembly: Guid("b7b4ec5c-5959-44da-b410-44695cadc0a6")]
12 |
13 | //[assembly: XmlnsDefinition("http://www.caliburnproject.org", "Caliburn.Micro")]
14 | //[assembly: XmlnsPrefix("http://www.caliburnproject.org", "cal")]
15 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/NavigationExtensions.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | ///
3 | /// Extension methods related to navigation.
4 | ///
5 | public static class NavigationExtensions {
6 | ///
7 | /// Creates a Uri builder based on a view model type.
8 | ///
9 | /// The type of the view model.
10 | /// The navigation service.
11 | /// The builder.
12 | public static UriBuilder UriFor(this INavigationService navigationService) {
13 | return new UriBuilder().AttachTo(navigationService);
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/StorageMode.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// The mode used to save/restore data.
6 | ///
7 | [Flags]
8 | public enum StorageMode {
9 | ///
10 | /// Automatic Determine the Mode
11 | ///
12 | Automatic = 0,
13 | ///
14 | /// Use Temporary storage.
15 | ///
16 | Temporary = 2,
17 | ///
18 | /// Use Permenent storage.
19 | ///
20 | Permanent = 4,
21 | ///
22 | /// Use any storage mechanism available.
23 | ///
24 | Any = Temporary | Permanent
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/Mouse.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System.Windows;
3 |
4 | ///
5 | /// A mouse helper utility.
6 | ///
7 | public static class Mouse {
8 | ///
9 | /// The current position of the mouse.
10 | ///
11 | public static Point Position { get; set; }
12 |
13 | ///
14 | /// Initializes the mouse helper with the UIElement to use in mouse tracking.
15 | ///
16 | /// The UIElement to use for mouse tracking.
17 | public static void Initialize(UIElement element) {
18 | element.MouseMove += (s, e) => { Position = e.GetPosition(null); };
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/FBReader.App/Views/Pages/Settings/FormattingView.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/FBReader.App/Views/Controls/HighlightedTextBlockControl.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
16 |
--------------------------------------------------------------------------------
/src/FBReader.DataModel/Model/BaseTable.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 |
21 | namespace FBReader.DataModel.Model
22 | {
23 | public class BaseTable
24 | {
25 | }
26 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/IReadView.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices
21 | {
22 | public interface IReadView
23 | {
24 | void Redraw();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/FBReader.DataModel/Model/LitresTopupCatalogItemModel.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.DataModel.Model
21 | {
22 | public class LitresTopupCatalogItemModel : CatalogItemModel
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/src/FBReader.Settings/Constants.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Settings
21 | {
22 | public static class Constants
23 | {
24 | public const int WORDS_PER_PAGE = 200;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/TextStructure/EOLElement.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.TextStructure
21 | {
22 | public class EOLElement : TextElementBase
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/TextStructure/EOPElement.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.TextStructure
21 | {
22 | public class EOPElement : TextElementBase
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/TextStructure/TextElementBase.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.TextStructure
21 | {
22 | public abstract class TextElementBase
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/src/FBReader.DataModel/Model/LitresBookshelfCatalogItemModel.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.DataModel.Model
21 | {
22 | public class LitresBookshelfCatalogItemModel : CatalogItemModel
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/src/FBReader.Settings/FlippingStyle.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Settings
21 | {
22 | public enum FlippingStyle
23 | {
24 | None,
25 | Shift,
26 | Overlap
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/SkyDrive/SkyDriveFile.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.CatalogReaders.SkyDrive
21 | {
22 | public class SkyDriveFile : SkyDriveItem
23 | {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/TextStructure/ImageParagraphInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.TextStructure
21 | {
22 | public class ImageParagraphInfo : ParagraphInfo
23 | {
24 | }
25 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/TokenIndex.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Tokens
21 | {
22 | public class TokenIndex
23 | {
24 | public int Index { get; set; }
25 | }
26 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/SkyDrive/SkyDriveFolder.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.CatalogReaders.SkyDrive
21 | {
22 | public class SkyDriveFolder : SkyDriveItem
23 | {
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Fonts/FontSizeType.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Fonts
21 | {
22 | public enum FontSizeType
23 | {
24 | Unknown,
25 | Px,
26 | Em,
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.App/Views/Controls/TitlePanelControl.xaml:
--------------------------------------------------------------------------------
1 |
13 |
14 |
15 |
16 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/FBReader.Settings/SupportedMargins.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Settings
21 | {
22 | public enum SupportedMargins
23 | {
24 | None,
25 | Small,
26 | Medium,
27 | Big
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/FBReader.App/Controls/Manipulations/FlipDirection.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.App.Controls.Manipulations
21 | {
22 | public enum FlipDirection
23 | {
24 | Revert,
25 | Forward,
26 | Backward,
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Services/IErrorHandler.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 |
22 | namespace FBReader.AppServices.Services
23 | {
24 | public interface IErrorHandler
25 | {
26 | void Handle(Exception exception);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.App/Controls/ApplicationBar/ApplicationBarMinimizedState.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.App.Controls.ApplicationBar
21 | {
22 | public enum ApplicationBarMinimizedState
23 | {
24 | Hidden,
25 | Minimized
26 | }
27 | }
--------------------------------------------------------------------------------
/src/FBReader.App/Controls/ApplicationBar/ApplicationBarState.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.App.Controls.ApplicationBar
21 | {
22 | public enum ApplicationBarState
23 | {
24 | Full,
25 | Normal,
26 | Minimized
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.App/Controls/Toast/PopUpResult.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace Coding4Fun.Toolkit.Controls
21 | {
22 | public enum PopUpResult
23 | {
24 | Cancelled,
25 | NoResponse,
26 | UserDismissed,
27 | Ok
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/FBReader.App/Controls/ApplicationBar/FBReaderApplicationBarMenuItem.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.App.Controls.ApplicationBar
21 | {
22 | public class FBReaderApplicationBarMenuItem : FBReaderApplicationBarItemBase
23 | {
24 |
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/FBReader.Localization/ILocalizationManager.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Globalization;
21 |
22 | namespace FBReader.Localization
23 | {
24 | public interface ILocalizationManager
25 | {
26 | void Reset(CultureInfo cultureInfo);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/FBReader.Common/CatalogType.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Common
21 | {
22 | public enum CatalogType
23 | {
24 | Undefinded = 0,
25 | OPDS,
26 | SDCard,
27 | SkyDrive,
28 | Litres,
29 | StorageFolder
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/FBReader.Settings/FlippingMode.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 |
22 | namespace FBReader.Settings
23 | {
24 | [Flags]
25 | public enum FlippingMode
26 | {
27 | Touch = 1,
28 | Slide = 2,
29 | TouchOrSlide = Touch | Slide
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/SkyDrive/SkyDriveItem.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.CatalogReaders.SkyDrive
21 | {
22 | public class SkyDriveItem
23 | {
24 | public string Id { get; set; }
25 | public string Name { get; set; }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/FBReader.Common/ILiveLogin.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Threading.Tasks;
21 | using Microsoft.Live;
22 |
23 | namespace FBReader.Common
24 | {
25 | public interface ILiveLogin
26 | {
27 | Task Login();
28 | void Logout();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/Litres/DocumentInfoDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO.Litres
23 | {
24 | public class DocumentInfoDto
25 | {
26 | [XmlElement("id")]
27 | public string Id { get; set; }
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/PageBreakBlock.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Tokens
21 | {
22 | public class PageBreakBlock : TokenBlockBase
23 | {
24 | public PageBreakBlock()
25 | {
26 | Height = 0.0;
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Tombstone/StateSaving/IRestorable.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.Tombstone.StateSaving
21 | {
22 | public interface IRestorable
23 | {
24 | void SaveState(string ownerKey = null);
25 | void LoadState(string ownerKey = null);
26 | }
27 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Fonts/IFontHelper.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Windows;
21 |
22 | namespace FBReader.Tokenizer.Fonts
23 | {
24 | public interface IFontHelper
25 | {
26 | Size GetSize(char c, double fontSize, bool bold = false, bool italic = false);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/OpdsFilters/IOpdsBadFormatFilter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Text;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.OpdsFilters
23 | {
24 | interface IOpdsBadFormatFilter
25 | {
26 | void Apply(StringBuilder opdsSource);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/FBReader.Render/Downloading/Model/DownloadStatus.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Render.Downloading.Model
21 | {
22 | public enum DownloadStatus
23 | {
24 | Pending,
25 | Downloading,
26 | Parsing,
27 | Error,
28 | Completed
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/Readers/ICatalogReaderFactory.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.DataModel.Model;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.Readers
23 | {
24 | public interface ICatalogReaderFactory
25 | {
26 | ICatalogReader Create(CatalogModel catalog);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.PhoneServices/IBusyIndicatorManager.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.PhoneServices
21 | {
22 | ///
23 | ///
24 | public interface IBusyIndicatorManager
25 | {
26 | bool IsBusy { get; }
27 | void Start();
28 | void Stop();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/FBReader.Render/RenderData/LinkRenderData.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Windows;
21 |
22 | namespace FBReader.Render.RenderData
23 | {
24 | public class LinkRenderData
25 | {
26 | public Rect Rect { get; set; }
27 |
28 | public string LinkID { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.Settings/ColorSchemes.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Settings
21 | {
22 | public enum ColorSchemes
23 | {
24 | Day,
25 | Night,
26 | GrayOne,
27 | GrayTwo,
28 | Sepia,
29 | Coffee,
30 | Sky,
31 | Asphalt
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Parsers/ITokenParser.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Collections.Generic;
21 | using FBReader.Tokenizer.Tokens;
22 |
23 | namespace FBReader.Tokenizer.Parsers
24 | {
25 | public interface ITokenParser
26 | {
27 | IEnumerable GetTokens();
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.Common/Analytics/IAnalytics.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 |
22 | namespace FBReader.Common.Analytics
23 | {
24 | public interface IAnalytics
25 | {
26 | void StartSession();
27 |
28 | void EndSession();
29 |
30 | void LogError(Exception exception);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Data/BookChapter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Data
21 | {
22 | public class BookChapter
23 | {
24 | public int Level { get; set; }
25 |
26 | public string Title { get; set; }
27 |
28 | public int TokenID { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Parsers/Epub/EpubSpineItem.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 |
22 | namespace FBReader.Tokenizer.Parsers.Epub
23 | {
24 | internal class EpubSpineItem
25 | {
26 | public string Path { get; set; }
27 |
28 | public Stream Stream { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.Silverlight/IResult.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// Allows custom code to execute after the return of a action.
6 | ///
7 | public interface IResult {
8 | ///
9 | /// Executes the result using the specified context.
10 | ///
11 | /// The context.
12 | void Execute(ActionExecutionContext context);
13 |
14 | ///
15 | /// Occurs when execution has completed.
16 | ///
17 | event EventHandler Completed;
18 | }
19 |
20 | #if !SILVERLIGHT || SL5 || WP8
21 | ///
22 | /// Allows custom code to execute after the return of a action.
23 | ///
24 | /// The type of the result.
25 | public interface IResult : IResult
26 | {
27 | ///
28 | /// Gets the result of the asynchronous operation.
29 | ///
30 | TResult Result { get; }
31 | }
32 | #endif
33 | }
34 |
--------------------------------------------------------------------------------
/src/FBReader.App/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Reflection;
21 | using System.Runtime.InteropServices;
22 | using System.Resources;
23 |
24 | [assembly: AssemblyTitle("FBReader.App")]
25 | [assembly: Guid("db598d9f-50e5-46f9-b182-5df348da4569")]
26 | [assembly: NeutralResourcesLanguageAttribute("en")]
27 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Tombstone/StateSaving/IStorageStateSaver.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.Tombstone.StateSaving
21 | {
22 | public interface IStorageStateSaver
23 | {
24 | void Save(T obj, string key) where T : class;
25 | T Restore(string key) where T : class;
26 | }
27 | }
--------------------------------------------------------------------------------
/src/FBReader.Render/Downloading/IFileLoadingFactory.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.Render.Downloading.Loaders;
21 |
22 | namespace FBReader.Render.Downloading
23 | {
24 | public interface IFileLoadingFactory
25 | {
26 | BaseFileLoader GetFileLoader(int dataSourceId, bool trial);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/SeparatorTokenBlock.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Tokens
21 | {
22 | public class SeparatorTokenBlock : TokenBlockBase
23 | {
24 | public SeparatorTokenBlock(double height)
25 | {
26 | Height = height;
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.Localization/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Reflection;
21 | using System.Runtime.InteropServices;
22 | using System.Resources;
23 |
24 |
25 | [assembly: AssemblyTitle("FBReader.Localization")]
26 | [assembly: Guid("0cfc7d30-1590-4d89-9753-6f9959a87a74")]
27 | [assembly: NeutralResourcesLanguageAttribute("en")]
28 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/ImageTokenBlock.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Tokens
21 | {
22 | public class ImageTokenBlock : TokenBlockBase
23 | {
24 | public ImageTokenBlock()
25 | {
26 | Height = -1.0;
27 | }
28 |
29 | public string ImageID { get; set; }
30 | }
31 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/ContentDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO
23 | {
24 | public class ContentDto
25 | {
26 | [XmlText]
27 | public string Value { get; set; }
28 |
29 | [XmlAttribute("type")]
30 | public string Type { get; set; }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/AcquisitionServices/IAcquisitionServiceFactory.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.Common;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.AcquisitionServices
23 | {
24 | public interface IAcquisitionServiceFactory
25 | {
26 | IAcquisitionService GetAcquisitionService(CatalogType catalogType);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/TokenType.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Tokens
21 | {
22 | public enum TokenType : byte
23 | {
24 | TagOpenToken = 0,
25 | TagCloseToken = 1,
26 | TextToken = 2,
27 | WhitespaceToken = 3,
28 | NewPageToken = 4,
29 | PictureToken = 5,
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/FBReader.App/Controls/Toast/PopUpEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 |
22 | namespace Coding4Fun.Toolkit.Controls
23 | {
24 | public class PopUpEventArgs : EventArgs
25 | {
26 | public TPopUpResult PopUpResult { get; set; }
27 | public Exception Error { get; set; }
28 | public T Result { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Services/ITileManager.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.Services
21 | {
22 | public interface ITileManager
23 | {
24 | void CreateTileForBook(string bookId);
25 | void UpdateTileIfExists(string bookId);
26 | void DeleteTile(string bookId);
27 | bool IsPinnedToDesktop(string bookId);
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Parsers/IBookBuilder.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.Tokenizer.TextStructure;
21 |
22 | namespace FBReader.Tokenizer.Parsers
23 | {
24 | public interface IBookBuilder
25 | {
26 | PageInfo GetPage(int firstTokenID, string lastText);
27 |
28 | PageInfo GetPreviousPage(int tokenID, string stopText);
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/Litres/TextDescriptionDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO.Litres
23 | {
24 | public class TextDescriptionDto
25 | {
26 | [XmlElement("hidden")]
27 | public HiddenDto Hidden
28 | {
29 | get;
30 | set;
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/OpdsPriceDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO
23 | {
24 | public class OpdsPriceDto
25 | {
26 | [XmlText]
27 | public string Price { get; set; }
28 |
29 | [XmlAttribute("currencycode")]
30 | public string CurrencyCode { get; set; }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/Authorization/ICatalogAuthorizationFactory.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.DataModel.Model;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.Authorization
23 | {
24 | public interface ICatalogAuthorizationFactory
25 | {
26 | ICatalogAuthorizationService GetAuthorizationService(CatalogModel catalogType);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/DataModels/ChapterDataModel.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.Common;
21 |
22 | namespace FBReader.AppServices.DataModels
23 | {
24 | public class ChapterDataModel : NotifyPropertyChangedBase
25 | {
26 | public int TokenId { get; set; }
27 | public string Title { get; set; }
28 | public int Depth { get; set; }
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/Readers/ICatalogReader.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Collections.Generic;
21 | using System.Threading.Tasks;
22 | using FBReader.DataModel.Model;
23 |
24 | namespace FBReader.AppServices.CatalogReaders.Readers
25 | {
26 | public interface ICatalogReader
27 | {
28 | Task> ReadAsync();
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Events/BookRemoved.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.DataModel.Model;
21 |
22 | namespace FBReader.AppServices.Events
23 | {
24 | public class BookRemoved
25 | {
26 | public BookModel Book { get; private set; }
27 |
28 | public BookRemoved(BookModel book)
29 | {
30 | Book = book;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Services/ISkyDriveService.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Threading;
21 | using System.Threading.Tasks;
22 | using FBReader.DataModel.Model;
23 |
24 | namespace FBReader.AppServices.Services
25 | {
26 | public interface ISkyDriveService
27 | {
28 | Task UploadAsync(BookModel book, CancellationToken cancellationToken);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Controller/Translation/TranslationException.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 |
22 | namespace FBReader.AppServices.Controller.Translation
23 | {
24 | public class TranslationException : Exception
25 | {
26 | public TranslationException(Exception exception):base(string.Empty, exception)
27 | {
28 |
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/WindowManagerExtensions.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// WindowManager extensions
6 | ///
7 | public static class WindowManagerExtensions {
8 | ///
9 | /// Shows a modal dialog for the specified model, using vibrate and audio feedback
10 | ///
11 | /// The WindowManager instance.
12 | /// The root model.
13 | /// The context.
14 | /// If not null, use the specified .wav as opening sound
15 | /// If true, use a vibration feedback on dialog opening
16 | public static void ShowDialogWithFeedback(this IWindowManager windowManager, object rootModel, object context = null, Uri wavOpeningSound= null, bool vibrate = true) {
17 | if (wavOpeningSound != null) {
18 | IoC.Get().Play(wavOpeningSound);
19 | }
20 |
21 | if (vibrate) {
22 | IoC.Get().Start(TimeSpan.FromMilliseconds(200));
23 | }
24 |
25 | windowManager.ShowDialog(rootModel, context);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/DataModels/ShareMethodDataModel.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.DataModels
21 | {
22 | public enum Method
23 | {
24 | Email,
25 | SocialNetworks
26 | }
27 |
28 | public class ShareMethodDataModel
29 | {
30 | public Method Method { get; set; }
31 | public string Name { get; set; }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/TaskExtensionMethods.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// Extension methods related to phone tasks.
6 | ///
7 | public static class TaskExtensionMethods {
8 | ///
9 | /// Creates a task and publishes it using the .
10 | ///
11 | /// The task to create.
12 | /// The event aggregator.
13 | /// Optional configuration for the task.
14 | /// Optional state to be passed along to the task completion message.
15 | public static void RequestTask(this IEventAggregator events, Action configure = null, object state = null)
16 | where TTask : new() {
17 | var task = new TTask();
18 |
19 | if(configure != null) {
20 | configure(task);
21 | }
22 |
23 | events.Publish(new TaskExecutionRequested {
24 | State = state,
25 | Task = task
26 | });
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/AcquisitionServices/IAcquisitionService.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Threading.Tasks;
21 | using FBReader.DataModel.Model;
22 |
23 | namespace FBReader.AppServices.CatalogReaders.AcquisitionServices
24 | {
25 | public interface IAcquisitionService
26 | {
27 | Task BuyBook(CatalogBookItemModel book, string authorizationString);
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.Common/ExtensionMethods/GeneralExtensions.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Reflection;
21 |
22 | namespace FBReader.Common.ExtensionMethods
23 | {
24 | public static class GeneralExtensions
25 | {
26 | public static string GetVersion(this Assembly assembly)
27 | {
28 | return assembly.FullName.Split('=')[1].Split(',')[0];
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/FBReader.WebClient/IWebDataGateway.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Threading.Tasks;
21 | using FBReader.DataModel.Model;
22 |
23 | namespace FBReader.WebClient
24 | {
25 | public interface IWebDataGateway
26 | {
27 | Task GetCatalogInfo(string path);
28 | Task GetOpenSearchDescriptionModel(string path, string authorityUrl);
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/OpenSearchDescription/UrlDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO.OpenSearchDescription
23 | {
24 | public class UrlDto
25 | {
26 | [XmlAttribute("type")]
27 | public string Type { get; set; }
28 |
29 | [XmlAttribute("template")]
30 | public string Template { get; set; }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/OpdsFilters/UnescapedAmpersandsFilter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Text;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.OpdsFilters
23 | {
24 | class UnescapedAmpersandsFilter: IOpdsBadFormatFilter
25 | {
26 | public void Apply(StringBuilder opdsSource)
27 | {
28 | opdsSource.Replace("&", "&");
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/FBReader.PhoneServices/ISdCardStorage.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Collections.Generic;
21 | using System.Threading.Tasks;
22 | using Microsoft.Phone.Storage;
23 |
24 | namespace FBReader.PhoneServices
25 | {
26 | public interface ISdCardStorage
27 | {
28 | Task GetIsAvailableAsync();
29 | Task> GetFilesAsync(params string[] extensions);
30 | }
31 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/NewPageToken.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 |
22 | namespace FBReader.Tokenizer.Tokens
23 | {
24 | public class NewPageToken : TokenBase
25 | {
26 | public NewPageToken(int id)
27 | : base(id)
28 | {
29 | }
30 |
31 | public override void Save(BinaryWriter writer)
32 | {
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.IO/FileCounter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 |
22 | namespace FBReader.IO
23 | {
24 | internal class FileCounter
25 | {
26 | public FileCounter(Stream stream)
27 | {
28 | Stream = stream;
29 | Count = 1;
30 | }
31 |
32 | public int Count { get; set; }
33 |
34 | public Stream Stream { get; set; }
35 | }
36 | }
--------------------------------------------------------------------------------
/src/FBReader.Render/RenderData/TextRenderData.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Windows;
21 |
22 | namespace FBReader.Render.RenderData
23 | {
24 | public class TextRenderData
25 | {
26 | public Rect Rect { get; set; }
27 |
28 | public string Text { get; set; }
29 |
30 | public int ParagraphID { get; set; }
31 |
32 | public int TokenID { get; set; }
33 | }
34 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/WhitespaceToken.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 |
22 | namespace FBReader.Tokenizer.Tokens
23 | {
24 | public class WhitespaceToken : TokenBase
25 | {
26 | public WhitespaceToken(int id)
27 | : base(id)
28 | {
29 | }
30 |
31 | public override void Save(BinaryWriter writer)
32 | {
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/Litres/LitresAuthorizationDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO.Litres
23 | {
24 | [XmlRoot("catalit-authorization-ok")]
25 | public class LitresAuthorizationDto
26 | {
27 | [XmlAttribute("sid")]
28 | public string Token
29 | {
30 | get;
31 | set;
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Events/BookDownloaded.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.Render.Downloading.Model;
21 |
22 | namespace FBReader.AppServices.Events
23 | {
24 | public class BookDownloaded
25 | {
26 | public DownloadItemDataModel Book { get; private set; }
27 |
28 | public BookDownloaded(DownloadItemDataModel book)
29 | {
30 | Book = book;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Events/BookmarkRemoved.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.DataModel.Model;
21 |
22 | namespace FBReader.AppServices.Events
23 | {
24 | public class BookmarkRemoved
25 | {
26 | public BookmarkModel Bookmark { get; private set; }
27 |
28 | public BookmarkRemoved(BookmarkModel bookmarkModel)
29 | {
30 | Bookmark = bookmarkModel;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Events/UILanguageChanged.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Globalization;
21 |
22 | namespace FBReader.AppServices.Events
23 | {
24 | public class UILanguageChanged
25 | {
26 | public UILanguageChanged(CultureInfo cultureInfo)
27 | {
28 | CurrntCulture = cultureInfo;
29 | }
30 |
31 | public CultureInfo CurrntCulture { get; private set; }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/TokenBase.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 |
22 | namespace FBReader.Tokenizer.Tokens
23 | {
24 | public abstract class TokenBase
25 | {
26 | protected TokenBase(int id)
27 | {
28 | ID = id;
29 | }
30 |
31 | public int ID { get; private set; }
32 |
33 | public abstract void Save(BinaryWriter writer);
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/Litres/CatalitFb2BooksDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO.Litres
23 | {
24 | [XmlRoot(ElementName = "catalit-fb2-books")]
25 | public class CatalitFb2BooksDto
26 | {
27 | [XmlElement("fb2-book")]
28 | public Fb2BookDto[] Books
29 | {
30 | get;
31 | set;
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/Authorization/ICatalogAuthorizationService.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Threading.Tasks;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.Authorization
23 | {
24 | public interface ICatalogAuthorizationService
25 | {
26 | bool IsAuthorized { get; }
27 | Task Authorize(string userName, string password, string path);
28 | void Deauthorize();
29 | }
30 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/Readers/ISearchableCatalogReader.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Collections.Generic;
21 | using System.Threading.Tasks;
22 | using FBReader.DataModel.Model;
23 |
24 | namespace FBReader.AppServices.CatalogReaders.Readers
25 | {
26 | public interface ISearchableCatalogReader : ITreeCatalogReader
27 | {
28 | Task> SearchAsync(string query);
29 | }
30 | }
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/StorageInstructionBuilder.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// Used to create a fluent interface for building up a storage instruction.
6 | ///
7 | ///
8 | public class StorageInstructionBuilder {
9 | readonly StorageInstruction storageInstruction;
10 |
11 | ///
12 | /// Initializes a new instance of the class.
13 | ///
14 | /// The storage instruction.
15 | public StorageInstructionBuilder(StorageInstruction storageInstruction) {
16 | this.storageInstruction = storageInstruction;
17 | }
18 |
19 | ///
20 | /// Configures the instruction with the specified behavior.
21 | ///
22 | /// The configuration callback.
23 | /// Itself
24 | public StorageInstructionBuilder Configure(Action> configure) {
25 | configure(storageInstruction);
26 | return this;
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/AuthorDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO
23 | {
24 | public class AuthorDto
25 | {
26 | [XmlElement("name")]
27 | public string Name { get; set; }
28 |
29 | [XmlElement("uri")]
30 | public string Uri { get; set; }
31 |
32 | [XmlElement("email")]
33 | public string Email { get; set; }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.IO/FileSync.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 |
22 | namespace FBReader.IO
23 | {
24 | public class FileSync : IDisposable
25 | {
26 | private readonly FileWrapper _file;
27 |
28 | public FileSync(FileWrapper file)
29 | {
30 | _file = file;
31 | }
32 |
33 | public void Dispose()
34 | {
35 | _file.Unlock();
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/FBReader.Render/RenderData/ImageRenderData.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 | using System.Windows;
22 |
23 | namespace FBReader.Render.RenderData
24 | {
25 | public class ImageRenderData
26 | {
27 | public int Width { get; set; }
28 |
29 | public int Height { get; set; }
30 |
31 | public Thickness Margin { get; set; }
32 |
33 | public Stream ImageStream { get; set; }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/GlobalAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Reflection;
21 | using System.Runtime.InteropServices;
22 |
23 | [assembly: AssemblyCompany("CactusSoft")]
24 | [assembly: AssemblyProduct("FBReader")]
25 | [assembly: AssemblyCopyright("Copyright © CactusSoft 2013")]
26 | [assembly: AssemblyTrademark("")]
27 | [assembly: AssemblyVersion("1.0.1.450")]
28 | [assembly: AssemblyFileVersion("1.0.1.450")]
29 |
30 | [assembly: ComVisible(false)]
31 |
32 |
--------------------------------------------------------------------------------
/src/FBReader.DataModel/Repositories/IBookDownloadsRepository.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Collections.Generic;
21 | using FBReader.DataModel.Model;
22 |
23 | namespace FBReader.DataModel.Repositories
24 | {
25 | public interface IBookDownloadsRepository
26 | {
27 | void Add(BookDownloadModel item);
28 |
29 | IEnumerable GetItems();
30 |
31 | void Remove(int downloadId);
32 | }
33 | }
--------------------------------------------------------------------------------
/src/FBReader.App/LocalizedStrings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using FBReader.App.Resources;
21 |
22 | namespace FBReader.App
23 | {
24 | ///
25 | /// Provides access to string resources.
26 | ///
27 | public class LocalizedStrings
28 | {
29 | private static AppResources _localizedResources = new AppResources();
30 |
31 | public AppResources LocalizedResources { get { return _localizedResources; } }
32 | }
33 | }
--------------------------------------------------------------------------------
/src/FBReader.DataModel/Model/ModelConstants.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.DataModel.Model
21 | {
22 | public static class ModelConstants
23 | {
24 | public const string BOOK_FILE_DATA_REF_PATH = "bookfile.data.ref";
25 | public const string BOOK_TOKENS_PATH = "bookfile.data.tokens";
26 | public const string BOOK_FILE_DATA_PATH = "bookfile.data";
27 | public const string BOOK_IMAGES_FILE_NAME = "images.xml";
28 | }
29 | }
--------------------------------------------------------------------------------
/src/FBReader.App/Views/Pages/MainHub/UserLibraryView.xaml.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Windows.Controls;
21 |
22 | namespace FBReader.App.Views.Pages.MainHub
23 | {
24 | public partial class UserLibraryView : UserControl
25 | {
26 | public UserLibraryView()
27 | {
28 | InitializeComponent();
29 |
30 | Loaded += (sender, e) =>
31 | {
32 |
33 | };
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/FBReader.IO/ZippedFile.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.IO;
21 |
22 | namespace FBReader.IO
23 | {
24 | public class ZippedFile
25 | {
26 | public ZippedFile(Stream stream, string fileName)
27 | {
28 | FileName = fileName;
29 | Stream = stream;
30 | }
31 |
32 | public string FileName { get; private set; }
33 |
34 | public Stream Stream { get; private set; }
35 | }
36 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/CatalogContentDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO
23 | {
24 | [XmlRoot(ElementName = "feed", Namespace = "http://www.w3.org/2005/Atom")]
25 | public class CatalogContentDto
26 | {
27 | [XmlElement("link")]
28 | public LinkDto[] Links { get; set; }
29 |
30 | [XmlElement("entry")]
31 | public EntryDto[] Entries { get; set; }
32 | }
33 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/DataModels/SearchInBookResultItemDataModel.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.AppServices.DataModels
21 | {
22 | public class SearchInBookResultItemDataModel
23 | {
24 | public string TextBefore { get; set; }
25 | public string TextAfter { get; set; }
26 | public string SearchedText { get; set; }
27 |
28 | public int TokenId { get; set; }
29 | public string BookId { get; set; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/TextStructure/ImageElement.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.TextStructure
21 | {
22 | public class ImageElement : TextElementBase
23 | {
24 | public ImageElement()
25 | {
26 | ImageID = string.Empty;
27 | }
28 |
29 | public int Width { get; set; }
30 |
31 | public int Height { get; set; }
32 |
33 | public string ImageID { get; set; }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.Tokenizer/Tokens/TokenBlockBase.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Tokenizer.Tokens
21 | {
22 | public abstract class TokenBlockBase
23 | {
24 | public double Height { get; set; }
25 |
26 | public int FirstTokenID { get; set; }
27 |
28 | public int LastTokenID { get; set; }
29 |
30 | public virtual string GetLastPart()
31 | {
32 | return string.Empty;
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/CatalogReaders/OpdsFilters/AcquisitionBuyFilter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Text;
21 |
22 | namespace FBReader.AppServices.CatalogReaders.OpdsFilters
23 | {
24 | public class AcquisitionBuyFilter : IOpdsBadFormatFilter
25 | {
26 | public void Apply(StringBuilder opdsSource)
27 | {
28 | opdsSource.Replace("dc:format", "dcformat");
29 | opdsSource.Replace("opds:price", "opdsprice");
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/FBReader.Common/IBusyOverlayManager.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 | using System.Threading.Tasks;
22 |
23 | namespace FBReader.Common
24 | {
25 | public interface IBusyOverlayManager : IDisposable
26 | {
27 | bool Closable { get; set; }
28 | string Content { get; set; }
29 | event Action Closed;
30 | event Action Closing;
31 | Task Start(bool hideAppBar = true);
32 | void Stop();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/CatalogAuthorDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO
23 | {
24 | //[Serializable]
25 | public class CatalogAuthorDto
26 | {
27 | [XmlElement("name")]
28 | public string Name { get; set; }
29 |
30 | [XmlElement("uri")]
31 | public string Uri { get; set; }
32 |
33 | [XmlElement("email")]
34 | public string Email { get; set; }
35 | }
36 | }
--------------------------------------------------------------------------------
/src/FBReader.WebClient/DTO/TitleValueDto.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Xml.Serialization;
21 |
22 | namespace FBReader.WebClient.DTO
23 | {
24 | public class TitleValueDto
25 | {
26 | [XmlText]
27 | public string Text { get; set; }
28 |
29 | [XmlElement("div", Namespace = "http://www.w3.org/1999/xhtml")]
30 | public string DivValue { get; set; }
31 |
32 | [XmlAttribute("type")]
33 | public string Type { get; set; }
34 | }
35 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Tombstone/SearchPageViewModelStorageHandler.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using Caliburn.Micro;
21 | using FBReader.AppServices.ViewModels.Pages;
22 |
23 | namespace FBReader.AppServices.Tombstone
24 | {
25 | public class SearchPageViewModelStorageHandler : StorageHandler
26 | {
27 | public override void Configure()
28 | {
29 | Property(vm => vm.SearchQuery).InPhoneState().RestoreAfterActivation();
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/src/FBReader.AppServices/Tombstone/SettingsPivotViewModelStorageHandler.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using Caliburn.Micro;
21 | using FBReader.AppServices.ViewModels.Pages.Settings;
22 |
23 | namespace FBReader.AppServices.Tombstone
24 | {
25 | public class SettingsPivotViewModelStorageHandler : StorageHandler
26 | {
27 | public override void Configure()
28 | {
29 | Property(vm => vm.SelectedIndex).InPhoneState();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/FBReader.Render/Downloading/Model/AsyncContext.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: Vitaly Leschenko, CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System;
21 | using System.IO;
22 | using System.Threading;
23 |
24 | namespace FBReader.Render.Downloading.Model
25 | {
26 | internal class AsyncContext
27 | {
28 | public EventWaitHandle WaitHandle { get; set; }
29 |
30 | public Exception Error { get; set; }
31 |
32 | public bool IsZip { get; set; }
33 |
34 | public Stream Stream { get; set; }
35 | }
36 | }
--------------------------------------------------------------------------------
/src/FBReader.DataModel/Model/DownloadLink.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Author: CactusSoft (http://cactussoft.biz/), 2013
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | using System.Runtime.Serialization;
21 |
22 | namespace FBReader.DataModel.Model
23 | {
24 | [DataContract]
25 | public class DownloadLink
26 | {
27 | [DataMember]
28 | public string Type
29 | {
30 | get;
31 | set;
32 | }
33 |
34 | [DataMember]
35 | public string Url
36 | {
37 | get;
38 | set;
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/src/FBReader.Hyphen/ZLTextHyphenationInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007-2013 Geometer Plus
3 | *
4 | * This program is free software; you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation; either version 2 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 | * 02110-1301, USA.
18 | */
19 |
20 | namespace FBReader.Hyphen
21 | {
22 | public sealed class ZLTextHyphenationInfo
23 | {
24 | public bool[] Mask { get; private set; }
25 |
26 | public ZLTextHyphenationInfo(int length) {
27 | Mask = new bool[length - 1];
28 | }
29 |
30 | public bool IsHyphenationPossible(int position) {
31 | return (position < Mask.Length && Mask[position]);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Caliburn/Caliburn.Micro.WP71.Extensions/IPhoneContainer.cs:
--------------------------------------------------------------------------------
1 | namespace Caliburn.Micro {
2 | using System;
3 |
4 | ///
5 | /// Defines an interface through which the storage system can communicate with an IoC container.
6 | ///
7 | public interface IPhoneContainer {
8 | ///
9 | /// Occurs when a new instance is created.
10 | ///
11 | event Action